I used it in a couple of applications as a sort of "reverse parser" to generate all strings produced by a given grammar. It's been a while!
Type: Posts; User: brewbuck
I used it in a couple of applications as a sort of "reverse parser" to generate all strings produced by a given grammar. It's been a while!
I think your second version is pretty good. It's been a while since I wrote any Prolog though.