A. C. Brett firstname.lastname@example.org
Department of Linguistics
University of Victoria
Comments are preceded by a percent sign, "%." The Prolog interpreter ignores all the characters to the right of the % sign up to the end of the line. Thus, only the % is a Prolog entity.
Comments may appear on lines separate from lines containing Prolog statements, in which case the comment line will begin with a %. Comments may also appear on the same line as a Prolog statement; but, in this case, the % follows the Prolog statement. The following lines illustrate comments:
% Facts comprising the det/1 predicate. % det(some). % Det --> some det(this). % Det --> this det(these). % Det --> thesewherein the comments are used to describe a correspondence between Prolog facts and context-free rewrite rules.
|Linguistics 482||Prolog Introductory Notes||Top of Page|