summaryrefslogtreecommitdiff
path: root/prolog/problems/dcg/number_3/en.py
blob: b73e16d03d243f27aa7fded213628e3929df14bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding=utf-8

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