Classes
TokenNavHost
4
▼
Contract for token stream navigation.
Provided by: TokenNavigationMixin
Required by: BlockParsingC…
TokenNavHost
4
▼
Contract for token stream navigation.
Provided by: TokenNavigationMixin Required by: BlockParsingCoreMixin, ListParsingMixin, InlineParsingCoreMixin
Attributes
| Name | Type | Description |
|---|---|---|
_tokens |
Sequence[Token]
|
— |
_pos |
int
|
— |
_current |
Token | None
|
— |
_source |
str
|
— |
InlineParsingHost
0
▼
Contract for inline content parsing.
Provided by: InlineParsingMixin (composed from core + emphasi…
InlineParsingHost
0
▼
Contract for inline content parsing.
Provided by: InlineParsingMixin (composed from core + emphasis + links + special) Required by: BlockParsingCoreMixin, ListParsingMixin
BlockParsingHost
0
▼
Contract for block-level parsing.
Provided by: BlockParsingMixin (composed from core + list + tabl…
BlockParsingHost
0
▼
Contract for block-level parsing.
Provided by: BlockParsingMixin (composed from core + list + table + directive + footnote) Required by: ListParsingMixin (calls _parse_block for nested content)
ParserHost
3
▼
Full parser contract combining all mixin requirements.
The concrete Parser class must satisfy this…
ParserHost
3
▼
Full parser contract combining all mixin requirements.
The concrete Parser class must satisfy this protocol. Any class that composes TokenNavigationMixin + InlineParsingMixin + BlockParsingMixin and provides the required instance attributes will satisfy this protocol.
Required instance attributes (set in init): _source: str — original source text _tokens: Sequence[Token] — token stream from Lexer _pos: int — current position in token stream _current: Token | None — current token (or None at end) _containers: ContainerStack — nesting context tracker _link_refs: dict[str, tuple[str, str]] — link reference definitions _allow_setext_headings: bool — setext heading control
Attributes
| Name | Type | Description |
|---|---|---|
_containers |
ContainerStack
|
— |
_link_refs |
dict[str, tuple[str, str]]
|
— |
_allow_setext_headings |
bool
|
— |