Token information in AST
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Adam_Key
Posted On:   Thursday, March 27, 2003 01:39 AM

Hi all,

I've got the following problem: I've got my AST and I would like to get the line and column number for each token. Ther are methods in CommonToken class (getLine etc.) but how I can convert a leaf into a Token. Is it necessary to do it this way? How I can find the root (the first token)?

Thank you,

Key

P. S. Is there any JavaDoc for ANTLR?

About | Sitemap | Contact