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

TNFA #4

Closed
wants to merge 1 commit into from
Closed

TNFA #4

wants to merge 1 commit into from

Conversation

nitely
Copy link
Owner

@nitely nitely commented Jan 16, 2021

I copied nim-regex code and tweaked the nfamatch2 to make the sub-matches take O(M*C) space, where M is the length of the regex and C the number of capture groups.

Well, it actually takes unbounded space because I didn't bother to reuse the parallel sub-matches, a new one is created every time a capture is found instead :P. This is just a PoC showing the idea works.

The next step is to make a DFA with some of the TDFA ideas.

@nitely
Copy link
Owner Author

nitely commented Nov 27, 2023

This was implemented in nim-regex0 and it's too much work to port here. Moreso if the end goal is a TDFA (one day).

@nitely nitely closed this Nov 27, 2023
@nitely nitely deleted the tnfa branch November 27, 2023 23:43
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

Successfully merging this pull request may close these issues.

1 participant