Node:Comments, Previous:Restrictions, Up:Prolog Intro



Comments

Comments have no effect on the execution of a program, but they are very useful for making programs more readily comprehensible. Two forms of comment are allowed in Prolog:

  1. The character % followed by any sequence of characters up to end of line.
  2. The symbol /* followed by any sequence of characters (including new lines) up to */.