-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
No effort has been invested in ensuring that expressions like
2 + 3 * 4actually parse to
[:addition
[:constant "2"]
[:multiplication [:constant "3"] [:constant "4"]]]rather than
[:addition
[:multiplication [:constant "2"] [:constant "3"]]
[:constant "4"]]and I would be surprised if the parser actually works as you'd expect.
Solving this is probably not very hard.
This clearly also calls for a new suite of tests, and these will have to be more closely related to the actual AST.