Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> Result<Vec<UnboundForm>, ParseError>
Expand description

Parse a UTF-8 input into a sequence of UnboundForms.

§Errors

Returns the first ParseError encountered. No partial recovery.

§Examples

use mimir_core::parse::parse;

let forms = parse("(promote @ephemeral_42)").unwrap();
assert_eq!(forms.len(), 1);