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

mzukowski at yci.com mzukowski at yci.com
Fri Nov 14 10:40:39 PST 2003


Oh, you're using heterogenous trees.  I haven't tried those yet, so I can't
help much there.

Monty

-----Original Message-----
From: gunay_arslan [mailto:gunay_arslan at yahoo.co.uk] 
Sent: Friday, November 14, 2003 7:23 AM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Re: Defining AST for the literals ( keywords)

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/ 


 

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




More information about the antlr-interest mailing list