[SOLVED] UnsupportedOperationException on enum [message #1396571] |
Tue, 08 July 2014 13:51 |
Jonas Heinisch Messages: 12 Registered: June 2014 Location: Germany |
Junior Member |
|
|
Hi!
I've written a grammar and it works fine except with one thing. There is an enum that represents basic units and every time i try to use it, the editor shows up with an UnsupportedOperationException as error.
Relevant part of grammar:
IntLiteral:
value=DECINT (SQUARE_PAREN_L unit=BaseUnit SQUARE_PAREN_R)?
;
BaseUnit:
uName=UnitNames
;
enum UnitNames:
UNITLESS="_" | UNITLESS="unitless" | BYTE="B" | SECOND="s" | METER="m"
;
The grammar is based on an existing model.
Everything I write within the square-brackets (SQUARE_PAREN_X) is marked as an Error and shows UnsupportedOperationException.
Any idea why this is showing up? I have no clue here...
thanks in advance
Jonas
[Updated on: Fri, 25 July 2014 08:46] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04104 seconds