Hi,
I am a novice in Prolog and I am currently looking into DCGs. Most of the (few) examples I have seen define grammars for unstructured alphabets. For instance the language a^nb^n or a^n or ab^n. However I would like to define grammars for structured alphabets. In such a setting every element in the produced sentence must assign a value to a set of symbols, e.g. {a, b, c}. An example sentence for example could be: (a = 1, b = 0, c = 0) ; (a = 0, b = 1, c = 1). One can implement this I imagine in various ways. I would just like to check whether there is some “prefered” or “standard” way of doing this. A minimal example: