[antlr-interest] Added ranges, escapes to [a-z] notation in lexer to honey badger
Gavin Lambert
antlr at mirality.co.nz
Sun Jan 22 12:38:50 PST 2012
At 09:04 23/01/2012, Terence Parr wrote:
>Hi. grab another update. augmented [
] in lexer:
>a-z is the inclusive range
[...]
> Inverted ranges give nothing
Why's that? I would have thought that this:
~[a-c]
ought to be the same as this:
~('a'|'b'|'c')
...?
Granted in most cases you can use . instead of
inverted ranges, but it could be useful to be more specific.
More information about the antlr-interest
mailing list