mirror of
https://github.com/soconnor0919/tree-sitter-compare-output.git
synced 2026-10-14 01:55:41 +00:00
Tree-sitter grammar for Compare Output language (Nand2Tetris .cmp/.out files)
- C 64%
- C++ 21.9%
- Rust 7.3%
- JavaScript 3.6%
- Tree-sitter Query 1.8%
- Other 1.4%
- 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 |
||
|---|---|---|
| bindings/rust | ||
| queries | ||
| src | ||
| .gitignore | ||
| binding.gyp | ||
| Cargo.lock | ||
| Cargo.toml | ||
| grammar.js | ||
| package.json | ||
| README.md | ||
| tree-sitter-compare_output.wasm | ||
| tree-sitter.json | ||
tree-sitter-compare-output
A Tree-sitter grammar for Compare/Output files as used in the nand2tetris course.
Supported File Types
.cmp- Compare/Output files for test result verification
Features
- Syntax highlighting for table structures and data values
- 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: Compare Output
- Scope:
source.compare_output - File Types:
.cmp
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.
Related
- nand2tetris-zed - Complete Zed extension
- nand2tetris.org - Course website
- Tree-sitter - Parser generator