An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# tree-sitter-cool

[![CI](https://github.com/gustavodiasag/tree-sitter-cool/actions/workflows/ci.yml/badge.svg)](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

![Screenshot kanagawa](https://i.imgur.com/rE90XkF.png)

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

![Screenshot gruvbox](https://i.imgur.com/JW1GzqJ.png)

# 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)