Function parse_str

Source
pub fn parse_str(program: &str) -> ParseResult<Ast>
Expand description

Parses a string into an untyped AST

ยงExample

let ast = parse_str("struct Foo { bar: f32, }").unwrap();