From: Luke Lau Date: Sat, 18 May 2019 16:17:41 +0000 (+0100) Subject: Parse more binary ops X-Git-Url: http://git.lukelau.me/?a=commitdiff_plain;h=0d60a0af6b11db89bee6ee8377be3d3f0aae715e;hp=0d60a0af6b11db89bee6ee8377be3d3f0aae715e;p=kaleidoscope-hs.git Parse more binary ops 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" ---