[rules-users] DSL parsing List of Strings

Trägenap traegenap at ttc-informatik.de
Fri Jan 23 11:22:55 EST 2009


Hi,

how I can define a list in a DSL-file?

So user should define a list of comma separated reations (Strings)in a 
DSL-rule-file, like this {"r1","r2","r3"}

This list should be used as parameter for "in"-command.
I always get:

mismatched input '{' expecting ')
no viable alternative at input '{' in rule



DSLR:
when
    Reaction appears {"r1","r2","r3"}

DSL:
[condition][]Reaction appears {reactions}=
$interactionrequest : Interactionrequest($state in ({reactions}))

Thanks for advice
Thorsten



More information about the rules-users mailing list