root/src/lua/test/table.lua

Revision 22d1941d0ca5ba7027cdfa51ce34bd1d8fb1931e, 283 bytes (checked in by Theo Schlossnagle <jesus@omniti.com>, 10 years ago)

take the version out... it is what it is

  • Property mode set to 100644
Line 
1 -- make table, grouping all data for the same item
2 -- input is 2 columns (item, data)
3
4 local A
5 while 1 do
6  local l=io.read()
7  if l==nil then break end
8  local _,_,a,b=string.find(l,'"?([_%w]+)"?%s*(.*)$')
9  if a~=A then A=a io.write("\n",a,":") end
10  io.write(" ",b)
11 end
12 io.write("\n")
Note: See TracBrowser for help on using the browser.