[antlr-interest] AntlrDT - Bad error handling? Bad parsing?

Austin Hastings Austin_Hastings at Yahoo.com
Wed Aug 13 17:02:51 PDT 2008


I have a problem in a grammar. Under AntlrDT, eclipse reports:

Errors (1 item):
--> Unknown error message 
[type=org.antlr.tool.NonRegularDecisionMessage]   --> hlasm.g3 --> 
path/to/src --> line 2 --> DLTK Problem

Under cygwin, invoking the antlr Tool produces:

ANTLR Parser Generator  Version 3.1 (August 12, 2008)  1989-2008
error(211): src/main/antlr/perl6/hlasm/Hlasm.g3:149:2: [fatal] rule 
assignment_expr has non-LL(*) decision due to recursive rule invocations 
reachable from alts 1,2.  Resolve by left-factoring or using syntactic 
predicates or using backtrack=true option.



In fact, line 149 is right. I don't know how DT is coming up with line 
#2, whether that's the column value, or from one of the other '2's that 
are laying around. But it's failing to extract the error message, and 
failing to get the line number right, and it's drawing an (x) at line 2 
of the file, which is a blank line, suggesting there is an error there.

=Austin



More information about the antlr-interest mailing list