Tatsu

Latest version: v5.12.1

Safety actively analyzes 638396 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 7

4.2.0

Added

* Parse speeds on large files reduced by 5-20% by optimizing parse contexts and closures, and unifying the AST_ and CST_ stacks.

* Added the *"skip to"* expression ( ``->``), useful for writing *recovery* rules. The parser will advance over input, one character at time, until the expression matches. Whitespace and comments will be skipped at each step.

* Added the *any* expression ( ``/./``) for matching the next character in the input.

* The ANTLR_ grammar for Python3_ to the `g2e` example, and udate `g2e` to handle more ANTLR_ syntax.

* Check typing with Mypy_.


Changed


* Removed the very old _regex_ example.

* Make parse traces more compact. Add a sample to the docs.

* Explain Grako_ compatibility in docs.

4.1.1

* ``tatus.objectmodel.Node`` was not setting attributes from ``AST``

4.1.0

- New support for *left recursion* with correct associativity. All
test cases pass.
- Left recursion is enabled by default. Use the
`left_recursion :: False` directive to diasable it.
- Renamed the decorator for generated rule methods to `tatsumasu`.
- Refactored the `tatsu.contexts.ParseContext` for clarity.
- The `ignorecase` directive and the `ignorecase=` parameter no
longer appy to regular expressions (patterns) in grammars. Use
`(?i)` in the pattern to ignore the case in a particular pattern.
- Now `tatsu.g2e` is a library and executable module for translating
[ANTLR](http://www.antlr.org) grammars to **TatSu**.
- Modernized the `calc` example and made it part of the documentation
as *Mini Tutorial*.
- Simplified the generated object models using the semantics of class
attributes in Python.

4.0.0

This is the initial release of **TATSU**.

Page 7 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.