Prolog exercise

Hey guys, can you help me to solve this thanks in advance :slight_smile:

Write your own DCG:

a. Pick a language of your choice (different from English) and write a DCG for a fragment of this
language. If you don’t know any other languages than English, try to make the English grammar
fragment that we have been working with more interesting by extending the grammar with
additional structures.

b. Do some test queries (and show their answers).