terminal rule - error (Decision can match input..) [message #1756494] |
Fri, 17 March 2017 19:46  |
Aran A Messages: 30 Registered: January 2011 |
Member |
|
|
Hi,
I need some help with terminal rules. I have written this one in my grammar.
terminal URLPATTERN:
(('0'..'9'|'_'|'-'|'.'|'='|'/'|'*'|'@'|':'|';'|'&'|'#')*('A'..'Z'|'a'..'z')+)+
;
And I get this error: Decision can match input such as "{'A'..'Z', 'a'..'z'}" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input.
In the documentation I've read about "the order of terminal rules" or about terminal rule fragments, but perhaps I miss something. That is my only terminal rule in the grammar (so, I shouldn't worry about the rule order, should I?), and if I describe a fragment (e.g. with ('A'..'Z'|'a'..'z'), the error is the same.
I'd appreciate any clue. Thanks in advance,
Aran
|
|
|
|
Powered by
FUDForum. Page generated in 0.02215 seconds