diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-09-06 22:22:32 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-09-06 22:22:32 +0100 |
commit | d08042be1e0ae158f124bb6848f5843a804a6544 (patch) | |
tree | 71ffa63234c13f3bf7d31fe3c0a3876839cae2e8 /src/Ast.hs | |
parent | f8dfbfc1604aea626a6502b9f6d06ea1299a0cdb (diff) | |
download | micro-lang-hs-d08042be1e0ae158f124bb6848f5843a804a6544.tar.gz micro-lang-hs-d08042be1e0ae158f124bb6848f5843a804a6544.zip |
Assignation
Diffstat (limited to 'src/Ast.hs')
-rw-r--r-- | src/Ast.hs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -22,7 +22,7 @@ type FuncParam = (Ident, Type, Bool, SourcePos) data Expr = Num Integer SourcePos | Bool' Bool SourcePos - | BinOp Op Expr Expr + | BinOp Op SourcePos Expr Expr | Variable Ident SourcePos | -- v type value private pos Var Ident Type Expr Bool SourcePos @@ -34,7 +34,8 @@ data Expr deriving (Eq, Ord, Show) data Op - = Plus + = Assign + | Plus | Minus | Mul | Div |