mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 17:19:31 +00:00
Add anonymous functions
This commit is contained in:
parent
2c6d66c222
commit
5e441886c0
15 changed files with 352 additions and 110 deletions
81
test/tests/anonymous function.lua
Normal file
81
test/tests/anonymous function.lua
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
local _={}
|
||||
_[35]={}
|
||||
_[34]={}
|
||||
_[33]={}
|
||||
_[32]={}
|
||||
_[31]={}
|
||||
_[30]={}
|
||||
_[29]={}
|
||||
_[28]={}
|
||||
_[27]={}
|
||||
_[26]={}
|
||||
_[25]={}
|
||||
_[24]={}
|
||||
_[23]={tags=_[35],text=" == 49"}
|
||||
_[22]={tags=_[34],text="49"}
|
||||
_[21]={tags=_[33],text=" == 32"}
|
||||
_[20]={tags=_[32],text="32"}
|
||||
_[19]={tags=_[31],text=" == 14"}
|
||||
_[18]={tags=_[30],text="14"}
|
||||
_[17]={tags=_[29],text="4"}
|
||||
_[16]={tags=_[28],text=" = "}
|
||||
_[15]={tags=_[27],text="4"}
|
||||
_[14]={tags=_[26],text="25"}
|
||||
_[13]={tags=_[25],text=" = "}
|
||||
_[12]={tags=_[24],text="25"}
|
||||
_[11]={_[22],_[23]}
|
||||
_[10]={_[20],_[21]}
|
||||
_[9]={_[18],_[19]}
|
||||
_[8]={_[15],_[16],_[17]}
|
||||
_[7]={_[12],_[13],_[14]}
|
||||
_[6]={"return"}
|
||||
_[5]={"text",_[11]}
|
||||
_[4]={"text",_[10]}
|
||||
_[3]={"text",_[9]}
|
||||
_[2]={"text",_[8]}
|
||||
_[1]={"text",_[7]}
|
||||
return {_[1],_[2],_[3],_[4],_[5],_[6]}
|
||||
--[[
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "25"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " = "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "25"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "4"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " = "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "4"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "14"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == 14"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "32"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == 32"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "49"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == 49"
|
||||
} } }
|
||||
{ "return" }
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue