A Rule with a list of rules where all entrys are allowed once [message #1058842] |
Wed, 15 May 2013 11:45 |
Liroth Lustim Messages: 14 Registered: May 2013 |
Junior Member |
|
|
Hello,
I am trying to add some optional settings to some elements in my DSL:
Element:
settings+=Settings*
OtherStuff+=MoreRules* ;
Now the settings like version or activation are all allowed only once, so I tryed different approches, but non of them worked.
Settings:
Version? | Activation;
Version_NR:
'vers' version = INT;
Activation:
(active?='activate')?
One try is shown with version, a different one with Activation but all result in an error:
Quote:Decision can match input such as "{')', 'vers'..'activate'}" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
I don't want to call Version_NR and Activation in the Rule Elements because I don't want to force the order. If I use the Settings-Rule the DSL can handle activate bevore version and vice versa.
Has anyone an idea how I can have these Rules called once or not even once without forcing a special order.
Thanks
Liroth
[Updated on: Wed, 15 May 2013 11:47] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03476 seconds