pyVHDLParser.Blocks.Common

Classes

  • WhitespaceBlock: Base-class for blocks that can be skipped in fast-forward scanning.

  • LinebreakBlock: Base-class for blocks that can be skipped in fast-forward scanning.

  • EmptyLineBlock: Base-class for blocks that can be skipped in fast-forward scanning.

  • IndentationBlock: Base-class for blocks that can be skipped in fast-forward scanning.


Classes

class pyVHDLParser.Blocks.Common.WhitespaceBlock[source]

Inheritance

Inheritance diagram of WhitespaceBlock

__init__(previousBlock, startToken)[source]

Base-class constructor for a new block instance.

__repr__()[source]

Return repr(self).

EndToken: Token

Reference to the last token in the scope of this block.

property Length: int

Returns the length of a block in characters from StartToken to EndToken.

MultiPart: bool

True, if this block has multiple parts.

NextBlock: Block

Reference to the next block.

StartToken: Token

Reference to the first token in the scope of this block.

property States: List[Callable]

Returns a list of all state… methods in this class.

__STATES__: List = []

List of all state… methods in this class.

__iter__()

Returns a token iterator that iterates from StartToken to EndToken.

Return type:

TokenIterator

__len__()

Returns the length of a block in characters from StartToken to EndToken.

Return type:

int

__str__()

Return str(self).

Return type:

str

_previousBlock: Block

Reference to the previous block.

classmethod stateError(parserState)

Predefined state to catch error situations.

Parameters:

parserState (TokenToBlockParser) –

class pyVHDLParser.Blocks.Common.LinebreakBlock[source]

Inheritance

Inheritance diagram of LinebreakBlock

EndToken: Token

Reference to the last token in the scope of this block.

property Length: int

Returns the length of a block in characters from StartToken to EndToken.

MultiPart: bool

True, if this block has multiple parts.

NextBlock: Block

Reference to the next block.

StartToken: Token

Reference to the first token in the scope of this block.

property States: List[Callable]

Returns a list of all state… methods in this class.

__STATES__: List = []

List of all state… methods in this class.

__init__(previousBlock, startToken)

Base-class constructor for a new block instance.

__iter__()

Returns a token iterator that iterates from StartToken to EndToken.

Return type:

TokenIterator

__len__()

Returns the length of a block in characters from StartToken to EndToken.

Return type:

int

__repr__()

Return repr(self).

__str__()

Return str(self).

Return type:

str

_previousBlock: Block

Reference to the previous block.

classmethod stateError(parserState)

Predefined state to catch error situations.

Parameters:

parserState (TokenToBlockParser) –

class pyVHDLParser.Blocks.Common.EmptyLineBlock[source]

Inheritance

Inheritance diagram of EmptyLineBlock

EndToken: Token

Reference to the last token in the scope of this block.

property Length: int

Returns the length of a block in characters from StartToken to EndToken.

MultiPart: bool

True, if this block has multiple parts.

NextBlock: Block

Reference to the next block.

StartToken: Token

Reference to the first token in the scope of this block.

property States: List[Callable]

Returns a list of all state… methods in this class.

__STATES__: List = []

List of all state… methods in this class.

__init__(previousBlock, startToken)

Base-class constructor for a new block instance.

__iter__()

Returns a token iterator that iterates from StartToken to EndToken.

Return type:

TokenIterator

__len__()

Returns the length of a block in characters from StartToken to EndToken.

Return type:

int

__repr__()

Return repr(self).

__str__()

Return str(self).

Return type:

str

_previousBlock: Block

Reference to the previous block.

classmethod stateError(parserState)

Predefined state to catch error situations.

Parameters:

parserState (TokenToBlockParser) –

class pyVHDLParser.Blocks.Common.IndentationBlock[source]

Inheritance

Inheritance diagram of IndentationBlock

__repr__()[source]

Return repr(self).

EndToken: Token

Reference to the last token in the scope of this block.

property Length: int

Returns the length of a block in characters from StartToken to EndToken.

MultiPart: bool

True, if this block has multiple parts.

NextBlock: Block

Reference to the next block.

StartToken: Token

Reference to the first token in the scope of this block.

property States: List[Callable]

Returns a list of all state… methods in this class.

__STATES__: List = []

List of all state… methods in this class.

__init__(previousBlock, startToken)

Base-class constructor for a new block instance.

__iter__()

Returns a token iterator that iterates from StartToken to EndToken.

Return type:

TokenIterator

__len__()

Returns the length of a block in characters from StartToken to EndToken.

Return type:

int

__str__()

Return str(self).

Return type:

str

_previousBlock: Block

Reference to the previous block.

classmethod stateError(parserState)

Predefined state to catch error situations.

Parameters:

parserState (TokenToBlockParser) –