diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-08-14 19:19:26 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-08-14 19:19:26 +0100 |
commit | 641de5e4f68385da3b53bfc532c2d6585a6d958d (patch) | |
tree | 33098b477d2e98331db8174cbc51cbb3b5630182 /src/Ast.hs | |
parent | 2b78e2b5689d05e484254c9878eeb08542dcfbc5 (diff) | |
download | micro-lang-hs-641de5e4f68385da3b53bfc532c2d6585a6d958d.tar.gz micro-lang-hs-641de5e4f68385da3b53bfc532c2d6585a6d958d.zip |
Limit lambdas to only use local variables
Dynamic allocation (and hence closures) is not supported.
Diffstat (limited to 'src/Ast.hs')
-rw-r--r-- | src/Ast.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |