mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
Add maps; remove map emulation functionality from list; function and tags now internally use maps instead of lists
This commit is contained in:
parent
bac5cdde01
commit
95462391e3
20 changed files with 699 additions and 139 deletions
45
test/tests/map index.lua
Normal file
45
test/tests/map index.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
local _={}
|
||||
_[19]={}
|
||||
_[18]={}
|
||||
_[17]={}
|
||||
_[16]={}
|
||||
_[15]={}
|
||||
_[14]={}
|
||||
_[13]={tags=_[19],text=" == 23"}
|
||||
_[12]={tags=_[18],text="23"}
|
||||
_[11]={tags=_[17],text=" == 12"}
|
||||
_[10]={tags=_[16],text="12"}
|
||||
_[9]={tags=_[15],text=" == {3=12, ahah=23, k=23}"}
|
||||
_[8]={tags=_[14],text="{3=12, ahah=23, k=23}"}
|
||||
_[7]={_[12],_[13]}
|
||||
_[6]={_[10],_[11]}
|
||||
_[5]={_[8],_[9]}
|
||||
_[4]={"return"}
|
||||
_[3]={"text",_[7]}
|
||||
_[2]={"text",_[6]}
|
||||
_[1]={"text",_[5]}
|
||||
return {_[1],_[2],_[3],_[4]}
|
||||
--[[
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "{3=12, ahah=23, k=23}"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == {3=12, ahah=23, k=23}"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "12"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == 12"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "23"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == 23"
|
||||
} } }
|
||||
{ "return" }
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue