summaryrefslogtreecommitdiff
path: root/prolog/problems/dcg/number_3/en.py
blob: 742b26543f1dee9e7f799c07b90c751e2c10cc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
name = 'number/3'
slug = 'numbers with meaning'

description = '''\
<p>Write a DCG with the starting symbol <code>number</code> for the language of non-negative integers. The numbers may contain leading zeros. The meaning of a word in this language is the numeric value of the represented number.</p>
<pre>
?- number(N, [1,2,3,4], []).
  N = 1234.
</pre>
'''

hint = {}