Prolog , , , . , , Prolog. , Prolog.
Prolog , 1, consult. -, , :?- consult) )
, , , Prolog. , . Prolog . . , , . Prolog . , , , , , , .
I. Prolog
consult , , :?- consult ([ programs, program-}, queens! >.
: 1- [ programs, program4, queens].
, , Prolog ( ). Prolog , . , 5-10 . compile, , :
?- compile! programs). ?- compile! [ program4, queens, programs]}.
, , Prolog. , .
|
|
, Prolog. Prolog .
( , ) . , Prolog.
, , . user.
.
see (File). File .
tell (File). File .
seen. ,
told. .
:
;
.
.
read (Term}. .
6.
write (Term). Term.
put (CharCode). ASCII,
get0 (CharCode). .
get (CharCode). ! .
, .
nl. .
tab< N). N .
name (Atom, CodeList)
. CodeList ASCII
Atom.
Prolog
, , ,
, ..