Classes
ConfigHost
1
▼
Contract for parse configuration access.
Provided by: Parser (config properties read from a Contex…
ConfigHost
1
▼
Protocol
Contract for parse configuration access.
Provided by: Parser (config properties read from a ContextVar). Required by: mixins that branch on enabled features or recurse with a nesting guard.
Attributes
| Name | Type | Description |
|---|---|---|
_link_refs |
dict[str, tuple[str, 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, and the inline mixins themselves (cross-mixin dispatch within inline parsing).
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) and the block mixins themselves (cross-mixin dispatch within block parsing).
ParserHost
4
▼
Full parser contract combining all mixin requirements.
The concrete Parser class must satisfy this…
ParserHost
4
▼
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: list[Token] -- token stream from Lexer _tokens_len: int -- cached len(_tokens) for hot loops _pos: int -- current position in token stream _current: Token | None -- current token (or None at end) _line_starts: list[int] | None -- lazy line index (O(log n) lookup) _containers: ContainerStack -- nesting context tracker _link_refs: dict[str, tuple[str, str]] -- link reference definitions _allow_setext_headings: bool -- setext heading control _directive_stack: list[str] -- directive nesting context _nesting_depth: int -- block-container recursion guard
Attributes
| Name | Type | Description |
|---|---|---|
_containers |
ContainerStack
|
— |
_allow_setext_headings |
bool
|
— |
_directive_stack |
list[str]
|
— |
_nesting_depth |
int
|
— |