Open jhiswin opened 10 years ago
aspa doesn't currently attach the line/col number properly to the tree. It's always 0. Filename should also be attached to the tree.
Useful links: http://stackoverflow.com/questions/9954882/antlr-preserve-line-number-and-position-in-tree-grammar http://stackoverflow.com/questions/19787204/antlr-getting-the-line-number-in-the-parservisitor
Unfortunately, both solutions do not work here, because they are not available in antlr 2 or not at all available in a tree grammar, but only in the token-stream to ast conversion, i.e., a regular grammar.
aspa doesn't currently attach the line/col number properly to the tree. It's always 0. Filename should also be attached to the tree.
Useful links: http://stackoverflow.com/questions/9954882/antlr-preserve-line-number-and-position-in-tree-grammar http://stackoverflow.com/questions/19787204/antlr-getting-the-line-number-in-the-parservisitor