Skip to main content

Module walker

Module walker 

Source
Expand description

Generic tree-sitter AST walker. Generic tree-sitter AST walker that converts parse trees to panproto schemas.

Because theories are auto-derived from the grammar, the walker is fully generic: one implementation works for all languages. The node’s kind() IS the panproto vertex kind; the field name IS the edge kind. Per-language customization is limited to formatting constraints and scope detection callbacks.

Structs§

AstWalker
Generic AST walker that converts a tree-sitter parse tree to a panproto Schema.
WalkerConfig
Configuration for the walker, allowing per-language customization.