Ungrammar in Go and resilient parsing

Oct 20, 2023

https://eli.thegreenplace.net/2023/ungrammar-in-go-and-resilient-parsing/

Eli Bendersky wrote a lexer and parser for ungrammar in go.

Ungrammar is a language for specifying concrete syntax trees (trees generated from the source code that still have full information about the source code in detail, and thus have not yet become "abstract syntax trees") which is useful in several ways, but particularly for implementing IDE-like features.

I'm saving this link primarily because it seems like a really good example of how a particularly skilled compiler writer writes a compiler for a simple language.

↑ up