Skip to content

synt.expr.empty ¤

empty module-attribute ¤

empty = Empty

Alias Empty.

expr module-attribute ¤

expr = Empty

Alias Empty.

null module-attribute ¤

null = Empty

Alias Empty.

EMPTY module-attribute ¤

EMPTY = Empty()

An instance of Empty.

NULL module-attribute ¤

NULL = Empty()

An instance of Empty.

Empty ¤

Bases: Expression

Empty expression.

References

expr.ExprType.Empty.

Source code in synt/expr/empty.py
class Empty(syn_expr.Expression):
    r"""Empty expression.

    References:
        [expr.ExprType.Empty][synt.expr.expr.ExprType.Empty].
    """

    precedence = syn_expr.ExprPrecedence.Atom
    expr_type = syn_expr.ExprType.Identifier

    def __init__(self) -> None:
        pass

    def into_code(self) -> str:
        return ""

precedence class-attribute instance-attribute ¤

precedence = Atom

expr_type class-attribute instance-attribute ¤

expr_type = Identifier

__init__ ¤

__init__() -> None
Source code in synt/expr/empty.py
def __init__(self) -> None:
    pass

into_code ¤

into_code() -> str
Source code in synt/expr/empty.py
def into_code(self) -> str:
    return ""