[antlr-interest] need help for proceding forward:line number
ramesh_jun24
ramesh_jun24 at yahoo.co.in
Tue Jun 24 05:12:56 PDT 2003
hi,
I have got to know how to extned CommonAST.
with code
import antlr.CommonAST;
import antlr.Token;
public class CommonASTWithLines extends CommonAST {
private int line = 0;
public void initialize(Token tok) {
super.initialize(tok);
line=tok.getLine();
}
public int getLine(){
return line;
}
}
but then were all i have to make modification for the code can
anybody tell me. I am parsing java file.
ramesh
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list