Grammar explorer

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 Wednesday, 28 January 2026 12:46:19 UTC