https://github.com/gdiasag/tree-sitter-cool
Tree-sitter grammar for the COOL programming language
https://github.com/gdiasag/tree-sitter-cool
cool parser tree-sitter
Last synced: 1 day ago
JSON representation
Tree-sitter grammar for the COOL programming language
- Host: GitHub
- URL: https://github.com/gdiasag/tree-sitter-cool
- Owner: gdiasag
- License: mit
- Created: 2025-08-18T16:06:50.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-11-25T13:51:44.000Z (7 months ago)
- Last Synced: 2026-02-24T08:52:48.918Z (4 months ago)
- Topics: cool, parser, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 332 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-cool
[](https://github.com/gustavodiasag/tree-sitter-cool/actions/workflows/ci.yml)
Tree-sitter grammar for the Classroom Object-Oriented Language (COOL).
## Syntax Highlighting
Additionaly to the grammar package, the project also defines [rules](./queries) for highlighting Cool code. Below are demonstrations using the [kanagawa](https://github.com/rebelot/kanagawa.nvim) colorscheme

and [gruvbox-light](https://github.com/morhetz/gruvbox) colorscheme

# References
[The Cool Reference Manual](https://theory.stanford.edu/~aiken/software/cool/cool-manual.pdf)
[Compiler Construction](https://tvn.roars.dev/class-compilers/cool.html)