Releases: igordejanovic/parglare
Releases · igordejanovic/parglare
Release 0.21.0
Changed
- Transient state is cleared after parse to lower memory usage.
- Remove direct parser references from LRStackNode and GSSNode context objects,
making them more self-contained and easier to reason about. See e51e5ffa. - Update
error_recoverysignature to receivedefault_error_recoveryas a
parameter instead of accessing it viacontext.parser. See e51e5ffa. - Store symbol class reference in symbol.cls for faster access. See e51e5ffa.
Full Changelog: 0.20.0...0.21.0
Release 0.20.0
See CHANGELOG.md
0.19.0
Full Changelog: 0.18.0...0.19.0
Release 0.18.0
Release 0.17.0
Release 0.16.1
Fixed
- Fix AST
to_strin the context of syntactic sugar (BNF extensions) 6a99f96.
0.16.0
Added
_pg_extrasslot on dynamically created Python objects for additional
user-defined information (e.g. info used during semantic analysis) (#140)_pg_children/_pg_children_nameson dynamically created Python objects for
named assignments 0771ca5, 204b5a0.to_strmethod for dynamically created Python objects 204b5a0.
Changed
visitfunction of the visitor pattern now has a third parameter which is the
depth of the current tree node [63e6e42]. (BIC)- Relaxed
clickdependency to allow for 8.x versions. (#142). Thanks GabDug@GitHub.
Fixed
- Fix visitor memoization caching #138. Thanks vladaindjic@GitHub.
0.15.0
0.14.0
This release brings multiple new features and improvements. Read the Release Notes for more info.
Added
pglr parsefor parsing files and displaying parse trees and forests.pglr trace --frontierfor organizing GSS nodes for GLR trace into
frontiers (a.k.a. shift levels)to_doton trees and forests for rendering GraphViz dot string. Used in
pglr parseif--dotswitch is provided to create dot file of a parse
forest/tree.- Parenthesized groups in grammar rules.
- New examples: JSON, BibTeX, Java (based on Jave SE 16).
- New performance tests based on the new example grammars.
Changed
- Changed
tree_stron parse trees toto_str. (BIC) - Improved GLR implementation. Improved performance.
- GLR parsing now returns
Forestobject which can be indexed and iterated
yielding lazy trees. See Release Notes for more info. (BIC) - Dropping support for deprecated Python 3.4 and 3.5 versions. (BIC)
0.13.0
Changed
- Optimized calculating line/column from a position (#131). Thanks xor2003@GitHub.
- LR/GLR implementation rework and cleanup. Corrected handling of EMPTY
reductions. Support for full CFG set. Better tracing output. (possible (BIC)) - Removed
contextparameter toparse*calls. Addedextraparameter for
keeping of additional state during parsing. Ifextrais not given it isdictby default. ((BIC)) - Dynamic disambiguation filter parameters change ((BIC), see the docs)
- Removed explicit
Contextclass. Now, there are context-like objects (
parser head, error context, GSS node parent etc.) (possible (BIC)) - Moved project meta-data to
setup.cfgand introduced git based versioning
using setuptools_scm. Thanks KOLANICH@GitHub (#104).