My grammar was getting this error message in AntlrWorks, too.  I found
a bad rule in my .g file
lock_table-statement:  ...
The minus (-) sign is illegal.  Changing it to an underscore (_)
cleared the error condition.
AntlrWorks needs a bit of bullet-proofing to cope with grammar
mistakes.

On Feb 26, 9:46 am, Terence Parr <[email protected]> wrote:
> yeah, AW is kinda hosed at moment in some ways. I need time to dig into it.
> Ter
> On Feb 26, 2011, at 2:23 AM, Douglas Godfrey wrote:
>
>
>
> > I have a large combined grammar for SQL:2003 that I have just converted from
> > the ISO BNF grammar.
>
> > When I put the cursor over a Parser rule I get the normal syntax diagram.
>
> > When I put the cursor over a Lexer rule I get the message:
> > Cannot display rule "xxxx" because start state not found.
>
> > The grammar file is names sql2003.g and the start rule is defined as the
> > first parser rule in the grammar file.
>
> > sql2003
> >    :    ( sql_client_module_definition
> >        | externally_invoked_procedure
> >        | sql_invoked_procedure
> >        | sql_invoked_function
> >        | sql_procedure_statement
> >        )
> >        EOF
> >    ;
>
> > I thought that the Lexer has no "Start State" as such and instead tries to
> > invoke each Lexer rule in order.
>
> > List:http://www.antlr.org/mailman/listinfo/antlr-interest
> > Unsubscribe:http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
> List:http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to