Tatsu

Latest version: v5.12.1

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

Scan your dependencies

Page 4 of 7

5.8.1

- Fix pickling of AST. The change also affects parsing within multiprocessing (fizbin)
- Fall back to `repr()` for types not handled by `json`(dnicolodi)
- Ensure there is exactly one method cache per Walker class
- Bug fixes, upgrades, and improvements by (dnicolodi)

5.8.0

- Make sure that the generated parser is the same as the bootstrap
parser.
- Honor grouping in pattern expressions with the semantics of
`re.findall(pattern, text)[0]`. Now groups that should not be
returned when parsing should use the `(?:)` syntax. Now patterns
align with [Python](http://python.org) `re` independently of the
`ignorecase` setting for the grammar.
- Allow `{}` interpolation in `` `constant ``[ expressions with the
semantics of ]{.title-ref}[str.format()]{.title-ref}\`
- Add ``[constant]{.title-ref}`` as a multiline version of
`` `constant ``\`.
- Add \^``[constant]{.title-ref}`` and \^`` `constant ``[ as syntax
for an \`alert]{.title-ref} expression. Alerts produce no tokens bug
get registed in [parseinfo]{.title-ref} records.
- BUG: make the `->` skip expression always stop at EOF.
- Make the `->` skip expression go over comments, and not log while
skipping.
- Patch problem with pickling `FailedCut` while running parsing in
parallel.
- Optimize model pickling and parallel processing to reduce runtime
and memory use with `parproc`
- Add a representation of `~` cut expressions to parse traces

5.7.4

5.7.3

- Fix that settings passed to `Context.parse()` were ignored. Add `Context.active_config` for the configuration active during a parse
- Define `Node._parent` as part of the `dataclass`

5.7.2

- Make `AST` and `Node` hashable. Necessary for caching `Node.children()`
- Implement `Node.__eq__()` in terms of identity or `Node.ast.__eq__()__`
- Fix regression in which rule order is lost in generated parsers ([dtrckd](https://github.com/dtrckd))
- Restore `Node.ast` (was removed because of problems with `__eq__()`)
- Get `Node.children()` from `Node.ast` when there are no attributes defined for the `Node`. This restores the desired behavior while developing a parse model.

5.7.1

* Now ``config: ParserConfig`` is used in ``__init__()`` and ``parse()`` methods of ``contexts.ParseContext``, ``grammars.Grammar``, and elsewhere to avoid the very long parameter lists that abounded. ``ParseContext`` also provides clean and clear ways of overridinga group of settings with another
* All names defined in the successful choice in a rule are now defined in the resulting `AST`_. Names within optionals that did not match will have their values set to ``None``, and closures that did not match will be set to ``[]`
* Moved build configuration from ``setup.py`` in favor of ``setup.cfg`` and ``pyproject.toml`` (`KOLANICH`_)
* ``Node.children()`` is now computed only when required, and cached
* Classes in generated object models are now ``dataclass``
* Optimize and get rid of bugs and annoyances while keeping backwards compatibility
* Drop support for Python < 3.10

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.