Re: Grammar explorer

Thank you Norm!

I think this is an excellent addition to our publications.

I would propose to add following CSS rule to grammar.css

td:nth-child(1), td:nth-child(2) {
     vertical-align: top;
}

or even

td {
     vertical-align: top;
}

This will nicely align the rule with the start of its contents. That 
felt much nicer to read for me.

Ciao,

Juri


On 28.01.26 13:46, Norm Tovey-Walsh wrote:
> Hello,
>
> Earlier this week, I was trying to work out how an expression was being parsed by the grammar. I found navigating around in the productions a bit frustrating and whipped up a quick bit of XSLT to make it easier.
>
> This morning, I spent an hour or so rounding over the rougher edges and I’ve added it to the build (but not yet got around to linking it from anywhere):
>
>    https://qt4cg.org/specifications/grammar-explorer/
>
> You can navigate around in the various grammars and if you click on the definition of a production, it’ll show you where else that production is used in the grammar and where it’s referenced in the specifications.
>
> It helped me. YMMV.
>
>                                          Be seeing you,
>                                            norm
>
> P.S. I crafted versions for a few earlier grammars, because it was easy, but they’re imperfect. There’s some magic in the grammar XML to deal with some binary operators and I haven’t worked out what that’s about. I may never bother. YMMV².
>
> --
> Norm Tovey-Walsh
> Saxonica
>

Received on Thursday, 29 January 2026 10:06:48 UTC