diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-09-01 22:34:28 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-09-01 22:34:38 +0100 |
commit | 3d2b80cf454e682ba1fcd094465b7ee1a94297dd (patch) | |
tree | 68b6731494756df20fc4cc0cea3b556f92f0ed12 /src/Ast.hs | |
parent | 476b0d2d6c27b9ec326b465480795582a3b22f4c (diff) | |
download | micro-lang-hs-3d2b80cf454e682ba1fcd094465b7ee1a94297dd.tar.gz micro-lang-hs-3d2b80cf454e682ba1fcd094465b7ee1a94297dd.zip |
Variable declaration
Diffstat (limited to 'src/Ast.hs')
-rw-r--r-- | src/Ast.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -23,7 +23,8 @@ data Expr = Num Integer SourcePos | Bool' Bool SourcePos | BinOp Op Expr Expr - | Var Ident SourcePos + | Variable Ident SourcePos + | Var Ident Type Expr SourcePos | -- fn [params] return body private anomyous pos Func Ident [FuncParam] (Maybe Type) [Expr] Bool Bool SourcePos | Call Expr [Expr] SourcePos |