Ascend FD-23R Manual de usuario Pagina 18

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 81
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 17
6 CHAPTER 1. The TOY(FD) System
Uncompress the file toyfd.zip in your working directory (e.g.,
C:\SICSTUS382\bin\toyfd; observe that this path does not contain spaces!!);
initiate a SICStus session and choose as working directory that identified by
TOYDIR;
load TOY(FD) from the command line of SICStus by consulting the file toyfd,
i.e., from the SICStus prompt
| ?- [toyfd].
At this moment, SICStus loads all the libraries and archives necessary and will
show the prompt of TOY(FD) (i.e., ‘TOY(FD)>’) and a message for helping, as
follows:
TYPE "/h." FOR HELP.
TOY(FD)>
You are now inside TOY(FD)!!! i.e., you are now in the interpreter command
level of TOY(FD).
1.3 Interpreter Commands
At the interpreter command level you can type some predefined commands and direc-
tives. In the following, we describe some of the most used. For a complete list see
Caballero et al., 1997.
All of these commands b egins with ‘/’ and ends with ‘.’. Blank spaces are not
allowed and they are interpreted as Prolog terms i.e., the arguments are enclosed
between normal brackets ‘(’,‘)’ and separated by commas ‘,’. Moreover, if the arguments
contains blank spaces or symbols like ‘/’ (e.g., to specify a path), then they must be
enclosed between simple inverted commas (’).
For example, the following commands are recognized by TOY(FD):
/compile(my_program).
/ compile( my_program ).
/load(one_of_my_programs).
/system(’cd ..’).
/cd(..).
/cd(’/home/local/bin’).
/q.
/help.
However, the following are not recognized:
/compile (my_program).
/cd(/home/local/bin).
/cd(../..).
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 80 81

Comentarios a estos manuales

Sin comentarios