Source

fplua / test.lua

Full commit
local fplua = require "fplua.init" -- has .init because it only autoloads init when installed

print("----Code----")
local f = assert(io.open("test.fplua", "r"))
local code = f:read("*a")
f:close()
print(code)

print("----AST----")
code = fplua.buildAst(code)
fplua.dumptree(code)

print("----Compiled----")
code = fplua.compileAst(code)
print(code)

print("----Load----")
code = assert(loadstring(code))

print("----Output----")
code()