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

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 = {}