| ← Nächstältere Version | Version vom 21. Dezember 2021, 00:29 Uhr | ||
| Zeile 80: | Zeile 80: | ||
|
local StopIndex
|
local StopIndex
|
||
|
local function open(Name)
|
local function open(Name, KlammerAuf)
|
||
|
return {
|
if KlammerAuf then return {Name}
|
||
|
else return Name end
|
|||
|
end
|
end
|
||
| Zeile 165: | Zeile 166: | ||
|
while j < #tabL do
|
while j < #tabL do
|
||
|
— process opening brackets
|
— process opening brackets
|
||
|
table.insert(ElmList, open(tabL[j]))
|
table.insert(ElmList, open(string.gsub(tabL[j], ‘^%s*(.-)%s*$’, ‘%1’), true))
|
||
|
j = j + 1
|
j = j + 1
|
||
|
end
|
end
|
||
|
— process plain value
|
— process plain value
|
||
|
table.insert(ElmList, open(tabL[j]))
|
table.insert(ElmList, open(string.gsub(tabL[j], ‘^%s*(.-)%s*$’, ‘%1’), false))
|
||
|
— process bracket
|
— process bracket
|
||
|
table.insert(ElmList, -1)
|
table.insert(ElmList, -1)
|
||
もっと詳しく