Skip to main content

Crate sema_reader

Crate sema_reader 

Source

Modules§

lexer

Functions§

read
Read a single s-expression from a string.
read_many
Read all s-expressions from a string.
read_many_with_spans
Read all s-expressions and return the accumulated span map.
read_many_with_spans_recover
Read all s-expressions with error recovery. On parse errors, skips to the next top-level form and continues. Returns (successfully parsed forms, span map, collected errors). Tokenizer errors are returned as a single error with no parsed forms.
read_many_with_symbol_spans
Read all s-expressions and return spans for both compound expressions and individual symbols. Symbol spans enable precise go-to-definition (jumping to the name, not the whole form).