summaryrefslogtreecommitdiff
path: root/prolog/problems/dcg/flower_2/en.py
blob: 85d1e73bb7f29f8d2d9ae1e9d0b536d3f60f1975 (plain)
1
2
3
4
5
6
7
8
9
10
id = 163
name = 'flower/2'
slug = 'words like +++--+++'

description = '''\
<p>Write a DCG with the starting symbol <code>flower</code> for the language <code>+<sup>n</sup>-<sup>m</sup>+<sup>n</sup></code>, where m > 0 and n ≥ 0.</p>
<p>Example words: <code>-</code>, <code>++-++</code>, <code>+---+</code>.</p>
'''

hint = {}