diff options
author | Tom Smeding <tom@tomsmeding.com> | 2023-04-16 12:20:16 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2023-04-16 12:20:16 +0200 |
commit | b036b1cac1377cdbb9cc57ae6124cd6d6e5775a9 (patch) | |
tree | 55e4027ba410e8ba94fd1bf688d71657e80b074d /AST.hs | |
parent | aea2a97d0aace7f7466e55bf8fed7e47497d2dc7 (diff) |
More parser work
Diffstat (limited to 'AST.hs')
-rw-r--r-- | AST.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,7 +40,7 @@ data Expr t = ELit t Literal | EList t [Expr t] | ETup t [Expr t] - | EApp t (Expr t) (Expr t) + | EApp t (Expr t) [Expr t] | EOp t (Expr t) Operator (Expr t) | EIf t (Expr t) (Expr t) (Expr t) | ECase t (Expr t) [(Pattern t, RHS t)] @@ -50,5 +50,5 @@ data Expr t data Literal = LInt Int | LFloat Double | LChar Char | LString String deriving (Show) -data Operator = OAdd | OSub | OMul | ODiv | OMod +data Operator = OAdd | OSub | OMul | ODiv | OMod | OEqu | OPow deriving (Show) |