Sean O'Connor c4034857c7 Add README, .gitignore, and clean up build artifacts
- Added comprehensive README with usage instructions
- Added .gitignore to prevent build artifacts from being committed
- Removed target/ directories and duplicate WASM files
- Cleaned up parser binaries and test files
2025-09-11 11:27:28 -04:00

tree-sitter-hack-binary

A Tree-sitter grammar for Hack Binary machine code as used in the nand2tetris course.

Supported File Types

  • .hack - Hack Binary machine code files

Features

  • Syntax highlighting for 16-bit binary instructions
  • Code navigation with outline support
  • Integration with Zed editor and other Tree-sitter compatible editors

Usage

This grammar is designed to work with the nand2tetris-zed extension for Zed editor, providing complete language support for the nand2tetris course.

Grammar Details

  • Language: Hack Binary
  • Scope: source.hack_binary
  • File Types: .hack

Development

Building

# Generate parser
tree-sitter generate

# Build parser
tree-sitter build

# Test grammar
tree-sitter test

License

MIT License - see LICENSE file for details.

Description
Tree-sitter grammar for Hack Binary language (Nand2Tetris .hack files)
Readme 37 KiB
Languages
C 62.4%
C++ 35.8%
JavaScript 1.8%