Graphing a syntax classes

Hey, Racket community!
I am writing a DSL for ClickHouse database and made some amount of syntax classes already. After some amount I feel it becomes difficult to hold everything in my head, so I have started to look is there some way to make a graph out of syntax classes defined in my module.

So... I am wondering:

  1. could I get all the syntax classes defined in a particular module?
  2. is there any way to get classes which are referenced by some syntax class patterns?
  3. maybe you know some work related to the topic?

Thanks in advance! :slight_smile:

Ok, this is a stupid no-answer but have you tried applying any common software design patterns to your syntax class code?
For example...

could I get all the syntax classes defined in a particular module?

This sound alike a bad idea but maybe I miss your point. :man_shrugging: