Skip to content

Releases: tanloong/pytregex

PyTregex 0.0.2 Release

26 Jan 07:45

Choose a tag to compare

Pre-release

New Features

  1. Tree Rendering: Added tree.Tree.render() with a depth argument for customizable tree visualization.
  2. New Relations: Introduced new relations like ancestor_of_leaf and improved support for precedes/follows.
  3. Command-Line Interface: Enhanced CLI with options like --verbose, --quiet, and -filter for better usability.
  4. Glossary: Added a glossary for better documentation and understanding of terms.

Performance Improvements

  1. Non-Recursive Tree Building: Refactored tree building and searching to be non-recursive, improving efficiency.
  2. Token Retrieval Optimization: Replaced finditer with findall for faster token extraction.
  3. Faster Pattern Matching: Optimized pattern matching logic for better performance.

Bug Fixes

  1. Duplicate Node Names: Early error detection for duplicate node names.
  2. Negated Scopes: Fixed issues with named nodes under negated scopes.
  3. Tree Parsing: Fixed issues with parsing square-bracketed trees and handling parentheses normalization.
  4. Condition Overrides: Prevented conditions from overriding each other in node_descriptions.