[antlr-interest] What does "syntax error: antlr: org.antlr.runtime.EarlyExitException" mean?

Brad Cox 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
> http://code.google.com/p/no-xacml/source/browse/src/main/antlr3/noxacml/Grammar.g
> 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:
> org.antlr.runtime.EarlyExitException
> [17:21:06] error(100): Grammar.g:0:1: syntax error: assign.types:
> org.antlr.runtime.EarlyExitException
> Focus on the policy rule at the top. Is my use of labels right? Necessary?
> Etc.
> 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
> http://code.google.com/p/no-xacml/source/browse/src/main/java/noxacml/xacml2/PolicyBuilder.java

Cell: 703-594-1883
Blog: http://bradjcox.blogspot.com
Web: http://virtualschool.edu
Manassas VA 20111

More information about the antlr-interest mailing list