Voorlopige indiening
This commit is contained in:
parent
130ff622c9
commit
6f1b252f52
7 changed files with 355 additions and 62 deletions
15
examples/meta/ceremony.pl
Normal file
15
examples/meta/ceremony.pl
Normal 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).
|
Reference in a new issue