[antlr-interest] Newbie trying to tame lexer
forumer at smartmobili.com
forumer at smartmobili.com
Sat Aug 4 13:34:54 PDT 2012
Le 04.08.2012 20:20, Bart Kiers a écrit :
> Hi forumer,
>
> Youd normally create a single rule for a block comment, like this:
>
> BLOCK_COMMENT
> : /* .* */
> ;
>
Yes I know but I need a parser that can accept invalid multiline
comments, ex
/*
* I am an invalid multiline comment
With the traditional approach I will get a match exception and I don't
want that.
So is it possible ?
More information about the antlr-interest
mailing list