add robot prototype

This commit is contained in:
Redo
2022-10-28 16:28:16 -06:00
parent 5ecd2ce020
commit 8edbb986c7
4 changed files with 27 additions and 34 deletions

View File

@@ -7,10 +7,7 @@ local function intToPort(gate, port, len, v)
end
return function(gate, argv)
print(table.concat(argv, "|\n"))
print("robot input")
local arg = argv[1]:gsub("^ +", ""):gsub(" +$", "")
print("\""..arg.."\"")
for word in arg:gmatch("[^\t]+") do
local first, rest = word:sub(1, 1), word:sub(2, #word)
local vec = {}