fhelium.compile.codegen
Generated Python source emitted from one Compile Program stage.
BackendPythonSource
class View source
python
BackendPythonSource(source: str, entry_point: str, input_names: tuple[str, ...], material_symbols: tuple[str, ...], resource_symbols: tuple[str, ...], operation_count: int, resource_requirements: tuple[tuple[str, str], ...] = ())1
Bases: GeneratedPythonSource
Python source expressed through resolved Backend implementation calls.
Attributes
| Name | Type | Default/value |
|---|---|---|
resource_requirements | tuple[tuple[str, str], ...] | () |
EagerPythonSource
class View source
python
EagerPythonSource(source: str, entry_point: str, input_names: tuple[str, ...], material_symbols: tuple[str, ...], resource_symbols: tuple[str, ...], operation_count: int)1
Bases: GeneratedPythonSource
Python source expressed through the public Eager Engine API.
GeneratedPythonSource
class View source
python
GeneratedPythonSource(source: str, entry_point: str, input_names: tuple[str, ...], material_symbols: tuple[str, ...], resource_symbols: tuple[str, ...], operation_count: int)1
Hold editable Python source and its external symbol interface.
Attributes
| Name | Type | Default/value |
|---|---|---|
source | str | |
entry_point | str | |
input_names | tuple[str, ...] | |
material_symbols | tuple[str, ...] | |
resource_symbols | tuple[str, ...] | |
operation_count | int |
PythonCodegenError
class View source
python
PythonCodegenError()1
Bases: RuntimeError
Report that a Python emitter cannot represent the scanned Program.