mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 17:19:31 +00:00
Add while loop line and operator
This commit is contained in:
parent
f5382d2912
commit
48cabbf4c0
14 changed files with 500 additions and 61 deletions
117
test/tests/loop decorator.lua
Normal file
117
test/tests/loop decorator.lua
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
local _={}
|
||||
_[47]={}
|
||||
_[46]={}
|
||||
_[45]={}
|
||||
_[44]={}
|
||||
_[43]={}
|
||||
_[42]={}
|
||||
_[41]={}
|
||||
_[40]={}
|
||||
_[39]={}
|
||||
_[38]={}
|
||||
_[37]={}
|
||||
_[36]={}
|
||||
_[35]={}
|
||||
_[34]={}
|
||||
_[33]={}
|
||||
_[32]={}
|
||||
_[31]={}
|
||||
_[30]={}
|
||||
_[29]={}
|
||||
_[28]={}
|
||||
_[27]={}
|
||||
_[26]={text="11",tags=_[47]}
|
||||
_[25]={text="\n",tags=_[46]}
|
||||
_[24]={text="10",tags=_[45]}
|
||||
_[23]={text="\n",tags=_[44]}
|
||||
_[22]={text="9",tags=_[43]}
|
||||
_[21]={text="\n",tags=_[42]}
|
||||
_[20]={text="8",tags=_[41]}
|
||||
_[19]={text="\n",tags=_[40]}
|
||||
_[18]={text="7",tags=_[39]}
|
||||
_[17]={text="\n",tags=_[38]}
|
||||
_[16]={text="6",tags=_[37]}
|
||||
_[15]={text="\n",tags=_[36]}
|
||||
_[14]={text="5",tags=_[35]}
|
||||
_[13]={text="\n",tags=_[34]}
|
||||
_[12]={text="4",tags=_[33]}
|
||||
_[11]={text="\n",tags=_[32]}
|
||||
_[10]={text="3",tags=_[31]}
|
||||
_[9]={text="\n",tags=_[30]}
|
||||
_[8]={text="2",tags=_[29]}
|
||||
_[7]={text="\n",tags=_[28]}
|
||||
_[6]={text="1",tags=_[27]}
|
||||
_[5]={_[26]}
|
||||
_[4]={_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15],_[16],_[17],_[18],_[19],_[20],_[21],_[22],_[23],_[24],_[25]}
|
||||
_[3]={"return"}
|
||||
_[2]={"text",_[5]}
|
||||
_[1]={"text",_[4]}
|
||||
return {_[1],_[2],_[3]}
|
||||
--[[
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "1"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "2"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "3"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "4"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "5"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "6"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "7"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "8"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "9"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "10"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "\n"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "11"
|
||||
} } }
|
||||
{ "return" }
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue