X-Git-Url: https://git.lukelau.me/?p=kaleidoscope-hs.git;a=blobdiff_plain;f=AST.hs;h=dfa43b7c60c0d0ced86a73268167b1b9584b9d74;hp=b57d7cb8cede024a9c2bb0e366d8d066474d331d;hb=38600a47841e2c5837b5693b32c35d2093864458;hpb=3ccccc6ab809fb87dd929855936895fb11479e27 diff --git a/AST.hs b/AST.hs index b57d7cb..dfa43b7 100644 --- a/AST.hs +++ b/AST.hs @@ -4,7 +4,7 @@ import Data.Char import Text.Read import Text.ParserCombinators.ReadP hiding ((+++), choice) -data Expr = Num Float +data Expr = Num Double | Var String | BinOp BinOp Expr Expr | Call String [Expr]