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

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