aboutsummaryrefslogtreecommitdiff
path: root/src/Ast.hs
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-01 22:34:28 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-01 22:34:38 +0100
commit3d2b80cf454e682ba1fcd094465b7ee1a94297dd (patch)
tree68b6731494756df20fc4cc0cea3b556f92f0ed12 /src/Ast.hs
parent476b0d2d6c27b9ec326b465480795582a3b22f4c (diff)
downloadmicro-lang-hs-3d2b80cf454e682ba1fcd094465b7ee1a94297dd.tar.gz
micro-lang-hs-3d2b80cf454e682ba1fcd094465b7ee1a94297dd.zip
Variable declaration
Diffstat (limited to 'src/Ast.hs')
-rw-r--r--src/Ast.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ast.hs b/src/Ast.hs
index 3d351c6..af87a8b 100644
--- a/src/Ast.hs
+++ b/src/Ast.hs
@@ -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