Releases: evtn/rgx
Releases · evtn/rgx
2.0.0
Integrated the new wordstreamer module so that any RegexPattern is also a valid wordstreamer.Renderable, and respect_priority is now a thin wrapper around wordstreamer.Renderable.respect_priority
.
This means several things:
- Any wordstreamer-compatible module can now seamlessly render any
rgx
entity using a common API - [Breaking change]
RegexPattern.render
now accepts a second argumentcontext: Context
- [Breaking change]
RegexPattern.render
now returnswordstreamer.TokenStream
. This doesn't change much at the moment, but there is a possibility thatwordstreamer.Marker
would be used alongside strings later. respect_priority
can now be defined on the pattern object, as well as custom wrapping and comparing logic. The default behaviour stays the same.- Many potential improvements will be much easier to implement in the future, without any breaking changes
1.4.5
Merge pull request #19 from evtn/dev fix: crash with ReversedChars optimization
1.4.4
Merge pull request #18 from evtn/dev 1.4.4 with more optimizations
1.4.3
Merge pull request #17 from evtn/dev 1.4.3
1.4.2
Merge pull request #15 from evtn/dev fix: implemented .case_insensitive on many entities with .apply
1.4.0
Merge pull request #14 from evtn/dev feat: optimizations and processing children with `.apply`
1.3.4
Merge pull request #13 from evtn/dev added RegexPattern.case_insensitive
1.3.3
Changes:
Range.repeat()
now has an optimizing strategy. This doesn't change a lot, basically just a rewrite of old logic.
For details on how it works check the docstring of the methodRegexPattern.repeat(1)
now renders without a redundant group
Fixes:
RegexPattern.repeat(0)
now renders as an empty pattern (the type is the same, renders differently), instead of invalidpattern{}
Misc:
- Applied
black
formatter to code
1.3.2
Merge pull request #10 from evtn/dev Added Chars.exclude, refactored Chars code after 1.3.1 optimizations
1.3.1
Merge pull request #9 from evtn/dev minor fixes