lua-users home
lua-l archive

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

On Sun, Jul 17, 2016 at 11:09 PM, Soni L. <> wrote:
> Can I wrap the LPeg module table and hook everything that gets passed into
> LPeg so I can build a visual representation of the parsing/matching process
> and stuff?
> It'd look cool.
> --
> Disclaimer: these emails may be made public at any given time, with or
> without reason. If you don't agree with this, DO NOT REPLY.

I have created emulator of "lpeg" module [1] as a part of lpjit, JIT
compiler of LPeg patterns [2]. This module is a drop-in replacement
for standard "lpeg" module. When match() method is called, a pattern
is passed to lpjit.compile [3], which produces machine code for the
pattern. The wrapper passes LPeg test suite.



Best regards,
Boris Nagaev