Skip to main content

parse_clojure_edn_source

Function parse_clojure_edn_source 

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

Parses a single top-level EDN value from source text into a LocatedExprTree.

Fails closed if the input holds more than one top-level form. Spans are resolved against the given SourceId and counted against the decode budget.