Skip to main content

parse_bytes

Function parse_bytes 

Source
pub fn parse_bytes(
    source_id: SourceId,
    input: &[u8],
    langspec: Option<&LangSpec>,
) -> Result<Script, ParseError>
Expand description

Lexes and parses a byte buffer associated with source_id.

ยงErrors

Returns ParseError if lexing or parsing fails.