0

I have a context free grammar which I have written in DCG prolog. I also have some example phrases in the language. I want to test each example phrase with the context free grammar in order to verify that the context free grammar is correct. Please how can I do this in prolog?

false
  • 10,264
  • 13
  • 101
  • 209
fenimi
  • 21
  • 4
  • 2
    See [this](http://stackoverflow.com/a/19797941/772868) example. – false Feb 25 '16 at 01:24
  • 2
    And [that](http://stackoverflow.com/a/10401614/772868), a more complex example. – false Feb 25 '16 at 01:27
  • Can you show at least one example call in your grammar as implemented in Prolog, with an example phrase as you want to provide it? – lurker Feb 25 '16 at 20:20

0 Answers0