Replies: 1 comment 2 replies
-
In general, yes — imo this is something that's interesting and valuable! It's actually something that we experimented with in the past. You can see a brief description of what we did in the Ongoing work section of our paper Language Hacking in a Live Programming Environment. As mentioned there, one of the challenges of a purely-generative approach is how to generate the most useful examples. Maybe there are some useful techniques from fuzz-testing tools like afl that could be adopted (just a guess though). The code that support generating examples from removed from the code base a while back as it wasn't being used anywhere, but I'd be happy to point you to it, and if we could resurrect it in a useful way (e.g. actually exposing the functionality in the editor or behind an API) I'd be happy to. |
Beta Was this translation helpful? Give feedback.
-
Hello,
would it make sense for other people if there was a way to generate samples from the grammar?
In the editor (or dev env) I have samples that I know that should be (un)parsable, however I would like to be able to see what kind of weird cases grammar allows and then either disallow them or further explore them if they make sense.
Have you thought about this before? Would it be valuable to you?
Beta Was this translation helpful? Give feedback.
All reactions