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

name = 'number_proper/2'
slug = 'numbers without leading zeros'

description = '''\
<p>Write a DCG with the starting symbol <code>number_proper</code> for the language of non-negative integers. The numbers should <em>not</em> contain leading zeros.</p>
<p>Example words: <code>123</code>, <code>54</code>, <code>122</code>, <code>1221</code>, <code>0</code>.</p>'''

hint = {}