Module margo_parser.api.classes.MargoAssignment
Expand source code
from .MargoStatement import MargoStatement
class MargoAssignment(MargoStatement):
def __init__(self, name: str, value):
super().__init__("DECLARATION", name, value=value)
@property
def type(self) -> str:
return "DECLARATION"
Classes
class MargoAssignment (name: str, value)
-
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 MargoAssignment(MargoStatement): def __init__(self, name: str, value): super().__init__("DECLARATION", name, value=value) @property def type(self) -> str: return "DECLARATION"
Ancestors
- MargoStatement
- abc.ABC
Inherited members