Dhparser

Latest version: v1.7.2

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

Scan your dependencies

Page 7 of 8

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

1.7.2

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

- removed unnecessary directories from pyproject.tompl, e.g.
tests, documentation_src... These are not required for
running DHParser and can always be obtained from git
- comments inside insignificant whitespace can now be retained
by adding "no_comments"[sic!] to the drop-directive
- DHParser now comes with a few predefined parsing-functions
in DHParser.parsers. For now, there is parse_HTML and parse_XML
(in contrast to nodetree.parse_xml, the latter is slower, but
strictly adheres to the XML-grammar of the W3C with the exception
of DTDs inside an XML-document, which is not supported)
- ebnf-grammar now allows to specify character ranges with
(e.g.) "[\x00CD-\x0CFD]" (EXPERIMENTAL)

1.7

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

- refactoring: processing-pipeline-support now in a dedicated module

1.6.2021

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

- Python 3.5 compatibility dropped! DHParser now requires at least Python 3.6.
This allows to use typing.NamedTuples and dataclasses for a clearer
expression of types.
- batch processing: just use several files or a directory or a
shell pattern as parameters for the xxxParser.py or xxxServer.py-Skripts
- DHParser.compile.Compiler is now more tolerant w.r.t to compiler-methods
that manipulate the parent tree (`fallback_compiler`-method rewritten)
- DHParser.syntaxtree: added "skip_subtree"-parameter to Node.select-methods
- DHParser.syntaxtree: more functions for navigating contexts, e.g.
prev_context, next_context.
- DHParser.syntaxtree: added insert() and remove() methods to Node class
- DHParser.syntaxtree: added a mini API for manipulating attributes
- DHParser.parse: added early horizontal tree-reduction to class CombinedParser
- DHParser.ebnf: added ""reduction"-directive
- DHParser.preprocess: added support for chaining of source texts via include

0.9.9

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

- include-directive added
- bugfixes for context sensitive parsers (capture, retrieve, pop)
- documentation extended

Page 7 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.