[antlr-interest] [V3] error report request - include grammar name in message text.

Martin Probst mail at martin-probst.com
Thu Aug 10 01:24:02 PDT 2006


Hi,

> [program, expression, simple_expr, short_circuit, comparand,  
> signed_term]: line 1:0 state 0 (decision=6) no viable alt; token= 
> [@0,0:0=',',<52>,1:0]
> [program]: line 0:0 mismatched tree node: EOF; expecting type <DOWN>
>
> the first message is from the parser and the second from the tree  
> walker, i
> think. it would be nice to know for sure which generated parser  
> issued each
> message.

I think this is somewhat out of the scope for ANTLR. For anything  
more than toy use you will have to write your own main routine,  
including error handlers etc. anyways.

Martin


More information about the antlr-interest mailing list