[antlr-interest] Using ANTLRv3
Gavin Lambert
antlr at mirality.co.nz
Fri May 4 05:29:32 PDT 2007
At 23:14 4/05/2007, Stefan wrote:
>Nope. The complete file is just this:
>
>grammar Test2;
>
>string : '"' (~'"')+ '"';
Ah, that's because you've written a parser rule when you should
have been using a lexer rule.
Capitalise at least the first letter of "string" (all-caps is the
convention but is not required) and it will be a lexer rule
instead. Then it should work.
More information about the antlr-interest
mailing list