pyndoc.readers package
This package contains classes and functions related to the Pyndoc general reader and parser, as well as Subpackages containing definitions of language-specific AST block handling for custom readers (see Subpackages below)
Subpackages
Submodules
pyndoc.readers.parser module
- class pyndoc.readers.parser.Parser(lang: str)[source]
Bases:
objectClass representing a general reader for all input languages
- Parameters:
lang (
str) – The reader’s language
- context
The context stack
- token
Token currently matched
- check_atom_block() None[source]
Check if an atom block has ended. That is, if matching it with a next character results in None (but previously matched)
- check_start() None[source]
Check if a new block has just started. If so, set the current context as the block