11 lines
213 B
Lua
11 lines
213 B
Lua
|
|
||
|
--Grammar
|
||
|
--Transpile a sting with + and - into an sql query that searches tags
|
||
|
local function transpile(str)
|
||
|
for chunk in str:gmatch("([+-])([^+-])") do
|
||
|
print("found chunk:",chunk)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
return transpile
|