alogos._grammar.visualization

Submodules

Functions

create_syntax_diagram(grammar)

Create a figure of a syntax diagram that represents the grammar.

create_graphviz_tree(tree, show_node_indices=None, layout_engine=None, fontname=None, fontsize=None, shape_nt=None, shape_unexpanded_nt=None, shape_t=None, fontcolor_nt=None, fontcolor_unexpanded_nt=None, fontcolor_t=None, fillcolor_nt=None, fillcolor_unexpanded_nt=None, fillcolor_t=None)

Represent the derivation tree as Digraph in GraphViz.


Detailed object descriptions

alogos._grammar.visualization.create_syntax_diagram(grammar)[source]

Create a figure of a syntax diagram that represents the grammar.

References

alogos._grammar.visualization.create_graphviz_tree(tree, show_node_indices=None, layout_engine=None, fontname=None, fontsize=None, shape_nt=None, shape_unexpanded_nt=None, shape_t=None, fontcolor_nt=None, fontcolor_unexpanded_nt=None, fontcolor_t=None, fillcolor_nt=None, fillcolor_unexpanded_nt=None, fillcolor_t=None)[source]

Represent the derivation tree as Digraph in GraphViz.

References