Commit 2c55901f authored by Taddeus Kroes's avatar Taddeus Kroes

Changed assiociativity for derivatives/integrals to left.

parent d4c9ecf2
...@@ -111,3 +111,5 @@ Division of 0 by 1 reduces to 0. ...@@ -111,3 +111,5 @@ Division of 0 by 1 reduces to 0.
- MESSAGES needs to be expanded. - MESSAGES needs to be expanded.
- Use pretty-print for expressions in hint messages. - Use pretty-print for expressions in hint messages.
- Parser: add unit tests for operator associativity (derivatives/integrals).
...@@ -86,7 +86,7 @@ class Parser(BisonParser): ...@@ -86,7 +86,7 @@ class Parser(BisonParser):
# ------------------------------ # ------------------------------
precedences = ( precedences = (
('left', ('COMMA', )), ('left', ('COMMA', )),
('right', ('INTEGRAL', 'DERIVATIVE')), ('left', ('INTEGRAL', 'DERIVATIVE')),
('left', ('OR', )), ('left', ('OR', )),
('left', ('AND', )), ('left', ('AND', )),
('left', ('EQ', )), ('left', ('EQ', )),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment