[antlr-interest] AST generation: EXPRESSION TREE example.

Bharath Sundararaman bharath at starthis.com
Thu Jun 3 08:04:40 PDT 2004


Hi Tom,

Thank you very much. Are you generating an abstract syntax tree for your
grammar, yet? I would like to know what drives your AST structure. What do
you need it for? 

Thanks,

Bharath.

-----Original Message-----
From: Tom Verbeure [mailto:hombre at gmail.com] 
Sent: Thursday, June 03, 2004 9:54 AM
To: antlr-interest at yahoogroups.com
Subject: Re: [antlr-interest] AST generation: EXPRESSION TREE example.


Hi Barath,

> 3. Are there any examples of how scope of variables can be checked by 
> walking an AST?

I just an ANTLR beginner myself, but you may want to look at the tinybasic
example under ./examples/java/tinybasic of the antlr distribution. In
TinyBasicTreeWalker.g, they are building a context with different scopes
etc.

Tom


 
Yahoo! Groups Links



 




 
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