1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 00:59:31 +00:00

Proper checkpointing of mutable values

This commit is contained in:
Étienne Fildadut 2021-12-06 18:34:58 +01:00
parent 801df67461
commit 04c6683de8
14 changed files with 243 additions and 23 deletions

View file

@ -0,0 +1,21 @@
local _={}
_[8]={}
_[7]={}
_[6]={text="[1, [2, 3, 4]]",tags=_[8]}
_[5]={text="[1,[2,3,4]]: ",tags=_[7]}
_[4]={_[5],_[6]}
_[3]={"return"}
_[2]={"text",_[4]}
_[1]={"return"}
return {_[1],_[2],_[3]}
--[[
{ "return" }
{ "text", { {
tags = {},
text = "[1,[2,3,4] ]: "
}, {
tags = {},
text = "[1, [2, 3, 4] ]"
} } }
{ "return" }
]]--