Module

lexer.classifiers.protocols

Protocol defining the lexer classifier mixin contract.

TheLexeris composed from many classifier mixins. Several classifiers dispatch to sibling classifiers (for example, a list marker may be followed by an ATX heading, a fenced code block, or a nested block quote). ty cannot resolve those cross-mixin calls through a bareself, so the cross-calling methods annotateself as LexerClassifierHost.

The annotation is runtime-inert; it never changes behaviour.

Classes

LexerClassifierHost 0
Structural contract for the composed Lexer used by classifier mixins.
Bases: Protocol

Structural contract for the composed Lexer used by classifier mixins.