[erlang-questions] Adoption of perl/javascript-style regexp syntax

David Mercer <>
Thu Jun 4 16:00:29 CEST 2009


For what it's worth, I started working on a PEG-based module in Erlang a few
weeks ago, but, in the end I started adding all sorts of niceties that
parsec already has, so I've instead taken to reading the Haskell source code
for parsec and translating it to Erlang.  I know there is already an Erlang
module for parsec, but it is incomplete and undocumented, so I am
documenting as I go along (I also like to have tests [I use common test],
which the Erlang parsec did not have).  Also, this gave me a good excuse to
learn Haskell.

> -----Original Message-----
> From:  [mailto:] On
> Behalf Of Richard O'Keefe
> Sent: Wednesday, June 03, 2009 11:05 PM
> To: Tony Finch
> Cc: Tony Arcieri; Dmitrii Dimandt; 
> Subject: Re: [erlang-questions] Adoption of perl/javascript-style regexp
> syntax
> 
> 
> On 4 Jun 2009, at 7:01 am, Tony Finch wrote:
> > LPeg does exactly what you want, though its host language is Lua.
> >
> > http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html
> >
> Thanks for that link.  My failure to learn Lua is becoming
> increasingly irrational, especially now that LuaTeX exists.
> 
> 
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org



More information about the erlang-questions mailing list