lua-users home
lua-l archive

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


The attached module (a JSON parser) works fine with LPeg 0.10.2.
After a upgrade to LPeg 0.12, an error occurs at load time :
        $ lua -e "print(require'parser_peg'.parse'{}')"
        lua: ./parser_peg.lua:61: empty loop in rule 'object'

The file contains a workaround which removes the last part of the rule 'value'.
        $ lua -e "print(require'parser_peg'.parse'{}')"
        table: 0x8b8e958

François

Attachment: parser_peg.lua
Description: Binary data