help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a command that shows the C-code the interpreter creates?


From: Mike Miller
Subject: Re: Is there a command that shows the C-code the interpreter creates?
Date: Tue, 16 Apr 2019 13:06:34 -0700
User-agent: Mutt/1.10.1 (2018-07-13)

On Tue, Apr 16, 2019 at 14:49:53 -0500, GoSim wrote:
> No, I want the readable code, not compiled code. 
> 
> --------------------------------------------------------
> Here is a Bison tutorial:
> http://alumni.cs.ucr.edu/~lgao/teaching/bison.html
> 
> Steps to use Bison:
> 
> Write a lexical analyzer to process input and pass tokens to the parser
> (calc.lex).
> Write the grammar specification for bison (calc.y), including grammar rules,
> yyparse() and yyerror().
> Run Bison on the grammar to produce the parser. (Makefile)
> *Compile the code output by Bison, as well as any other source files.*
> Link the object files to produce the finished product. 
> ------------------------------------------------------
> 
> I want the bold marked line, "code output by Bison". Is this doable?

This is the code produced by Bison for Octave:

  
https://sources.debian.org/src/octave/5.1.0-1/libinterp/parse-tree/oct-parse.cc/

-- 
mike



reply via email to

[Prev in Thread] Current Thread [Next in Thread]