[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lpeg for one who is regexp-poisoned...
- From: Sean Conner <sean@...>
- Date: Wed, 12 Nov 2014 13:40:14 -0500
It was thus said that the Great meino.cramer@gmx.de once stated:
> Sean Conner <sean@conman.org> [14-11-12 18:56]:
> > It was thus said that the Great Dirk Laurie once stated:
> > > 2014-11-12 5:58 GMT+02:00 <meino.cramer@gmx.de>:
> > >
> > > > Or is that a typical question of someone, who is still under the bad
> > > > influence of regexps?
> > >
> > > LPEG comes with re.lua, which makes life easier for
> > > people who already are proficient with regexps.
> >
> > I use re.lua extensively in some parsers I wrote:
> >
> > https://github.com/dlaurie/lua-notes/blob/master/lpeg-brief.txt
> >
> > Also, there's Dirk's notes about using LPeg, which will help as well:
> >
> > https://github.com/dlaurie/lua-notes/blob/master/lpeg-brief.txt
> >
> > -spc
> >
>
> Hi Dirk, hi Sean,
>
> I read your notes about LPeg, Dirk, ...and I fear I only understand
> half of it (which is for sure due to me...and not based on the notes,
> your wrote!)...I am happy to have them.
>
> Using the re-code to learn about how to map "regexp-think" to
> "LPeg-think" is a good idea. I will try it ! :)
I just realized I sent the link to Dirk's notes twice. Sigh. Anywhere,
here's some code I wrote that uses re.lua for parsing (in addtion to LPeg):
https://github.com/spc476/LPeg-Parsers
-spc (Okay Mac OS-X ... why are you not doing the copy-n-paste correctly?)