1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00

Variable must now be explicitly marked as persistent

This commit is contained in:
Étienne Fildadut 2022-09-27 18:41:40 +09:00
parent e9606cdee0
commit 2c6d66c222
11 changed files with 384 additions and 106 deletions

View file

@ -0,0 +1,44 @@
:$ f()
:a = 1
{a}
~ a := a + 1
:$ g
:a = 1
{a}
~ a := a + 1
:$ h()
:a = 1
{a}
~ a := a + 1
\> depth 2, unscoped:
~ g
~ g
~ g
\> depth 2, scoped:
~ h
~ h
~ h
depth 1:
~ f
~ f
~ f

View file

@ -0,0 +1,230 @@
local _={}
_[113]={}
_[112]={}
_[111]={}
_[110]={}
_[109]={}
_[108]={}
_[107]={}
_[106]={}
_[105]={}
_[104]={}
_[103]={}
_[102]={}
_[101]={}
_[100]={}
_[99]={}
_[98]={}
_[97]={}
_[96]={}
_[95]={}
_[94]={}
_[93]={}
_[92]={}
_[91]={}
_[90]={}
_[89]={}
_[88]={}
_[87]={}
_[86]={}
_[85]={tags=_[113],text="1"}
_[84]={tags=_[112],text="1"}
_[83]={tags=_[111],text="1"}
_[82]={tags=_[110],text="> depth 2, scoped:"}
_[81]={tags=_[109],text="3"}
_[80]={tags=_[108],text="2"}
_[79]={tags=_[107],text="1"}
_[78]={tags=_[106],text="> depth 2, unscoped:"}
_[77]={tags=_[105],text="1"}
_[76]={tags=_[104],text="1"}
_[75]={tags=_[103],text="1"}
_[74]={tags=_[102],text="1"}
_[73]={tags=_[101],text="> depth 2, scoped:"}
_[72]={tags=_[100],text="3"}
_[71]={tags=_[99],text="2"}
_[70]={tags=_[98],text="1"}
_[69]={tags=_[97],text="> depth 2, unscoped:"}
_[68]={tags=_[96],text="1"}
_[67]={tags=_[95],text="1"}
_[66]={tags=_[94],text="1"}
_[65]={tags=_[93],text="1"}
_[64]={tags=_[92],text="> depth 2, scoped:"}
_[63]={tags=_[91],text="3"}
_[62]={tags=_[90],text="2"}
_[61]={tags=_[89],text="1"}
_[60]={tags=_[88],text="> depth 2, unscoped:"}
_[59]={tags=_[87],text="1"}
_[58]={tags=_[86],text="depth 1:"}
_[57]={_[85]}
_[56]={_[84]}
_[55]={_[83]}
_[54]={_[82]}
_[53]={_[81]}
_[52]={_[80]}
_[51]={_[79]}
_[50]={_[78]}
_[49]={_[77]}
_[48]={_[76]}
_[47]={_[75]}
_[46]={_[74]}
_[45]={_[73]}
_[44]={_[72]}
_[43]={_[71]}
_[42]={_[70]}
_[41]={_[69]}
_[40]={_[68]}
_[39]={_[67]}
_[38]={_[66]}
_[37]={_[65]}
_[36]={_[64]}
_[35]={_[63]}
_[34]={_[62]}
_[33]={_[61]}
_[32]={_[60]}
_[31]={_[59]}
_[30]={_[58]}
_[29]={"return"}
_[28]={"text",_[57]}
_[27]={"text",_[56]}
_[26]={"text",_[55]}
_[25]={"text",_[54]}
_[24]={"text",_[53]}
_[23]={"text",_[52]}
_[22]={"text",_[51]}
_[21]={"text",_[50]}
_[20]={"text",_[49]}
_[19]={"text",_[48]}
_[18]={"text",_[47]}
_[17]={"text",_[46]}
_[16]={"text",_[45]}
_[15]={"text",_[44]}
_[14]={"text",_[43]}
_[13]={"text",_[42]}
_[12]={"text",_[41]}
_[11]={"text",_[40]}
_[10]={"text",_[39]}
_[9]={"text",_[38]}
_[8]={"text",_[37]}
_[7]={"text",_[36]}
_[6]={"text",_[35]}
_[5]={"text",_[34]}
_[4]={"text",_[33]}
_[3]={"text",_[32]}
_[2]={"text",_[31]}
_[1]={"text",_[30]}
return {_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15],_[16],_[17],_[18],_[19],_[20],_[21],_[22],_[23],_[24],_[25],_[26],_[27],_[28],_[29]}
--[[
{ "text", { {
tags = {},
text = "depth 1:"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "> depth 2, unscoped:"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "2"
} } }
{ "text", { {
tags = {},
text = "3"
} } }
{ "text", { {
tags = {},
text = "> depth 2, scoped:"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "> depth 2, unscoped:"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "2"
} } }
{ "text", { {
tags = {},
text = "3"
} } }
{ "text", { {
tags = {},
text = "> depth 2, scoped:"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "> depth 2, unscoped:"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "2"
} } }
{ "text", { {
tags = {},
text = "3"
} } }
{ "text", { {
tags = {},
text = "> depth 2, scoped:"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "text", { {
tags = {},
text = "1"
} } }
{ "return" }
]]--