[antlr-interest] Re: Defining AST for the literals ( keywords)

gunay_arslan gunay_arslan at yahoo.co.uk
Fri Nov 14 07:22:49 PST 2003


What I mean is to have ( at least ) two seperate AST types. 
 1) defined for Keywords ( literals ) 
 2) default one ( defined via   parser setASTNodeClass(String cl) 
method. 

If I set the AST type  using setASTNodeClass(String cl) , how I can
set the AST type for the literal ? ( different AST type ) 

Tks. 

--- In antlr-interest at yahoogroups.com, mzukowski at y... wrote:
> Yeah, that's done by default.
> 
> Monty
> 
> -----Original Message-----
> From: gunay_arslan [mailto:gunay_arslan at y...] 
> Sent: Thursday, November 13, 2003 3:58 AM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] Defining AST for the literals ( keywords)
> 
> Hi ,
> 
> Is it possible to automatically define a concrete AST type for all
> tokens defined in the lexer grammar ? 
> 
> Thank you in advance.
> 
> 
> 
> 
>  
> 
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list