[antlr-interest] what means "mismatched input 'xxx' expecting set null"
Pete Siemsen
siemsen at UCAR.EDU
Sun Oct 7 09:04:05 PDT 2007
Gavin,
That was the problem. I specified whitespace, and now it works.
Thank you very much!
-- Pete
On Oct 6, 2007, at 11:57 PM, Gavin Lambert wrote:
> At 17:51 7/10/2007, Pete Siemsen wrote:
>> PragmaInclude
>> : INCLUDE LPAREN f=StringConstant RPAREN
>> ;
> [...]
>> The above grammar produces the error. What's wrong?
>
> Since PragmaInclude is a lexer rule, it won't discard whitespace
> (or to be more specific, it won't generate whitespace tokens and
> then either skip them or push them onto a hidden channel). So
> anywhere that whitespace may occur within a lexer rule you will
> need to explicitly specify it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071007/71dfeec1/attachment.html
More information about the antlr-interest
mailing list