mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Persist LuaFunctions & add tests
This commit is contained in:
parent
a46ac380e8
commit
9a38dfa34f
11 changed files with 108 additions and 19 deletions
|
|
@ -88,6 +88,8 @@ local function run(path, interactive)
|
|||
run_loop(parallel_state, write_output, interactive)
|
||||
write_output("--# main script #--")
|
||||
end)
|
||||
state:define("serialize", "(value)", function(state, value) return ast.String:new(value:serialize(state)) end, true)
|
||||
state:define("deserialize", "(str::string)", function(state, str) return ast.abstract.Node:deserialize(state, str.string) end, true)
|
||||
|
||||
local run_state = state:branch()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue