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
- NextBlock: Block¶
Reference to the next block.
- __iter__()¶
Returns a token iterator that iterates from
StartToken
toEndToken
.- Return type:
- __len__()¶
Returns the length of a block in characters from
StartToken
toEndToken
.- Return type:
- _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
- NextBlock: Block¶
Reference to the next block.
- __init__(previousBlock, startToken)¶
Base-class constructor for a new block instance.
- __iter__()¶
Returns a token iterator that iterates from
StartToken
toEndToken
.- Return type:
- __len__()¶
Returns the length of a block in characters from
StartToken
toEndToken
.- Return type:
- __repr__()¶
Return repr(self).
- _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
- NextBlock: Block¶
Reference to the next block.
- __init__(previousBlock, startToken)¶
Base-class constructor for a new block instance.
- __iter__()¶
Returns a token iterator that iterates from
StartToken
toEndToken
.- Return type:
- __len__()¶
Returns the length of a block in characters from
StartToken
toEndToken
.- Return type:
- __repr__()¶
Return repr(self).
- _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
- NextBlock: Block¶
Reference to the next block.
- __init__(previousBlock, startToken)¶
Base-class constructor for a new block instance.
- __iter__()¶
Returns a token iterator that iterates from
StartToken
toEndToken
.- Return type:
- __len__()¶
Returns the length of a block in characters from
StartToken
toEndToken
.- Return type:
- _previousBlock: Block¶
Reference to the previous block.
- classmethod stateError(parserState)¶
Predefined state to catch error situations.
- Parameters:
parserState (TokenToBlockParser) –