1
0
Fork 0
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:
Étienne Fildadut 2021-12-12 17:07:50 +01:00
parent f5382d2912
commit 48cabbf4c0
14 changed files with 500 additions and 61 deletions

View file

@ -0,0 +1,82 @@
local _={}
_[37]={}
_[36]={}
_[35]={}
_[34]={}
_[33]={}
_[32]={}
_[31]={}
_[30]={}
_[29]={}
_[28]={}
_[27]={}
_[26]={text="Loop not ran.",tags=_[37]}
_[25]={text=":",tags=_[36]}
_[24]={text="5",tags=_[35]}
_[23]={text="Start with i=",tags=_[34]}
_[22]={text="4",tags=_[33]}
_[21]={text="3",tags=_[32]}
_[20]={text="2",tags=_[31]}
_[19]={text="1",tags=_[30]}
_[18]={text=":",tags=_[29]}
_[17]={text="1",tags=_[28]}
_[16]={text="Start with i=",tags=_[27]}
_[15]={_[26]}
_[14]={_[23],_[24],_[25]}
_[13]={_[22]}
_[12]={_[21]}
_[11]={_[20]}
_[10]={_[19]}
_[9]={_[16],_[17],_[18]}
_[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 = "Start with i="
}, {
tags = {},
text = "1"
}, {
tags = {},
text = ":"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "2"
} } }
{ "text", { {
tags = {},
text = "3"
} } }
{ "text", { {
tags = {},
text = "4"
} } }
{ "text", { {
tags = {},
text = "Start with i="
}, {
tags = {},
text = "5"
}, {
tags = {},
text = ":"
} } }
{ "text", { {
tags = {},
text = "Loop not ran."
} } }
{ "return" }
]]--