mirror of
https://github.com/emptyynes/LIVM.git
synced 2025-01-08 01:22:25 +03:00
11 lines
260 B
Lua
11 lines
260 B
Lua
|
return {
|
||
|
source = function(source)
|
||
|
return source:gsub("\n", ""):gsub("]", "];"):gsub(":", ":;")
|
||
|
end,
|
||
|
any_line = function(line)
|
||
|
return line:trim():gsub("%s+", " ")
|
||
|
end,
|
||
|
line = function(line)
|
||
|
return line:gsub(",", " "):gsub("%s+", " "):split" "
|
||
|
end
|
||
|
}
|