[ANN] parslet 1.1 - a PEG parser library

K

Kaspar Schiess

parslet is a Parsing Expression Grammar based[1] parser generator
library. Uff. Now that is out of our system, here goes what it really
does: It makes writing parsers pleasant for the rest of us. No code
generation, clear access to data, unit testable.

* http://kschiess.github.com/parslet/index.html
* https://github.com/kschiess/parslet

Installation:

gem install parslet

Changes:

* For deep grammars, this release is several orders of magnitude
faster. Really! Benchmark at [2].
* Export to citrus and treetop dialects.
* You can apply visitors to the grammar now.
* Bug fixes and code cleanup.

Synopsis:

require 'parslet'
class Mini < Parslet::parser
rule:)integer) { match('[0-9]').repeat(1) }
root:)integer)
end

Mini.new.parse("132432") # => 132432

Please, ladies and gents, amuse yourselves!

[1] http://en.wikipedia.org/wiki/Parsing_expression_grammar
[2] http://blog.absurd.li/2011/02/02/parslet_and_its_friends.html
 
R

Ryan Davis

parslet is a Parsing Expression Grammar based[1] parser generator =
library. Uff. Now that is out of our system, here goes what it really =
does: It makes writing parsers pleasant for the rest of us. No code =
generation, clear access to data, unit testable.
=20
* http://kschiess.github.com/parslet/index.html
* https://github.com/kschiess/parslet
=20
Installation:
=20
gem install parslet
=20
Changes:
=20
* For deep grammars, this release is several orders of magnitude
faster. Really! Benchmark at [2].

That's really awesome work!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top