Skip to content

Releases: evtn/rgx

2.0.0

04 Dec 14:26
8f30165
Compare
Choose a tag to compare

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 argument context: Context
  • [Breaking change] RegexPattern.render now returns wordstreamer.TokenStream. This doesn't change much at the moment, but there is a possibility that wordstreamer.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

13 Aug 13:01
c93c2fd
Compare
Choose a tag to compare
Merge pull request #19 from evtn/dev

fix: crash with ReversedChars optimization

1.4.4

08 Aug 02:56
12392aa
Compare
Choose a tag to compare
Merge pull request #18 from evtn/dev

1.4.4 with more optimizations

1.4.3

08 Aug 02:27
9362671
Compare
Choose a tag to compare
Merge pull request #17 from evtn/dev

1.4.3

1.4.2

08 Aug 01:35
2b8670e
Compare
Choose a tag to compare
Merge pull request #15 from evtn/dev

fix: implemented .case_insensitive on many entities with .apply

1.4.0

08 Aug 00:21
4facf81
Compare
Choose a tag to compare
Merge pull request #14 from evtn/dev

feat: optimizations and processing children with `.apply`

1.3.4

20 Jun 14:04
009ed14
Compare
Choose a tag to compare
Merge pull request #13 from evtn/dev

added RegexPattern.case_insensitive

1.3.3

04 Apr 01:15
3516673
Compare
Choose a tag to compare

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 method
  • RegexPattern.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 invalid pattern{}

Misc:

  • Applied black formatter to code

1.3.2

29 Oct 13:49
0a09359
Compare
Choose a tag to compare
Merge pull request #10 from evtn/dev

Added Chars.exclude, refactored Chars code after 1.3.1 optimizations

1.3.1

22 Oct 05:29
b8e1e80
Compare
Choose a tag to compare
Merge pull request #9 from evtn/dev

minor fixes