hi,
below is my tree grammar:

tokens
{
COMMA=',';
LPAREN='(';
RPAREN=')';

}

start : (NUMBER^ COMMA NUMBER)|WORD^;

WORD : ~(WHITESPACE|LPAREN|RPAREN)+ ;
WHITESPACE : ('\t'|' '|'\r'|'\n'|'\u000C');
NUMBER : DIGIT+;
fragment DIGIT : '0'..'9' ;


when my input is 1,2 which one is it gonna match ? WORD or (NUMBER^ COMMA
NUMBER)

I want this to be matched to latter by antlr i matching it with former..
what am i missing here..

-- 

-JAME

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

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to