Skip to content

Simple Protocol Buffers 2 and 3 parser written on Rust and lalrpop.

License

Notifications You must be signed in to change notification settings

n08i40k/protobuf-ast-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protobuf-parser

A Rust parser for Protocol Buffers (proto2 and proto3) built with LALRPOP + Logos. It focuses on turning .proto files into a lightweight AST while preserving comments, which is handy for tooling, linting, and analysis workflows.

Usage

use protobuf_ast_parser::parse;

let source = r#"
syntax = "proto3";
message User { string name = 1; }
"#;

let ast = parse(source)?;

About

Simple Protocol Buffers 2 and 3 parser written on Rust and lalrpop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages