Skip to main content

parse_cl_lite_source

Function parse_cl_lite_source 

Source
pub fn parse_cl_lite_source(
    codec: CodecId,
    source_id: SourceId,
    source: &str,
    budget: &mut DecodeBudget,
) -> Result<LocatedExprTree>
Expand description

Parses one top-level CL-lite form from source text into a located tree.

Lower-level entry point behind decode_cl_lite_tree; the caller supplies the codec id, interned source id, and a DecodeBudget. Errors if the input holds more than one top-level expression.