Skip to content

Commit

Permalink
Add railroad diagrams for KDL 2.0 grammar
Browse files Browse the repository at this point in the history
closes Railroad diagrams for kdl #9
  • Loading branch information
el2iot2 committed Dec 21, 2024
1 parent 8e0028e commit 4037331
Show file tree
Hide file tree
Showing 3 changed files with 575 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# `kdl-2-0.ebnf`

This file is a simplification of the [v2.0 spec for KDL](https://github.com/kdl-org/kdl/blob/main/SPEC.md) as adapted purely for the creation of approximated railroad diagrams (via this handy [application](https://www.bottlecaps.de/rr/ui)).

> Largely this was adapted by summarizing certain "reg-ex" like formulations of rules as production rules with names that simply describe the resulting character classes. These rules, then left undefined in the grammar, display an intelligible intuition of what the grammar will do. For full details, one should carefully review the official spec.
The resulting generated html is [here](kdl-2-0-railroad-diagrams.html).
Loading

0 comments on commit 4037331

Please sign in to comment.