Dhparser

Latest version: v1.7.2

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

Scan your dependencies

Page 6 of 8

4.3.2019

.................................

- setup: entry-script repaired

3.10.2022

................................

- BACKWARD INCOMPATIBLE CHANGE: refactoring of names:
Trail -> Path, trail -> path, because path is much more
salient and cannot as easily be confused with root
- BACKWARD INCOMPATIBLE CHANGE: nodetree.py: content mapping
and markup refactored by introducing class ContentMapping.
This makes using content mappings and adding markup easier
and yield more readable code.
- compiler.py moved visitor_name() and attr_visitor_name() to
class Compiler. This makes it possible to overload these methods,
which can become useful, when a single method should handle
several different nodes or attributes - similar to the way tree
traversal is handeled in transform.py
- added wildcard()-method to class compiler.Compiler. This allows
to track missing on_XXX()-methods as well as implementing a
dispatch mechanism that calls one and the same method for several
node-names (like in module DHParser.travers)

3.3.2019

.................................

- default configuration now centralized in DHParser/configuration.py
- dropped python 3.4 support
- infinite loops in ZeroOrMore, OneOrMore and the like will now simply
be broken rather than reported as an error
- better parser-optimization, i.e. flattening and dropping of irrelevant
nodes while parsing already.
- no caching of node.content any more, because this was conceptually
unsound. Trees are refactored and nodes dropped all the time which
would require invalidating the cache, which would be hard to implement.
- mini-framework for static grammar analysis added (see parse.Grammar).
As of now: no use case

2.9.2017

.................................

- dhparser script now creates and initializes project dir
- parsing is now based on a StringView class which other
than plain Python strings does not copy strings when
slicing. (Speeds up parsing for longer documents.)
- AST-transformations now receive the complete context, i.e.
the list of all parent nodes instead of just the node to
transform

2.7.2018

.................................

- compatibility fixes for Python 3.7

2.7.2017

.................................

- package now includes 'dhparser' script
- more transformation primitives for AST-transformation
- various bug fixes

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.