LPEG 0.10 identifiers in an RE grammar now can have underscores, so
[%w_] is interpreted as a character class consisting of only the
predefined pattern named w_ instead of a character class consisting of
the predefined pattern named w and an undescore...

Flipping [%w_] to [_%w] fixes it, if you do not want to go back to
LPEG 0.9. Sorry for not noticing this, the (breaking) change was not
in LPEG 0.10's changelog...

--
Fabio Mascarenhas


On Tue, Nov 23, 2010 at 1:59 PM, Matt Mayers <m...@mattmayers.com> wrote:
> I experienced this same issue and determined that the culprit is lpeg
> 0.10. Removing it and installing 0.9 got rid of the error.
>
> On Tue, Nov 23, 2010 at 4:30 AM, Thijs Koerselman
> <thijskoersel...@gmail.com> wrote:
>>
>> On Mon, Nov 22, 2010 at 11:31 PM, Thijs Koerselman
>> <thijskoersel...@gmail.com> wrote:
>> > Hi,
>> > I'm trying to run the blog example but I can't get it to work. I keep
>> > getting the following error:
>> > lua: ...svn/bintje/audiomodule/sandbox/share/lua/5.1//re.lua:127: name
>> > 'w_'
>> > undefined
>>
>>
>> Just to make sure it is not my sandbox installation which is causing
>> the trouble, I did a fresh install of orbit system wide with luarocks.
>> Running the example in
>> /usr/local/lib/luarocks/rocks/orbit/2.2.0-2/samples/blog
>>
>> like this:
>> $ sudo orbit blog.lua
>>
>> I get the same error:
>>
>> /usr/local/bin/lua: /usr/local/share/lua/5.1//re.lua:127: name 'w_'
>> undefined
>> stack traceback:
>>        [C]: in function 'error'
>>        /usr/local/share/lua/5.1//re.lua:127: in function
>> </usr/local/share/lua/5.1//re.lua:125>
>>        [C]: in function 'match'
>>        /usr/local/share/lua/5.1//re.lua:200: in function 'compile'
>>        /usr/local/share/lua/5.1//orbit/model.lua:326: in main chunk
>>        [C]: in function 'require'
>>        /usr/local/share/lua/5.1//orbit.lua:383: in function 'model'
>>        ...b/luarocks/rocks/orbit/2.2.0-2/samples/blog/blog.lua:34: in
>> function 'app_func'
>>        ...usr/local/lib/luarocks/rocks/orbit/2.2.0-2/bin/orbit:87: in main
>> chunk
>>        [C]: ?
>>
>>
>> I'm using mac os  10.6.5 with orbit 2.2.0-2, if that helps anything...
>>
>> Thijs
>>
>> _______________________________________________
>> Kepler-Project mailing list
>> Kepler-Project@lists.luaforge.net
>> http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
>> http://www.keplerproject.org/
>
>
>
> --
> Matt Mayers
> m...@mattmayers.com
> http://mattmayers.com/
>
> _______________________________________________
> Kepler-Project mailing list
> Kepler-Project@lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> http://www.keplerproject.org/
>

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to