develooper Front page | perl.module-authors | Postings from September 2009

Re: Which Parser Generator to Use?

Thread Previous | Thread Next
From:
Ovid
Date:
September 8, 2009 12:46
Subject:
Re: Which Parser Generator to Use?
Message ID:
805008.56051.qm@web65706.mail.ac4.yahoo.com
--- On Sun, 6/9/09, Shlomi Fish <shlomif@iglu.org.il> wrote:

> From: Shlomi Fish <shlomif@iglu.org.il>

> 2. Parse::RecDescent - very impressive feature set, but a
> little slow, and has 
> been under-maintained (though it seemed to have improved
> slightly with several 
> new releases in 2009). It also tends to be hard to debug
> its errors.

Hi Shlomi,

I didn't see it mentioned yet, but you might want to check out Damian Conway's new http://search.cpan.org/dist/Regexp-Grammars/

It requires 5.10, but it's much faster than Parse::RecDescent and has a clean syntax very close to Perl 6 rules.  It's well documented and hooks directly into the Perl regex engine, hence its speed.

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About