From 641de5e4f68385da3b53bfc532c2d6585a6d958d Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 14 Aug 2022 19:19:26 +0100 Subject: Limit lambdas to only use local variables Dynamic allocation (and hence closures) is not supported. --- src/Ast.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Ast.hs') diff --git a/src/Ast.hs b/src/Ast.hs index c2bae9e..aa6a5c8 100644 --- a/src/Ast.hs +++ b/src/Ast.hs @@ -23,8 +23,8 @@ data Expr = Num Integer SourcePos | BinOp Op Expr Expr | Var Ident SourcePos - | -- fn [params] return body private pos - Func Ident [FuncParam] (Maybe Type) [Expr] Bool SourcePos + | -- fn [params] return body private anomyous pos + Func Ident [FuncParam] (Maybe Type) [Expr] Bool Bool SourcePos | Call Expr [Expr] SourcePos | Return (Maybe Expr) SourcePos | Module String SourcePos -- cgit v1.2.3