Name:
regexp_parser
Summary:
Scanner, lexer, and parser for ruby’s regular expressions
Description: (from README)
What?
A ruby library to help with lexing, parsing, and transforming regular
expressions.
- Multilayered
- A scanner based on ragel
- A lexer that produces a “stream” of tokens
- A parser that produces a “tree” of Regexp::Expression objects (OO
API)
- Lexes and parses both 1.8 and 1.9 regular expression flavors
- Supports ruby 1.8 and 1.9 runtime
read more:
https://github.com/ammar/regexp_parser/blob/v0.1.1/README.rdoc
Install:
gem install regexp_parser
Source:
GitHub - ammar/regexp_parser: A regular expression parser library for Ruby
- release branch: tree/master
- release tag: tree/v0.1.1
Test:
$ rake (test with current ruby)
$ rvm rake (test with all rvm installed rubies)
For an example of regexp_parser in use, see meta_re:
GitHub - ammar/meta_re: An experimental regular expression "preprocessor"
Note: v0.1.0 was a test release, and was not announced. See the
ChangeLog for more.
Happy Hacking,
Ammar