From dd034da55f414d7ddcdc5de968b616ce51b1514e Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 15 May 2016 18:12:02 +0200 Subject: Prolog: show DCG problems --- prolog/problems/dcg/ab_2/common.py | 4 ++-- prolog/problems/dcg/ab_2/en.py | 2 +- prolog/problems/dcg/ab_2/sl.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'prolog/problems/dcg/ab_2') diff --git a/prolog/problems/dcg/ab_2/common.py b/prolog/problems/dcg/ab_2/common.py index 7bde558..4c20a86 100644 --- a/prolog/problems/dcg/ab_2/common.py +++ b/prolog/problems/dcg/ab_2/common.py @@ -1,6 +1,6 @@ id = 162 -number = 69 -visible = False +number = 10 +visible = True facts = None solution = '''\ diff --git a/prolog/problems/dcg/ab_2/en.py b/prolog/problems/dcg/ab_2/en.py index 53f9e9a..9a709b1 100644 --- a/prolog/problems/dcg/ab_2/en.py +++ b/prolog/problems/dcg/ab_2/en.py @@ -4,6 +4,6 @@ slug = 'a*b*' description = '''\

Write a DCG with the starting symbol ab for the language ambn, where m, n ≥ 0.

Example words: [], a, aab, abbb, bbb.

-

Hint: to generate words of increasing length, use the query conc(Word,_,_), ab(Word,[]).

''' +

Hint: to generate words of increasing length, use the query append(Word,_,_), ab(Word,[]).

''' hint = {} diff --git a/prolog/problems/dcg/ab_2/sl.py b/prolog/problems/dcg/ab_2/sl.py index fb0fe06..2b1bfa8 100644 --- a/prolog/problems/dcg/ab_2/sl.py +++ b/prolog/problems/dcg/ab_2/sl.py @@ -4,6 +4,6 @@ slug = 'a*b*' description = '''\

Napiši DCG gramatiko z začetnim simbolom ab za jezik ambn, kjer sta m, n ≥ 0.

Primeri veljavnih besed: [], a, aab, abbb, bbb.

-

Namig: za generiranje vedno daljših besed uporabi poizvedbo conc(Word,_,_), ab(Word,[]).

''' +

Namig: za generiranje vedno daljših besed uporabi poizvedbo append(Word,_,_), ab(Word,[]).

''' hint = {} -- cgit v1.2.1