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

name = 'ab/2'
slug = 'a*b*'

description = '''\
<p>Napiši DCG gramatiko z začetnim simbolom <code>ab</code> za jezik <code>a<sup>m</sup>b<sup>n</sup></code>, kjer sta m, n ≥ 0.</p>
<p>Primeri veljavnih besed: <code>[]</code>, <code>a</code>, <code>aab</code>, <code>abbb</code>, <code>bbb</code>.</p>
<p>Namig: za generiranje vedno daljših besed uporabi poizvedbo <code>conc(Word,_,_), ab(Word,[])</code>.</p>'''

hint = {}