lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 27 Jan 2004 15:17:38 -0200
Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

> (Now is a good time for people to tell us which of these extras are
> useful and which are not and can go.)

I realize that "now" was long ago.  ;) I tweak test/table.lua to make
variables_like_this behave when I use it as directed in globals.lua

   luac -p -l file.lua | lua globals.lua | sort | lua table.lua

I have profited from almost all of the code in etc/ and test/ earlier
and still refer to some of it now and then.

Thanks,
Steve

--- table.lua.ORIG      Wed Aug  7 10:16:42 2002
+++ table.lua   Tue Feb  3 11:49:26 2004
@@ -5,7 +5,7 @@
 while 1 do
  local l=io.read()
  if l==nil then break end
- local _,_,a,b=string.find(l,'"?(%w+)"?%s*(.*)$')
+ local _,_,a,b=string.find(l,'"?([_%w]+)"?%s*(.*)$')
  if a~=A then A=a io.write("\n",a,":") end
  io.write(" ",b)
 end