Compiler¶
- class yace.compiler.Compiler(targets: List[str], output: Path)¶
- Encapsulation of yace compiler stages - Parse 
- Lint 
- Transform 
- Emit 
- Format 
- Check 
 - The first two stages are generic, the third is generic however is usually performed for target-specific-reasons such as re-structuring the IR to make the code-emitter simpler, the last three are target-specific. - STAGES = ['parse', 'lint', 'transform', 'emit', 'format', 'check']¶
 - TARGETS = [<class 'yace.targets.ctypes.target.Ctypes'>, <class 'yace.targets.capi.target.CAPI'>]¶
 - process(path: Path, stages: List[str] | None = None) bool¶
- Take ‘path’ through the given compiler ‘stages’