in reply to Re: Operator Precedence Parser
in thread Operator Precedence Parser
What about associativity?
- Is 6 / 5 * 4 equal to (6 / 5) * 4 (like Perl) or to 6 / (5 * 4)?
- Is 2 ** 3 ** 4 equal to (2 ** 3) ** 4 or to 2 ** (3 ** 4) (like Perl)?
Deviances from Perl's behaviour should be documented, IMHO.
For fun since it doesn't really matter, something else to look at is the interaction between unary minus, post- and pre- -decrement and -increment. For example,
- a---b
- a----b
- a-----b
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Operator Precedence Parser
by Rhandom (Curate) on Jun 09, 2006 at 22:27 UTC | |
by Rhandom (Curate) on Jun 12, 2006 at 12:52 UTC |
In Section
Meditations