[antlr-interest] Re: Please - can someone help me out?
Terence Parr
parrt at cs.usfca.edu
Sun Nov 7 11:27:57 PST 2004
On Nov 7, 2004, at 4:53 AM, Geir Ove Skjaervik wrote:
> Q1:
> As for how to use ANTLR to implement a Stack Machine: Couldn't I
> simply emit the stack instructions from the Parser part of ANTLR?
> (That's what I did in the hand coded lexer / parser I wrote). What
> are the benefits of doing it walking an AST tree?
Have you seen my CS652 lab that builds stack code?
http://www.cs.usfca.edu/~parrt/course/652/labs/trees.html
here's an interpreter and assembler:
http://www.cs.usfca.edu/~parrt/course/652/labs/interp.html
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list