- From: EnnexMB <notifications@github.com>
- Date: Sat, 15 Sep 2018 13:11:13 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/url/issues/337/421627310@github.com>
Alright, hold on a second. Disregard my previous post from a few days ago. I was just reading up on [CSS syntax](https://www.w3.org/TR/css-syntax-3/) and in sections [4.1](https://www.w3.org/TR/css-syntax-3/#token-diagrams) and [5.1](https://www.w3.org/TR/css-syntax-3/#parser-diagrams) came upon [railroad diagrams](https://en.wikipedia.org/wiki/Syntax_diagram). It's a far better way to represent syntax than my home-spun graphical representation above. I found a [website for generating them](http://bottlecaps.de/rr/ui), and here is the result for URLs: ![url syntax railroad diagram](https://user-images.githubusercontent.com/40837471/45589999-5b1e2280-b8f5-11e8-9992-5076dbef80ad.png) Along with that graphic, there is an [htm file](https://gist.github.com/EnnexMB/e5a1f4a903ed4584bf6702c8b16f3b24) that shows that diagram with links on the element names to the relevant sections of the URL Standard, along with another representation of the syntax in [EBNF notation](https://en.wikipedia.org/wiki/EBNF), which is the code used to generate the diagram. As above, the htm file is saved as a Gist, and I wish I knew a way to post it so it would load directly in your browser, but I don't. >From my previous post, the table of element conditions might still be useful. I'd say disregard all the rest. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/337#issuecomment-421627310
Received on Saturday, 15 September 2018 20:11:35 UTC