Discussion:
[ANN] LPegLJ v.12.2
Rostislav Sacek
2014-07-10 16:11:08 UTC
Permalink
Hi everyone

I have released version 0.12.2 of LPegLJ
https://github.com/sacek/LPegLJ/
LPegLJ is an PEG parser based on LPeg v0.12 and all code is implemented in
LuaJIT 2.x.

New features:

- supports memoization - big speed improvement for complex grammars
- stream mode - can handle infinite input stream (captures are generated
promptly)

All code is MIT licensed.

Any feedbacks are welcome.
Issues: https://github.com/sacek/LPegLJ/issues

Regards
Rostislav Sacek
Daurnimator
2014-07-10 16:21:42 UTC
Permalink
Post by Rostislav Sacek
- stream mode - can handle infinite input stream (captures are generated
promptly)
Is there someone I can find documentation on how stream mode works?
I've always wanted this in LPEG, but was unable to figure out how it would
work, when theres potentially unbounded backtracking, and how+when to
generate captures.

Thanks for sharing your code!

Daurn.
Rostislav Sacek
2014-07-10 16:42:00 UTC
Permalink
Post by Daurnimator
I've always wanted this in LPEG, but was unable to figure out how it would
work, when theres potentially unbounded backtracking, and how+when to
generate captures.
Very short doc is:
https://github.com/sacek/LPegLJ/blob/master/doc/USAGE.md
And example of using:
https://github.com/sacek/LPegLJ/blob/master/tests/streamtest2.lua
Loading...