Closed arvindell closed 5 years ago
This message is generated because the rule can indeed not be matched. The rule for {espacio}
will always take precedence, because it is defined as [ ,\t,\r,\n]+
, which includes ,
. The character class syntax is without comma, i.e. you probably wanted [ \t\r\n]+
instead, which will not match comma.
Didn't think of that, thanks!
I'm trying to make "," return an enum element called Coma, below is a fragment of my jflex code.
However, when I generate the java class, I get the following warning:
Is my syntax incorrect? I come here because I haven't found a similar issue, I just need to be pointed in the right direction 😄