From 8fe1fc0c2b0b10f64c43498481e738221fe03bb3 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 12 Sep 2022 20:16:42 +0100 Subject: Track local variables, WIP code gen --- src/Micro/Ast.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Micro/Ast.hs') diff --git a/src/Micro/Ast.hs b/src/Micro/Ast.hs index 45697de..ec9141e 100644 --- a/src/Micro/Ast.hs +++ b/src/Micro/Ast.hs @@ -24,8 +24,8 @@ data Expr | Bool' Bool SourcePos | BinOp Op SourcePos Expr Expr | Variable Ident SourcePos - | -- v type value private pos - Var Ident Type Expr Bool SourcePos + | -- v type value private local pos + Var Ident Type Expr Bool Bool 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