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:
This hasn't ever been publicly announced, so that is the real big change.
Synopsis:
require 'parslet'
class Mini < Parslet:arser
ruleinteger) { match('[0-9]').repeat(1) }
rootinteger)
end
Mini.new.parse("132432") # => 132432
Please, ladies and gents, amuse yourselves!
[1] http://en.wikipedia.org/wiki/Parsing_expression_grammar
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:
This hasn't ever been publicly announced, so that is the real big change.
Synopsis:
require 'parslet'
class Mini < Parslet:arser
ruleinteger) { match('[0-9]').repeat(1) }
rootinteger)
end
Mini.new.parse("132432") # => 132432
Please, ladies and gents, amuse yourselves!
[1] http://en.wikipedia.org/wiki/Parsing_expression_grammar