This is normally statically linked in releases. Lua also needs some patching in Linux x86 to fix performance issues related to alignment, will need patching if we want fine-grained threading, and generally has an odd "build it yourself" design, so let's just add embed this one. (note: disable PCH for these files in VC, and don't add lua.c, luac.c, or print.c to the project)
13 lines
283 B
Lua
13 lines
283 B
Lua
-- 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")
|