pub fn parse_blog_to_ast(input: &str) -> Result<SourceFile, ParseError>Expand description
Parse BLOG source text into its ast::SourceFile without lowering.
§Errors
Returns ParseError::Syntax if the input is not valid BLOG syntax.
§Examples
let ast = bloq_graph::parse_blog_to_ast(
"BLOG 1.0\n\n 0: ZXZ [0,0,0]\n",
)?;
assert_eq!(ast.data_stmts.len(), 1);