Module margo_parser.api.classes.MargoDirective

Expand source code
from .MargoStatement import MargoStatement


class MargoDirective(MargoStatement):
    def __init__(self, name: str):
        super().__init__("DIRECTIVE", name)

    @property
    def type(self) -> str:
        return "DIRECTIVE"

    @property
    def value(self) -> any:
        return None

Classes

class MargoDirective (name: str)

A Margo statement

:param statement_type: MargoStatementTypes.DECLARATION or MargoStatementTypes.DIRECTIVE :param name: the name of the statement :param value: the value of the statement @raises MargoLangException if parameters are invalid

Expand source code
class MargoDirective(MargoStatement):
    def __init__(self, name: str):
        super().__init__("DIRECTIVE", name)

    @property
    def type(self) -> str:
        return "DIRECTIVE"

    @property
    def value(self) -> any:
        return None

Ancestors

Inherited members