I've been thinking of an idea to make rules more expressive, its just syntax sugar at the parser level, but thought i'd ask feedback - if anyone with antlr skills wants to make this work, let us know :)

Instead of doing:
$p : Person($favouriteCheese : favouriteCheese )
Cheese( name == $favouriteCheese )

We should allow the following:
$p : Person()
Cheese( name == $p.favouriteCheese )

We could take this further and in places where a pattern is not used elsewhere allow:
Cheese( name == Person().favouriteCheese )

Mark



_______________________________________________
rules-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-dev

Reply via email to