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