Skip to content

stages

NotationLoader

Bases: Stage

Source code in src/finch/finch_notation/stages.py
class NotationLoader(Stage):
    mode = CompilerMode()

    @abstractmethod
    def lower(self, prgm: ntn.Module) -> asm.AssemblyLibrary:
        """
        Load the given notation program into a runnable module.
        """

lower(prgm) abstractmethod

Load the given notation program into a runnable module.

Source code in src/finch/finch_notation/stages.py
@abstractmethod
def lower(self, prgm: ntn.Module) -> asm.AssemblyLibrary:
    """
    Load the given notation program into a runnable module.
    """

NotationTransform

Bases: Stage

Source code in src/finch/finch_notation/stages.py
class NotationTransform(Stage):
    @abstractmethod
    def lower(self, prgm: ntn.Module) -> ntn.Module:
        """
        Transform the given notation program into another notation program.
        """

lower(prgm) abstractmethod

Transform the given notation program into another notation program.

Source code in src/finch/finch_notation/stages.py
@abstractmethod
def lower(self, prgm: ntn.Module) -> ntn.Module:
    """
    Transform the given notation program into another notation program.
    """