|Re: Executing code without generating stack machine c ode email@example.com (Himanshu Garg) (2005-04-28)|
|Re: Executing code without generating stack machine c ode firstname.lastname@example.org (Tom Verbeure) (2005-04-30)|
|From:||Tom Verbeure <email@example.com>|
|Date:||30 Apr 2005 10:57:41 -0400|
|Posted-Date:||30 Apr 2005 10:57:41 EDT|
> Actually I don't even want to generate assembly code to be executed by
> the processor. I want to get the output of the program
> i) either by walking its AST
> ii) or by generating stack machine code and executing it.
You may want to look at one of the examples in the ANTLR distribution
(downloadable at www.antlr.org). It's not c, lex or yacc, but the
./examples/java/tinybasic directory contains a minimalistic basic
interpreter that works by walking the AST.
Return to the
Search the comp.compilers archives again.