We have a new release (v0.40.0) that adds a generic AST walker and uses it to implement parse-emit pairs as asymmetric lenses. The walker is parameterized by a tree-sitter grammar.json, so it will work for any language that has one.
github.comRelease v0.40.0 · panproto/panprotoAdded
panproto-parse (AstParser::emit_pretty): new trait method that renders a by-construction Schema (no parse-recovered byte positions, no interstitials) to source bytes by walking the language'...
0 reposts0 likes