Thursday, March 27, 2003 01:39 AM
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)?
P. S. Is there any JavaDoc for ANTLR?