| Crates.io | tree-sitter-toon |
| lib.rs | tree-sitter-toon |
| version | 0.1.3 |
| created_at | 2025-11-16 05:39:50.749682+00 |
| updated_at | 2026-01-16 18:11:02.574854+00 |
| description | Toon grammar for tree-sitter |
| homepage | |
| repository | https://github.com/3swordman/tree-sitter-toon |
| max_upload_size | |
| id | 1935246 |
| size | 329,889 |
A complete tree-sitter grammar implementation for TOON (Token-Oriented Object Notation) v2.0.
pip install tree-sitter-toon
from tree_sitter import Parser
from tree_sitter_toon import language
parser = Parser(language())
tree = parser.parse(b"name: value")
# Generate parser
tree-sitter generate
# Run tests
tree-sitter test
# Parse a file
tree-sitter parse example.toon
✅ Production Ready
test/corpus/
├── arrays/ - Array tests (inline, tabular, list, root)
├── objects/ - Object structure tests
├── delimiters/ - Delimiter-specific tests
├── primitives.txt - All primitive value types
└── mixed.txt - Complex combined scenarios
name: TOON Parser
version: 2.0
unicode: Hello 世界 🎉
arrays:
inline[3]: a,b,c
empty[0]:
table[2]{id,name}:
1,Alice
2,Bob
users[2]:
- name: Alice
score: 100
- name: Bob
score: 200
nested:
data[2]: x,y
GPL-3.0-or-later