[antlr-interest] How to stop tree-parsing

David Marín Carreño dmarin at sice.com
Wed Oct 7 03:38:30 PDT 2009


I am developing a formula evaluation software, using an ANTLR lexer, parser
and tree-parser.

I have some doubts about how to specify grammar and semantic actions for a
“return” clause.
Now, a return clause is specified as ^(RETURN expression).

Is there any easy way for stopping tree-parsing and return a value to the
caller?

Thanks a lot
--
David Marín Carreño 
S.I.C.E. 
Dirección Técnica. 
Tfno 91 623 22 30
E-mail: dmarin at sice.com
 





More information about the antlr-interest mailing list