mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Add object type, dot operator can return function references
This commit is contained in:
parent
69b9e17020
commit
47f95fc04a
18 changed files with 599 additions and 49 deletions
192
test/tests/object several.lua
Normal file
192
test/tests/object several.lua
Normal file
|
|
@ -0,0 +1,192 @@
|
|||
local _={}
|
||||
_[81]={}
|
||||
_[80]={}
|
||||
_[79]={}
|
||||
_[78]={}
|
||||
_[77]={}
|
||||
_[76]={}
|
||||
_[75]={}
|
||||
_[74]={}
|
||||
_[73]={}
|
||||
_[72]={}
|
||||
_[71]={}
|
||||
_[70]={}
|
||||
_[69]={}
|
||||
_[68]={}
|
||||
_[67]={}
|
||||
_[66]={}
|
||||
_[65]={}
|
||||
_[64]={}
|
||||
_[63]={}
|
||||
_[62]={}
|
||||
_[61]={}
|
||||
_[60]={}
|
||||
_[59]={}
|
||||
_[58]={}
|
||||
_[57]={}
|
||||
_[56]={}
|
||||
_[55]={}
|
||||
_[54]={}
|
||||
_[53]={}
|
||||
_[52]={}
|
||||
_[51]={}
|
||||
_[50]={}
|
||||
_[49]={}
|
||||
_[48]={tags=_[81],text="bar"}
|
||||
_[47]={tags=_[80],text=" == "}
|
||||
_[46]={tags=_[79],text="bar"}
|
||||
_[45]={tags=_[78],text="bar"}
|
||||
_[44]={tags=_[77],text=" == "}
|
||||
_[43]={tags=_[76],text="bar"}
|
||||
_[42]={tags=_[75],text="foo"}
|
||||
_[41]={tags=_[74],text=" == "}
|
||||
_[40]={tags=_[73],text="foo"}
|
||||
_[39]={tags=_[72],text="foo"}
|
||||
_[38]={tags=_[71],text=" == "}
|
||||
_[37]={tags=_[70],text="foo"}
|
||||
_[36]={tags=_[69],text="foo"}
|
||||
_[35]={tags=_[68],text=" != "}
|
||||
_[34]={tags=_[67],text="haha"}
|
||||
_[33]={tags=_[66],text="foo"}
|
||||
_[32]={tags=_[65],text=" != "}
|
||||
_[31]={tags=_[64],text="haha"}
|
||||
_[30]={tags=_[63],text="foo"}
|
||||
_[29]={tags=_[62],text=" == "}
|
||||
_[28]={tags=_[61],text="foo"}
|
||||
_[27]={tags=_[60],text="foo"}
|
||||
_[26]={tags=_[59],text=" == "}
|
||||
_[25]={tags=_[58],text="foo"}
|
||||
_[24]={tags=_[57],text="foo"}
|
||||
_[23]={tags=_[56],text=" == "}
|
||||
_[22]={tags=_[55],text="foo"}
|
||||
_[21]={tags=_[54],text="foo"}
|
||||
_[20]={tags=_[53],text=" == "}
|
||||
_[19]={tags=_[52],text="foo"}
|
||||
_[18]={tags=_[51],text="%object several.class::&object several.class"}
|
||||
_[17]={tags=_[50],text=", "}
|
||||
_[16]={tags=_[49],text="%object several.class::&object several.class"}
|
||||
_[15]={_[46],_[47],_[48]}
|
||||
_[14]={_[43],_[44],_[45]}
|
||||
_[13]={_[37],_[38],_[39],_[40],_[41],_[42]}
|
||||
_[12]={_[31],_[32],_[33],_[34],_[35],_[36]}
|
||||
_[11]={_[25],_[26],_[27],_[28],_[29],_[30]}
|
||||
_[10]={_[19],_[20],_[21],_[22],_[23],_[24]}
|
||||
_[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 = "%object several.class::&object several.class"
|
||||
}, {
|
||||
tags = {},
|
||||
text = ", "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "%object several.class::&object several.class"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "haha"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " != "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "haha"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " != "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "foo"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "bar"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "bar"
|
||||
} } }
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "bar"
|
||||
}, {
|
||||
tags = {},
|
||||
text = " == "
|
||||
}, {
|
||||
tags = {},
|
||||
text = "bar"
|
||||
} } }
|
||||
{ "return" }
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue