Skip to main content

pre_parse_source_error

Function pre_parse_source_error 

Source
pub fn pre_parse_source_error(
    source_file: &SourceFile,
) -> Result<(), CompileError>
Expand description

Source-level errors raised before parsing, as CPython’s tokenizer does.

Checking after the parse would build the tree first, and one nested that deep exhausts the native stack when it is dropped.