python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to write a peg used in lpeg to parse lua itself?
As title say, I know lua has a offical extended BNF in The Complete Syntax of Lua. I want to write a PEG to pass to lpeg.re.compile to parse lua itself. Maybe the Lua PEG is something like it's BNF. I...
rangercyh
Votes: 0
Answers: 1
Non-greedy search in lpeg without consuming the end match
This was spun off from the comments on this question.
As I understand, in the PEG grammar, it's possible to implement a non-greedy search by writing S <- E2 / E1 S (or S = pattern E2 if possible or...
iUknwn
Votes: 0
Answers: 1
Opening and closing elements in LPEG for Pandoc Reader
I am working on a simple Pandoc reader that can process some of the basic html-like syntax used in forums (such as [b]bold[/b] and [h1]Header[/h1]).
I managed to get a basic reader working with LPEG (...
iUknwn
Votes: 0
Answers: 0