[antlr-interest] Another Parser skipping error
antlr at mirality.co.nz
Sun Dec 9 10:37:23 PST 2007
At 06:09 10/12/2007, G R wrote:
>When I use a correct input but, put some others character at the
>end, and then make the input invalid, I, sometimes, get an error
>(that's what I want^^), but sometimes not.
>Using character that are not define in the lexer will raised an
>error (a lexer error then). Everythings Ok here.
>But, using this input, non error is raised (whereas it should be)
>Relation1 \JOIN Relation2 [
>(where the left bracket is define by the rule LeftBrack of the
You need to make sure that your entrypoint rule ends with EOF. If
you don't do this then ANTLR will assume that it doesn't need to
consume all of the input, so won't object to trailing constructs
that it doesn't understand.
More information about the antlr-interest