[antlr-interest] pass state from parser to lexer

Bart Kiers bkiers at gmail.com
Tue Jul 3 10:31:00 PDT 2012


On Tue, Jul 3, 2012 at 6:13 PM, Benjamin S Wolf <jokeserver at gmail.com>wrote:

> I believe you can also use ~ as a negation, eg.
>
> BODY : '#' ~'#'* '#' ;
>
> (if # is your delimiter, as an example)
>

The delimiter is variable and is provided (at runtime?) by the user, as
indicated by Scobie.

Regards,

Bart.


More information about the antlr-interest mailing list