X-Git-Url: https://git.lukelau.me/?p=kaleidoscope-hs.git;a=blobdiff_plain;f=AST.hs;h=9ff555a74d10c6d970fc8b7df0a37c1d98fdbffc;hp=dfa43b7c60c0d0ced86a73268167b1b9584b9d74;hb=fb7d66e2e530c51a6a20239f8f2cd644f40fecea;hpb=38600a47841e2c5837b5693b32c35d2093864458 diff --git a/AST.hs b/AST.hs index dfa43b7..9ff555a 100644 --- a/AST.hs +++ b/AST.hs @@ -18,6 +18,8 @@ instance Read Expr where , parseVar , parseCall , parseBinOp "<" 10 (Cmp LT) + , parseBinOp ">" 10 (Cmp GT) + , parseBinOp "==" 10 (Cmp EQ) , parseBinOp "+" 20 Add , parseBinOp "-" 20 Sub , parseBinOp "*" 40 Mul