.. _f-antlrgrammaruse: module ``languages.antlr_grammar_use`` ====================================== Short summary +++++++++++++ module ``pyensae.languages.antlr_grammar_use`` Use grammar This module requires `antlr4-python3-runtime `_. :githublink:`%|py|6` Functions +++++++++ +---------------------------------------------------------------------------------+----------------------------------------------------------------+ | function | truncated documentation | +=================================================================================+================================================================+ | :func:`get_parser_lexer ` | Returns two classes, a parser and a lexer from :epkg:`antlr4`. | +---------------------------------------------------------------------------------+----------------------------------------------------------------+ | :func:`get_tree_graph ` | Returns a graph with :epkg:`networkx`. | +---------------------------------------------------------------------------------+----------------------------------------------------------------+ | :func:`get_tree_string ` | Returns a string which shows the parsed tree. | +---------------------------------------------------------------------------------+----------------------------------------------------------------+ | :func:`parse_code ` | Parses a code and returns a tree. | +---------------------------------------------------------------------------------+----------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyensae.languages.antlr_grammar_use :members: :special-members: __init__ :show-inheritance: