Tree Sitter - Growing Trees in Concrete

I just ran into this by accident: https://tree-sitter.github.io/tree-sitter/. I learned about it from this old project https://github.com/stonebuddha/vscode-better-sml. This thing is just a blob of webasm code and some configuration files. It's a joke: it's all up-side-down! See Language Server Protocol

The Language Server Protocol (LSP) is an open, JSON-RPC-based protocol for use between source-code editors or integrated development environments (IDEs) and servers that provide "language intelligence tools": programming language-specific features like code completion, syntax highlighting and marking of warnings and errors, as well as refactoring routines. The goal of the protocol is to allow programming language support to be implemented and distributed independently of any given editor or IDE. In the early 2020s, LSP quickly became a "norm" for language intelligence tools providers.

It's concrete all the way down. Why? Is it something to do with security? Whose security? Microsoft's?

Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited.

Why does Google blogger need cookies to let users upload images from their PC disk storage?


 

Comments

Popular posts from this blog

Steven Johnson - So You Think You Know How to Take Derivatives?

Hitachi HD44780U LCD Display Fonts

Using Pipewire to Make A Music Synthesizer