Ungrammar
rust-analyzer.github.io
rust-analyzer.github.io
https://www.cs.princeton.edu/research/techreps/TR-554-97
I think Python is still using this.
If you’ve heard about ASDL, ungrammar is ASDL for concrete syntax trees.
It would be really cool to just generate the look and feel of a programming language just using extended BNF.
In rust-analyzer, it is paired with a hand-written parser.
I think it's just a convention for how to represent concrete syntax tress as Rust abstract datatypes.I'd call this a "concrete grammar", calling something that's a grammar an "ungrammar" is cutesy. It feels lazy, like they stopped at the first idea they had.