summaryrefslogtreecommitdiff
path: root/prolog/problems/dcg/number_2/en.py
blob: 6a3d33eee31a9d20fb03c22c5c1c1123e312038a (plain)
1
2
3
4
5
6
7
8
9
id = 165
name = 'number/2'
slug = 'numbers with potential leading zeros'

description = '''\
<p>Write a DCG with the starting symbol <code>number</code> for the language of non-negative integers. The numbers may include leading zeros.</p>
<p>Example words: <code>123</code>, <code>54</code>, <code>0122</code>, <code>0001221</code>, <code>0</code>.</p>'''

hint = {}