l0_driver namespace
Classes
- class ImportCycleError
- Raised when a cyclic import is detected.
- class L0Driver
- Stage-1 driver for the L0 compiler.
- class SourceEncodingError
- Raised when a source file cannot be decoded as UTF-8.
Functions
- auto load_source_utf8(str|Path path) -> str
- Read source bytes and decode as UTF-8.
Function documentation
str l0_ driver:: load_source_utf8(str|Path path)
Read source bytes and decode as UTF-8.
| Parameters | |
|---|---|
| path | Path to the source file to read. |
| Returns | The decoded text content of the file. |
| Exceptions | |
| SourceEncodingError | If the file cannot be decoded as UTF-8. |
| OSError | If there is an error reading the file. |
UTF-8 BOM is accepted and silently stripped.