How to Write a Prologue for Your Novel with Sample Prologues So, you've finished writing your book and can't figure out where to put that extra bit of necessary information. To write an effective prologue for your novel, you will need to first recognize the purpose of a prologue, create one or several drafts of the prologue and edit the prologue down so it is polished and ready for print.
PROLOG Facts, Rules and Queries Or maybe you've got everything mapped out, but seem to be struggling with writer's block. So PROLOG assumes that its database contains complete knowledge of the domain it is being asked about. Prolog's Proof Procedure In responding to queries, the Prolog interpreter uses a backtracking search, similar to the one we study in Chapter 3 of Luger. To see how this works, let's add the following rules to our database
Prolog Tutorial -- 2.7 A prologue can be a useful tool in building your novel; however, it can also be harmful to the story if used inappropriately. Exercise 2.7.11 Write a Prolog program to reverse a comma sequence. Exercise 2.7.12 Write a Prolog program to prune a comma sequence delete repeated top-level elements, keeping first, left-most, occurrence. Exercise 2.7.13 Write a Prolog program to test for membership in a comma sequence similar to member for lists.