Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting to Fancy regex? #1

Open
CeleritasCelery opened this issue Oct 10, 2023 · 1 comment
Open

Porting to Fancy regex? #1

CeleritasCelery opened this issue Oct 10, 2023 · 1 comment

Comments

@CeleritasCelery
Copy link

I wanted to get an understand of what if would take to port a crate like fancy-regex to use this "streaming regex" API? I would assume it would be high effort because that crate is based on regex, and it would have to be ported to the modified regex-automata API.

@pascalkuthe
Copy link
Owner

pascalkuthe commented Oct 10, 2023

My understanding is that that crate contains itw own regex engine/vm that only delegates to the regex crate in some cases.

Replacing the regex usage would probably be quite easy. The endgoal for this crate (it's not there yet) is to essentially offer the same APi as regex.

It should be possible to port that crates vm as well but it's hard to tell how much effort that would be. Probably a lot more ebut its likely reasoable. The VM doesn't look too complex. Ths would require an input that allow backwards iteration tough (for the backtracking). It should also likely be a separate project that would just depend on this crate (same relationship the original crate has to regex)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants