From 96e5e567cb208194793a56462b90fb02c9cfe927 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 16 Sep 2018 16:57:14 -0700 Subject: Working module system. --- core/id.nom | 1 + core/metaprogramming.nom | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/id.nom b/core/id.nom index 9656dd0..d3b2b71 100644 --- a/core/id.nom +++ b/core/id.nom @@ -3,6 +3,7 @@ A simple UUID function based on RFC 4122: http://www.ietf.org/rfc/rfc4122.txt use "core/metaprogramming.nom" +use "core/operators.nom" use "core/math.nom" use "core/collections.nom" use "core/control_flow.nom" diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 93d5486..5d31c2b 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -372,7 +372,8 @@ compile [command line args] to (Lua value "arg") compile [with local compile actions %body] to (..) Lua "\ ..do - local nomsu = table.fork(nomsu, {COMPILE_ACTIONS=table.fork(COMPILE_ACTIONS)}) + local nomsu = nomsu:fork() + local COMPILE_ACTIONS = nomsu.environment.COMPILE_ACTIONS \(%body as lua statements) end" -- cgit v1.2.3