[antlr-interest] I get stuked; I don't know what to try. Fwd: Antlr Behavior! Why notifying sintactic errors in My tree gramar.

Jim Idle jimi at temporal-wave.com
Fri Aug 14 07:07:05 PDT 2009


Marwan Ajraoui wrote:
> ---------- Forwarded message ----------
> From: Marwan Ajraoui <marwan.alephn at gmail.com>
> Date: 2009/8/14
> Subject: Antlr Behavior! Why notifying sintactic errors in My tree
> gramar where I'm cheking for Semantic errors ONLY.
> To: antlr-interest at antlr.org
>
>
> Hi comunity;
>
> When I'm runing the tree grammar I defined I'm getting errors like
>
> Error: mismatched input '[]' expecting FN_ID
>
>   
Get rid of the explicit 'literal strings' in your parser and tree parser 
and make lexer rules that define these. Then make sure that you generate 
in the order:

lexer.g parser.g treeparser.g

In the latest snapshot there is a -make option to ensure that the order 
is correct if you use *.g

Jim


More information about the antlr-interest mailing list