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

Recursively check equality for lists and pairs, improve function redefinition error message

This commit is contained in:
Étienne Fildadut 2021-04-04 19:36:42 +02:00
parent 6dc0db71e0
commit ec18d2e611
58 changed files with 288 additions and 172 deletions

View file

@ -1,23 +1,22 @@
local _={}
_[9]={}
_[8]={}
_[7]={}
_[6]={data="b c",tags=_[8]}
_[5]={data="a",tags=_[7]}
_[4]={type="string",value=""}
_[3]={_[5],_[6]}
_[2]={"return",_[4]}
_[1]={"text",_[3]}
return {_[1],_[2]}
_[7]={tags=_[9],data="b c"}
_[6]={tags=_[8],data="a"}
_[5]={_[7]}
_[4]={_[6]}
_[3]={"return"}
_[2]={"text",_[5]}
_[1]={"text",_[4]}
return {_[1],_[2],_[3]}
--[[
{ "text", { {
data = "a",
tags = {}
}, {
} } }
{ "text", { {
data = "b c",
tags = {}
} } }
{ "return", {
type = "string",
value = ""
} }
{ "return" }
]]--