aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-14 23:25:05 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-14 23:25:34 -0700
commitb12744d831c4158671fc22401590eaac00f7c141 (patch)
tree203b80de68d89c7333172337f8def46ba11294d3 /nomsu.moon
parent49f1eb3d08caf7605046373b7b3a001f28aa8aab (diff)
Some cleanup and fixes. Simplifying a lot of code, and extending the
flexibility of scoping. Redesigned Object system too.
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon4
1 files changed, 4 insertions, 0 deletions
diff --git a/nomsu.moon b/nomsu.moon
index bf26844..fe18530 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -299,6 +299,10 @@ class NomsuCompiler
@environment.LOADED = {}
@environment.AST = AST
@environment._ENV = @environment
+ setmetatable @environment,
+ __index: (k)=>
+ if _self = rawget(@, "self")
+ return _self[k]
@initialize_core!
parse: (nomsu_code)=>