lua-users home
lua-l archive

A bug in lpeg-0.5

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


Here's a bug that I found in lpeg-0.5... compare the two transcripts
below, the output "foo>" is wrong.
Lua 5.1.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
package.cpath = "/home/edrx/usrc/lpeg-0.4/?.so"
require "lpeg"
print(lpeg.match("<" * lpeg.C(lpeg.R("az")^1) * ">", "<foo> bar"))
foo
Lua 5.1.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
package.cpath = "/home/edrx/usrc/lpeg-0.5/?.so"
require "lpeg"
print(lpeg.match("<" * lpeg.C(lpeg.R("az")^1) * ">", "<foo> bar"))
foo>
Does that happen on other people's machines too? I'm using Debian
stable (gcc 3.3.5) on an i386...
 Cheers,
 Eduardo Ochs
 eduardoochs@gmail.com
 http://angg.twu.net/

AltStyle によって変換されたページ (->オリジナル) /