ast-grep-custom-language - Build and Register Custom ast-grep Languages
Author a tree-sitter grammar, build its parser library, and register it as an ast-grep custom language.
Tags
Updated: 2026-11-24Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Author tree-sitter grammars
- Configure grammar fields and precedence
- Generate parser sources
- Build parser dynamic libraries
- Register custom languages in ast-grep
- Verify node kinds and fields
Inputs
- Target language syntax
- Grammar project files
- grammar.js source
- ast-grep configuration
Outputs
- Generated parser sources
- Parser dynamic library
- Registered ast-grep custom language
- Verified node kinds and fields
Requirements
- Node.js runtime
- C or C++ compiler
- Tree-sitter CLI
- ast-grep installation
