Backend class
Defined in module l0_backend (l0_backend.py).
Generate C from one analyzed compilation unit through explicit collaborators.
Public static attributes
- static AnalysisResult analysis
- static CEmitter emitter
Public functions
- auto __post_init__(self) -> None
- Connect backend algorithms to one canonical emission and scope state.
- auto generate(self) -> str
- Generate the complete C translation unit.
Public attributes
Function documentation
str l0_backend:: Backend:: generate(self)
Generate the complete C translation unit.
| Returns | Generated C source, including its final newline. |
|---|---|
| Exceptions | |
| ValueError | If the analysis is missing a unit or contains errors. |