Skip to content

stages

NotationLoader

Bases: Stage

Source code in src/finch/finch_notation/stages.py
 9
10
11
12
13
14
class NotationLoader(Stage):
    @abstractmethod
    def lower(self, term: ntn.Module) -> asm.AssemblyLibrary:
        """
        Load the given notation program into a runnable module.
        """

lower(term) abstractmethod

Load the given notation program into a runnable module.

Source code in src/finch/finch_notation/stages.py
10
11
12
13
14
@abstractmethod
def lower(self, term: 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
17
18
19
20
21
22
class NotationTransform(Stage):
    @abstractmethod
    def lower(self, term: ntn.Module) -> ntn.Module:
        """
        Transform the given assembly term into another assembly term.
        """

lower(term) abstractmethod

Transform the given assembly term into another assembly term.

Source code in src/finch/finch_notation/stages.py
18
19
20
21
22
@abstractmethod
def lower(self, term: ntn.Module) -> ntn.Module:
    """
    Transform the given assembly term into another assembly term.
    """