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

Add nil expression and fix return behavior with nil expression

This commit is contained in:
Étienne Fildadut 2021-04-12 01:10:42 +02:00
parent 6488bef75c
commit b9c6d1d704
10 changed files with 84 additions and 21 deletions

View file

@ -0,0 +1,9 @@
$ hey
§ foo
@2
@3
@5
u
{hey}
{hey.foo}

View file

@ -0,0 +1,19 @@
local _={}
_[7]={}
_[6]={}
_[5]={data="2",tags=_[7]}
_[4]={data="5",tags=_[6]}
_[3]={_[4],_[5]}
_[2]={"return"}
_[1]={"text",_[3]}
return {_[1],_[2]}
--[[
{ "text", { {
data = "5",
tags = {}
}, {
data = "2",
tags = {}
} } }
{ "return" }
]]--

View file

@ -0,0 +1,6 @@
$ hey
@5
a
@2
{hey}

View file

@ -0,0 +1,14 @@
local _={}
_[5]={}
_[4]={data="5",tags=_[5]}
_[3]={_[4]}
_[2]={"return"}
_[1]={"text",_[3]}
return {_[1],_[2]}
--[[
{ "text", { {
data = "5",
tags = {}
} } }
{ "return" }
]]--