[antlr-interest] Line number on error is not displayed
Christian
chwchw at gmx.de
Thu Nov 10 09:50:29 PST 2011
Due to the rule in line 734
field_declaration
: variable_declarators[$t] ';'
-> ^(FIELD_DECL variable_declarators)
;
the ANTLR compiler generates the error
/C#ToKDM/grammars/CsRewriteRules.g:0:: attribute is not a token,
parameter, or return value: t
1 error
with a wrong line number. (The error itself is detected correctly as $t
is not declared in the rule's scope.)
I cannot post this bug on Jira due to limited rights. Perhaps, someone
could forward this report.
Regards,
Christian
More information about the antlr-interest
mailing list