diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-14 23:25:05 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-14 23:25:34 -0700 |
| commit | b12744d831c4158671fc22401590eaac00f7c141 (patch) | |
| tree | 203b80de68d89c7333172337f8def46ba11294d3 /nomsu.moon | |
| parent | 49f1eb3d08caf7605046373b7b3a001f28aa8aab (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-x | nomsu.moon | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)=> |
