aboutsummaryrefslogtreecommitdiff
path: root/src/Ast.hs
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-14 19:19:26 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-14 19:19:26 +0100
commit641de5e4f68385da3b53bfc532c2d6585a6d958d (patch)
tree33098b477d2e98331db8174cbc51cbb3b5630182 /src/Ast.hs
parent2b78e2b5689d05e484254c9878eeb08542dcfbc5 (diff)
downloadmicro-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.hs4
1 files changed, 2 insertions, 2 deletions
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