aboutsummaryrefslogtreecommitdiff
path: root/nomsu_environment.moon
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-09 14:48:23 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-09 14:48:40 -0800
commita2f07415c5284bf94c146cea6eed4a15f171b9ab (patch)
tree925ab30d70cac56c24e007f7daa0b89b9f371f3c /nomsu_environment.moon
parent7d2b7199d87930096b7fd799709fe0105d51eccb (diff)
Deprecating (% as lua statements) and (% as lua return)
Diffstat (limited to 'nomsu_environment.moon')
-rw-r--r--nomsu_environment.moon3
1 files changed, 2 insertions, 1 deletions
diff --git a/nomsu_environment.moon b/nomsu_environment.moon
index 4802ce7..b216242 100644
--- a/nomsu_environment.moon
+++ b/nomsu_environment.moon
@@ -31,6 +31,7 @@ for version=1,999
Parsers[version] = make_parser(peg_contents, make_tree)
{:tree_to_nomsu, :tree_to_inline_nomsu} = require "nomsu_decompiler"
+compile = require('nomsu_compiler')
nomsu_environment = Importer{
NOMSU_COMPILER_VERSION: 12, NOMSU_SYNTAX_VERSION: max_parser_version
-- Lua stuff:
@@ -50,7 +51,7 @@ nomsu_environment = Importer{
-- Nomsu functions:
_1_as_nomsu:tree_to_nomsu, _1_as_inline_nomsu:tree_to_inline_nomsu
- compile: require('nomsu_compiler')
+ compile: compile, _1_as_lua: compile,
:_1_forked, :import_to_1_from
_1_parsed: (nomsu_code)->