[antlr-interest] Beginner Question: What are the steps to get a rules's corresponding text in the parser ?

Anthony Brenelière abreneliere at telys.com
Thu Jan 30 08:57:33 PST 2003


I did not see how does tree parsers mecanism work.
 
I made a lexer and a parser, it compiles well and it seems to work.
 
I know to have a token’s corresponding text in the lexer we use the
.getText() method.
 
What are the steps to get a rules’s corresponding text in the parser ?
Is “buildAST = true” option needed ?
 
Cordially,
Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20030130/b54e505a/attachment.html


More information about the antlr-interest mailing list