textoutpc.lexer – Lexer definition#
- class textoutpc.lexer.CloseTagToken(*, name: str, raw: str = '')#
Bases:
BaseTokenClosing of a tag closing object for textout BBCode.
- class textoutpc.lexer.OpenTagToken(*, name: str, value: str | None = None, raw: str = '')#
Bases:
BaseTokenExplicit opening of a tag.
- class textoutpc.lexer.SpecialToken(*, value: str)#
Bases:
BaseTokenSpecial characters that could mean the opening or closing of a tag.