1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-27 09:59:29 +00:00

Fixed leaving debug code

And oh, I forgot in the last commit: I added a rockspec, which hopefully
works. Soon in LuaRocks repos near you.
This commit is contained in:
Étienne Fildadut 2017-08-16 22:38:20 +02:00
parent 4af2b41a0d
commit ce4a44cb13

View file

@ -22,12 +22,6 @@ else -- REPL
line = line:gsub("^=", "return tostring(") .. ")"
end
local p = dofile("lib/lua-parser/parser.lua")
local d = dofile("lib/lua-parser/pp.lua")
print(p.parse(line))
print(d.dump(p.parse(line)))
print(require"compiler.lua53"(p.parse(line)))
local t = { pcall(candran.load, line, "stdin") }
if t[1] == false then
print(t[2])