15 lines
544 B
Lua
15 lines
544 B
Lua
-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
-- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
function directives.include(env, file)
|
|
local sr, err = stat.stat(file)
|
|
if not sr then return false, err end
|
|
--[[local f = io.open(file, "r")
|
|
local fast = mkast(f, file)
|
|
fast.file = file
|
|
local code = generate(fast)
|
|
env.code = env.code .. code .. "\n"]]
|
|
env.code = env.code .. luacomp.process_file(file, file) .. "\n"
|
|
return true
|
|
end |