[antlr-interest] V3: possible bug - whitespace at the beginning of a line causes error?

Terence Parr parrt at cs.usfca.edu
Sun Jan 28 21:53:42 PST 2007


On Jan 28, 2007, at 9:26 PM, Mark Mandel wrote:

> Hey,
>
> Before I make a test bed, I just wanted to see if anyone else has
> encountered this issue:
>
> If I have a line that reads a line such as:
>
> "select from basic"
>
> it parses fine
>
> if I have one that reads:
>
> "   select from basic"
>
> I get a mismatched character error on my parser.

Weird given the $channel=HIDDEN.  Never seen this.  Have you separate  
parser and lexer into two separate files?  If so, token types could  
be out of sync.

Have you tried a debugger?

Ter


More information about the antlr-interest mailing list