module languages.tree_string_listener

Inheritance diagram of pyensae.languages.tree_string_listener

Short summary

module pyensae.languages.tree_string_listener

Helpers around language grammar. This module requires antlr4.

source on GitHub

Classes

class

truncated documentation

TreeStringListener

This class is an attempt to run through the tree and convert it into a string.

Methods

method

truncated documentation

__init__

constructor

__str__

usual

enterEveryRule

event

exitEveryRule

event

visitErrorNode

event

visitTerminal

event

Documentation

Helpers around language grammar. This module requires antlr4.

source on GitHub

class pyensae.languages.tree_string_listener.TreeStringListener(parser)[source]

Bases: antlr4.tree.Tree.ParseTreeListener

This class is an attempt to run through the tree and convert it into a string.

source on GitHub

constructor

Parameters

parser – parser used to parse the code

source on GitHub

__init__(parser)[source]

constructor

Parameters

parser – parser used to parse the code

source on GitHub

__str__()[source]

usual

source on GitHub

enterEveryRule(ctx)[source]

event

source on GitHub

exitEveryRule(ctx)[source]

event

source on GitHub

visitErrorNode(node)[source]

event

source on GitHub

visitTerminal(node)[source]

event

source on GitHub