From 3d2b80cf454e682ba1fcd094465b7ee1a94297dd Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 1 Sep 2022 22:34:28 +0100 Subject: Variable declaration --- src/Ast.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Ast.hs') 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 -- cgit v1.2.3