1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 17:19:31 +00:00
anselme/test/tests/function type dispatch with default.lua

73 lines
No EOL
1.2 KiB
Lua

local _={}
_[31]={}
_[30]={}
_[29]={}
_[28]={}
_[27]={}
_[26]={}
_[25]={}
_[24]={}
_[23]={}
_[22]={}
_[21]={}
_[20]={tags=_[31],text="gn"}
_[19]={tags=_[30],text="gs"}
_[18]={tags=_[29],text="gn"}
_[17]={tags=_[28],text="gs"}
_[16]={tags=_[27],text="gn"}
_[15]={tags=_[26],text="gs"}
_[14]={tags=_[25],text="gn"}
_[13]={tags=_[24],text="gs"}
_[12]={tags=_[23],text="a"}
_[11]={tags=_[22],text="x"}
_[10]={tags=_[21],text="a"}
_[9]={_[13],_[14],_[15],_[16],_[17],_[18],_[19],_[20]}
_[8]={_[12]}
_[7]={_[11]}
_[6]={_[10]}
_[5]={"return"}
_[4]={"text",_[9]}
_[3]={"text",_[8]}
_[2]={"text",_[7]}
_[1]={"text",_[6]}
return {_[1],_[2],_[3],_[4],_[5]}
--[[
{ "text", { {
tags = {},
text = "a"
} } }
{ "text", { {
tags = {},
text = "x"
} } }
{ "text", { {
tags = {},
text = "a"
} } }
{ "text", { {
tags = {},
text = "gs"
}, {
tags = {},
text = "gn"
}, {
tags = {},
text = "gs"
}, {
tags = {},
text = "gn"
}, {
tags = {},
text = "gs"
}, {
tags = {},
text = "gn"
}, {
tags = {},
text = "gs"
}, {
tags = {},
text = "gn"
} } }
{ "return" }
]]--