Skip to main content

parse_text

Function parse_text 

Source
pub fn parse_text(
    source_id: SourceId,
    input: &str,
    langspec: Option<&LangSpec>,
) -> Result<Script, ParseError>
Expand description

Lexes and parses a text buffer associated with source_id.

ยงErrors

Returns ParseError if lexing or parsing fails.