[antlr-interest] What does "syntax error: antlr: org.antlr.runtime.EarlyExitException" mean?
bradjcox at gmail.com
Sun Jul 1 15:05:32 PDT 2012
That's strange. Adding output=AST and replacing SomeType with RuleType
(defined, but not at all the right type) eliminated the error. It now
generates code that compiles without errors.
I'd still appreciate comments as to whether I'm on the right track.
On Sun, Jul 1, 2012 at 5:38 PM, Brad Cox <bradjcox at gmail.com> wrote:
> I've a more or less working grammar at
> I am trying to add actions to it but am stymied by this opaque error with
> no usable line #s
> [17:21:06] error(100): Grammar.g:10:1: syntax error: antlr:
> [17:21:06] error(100): Grammar.g:0:1: syntax error: assign.types:
> Focus on the policy rule at the top. Is my use of labels right? Necessary?
> AntlrWorks also reports errors concerning undefined SomeType. That's a
> placeholder I'll fix once the policy rule works.
> Current notion is to avoid ASTs and build OpenSAML types directly in the
> grammar, mainly because maintaining children indices across files was
> becoming such a PITA. Hoping I can use names this way, not indices, but
> suggestions are welcome.
> Example of AST approach I'm inclined to abandon is at
Manassas VA 20111
More information about the antlr-interest