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

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

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