6 Matching Annotations
- Feb 2019
-
lpn.swi-prolog.org lpn.swi-prolog.org
-
any word beginning with an upper-case letter is a Prolog variable
-
This is the way logical conjunction is expressed in Prolog (that is, the comma means and )
-
the semicolon ; is the Prolog symbol for or
how to express
disjunction
-
- Sep 2018
-
lpn.swi-prolog.org lpn.swi-prolog.org
-
it is usual to use a suffix / followed by a number to indicate the predicate’s arity
后缀
/
-
-
lpn.swi-prolog.org lpn.swi-prolog.org
-
the :- means implication, the , means conjunction, and the ; means disjunction
:-
: meansimplication
;
: meansconjunction
,
: meansdisjunction
-
-
lpn.swi-prolog.org lpn.swi-prolog.org
-
This will introduce us to the three basic constructs in Prolog: facts, rules, and queries.
facts, rules, queries
-