. File/New, , , . File/Edit. 1 ( ) (File/Save buffer).
, SWI/PROLOG . (, ) . ,- - . , ,- .
, SWI/PROLOG . Compile/Compile buffer . SWI/PROLOG. , , . .
Consult File SWI/PROLOG. .
, , . , , , . << >> , . , SWI/PROLOG .pl.
, :
consult ( ).
consult(Test). % test
consult([Test1,Test2]). % .
consult(test.pl). [1]
(?-), , .
- :
?- P1,P2,,Pn.
" P1 P2 ... Pn?". Pi .
, . -.
listing.
,
?-listing.
:
?-('',). % ?
yes () .
.
?-('', ). % ?
?-(, ). % ?
?-('',),('',).% ?
|
|
?-(, ). % ?
?-(, _). % ?
.
?-(,).
= ''
, ;.
, (, ), b.
, " " " ".
, , , make. :
?-make.
pl.ini; .