I like railroad diagrams for language grammars. So much easier than just looking at production rules.
https://en.wikipedia.org/wiki/Syntax_diagram
They're used at https://json.org/, for example.
https://en.wikipedia.org/wiki/Syntax_diagram
They're used at https://json.org/, for example.
https://inst.eecs.berkeley.edu/~cs61a/sp21/assets/slides/33-...
They're used in the SQLite docs as well, where I think they're really well suited.
— https://vintagecomputer.ca/the-history-of-apples-pascal-synt...
Bit of a discussion on how they're created here: https://wiki.tcl-lang.org/page/Generating+Syntax+Diagrams+Us...
SQLITE uses them now as well: https://www.sqlite.org/lang_aggfunc.html