[antlr-interest] issue with antlr requiring a whitespace at a specific place

Olivier Sallou olivier.sallou at irisa.fr
Wed Jun 8 02:23:26 PDT 2011

I have an issue with antlrworks (1.4.2), where for a specific grammar,
it requires a whitespace.
I upgraded from antlrworks 1.1.7 where the same did not asked for the

        '?' string
        | '%' string ':' percentage=INT
        | ...

string    : '"' LOWID '"';
LOWID    : ('a'..'z'|'\-')+;
INT :   ('0'..'9')+ ;

If I call my example rules with:
it works fine
but if I call

If fails.

At least if I add a whitespace between % and \"acgt\", it works:
 % \"acgt\":30

I really can't understand why a whitespace is required here, and only

Thanks for your help


gpg key id: 4096R/326D8438  (pgp.mit.edu)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

More information about the antlr-interest mailing list