mudge / re2

Ruby bindings to RE2, a "fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python".
http://mudge.name/re2/
BSD 3-Clause "New" or "Revised" License
129 stars 13 forks source link

Implement Walker interface #12

Open eric opened 11 years ago

eric commented 11 years ago

One of the neat things about re2 is that you can walk the parsed regular expression to do crazy things with it:

It would be neat to have access to that in ruby.

mudge commented 11 years ago

Interesting; I've not looked into this part of re2 previously. Do you have a rough idea of how you'd like the API to look or do you just want it to mirror the C++ interface?

eric commented 11 years ago

I don't have a strong feel for what would make the most sense there.

Maybe starting close to the C++ interface would be a good start.