Hi,
I have a question about the following grammar:

grammar test;

list     :    (element)+
    ;

element    :   BAR NAME
    ;

BAR    :     'bar'
    ;

NAME
    :     ('a'..'z'|'A'..'Z')('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
    ;

WS
    :  (' '|'\r'|'\t'|'\u000C'|'\n') {$channel=HIDDEN;}
    ;

I tried to use the following input: bar bar
and I get errors because the parser doesn't recognize that the second bar
should be treated as a name.
I tried to change the grammar or options but without success. What am I
missing?

If it matters I'm using antlrworks-1.2 and antlr-3.1.

Thank you,
Fabian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to