MCPcopy Index your code
hub / github.com/PrestonKnopp/tree-sitter-gdscript

github.com/PrestonKnopp/tree-sitter-gdscript @v6.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v6.1.0 ↗ · + Follow
58 symbols 107 edges 19 files 10 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tree-sitter-gdscript

GDScript grammar for tree-sitter.

Latest Godot Commit Syntactically Synced

Note: Some commits may have been missed.

git log --oneline --no-merges modules/gdscript

6ae54fd787

How To

  • Test grammar
  • npm run genTest
  • Test scanner
  • Edit "src/scanner.c"
  • npm run test, no need to generate.
  • Build prebuilds
  • npm run genTest
  • npm run prebuild
  • Build with node-gyp
  • npm run genTest
  • npm install node-gyp
  • node-gyp rebuild
  • Edit
  • Write tests in corpus to express behavior.
  • Make grammar or scanner edits.
  • See above for running tests.
  • npm run format
  • Commit changes.
    • If commit is an issue fix, prefix message with fix(#<issue-number>):
    • List the rules changed in commit message.
    • Note what rules need to be updated in nvim-treesitter queries.
  • Commit generated files with the latest non-wip commit.
  • Push
  • Release
  • Manually edit version in package files: CMakeLists.txt, Cargo.toml, Makefile, pyproject.toml, tree-sitter.json
  • npm version <major, minor, patch> -m "<> version bump"
  • git push --follow-tags

Note: node-gyp-build will check for binaries in both build and prebuilds directories.

Core symbols most depended-on inside this repo

skip
called by 12
src/scanner.c
trailCommaSep1
called by 6
grammar.js
advance
called by 5
src/scanner.c
trailSep1
called by 3
grammar.js
end_character
called by 3
src/scanner.c
_array__reserve
called by 3
src/tree_sitter/array.h
sep1
called by 2
grammar.js
set_node_path
called by 2
src/scanner.c

Shape

Function 44
Class 10
Method 3
Enum 1

Languages

C47%
C++24%
Python16%
TypeScript7%
Rust3%
Go3%

Modules by API surface

src/scanner.c23 symbols
src/tree_sitter/array.h7 symbols
setup.py4 symbols
grammar.js4 symbols
bindings/python/tree_sitter_gdscript/binding.c4 symbols
src/tree_sitter/parser.h3 symbols
bindings/python/tree_sitter_gdscript/__init__.py3 symbols
bindings/python/tests/test_binding.py2 symbols
bindings/node/binding.cc2 symbols
bindings/swift/TreeSitterGDScript/gdscript.h1 symbols
bindings/rust/lib.rs1 symbols
bindings/rust/build.rs1 symbols

For agents

$ claude mcp add tree-sitter-gdscript \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page