aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu_compiler.moon')
-rw-r--r--nomsu_compiler.moon3
1 files changed, 3 insertions, 0 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index 8e4dee7..1a7a6e7 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -321,6 +321,9 @@ with NomsuCompiler
return run_lua_fn!
.compile = (tree)=>
+ if tree.version
+ if upgrade = @['A'..string.as_lua_id("upgrade 1 from 2")]
+ tree = upgrade(tree, tree.version)
switch tree.type
when "Action"
stub = tree.stub