Developer builds Tree-sitter syntax highlighting for Monkey language in Neovim

A developer has begun building a full development environment for Monkey, a small interpreted programming language originally created while learning Go from the book 'Writing An Interpreter In Go'. The project's first step focuses on adding syntax highlighting using Tree-sitter, a widely adopted parsing library that produces real syntax trees and handles incomplete or invalid code gracefully. Monkey supports core features like integers, booleans, functions as first-class citizens, closures, and built-in utilities such as len() and puts(). The Tree-sitter grammar covers all Monkey constructs, is tested against a corpus, and is integrated into Neovim. Future phases of the project plan to add LSP support and eventually use Monkey to solve an Advent of Code problem.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in