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

Add rurban's upgrades #10

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Add rurban's upgrades #10

wants to merge 15 commits into from

Conversation

shahar99s
Copy link
Owner

No description provided.

marler8997 and others added 15 commits June 20, 2022 10:09
`matchplus` can be simplified by only modifying `matchlength` once the
complete match is successful.  This means it doesn't have to rewind
`matchlength` as it iterates through each possible `matchpattern`.
This also means it keeps `matchlength` unmodified if it doesn't return
a match.  Because of this last part, this also means that `matchstar`
can leverage `matchplus` which reduces it to single line of code
`return matchplus(...) || matchpattern(..)`.
so far we store the groups as strings,
but we really should compile them into independent regex_t.
similar to matchquestion, just that empty branches
match an empty text also.
extra ok and nok regex testcase files for easier python cross-tests.
also less confusing quotings.
n == 0 is invalid.
m must be >= n.
match at least n times
match max. m times
whitespace and move the output to the tests.
only a single-line seperator.
invalid quantifiers must fail.
extend test_compile.

Note that invalid quantifiers patterns such as '{2}'
need to match exact.
storing only the len of group patterns.
add internal DEBUG support.
length of nested groups
invalid \xXX sequences are matched asis. No error
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.

3 participants