mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-29 01:29: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
92
test/tests/map index accross checkpoints.lua
Normal file
92
test/tests/map index accross checkpoints.lua
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
local _={}
|
||||
_[41]={}
|
||||
_[40]={}
|
||||
_[39]={}
|
||||
_[38]={}
|
||||
_[37]={}
|
||||
_[36]={}
|
||||
_[35]={}
|
||||
_[34]={}
|
||||
_[33]={}
|
||||
_[32]={}
|
||||
_[31]={}
|
||||
_[30]={}
|
||||
_[29]={}
|
||||
_[28]={tags=_[41],text="no="}
|
||||
_[27]={tags=_[40],text="4"}
|
||||
_[26]={tags=_[39],text="a(x)="}
|
||||
_[25]={tags=_[38],text="4"}
|
||||
_[24]={tags=_[37],text="a(x)="}
|
||||
_[23]={tags=_[36],text="4"}
|
||||
_[22]={tags=_[35],text="a(x)="}
|
||||
_[21]={tags=_[34],text="4"}
|
||||
_[20]={tags=_[33],text="a(x)="}
|
||||
_[19]={tags=_[32],text="1"}
|
||||
_[18]={tags=_[31],text="1="}
|
||||
_[17]={tags=_[30],text="{1=4}"}
|
||||
_[16]={tags=_[29],text="x="}
|
||||
_[15]={_[28]}
|
||||
_[14]={_[26],_[27]}
|
||||
_[13]={_[24],_[25]}
|
||||
_[12]={_[22],_[23]}
|
||||
_[11]={_[20],_[21]}
|
||||
_[10]={_[18],_[19]}
|
||||
_[9]={_[16],_[17]}
|
||||
_[8]={"return"}
|
||||
_[7]={"text",_[15]}
|
||||
_[6]={"text",_[14]}
|
||||
_[5]={"text",_[13]}
|
||||
_[4]={"text",_[12]}
|
||||
_[3]={"text",_[11]}
|
||||
_[2]={"text",_[10]}
|
||||
_[1]={"text",_[9]}
|
||||
return {_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8]}
|
||||
--[[
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "x="
|
||||
}, {
|
||||
tags = {},
|
||||
text = "{1=4}"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "1="
|
||||
}, {
|
||||
tags = {},
|
||||
text = "1"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "a(x)="
|
||||
}, {
|
||||
tags = {},
|
||||
text = "4"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "a(x)="
|
||||
}, {
|
||||
tags = {},
|
||||
text = "4"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "a(x)="
|
||||
}, {
|
||||
tags = {},
|
||||
text = "4"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "a(x)="
|
||||
}, {
|
||||
tags = {},
|
||||
text = "4"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "no="
|
||||
} } }
|
||||
{ "return" }
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue