Skip to content

statement2

statement2

Macro statement base class.

A statement is everything what have to appear alone, for example a primitive or a variable assignment. Statements by themselves can't be reduced to numerical value during macro evaluation.

Statement2

Bases: Element2

Macro statement base class.

A statement is everything what have to appear alone, for example a primitive or a variable assignment. Statements by themselves can't be reduced to numerical value during macro evaluation.

Source code in src\pygerber\gerberx3\parser2\macro2\statement2.py
class Statement2(Element2):
    """Macro statement base class.

    A statement is everything what have to appear alone, for example a primitive or a
    variable assignment. Statements by themselves can't be reduced to numerical value
    during macro evaluation.
    """

    def on_parser2_eval_statement(self, context: Parser2Context) -> None:
        """Evaluate macro to create concrete macro aperture."""
        raise NotImplementedError

on_parser2_eval_statement

on_parser2_eval_statement(context: Parser2Context) -> None

Evaluate macro to create concrete macro aperture.

Source code in src\pygerber\gerberx3\parser2\macro2\statement2.py
def on_parser2_eval_statement(self, context: Parser2Context) -> None:
    """Evaluate macro to create concrete macro aperture."""
    raise NotImplementedError