tree-sitter-grammars

Community

Craft robust Tree-sitter grammars with DSLs

Authorhafley66
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Tree-sitter grammar authoring is intricate; this Skill provides a concise DSL, helper functions, and testing guidance to streamline grammar creation and debugging.

Core Features & Use Cases

  • Grammar.js DSL for defining grammars with rules, extras, conflicts, and externals
  • Rule helpers: seq, choice, repeat, prec, field, alias
  • Testing and validation workflow using tree-sitter CLI
  • Guidance for setting up grammar structure, tokens, and aliases to produce clean parse trees
  • Use cases include creating or extending language grammars and debugging parsing issues

Quick Start

Initialize a new grammar project and begin defining rules in grammar.js

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tree-sitter-grammars
Download link: https://github.com/hafley66/claude-research/archive/main.zip#tree-sitter-grammars

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.