HaloO, Larry Wall wrote:
That's what I thought. Now note that ! can't easily be rewritten as a simple binary operator (unless you do something recursive, and then it's not simple).
Would $x! == [*]1..$x constitute simple parserwise? Admittedly it's not a single but two ops and one of them a meta.
Now, I think I know how to make the parser use precedence on either a prefix or a postfix to get the desired effect (but perhaps not going both directions simulatenously).
But that leads me to a slightly different parsing question, which comes from the asymmetry of postfix operators.
How are postfix operators asymmetric? Regards, TSa. -- The Angel of Geometry and the Devil of Algebra fight for the soul of any mathematical being. -- Attributed to Hermann Weyl