Voorlopige indiening

This commit is contained in:
Tibo De Peuter 2025-05-12 19:33:51 +02:00
parent 130ff622c9
commit 6f1b252f52
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
7 changed files with 355 additions and 62 deletions

15
examples/meta/ceremony.pl Normal file
View file

@ -0,0 +1,15 @@
printer :-
writeln("Good evening everyone!"),
write("Thanks for coming "),
shift(Name),
write(Name), write(", ").
main :-
writeln("/Ceremony starts/"),
reset(printer, Name, Cont),
\+ \+ ( Name = "John", call(Cont) ),
\+ \+ ( Name = "Mary", call(Cont) ),
writeln("and my parents!"),
writeln("/Ceremony ends/").
:- initialization(main).