Releases: tanloong/pytregex
Releases · tanloong/pytregex
PyTregex 0.0.2 Release
New Features
- Tree Rendering: Added
tree.Tree.render()with adepthargument for customizable tree visualization. - New Relations: Introduced new relations like
ancestor_of_leafand improved support forprecedes/follows. - Command-Line Interface: Enhanced CLI with options like
--verbose,--quiet, and-filterfor better usability. - Glossary: Added a glossary for better documentation and understanding of terms.
Performance Improvements
- Non-Recursive Tree Building: Refactored tree building and searching to be non-recursive, improving efficiency.
- Token Retrieval Optimization: Replaced
finditerwithfindallfor faster token extraction. - Faster Pattern Matching: Optimized pattern matching logic for better performance.
Bug Fixes
- Duplicate Node Names: Early error detection for duplicate node names.
- Negated Scopes: Fixed issues with named nodes under negated scopes.
- Tree Parsing: Fixed issues with parsing square-bracketed trees and handling parentheses normalization.
- Condition Overrides: Prevented conditions from overriding each other in
node_descriptions.