dundalek / GrammKit

Generate diagrams for parser grammars
http://dundalek.com/GrammKit/
The Unlicense
236 stars 19 forks source link

Feature request: Fully connected diagram #16

Open rdking opened 5 years ago

rdking commented 5 years ago

How about adding an option to diagram the entire syntax in terms of its start and terminals? Sometimes it's helpful to see the entire grammar all at once.

dundalek commented 5 years ago

Thanks for sharing the idea. Yeah, I was thinking about this before. The problem is that rules can be recursive and in that case you would end up with and infinite-sized diagram. Or do you have an example of a specific grammar?