This repository has been archived on 2025-09-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2025LogProg-project-GhentPr.../examples/meta/ceremony.pl

15 lines
395 B
Prolog

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