LangProc / langproc-2017-lab

4 stars 8 forks source link

Associativity #68

Open HarryAnkers opened 6 years ago

HarryAnkers commented 6 years ago

In one of your lectures your parser says x+7+p would become (x+(7+p)).However one of the tests states x(y+xxy+x)y becomes ( ( x ( ( y + ( ( x x ) y ) ) + x ) ) y ).The addition in the later shows y being added first then x.Which one are we suppose to use?