* lib/lua/test: Add.

This commit is contained in:
iratqq 2008-01-11 12:02:44 +00:00
commit e8ac11b670
21 changed files with 531 additions and 0 deletions

View file

@ -0,0 +1,12 @@
-- make table, grouping all data for the same item
-- input is 2 columns (item, data)
local A
while 1 do
local l=io.read()
if l==nil then break end
local _,_,a,b=string.find(l,'"?([_%w]+)"?%s*(.*)$')
if a~=A then A=a io.write("\n",a,":") end
io.write(" ",b)
end
io.write("\n")