The GNU Prolog/CX interactive interpreter
TBD
The GNU Prolog/CX compiler
There is a command-line compiler similar to the base original GNU Prolog compiler and to invoke it use the gplc-cx command as follows:
% gplc-cx [OPTION]... FILE...
where the % symbol is the operating system shell prompt and [OPTION] are the GNU Prolog options. For instance, and considering that you have a program file called foo.pl, you can generate an executable simply by:
% gplc-cx foo.pl
Running the generated file foo yields to a toplevel similar the following:
GNU Prolog/CX 1.2.18 By Daniel Diaz Copyright (C) 1999-2003 Daniel Diaz | ?-
As a more elaborated example, consider that besides foo.pl there is another file called bar.pl. To compile then and obtain the executable baz:
% gplc-cx -o baz foo.pl bar.pl
For more command line options please consult the GNU Prolog manual.
Projects