[rules-users] Compound DSL statements

Michael Anstis michael.anstis at gmail.com
Fri Dec 17 11:32:02 EST 2010


AFAIK compound DSL is not supported; however longer term we are looking to
move to a more sophisticated approach using templates that'll allow compound
construction.


On 17 December 2010 15:55, Chris Selwyn <chris at selwyn-family.me.uk> wrote:

> I tried creating a DSL something like the following:-
>
> [when] there is a QQ with attr equal to {YYY} = there is a Q - with attr
> equal to {YYY}
> [when]there is a Q = Question()
> [when] - with attr equal to {YYY} = attr == "{YYY}"
>
> but I find that the expansion does not seem to work right.
>
> When I use this like
>
> when
>   there is a QQ with attr equal to abc
> then
>   ...
>
> What this expands to is
>
> Question() attr == "abc"
>
> I was hoping that the condition would be put inside the pattern.
>
> Is it not possible to make "compound" DSL statements that use inline "-"
> clauses?
>
> Chris Selwyn
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101217/2401eb53/attachment.html 


More information about the rules-users mailing list