Hacker News new | ask | show | jobs
by jcparkyn 696 days ago
You forgot to test for associativity: ((1-1)-1) vs (1-(1-1)).

Your implementation does handle it correctly though, but it requires some care when using parser generators :)