blob: 260e7dcf860a026cc8edf75f095fdd3149091363 (
plain)
1
2
3
4
5
6
7
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 = {}
|