-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
We have some ambiguous rules for numbers, i.e. BYTE_LITERAL and DECIMAL_LITERAL, so antlr matches the one that was defined first.
In int answer = 42 , it matches the number as BYTE_LITERAL and complains that it requires an INT_LITERAL . Once the number contains underscores or exceeds the byte range, it matches correctly.
Now I'm wondering whether I missed sth. (antlr version/config) or if it is just an error. That was implemented before my time so I can't say whether there is a reason for it I don't understand or if it's just a bug.
Reactions are currently unavailable