[antlr-interest] Cannot display rule "X" because start state is not found

Jim Idle jimi at temporal-wave.com
Mon Nov 2 09:10:18 PST 2009


> rules, I get "Cannot display rule "X" because start state is not found"
> 
> comment
> 	: !(DIGIT | LETTER | SPACE)*
> 	;

Remove the ! from this rule. Looks like you are trying to type a v2 grammar into AntlrWorks, which is for v3 grammars, which is probably what you should be using for a new project :-)

> SPACE
> options {
> 	paraphrase = " ";
> }

Paraphrase option is for v2, not v3, so remove that options{} clause.

Jim





More information about the antlr-interest mailing list