diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-05-13 19:39:29 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-05-13 19:39:29 +0100 |
commit | fd7a948efc2813c311da3ceeb0de305f753a144e (patch) | |
tree | 23dfbd4faa4301a8a26023ca6e6259cc8b4a048c | |
parent | ba16514c32332975c61692172efc174726ec2234 (diff) | |
download | lace-fd7a948efc2813c311da3ceeb0de305f753a144e.tar.gz |
Compiler to use new builtin module
-rw-r--r-- | lib/lace/compiler.lua | 5 |
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 |