[antlr-interest] Eliminate characters in TOKEN

Bart Kiers bkiers at gmail.com
Wed Nov 23 01:59:01 PST 2011


Hi Rampon,


On Wed, Nov 23, 2011 at 10:54 AM, Rampon Jerome <ramponjerome at yahoo.fr>wrote:

> ...
> it complained on output option to be AST.
> If I add it in my grammar options if complains and still return error
> It seems it automatically adds if not there but later on still return
> error ???
>
> Is that normal ?
>

Yes, the `!` to exclude characters from lexer rules (as was possible in v2)
is no longer valid in v3 grammars.



> Any simple way to bypass rather than a later replaceAll. I would prefer to
> keep
> it target independent
>

No, that's not possible.

Regards,

Bart.


More information about the antlr-interest mailing list