diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-09 19:22:40 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-09 19:22:46 -0700 |
| commit | de34592dbebfa8882f495694d73f2a8b1e2d0856 (patch) | |
| tree | 67141893c161e24c4e8722a77f2e2b7d9e73963f /nomsu_compiler.lua | |
| parent | 0d70332ccf8737fd8cde8eedda034a87184d0486 (diff) | |
Adding some compatibility stuff.
Diffstat (limited to 'nomsu_compiler.lua')
| -rw-r--r-- | nomsu_compiler.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index 98f3791..8c01860 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -486,6 +486,14 @@ do return run_lua_fn() end NomsuCompiler.compile = function(self, tree) + if tree.version then + do + local upgrade = self['A' .. string.as_lua_id("upgrade 1 from 2")] + if upgrade then + tree = upgrade(tree, tree.version) + end + end + end local _exp_0 = tree.type if "Action" == _exp_0 then local stub = tree.stub |
