[antlr-interest] fixed the ~SET bug in lexer
Gavin Lambert
antlr at mirality.co.nz
Thu Mar 15 00:36:08 PDT 2007
At 09:26 15/03/2007, Terence Parr wrote:
>Complicated unit tests now pass like this:
>
> public void testNotComplicatedSetRuleInLexer() throws Exception
{
> Grammar g = new Grammar(
> "lexer grammar T;\n"+
> "A : B | ~B {;} ;\n" +
> "fragment B : 'a'|'b'|'c'..'e'|C ;\n" +
> "fragment C : 'f' ;\n"); // has to seen from B to C
[...]
Woohoo! :) I look forward to the next version (once the predicate
thing has been sorted out too).
More information about the antlr-interest
mailing list