mirror of
https://github.com/soconnor0919/tree-sitter-test-script.git
synced 2026-02-04 15:56:38 -05:00
main
- 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
tree-sitter-test-script
A Tree-sitter grammar for Test Script files as used in the nand2tetris course.
Supported File Types
.tst- Test script files for hardware/software testing
Features
- Syntax highlighting for test commands, variables, and format specifications
- Code navigation with outline support
- Bracket matching for test blocks and array references
- 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: Test Script
- Scope:
source.test_script - File Types:
.tst - Node Types:
load_command,output_command,tick_command,tock_command,repeat_command,while_command
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
Description
Languages
C
81.2%
C++
10.5%
Rust
3.5%
JavaScript
2.8%
Scheme
1.3%
Other
0.7%