lua-users home
lua-l archive

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


On Sat, May 23, 2015 at 12:28 PM, Александр Машин <alex.mashin@gmail.com> wrote:
> Dear ALL,
>
> is it possible to save a compiled LPeg grammar or pattern to file or
> database and then to load it thence by means of pure Lua?
>
> Effectively it means whether I can cast userdata to string and string to
> userdata correctly.
>
> Alexander Mashin.
>

LPegLJ is LPeg version 0.12 Parser in pure LuaJIT. It supports saving
and loading patterns.

https://github.com/sacek/LPegLJ

-- 


Best regards,
Boris Nagaev