pub fn parse<'a>(data: &'a str) -> ParseResult<'a>Expand description
Parse a Protocol Buffers source string into an AST.
ยงExamples
use protobuf_ast_parser::parse;
let source = r#"syntax = "proto3"; message User { string name = 1; }"#;
let ast = parse(source).expect("valid proto");
assert!(!ast.is_empty());