[antlr-interest] : help :Is it possible to have line number in the AST tree node

ramesh_jun24 ramesh_jun24 at yahoo.co.in
Mon Jun 23 06:15:15 PDT 2003


hi,

I am using antlr to parse java files. I have a requirement of line 
number to be mentioned in the ast node structure i.e I would like to 
know the line number in the actual text file which is parsed.

i.e if a class is used, I want where that particular class is there 
in source file. I require it to map the parsed code to the original 
source file.

Could any body help in this matter.

bye

Ramesh


 

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




More information about the antlr-interest mailing list