Hi,

I'm trying to write a grammar where 2.3 would be a float style number but
where the same group of characters in foo.2.3 would be recognized as two
distinct numbers (like foo[2][3]). I changed my number lexer rule to be:

NUM       : ~'.' DIGIT+ ('.' DIGIT+)? ;

However this doesn't seem to work, strangely expressions like [2,3,4] get
rejected with a no viable alternative at input ',3'. Does someone have a
clue why and how I should tweak my rules to do what I want?

Thanks,
Matthieu

--~--~---------~--~----~------------~-------~--~----~
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