[antlr-interest] Creating AST with third party grammar

John B. Brodie jbb at acm.org
Tue Feb 9 10:29:09 PST 2010


On Tue, 2010-02-09 at 10:17 -0800, tahiti wrote:
> No, I confused right for lack of return type of this methods. The method
> query() that parse entire query has return type boid. It is only modify the
> state of the parser class state._fsp located in base class of Parser:
> RecognizerSharedState. I suppose that after calling this method I must to
> use standart feature of ANTLR for generating AST tree from this state.
> 
> This is a code of query() method that mutch query:
....snipped....

does your .g file contain an options{ output=AST; } block?




More information about the antlr-interest mailing list