summaryrefslogtreecommitdiff
path: root/prolog/problems/dcg/paren_3/common.py
blob: a3cb6d3ffd40dd77812afc23a66f7aba9b9fe352 (plain)
1
2
3
4
5
6
7
8
9
10
11
# coding=utf-8

id = 169
number = 76
visible = False
facts = None

solution = '''\
paren(0) --> [].
paren(D) --> ['('], paren(D1), [')'], paren(D2), { D1 >= D2, D is D1 + 1 ; D1 < D2 , D is D2 }.
'''