From fd7a948efc2813c311da3ceeb0de305f753a144e Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 13 May 2012 19:39:29 +0100 Subject: Compiler to use new builtin module --- lib/lace/compiler.lua | 5 ++--- 1 file 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 -- cgit v1.2.1