aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-12 20:15:52 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-12 20:15:56 -0700
commit968b5da15050d6804404833ea258bdb531dca9ea (patch)
tree25ce49ffefe8d8d2e9469ffbf152c8f6db537da9 /nomsu.moon
parent63a19db0dc817d2929d8ef4bf12a15d5e9dbd015 (diff)
Fixed some bugs.
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon3
1 files changed, 3 insertions, 0 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 48e8e00..8eb06d8 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -283,6 +283,9 @@ class NomsuCompiler
@environment.Source = Source
@environment.ARG_ORDERS = setmetatable({}, {__mode:"k"})
@environment.ALIASES = setmetatable({}, {__mode:"k"})
+ @environment.compile_time = (fn)->
+ @environment.COMPILE_TIME[fn] = true
+ return fn
@environment.COMPILE_TIME = {}
@environment.LOADED = {}
@environment.AST = AST