4 ms·
Earlier today it finally occurred to me try using ChatGPT to build a DSL. This is basically what it was like, from conception to EBNF. We even discussed how far
by JellyBeanThief 3y ago
Earlier today it finally occurred to me try using ChatGPT to build a DSL. This is basically what it was like, from conception to EBNF. We even discussed how far to take DRY, and it took care of coming up with names for symbols. And it introduced me to the term "semantic validation", confirming my understanding of it as "things you can do in the grammar but should probably be moved to a separate step that operates on the AST."
Of course, that's flagged in my head as possibly hallucinated. But it doesn't change that from now on that's a obviously useful question I know to ask myself when I'm playing with languages: "does this really need to be in the grammar, or can it be validation instead?"