[Ometa] Parametrized rules in OMeta
Andrey Fedorov
anfedorov at gmail.com
Sun Jan 10 15:24:22 PST 2010
Hi Alex,
2010/1/7 Alessandro Warth <alexwarth at gmail.com>
> infix('mulExpr', '+') | infix('mulExpr', '-') | mulExpr,
So there's a metaphor clash here in my mind. I would have expected:
infix(mulExpr, '+') | infix(mulExpr, '-') | mulExpr,
This would be consistent with the analogy to `mulExpr' being a variable
name, and `infix' - a function. Is there a reason this is impossible, or
just something you didn't get a chance to implement?
Might simplify things, as it might also alleviate the need for `apply' in
higher-order rule definitions.
Cheers,
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://vpri.org/pipermail/ometa/attachments/20100110/aa99099c/attachme=
nt.htm
More information about the OMeta
mailing list