Parse more binary ops
authorLuke Lau <luke_lau@icloud.com>
Sat, 18 May 2019 16:17:41 +0000 (17:17 +0100)
committerLuke Lau <luke_lau@icloud.com>
Sat, 18 May 2019 22:35:42 +0000 (23:35 +0100)
We can parameterise the precedence that we parse so that * is parsed
before +/- etc.
Try it out with `ghci AST.hs`, and see the difference between
*AST> read "1 * 2 - 3"
and
*AST> read "1 + 2 - 3"


No differences found