Source¶
Wraps source text for parsing. Create from a file path with Source(path)?
or from a string with Source.from_string(text).
Constructors¶
create¶
Load source text from a file. Errors if the file cannot be opened.
Parameters¶
- filepath: FilePath val
Returns¶
- Source val^ ?
from_string¶
Create source from an in-memory string.
Parameters¶
Returns¶
- Source val^