mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 17:19: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
|
|
@ -8,12 +8,12 @@ _[32]={}
|
|||
_[31]={}
|
||||
_[30]={}
|
||||
_[29]={}
|
||||
_[28]={tags=_[37],text="[3, 2, foo=c, bar=b]"}
|
||||
_[27]={tags=_[36],text="c"}
|
||||
_[26]={tags=_[35],text="[3, 2, foo=a, bar=b]"}
|
||||
_[25]={tags=_[34],text="b"}
|
||||
_[24]={tags=_[33],text="[3, 2, foo=a]"}
|
||||
_[23]={tags=_[32],text="a"}
|
||||
_[28]={tags=_[37],text="[3, 12, 99]"}
|
||||
_[27]={tags=_[36],text="99"}
|
||||
_[26]={tags=_[35],text="[3, 12]"}
|
||||
_[25]={tags=_[34],text="12"}
|
||||
_[24]={tags=_[33],text="[3, 5]"}
|
||||
_[23]={tags=_[32],text="5"}
|
||||
_[22]={tags=_[31],text="[3, 2]"}
|
||||
_[21]={tags=_[30],text="3"}
|
||||
_[20]={tags=_[29],text="[1, 2]"}
|
||||
|
|
@ -26,7 +26,7 @@ _[14]={_[23]}
|
|||
_[13]={_[22]}
|
||||
_[12]={_[21]}
|
||||
_[11]={_[20]}
|
||||
_[10]={"return"}
|
||||
_[10]={"error","list assignment index out of bounds; in Lua function \"()\"; at test/tests/list assignement.ans:21"}
|
||||
_[9]={"text",_[19]}
|
||||
_[8]={"text",_[18]}
|
||||
_[7]={"text",_[17]}
|
||||
|
|
@ -52,27 +52,27 @@ return {_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10]}
|
|||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "a"
|
||||
text = "5"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "[3, 2, foo=a]"
|
||||
text = "[3, 5]"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "b"
|
||||
text = "12"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "[3, 2, foo=a, bar=b]"
|
||||
text = "[3, 12]"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "c"
|
||||
text = "99"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "[3, 2, foo=c, bar=b]"
|
||||
text = "[3, 12, 99]"
|
||||
} } }
|
||||
{ "return" }
|
||||
{ "error", 'list assignment index out of bounds; in Lua function "()"; at test/tests/list assignement.ans:21' }
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue