̲Ͳ ²
Ͳ Dz
8.080403
1
8.080403
/.: .. , .. . : , 2005. 38 .
: .. , .
.. ,
: .. , , ...
³
: .. , , ...
1 . 01.05.
I
Visual Prolog, . ϳ Visual Prolog. , .
² VDE
³ VDE (Visual Development Environment) , , , , , TestGoal, , .
VDE TASK. ³ ask : File, Edit, Project, Options, Help, Window. .
ϲ ٲ VISUAL PROLOG
Visual Prolog
File/New. File/Open.
: , , , . .
. , >, . , ..., . , , ; , . .
. F. . , .
, .
|
|
F1.
VDE . .
³ , , . , .
. , .
³ . . , , Nondeterm.
:
1) ³ .
2) Options/Project/Compile Options:
3) Code Generation :
Ø Errorlevel - Medium;
Ø Alignment - . .
Ø Place string in.Sym , . Windows-16 64.
Ø Print Menu in DOS.EXE DOS. ALT-P.
Ø Convert ANSI to OEM , ANSY OEM. DOS.
Ø Runtime checking - , :
Integer Overflow Check ;
Break Check ;
Stack Overflow Check .
4) Output :
Ø Diagnostics output - ;
Ø.SYM Filename ᒺ , ;
Ø Generate Browser Information ;
Ø Generate Debug Information ;
Ø Disable Optimization () ;
Ø Line Number Information ᒺ ;
Ø Max Allowed Errors - .
Ø Verbosity , :
None - ;
Default ;
, .
5) Warnings :
Ø Suppress All Warnings ;
Ø Treat Warnings as Errors ;
Ø Max Allowed Warnings ;
Ø Default Predicates Type :
Nondeterm;
Determ;
Procedure.
Ø Duplicated includes , .
|
|
Ø Non Quoted Symbols ;
Ø Strong Type Conversion Check - ;
Ø Check Type of Predicates -
Ø Unused Variables
Ø Unused Predicates
Ø Unused Code
7) Miscellaneous - :
Ø Memory Options :
Ø GStack Size . 100 , 128 ;
Ø Stack Size . Windows-32 1024.
Ø Heap Size DOS. 0.
Predefined Constants , .
Visual Prolog TestGoal. TestGoal. .
TestGoal
1. Project/ New Project. (Expert Application).
2. General (Project Name) TestGoal.
3. (Name of VPR.File) , (Name of PRJ file), . .
4. ³ Multiprogram Mode.
5. . .
6. Target (Platform)- Windows-32, (EasyWin) , ᒺ, (Target Type) exe, (Main Program) - Prolog.
7. Creat.
8. . Options/ Project/ Compiler Options.
9. - Warning , nondeterm.
10. OK.
ϳ
1) . *.pro include <ProjectName.inc>. .
2) .
3) , G Ctrl-G ( Test Goal).
, . Test Goal . - Make Option.
,
1) Project/ Open Project, Test Goal . TestGoal.vpr.
2) ³ File Open.
3) , G Ctrl-G ( Test Goal).
.
. F1 . , Search .
. , . , . , 䳿 , , G-, . .
Visual Prolog , VDE .
|
|
. . :
Ø Compile Options/Output Generate Debug Information . (.deb) obj ;
Ø Compile Options/Output Disable Optimization.
, .
, , . .
Project/Debug Vipdebug.exe.
1) Exe - :
Ø Load Files Exe-;
Ø Edit/Font ;
Ø .Deb , , .
Ø :
Command Line : full, minimized or maximized.
2) Run . 䳿 .
Ø Run:
Run (F9) - . ϳ , :
Run until fail , . ;
Break Program . ϳ ;
Wait for VPI Events 䳿 .
Ø :
Trace into (F7) . ;
Step over (F8) . ;
Run to Cursor (F4) , ;
Ø :
Invoke Fail - ;
Invoke Exit - . (inspect source);
Restart ;
3) Setting Breakpoints . .
Ø . . .
Ø ³ . ³ View | Break Points.
Remove ;
Remove all ;
Go to Code ;
Properties - . .
ϳ .
4) - Local Variables. , .
|
|
5) , .
6) . , . , .
PROJECT
VDE . (Application Expert) Project. New Project.
Open Project.
(). .
General
General , , .
General:
Ø < >.prj - , , : < >.vpr, < >.inc, < >.con, < >.dom, < >.pre, < >.pro. 8 .
Ø < >.vpr. : Visual Prolog, , , , , , . .
Ø Subdirectory.
Target
Target , (), ᒺ, (, ), (Visual , Prolog).
Target:
Ø :
DOS , Dos. Turbo Prolog.
DOS Extended - , Dos.
Windows 16 - , 16- Windows. VPI.
Windows 32 - , 32- Windows.
Ø
³ VPI Windows -16 Windows- 32.
EasyWin , : Readchar, Readln, Write, Writef, Nl, .
WinBind - Windows-16, API.
TextMode Dos, Dos extended, PDC-Prolog . Windows-32, , Readchar, Readln, Write, Writef, Nl. .
Other , .
VPI
, . .
MDI Mode , .
3D Look for Controls 3 .
Tool Bar and Help Line , Help .
Editor , .
Dialog Pack ago .
Tree Package : , , , .
Message Window , Write.
|
|
Owner draw Package .
Date Tools
Tree Browser Package .
Dir Browser Packed
Tab Control Package , .
Grid Package , .
Drawing Palette , .
File Name to include Package , . .
:
SQLBIND , SQL .
ODBCBIND , ODBC , , Microsoft ODBC.
SOCKBIND Visual Prolog .
DOC_TOOL : RTF, HTML, IPF.
PDCRUNT , DELPHI.