summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-05-13 19:39:29 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-05-13 19:39:29 +0100
commitfd7a948efc2813c311da3ceeb0de305f753a144e (patch)
tree23dfbd4faa4301a8a26023ca6e6259cc8b4a048c
parentba16514c32332975c61692172efc174726ec2234 (diff)
downloadlace-fd7a948efc2813c311da3ceeb0de305f753a144e.tar.gz
Compiler to use new builtin module
-rw-r--r--lib/lace/compiler.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/lace/compiler.lua b/lib/lace/compiler.lua
index dbe7988..0ac9743 100644
--- a/lib/lace/compiler.lua
+++ b/lib/lace/compiler.lua
@@ -8,8 +8,7 @@
--
local lex = require "lace.lex"
-
-local builtin_commands = {}
+local builtin = require "lace.builtin"
local function _error(str, words)
return false, { msg = str, words = words }
@@ -36,7 +35,7 @@ local function _command(ctx, name)
local cmdtab = ctx[".lace"].commands or {}
local cfn = cmdtab[name]
if cfn == nil then
- cfn = builtin_commands[name]
+ cfn = builtin.commands[name]
elseif cfn == false then
cfn = _fake_command
end