A pure Python LR/GLR parser - http://www.igordejanovic.net/parglare/
See the changelog
See the changelog
_pg_extras
slot on dynamically created Python objects for additional
user-defined information (e.g. info used during semantic analysis) (#140)_pg_children/_pg_children_names
on dynamically created Python objects for
named assignments 0771ca5, 204b5a0.to_str
method for dynamically created Python objects 204b5a0.visit
function of the visitor pattern now has a third parameter which is the
depth of the current tree node [63e6e42]. (BIC)
click
dependency to allow for 8.x versions. (#142). Thanks GabDug@GitHub.This release brings multiple new features and improvements. Read the Release Notes for more info.
pglr parse
for parsing files and displaying parse trees and forests.pglr trace --frontier
for organizing GSS nodes for GLR trace into
frontiers (a.k.a. shift levels)to_dot
on trees and forests for rendering GraphViz dot string. Used in
pglr parse
if --dot
switch is provided to create dot file of a parse
forest/tree.tree_str
on parse trees to to_str
. (BIC)Forest
object which can be indexed and iterated
yielding lazy trees. See Release Notes for more info. (BIC)context
parameter to parse*
calls. Added extra
parameter for
keeping of additional state during parsing. If extra
is not given it is dict
by default. ((BIC))Context
class. Now, there are context-like objects (
parser head, error context, GSS node parent etc.) (possible (BIC))setup.cfg
and introduced git based versioning
using setuptools_scm. Thanks KOLANICH@GitHub (#104).