pyGHDL.dom#

Document object model (DOM) for pyGHDL.libghdl based on pyVHDLModel.

Submodules

Exceptions

  • DOMException: Common base class for all non-exit exceptions.

Classes

  • Position: Represents the source code position of a IIR node in a source file.

  • DOMMixin: Undocumented.


Exceptions

exception pyGHDL.dom.DOMException[source]#

Inheritance

Inheritance diagram of DOMException


Classes

class pyGHDL.dom.Position(filename, line, column)[source]#

Represents the source code position of a IIR node in a source file.

Inheritance

Inheritance diagram of Position

Parameters:
  • filename (Path) –

  • line (int) –

  • column (int) –

__init__(filename, line, column)[source]#
Parameters:
  • filename (Path) –

  • line (int) –

  • column (int) –

classmethod parse(node)[source]#

Return the source code position of a IIR node.

Return type:

Position

Parameters:

node (Iir) –

__str__()[source]#

Return str(self).

class pyGHDL.dom.DOMMixin(node)[source]#

Inheritance

Inheritance diagram of DOMMixin

Parameters:

node (Iir) –

__init__(node)[source]#
Parameters:

node (Iir) –