Dhparser

Latest version: v1.8.3

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

Scan your dependencies

Page 7 of 8

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 anymore, 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

1.9.2021

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

- test-suites can now contain test-data for tree-transformation
stages beyond AST, if their output is serializable as string.
- Support for the language server protocol via: DHParser/lsp.py
- reentry-points for resume and skip can now also be determined
with an EBNF-parser, and not only regular expressions as before.
- Documentation extended

1.7.2021

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

- Documentation extended
- Better support for error-reporting from preprocessors

Page 7 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.