[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Simple XML Parser for Lua?
- From: "Aaron Brown" <aaron-lua@...>
- Date: Fri, 3 Jun 2005 10:40:33 -0400
Premshree Pillai wrote:
> Actually, I tried using the "Classic Lua-only version"
> listed at http://lua-users.org/wiki/LuaXml. When I run the
> program, I get the following error:
> unexpected symbol near `%'
That's because the program is in Lua 4, which used percent
signs for upvalues. After the percent sign is removed and
gsub, strfind, strsub, tinsert, and tremove are changed into
string.gsub, string.find, string.sub, table.insert, and
table.remove, the program compiles and runs, but it doesn't
look to me like it works quite right, so there may be some
more subtle incompatibilities.