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();pub fn parse_str(program: &str) -> ParseResult<Ast>Parses a string into an untyped AST
let ast = parse_str("struct Foo { bar: f32, }").unwrap();