Source code for pyndoc.ast.blocks

from pyndoc.ast.basic_blocks import ASTAtomBlock, ASTCompositeBlock


[docs] class Space(ASTAtomBlock): """AST Atom block representing whitespace""" def __init__(self) -> None: super().__init__()
[docs] class Str(ASTAtomBlock): """special AST block representing string without whitespace characters""" def __init__(self, contents: str = "") -> None: super().__init__(contents)
[docs] class SoftBreak(ASTAtomBlock): def __init__(self) -> None: super().__init__()
[docs] class Para(ASTCompositeBlock): """AST block representing a paragraph.""" def __init__(self) -> None: super().__init__()
[docs] class Emph(ASTCompositeBlock): """Basic Italic AST block""" def __init__(self) -> None: super().__init__()
[docs] class Strong(ASTCompositeBlock): """Basic Bold AST block""" def __init__(self) -> None: super().__init__()
[docs] class Code(ASTAtomBlock): """Basic Code AST block""" def __init__(self) -> None: super().__init__()
[docs] class BulletList(ASTCompositeBlock): def __init__(self) -> None: super().__init__()
[docs] class OrderedList(ASTCompositeBlock): """Ordered List AST block""" def __init__(self) -> None: super().__init__()
[docs] class Plain(ASTCompositeBlock): def __init__(self) -> None: super().__init__()
[docs] class Table(ASTCompositeBlock): """Table AST block""" def __init__(self) -> None: super().__init__()
[docs] class TableHead(ASTCompositeBlock): """Table Head AST block""" def __init__(self) -> None: super().__init__()
[docs] class TableBody(ASTCompositeBlock): """Table Body AST block""" def __init__(self) -> None: super().__init__()
[docs] class Row(ASTCompositeBlock): """Table Row AST block""" def __init__(self) -> None: super().__init__()
[docs] class Cell(ASTCompositeBlock): """Table Cell AST block""" def __init__(self) -> None: super().__init__()
[docs] class CodeBlock(ASTAtomBlock): """Code block AST block""" def __init__(self) -> None: super().__init__()