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