Closed criccomini closed 1 year ago
This is a full-fledged Protobuf 2/3 parser that generates an AST. The AST is represented as Python data classes, one for each node in the AST.
An AST should be much easier to work with.
This post has some good details on CST/AST in ANTLR:
https://stackoverflow.com/questions/29971097/how-to-create-ast-with-antlr4
This is a full-fledged Protobuf 2/3 parser that generates an AST. The AST is represented as Python data classes, one for each node in the AST.
An AST should be much easier to work with.
This post has some good details on CST/AST in ANTLR:
https://stackoverflow.com/questions/29971097/how-to-create-ast-with-antlr4