How can I change lowercase identifiers to uppercase in AST ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Veselin_Gredic
Posted On:   Tuesday, March 5, 2002 03:27 PM

How can I change lowercase identifiers to uppercase in AST ?

Re: How can I change lowercase identifiers to uppercase in AST ?

Posted By:   Monty_Zukowski  
Posted On:   Wednesday, March 6, 2002 05:59 AM

Java or C++? In either case you take each node and do getText(), make it uppercase, then do setText().


You could also do this in your lexer when you make the Tokens, or in your own AST class that overrides setText() to force it to upper case.

About | Sitemap | Contact