[Xbase] Change keywords of XSwitchExpression [message #1079935] |
Mon, 05 August 2013 08:55 |
Jan Rosczak Messages: 53 Registered: July 2009 Location: Hamburg, Germany |
Member |
|
|
Hi,
I would like to change the keywords for the XSwitchExpression in Xbase. I would like to transform this:
switch e {
case e1 : er1
...
case en : ern
default : er
}
to that:
case of e {
case e1 : er1
...
case en : ern
otherwise : er
}
I managed the "case of" and "otherwise" bits but now the parser complains if I try to write "case" statements, because it expects "case of" and not "case" even so I did not change anything in the XCasePart rule. I guess I have to use syntactic predicates but I could not make it work.
Is this possible somehow?
Thanks
Jan
[Updated on: Mon, 05 August 2013 08:56] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03057 seconds