Initial commit: Tree-sitter grammar for Hack Assembly

This commit is contained in:
2025-09-10 23:50:03 -04:00
commit 74f44fa77e
252 changed files with 4746 additions and 0 deletions

37
tree-sitter.json Normal file
View File

@@ -0,0 +1,37 @@
{
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/config.schema.json",
"grammars": [
{
"name": "hack_assembly",
"camelcase": "HackAssembly",
"title": "Hack Assembly",
"scope": "source.hack_assembly",
"file-types": ["asm"],
"injection-regex": "^hack[-_]?assembly$|^asm$",
"class-name": "TreeSitterHackAssembly"
}
],
"metadata": {
"version": "1.0.0",
"license": "MIT",
"description": "A Tree-sitter grammar for parsing Hack Assembly language (nand2tetris)",
"authors": [
{
"name": "Sean O'Connor",
"email": "sean@soconnor.dev"
}
],
"links": {
"repository": "https://github.com/soconnor0919/nand2tetris-zed"
}
},
"bindings": {
"c": true,
"go": false,
"node": true,
"python": false,
"rust": true,
"swift": false,
"zig": false
}
}