| 1 | ================================================================ |
|---|
| 2 | Logtalk - Open source object-oriented logic programming language |
|---|
| 3 | Release 2.30.5 |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. |
|---|
| 6 | ================================================================ |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | This directory contains Prolog integration shell scripts and auxiliary |
|---|
| 10 | Prolog files. |
|---|
| 11 | |
|---|
| 12 | On POSIX systems, the Logtalk installers make the following integration |
|---|
| 13 | scripts available from the command-line (you may need to adjust your |
|---|
| 14 | system path): |
|---|
| 15 | |
|---|
| 16 | bplgt B-Prolog integration script |
|---|
| 17 | ciaolgt Ciao Prolog integration script |
|---|
| 18 | cxlgt CxProlog integration script |
|---|
| 19 | eclipselgt ECLiPSe integration script |
|---|
| 20 | gplgt GNU Prolog integration script |
|---|
| 21 | plclgt K-Prolog integration script |
|---|
| 22 | qplgt Qu-Prolog integration script |
|---|
| 23 | sicstuslgt SICStus Prolog integration script |
|---|
| 24 | swilgt SWI-Prolog integration script |
|---|
| 25 | xsblgt XSB integration script |
|---|
| 26 | yaplgt YAP integration script |
|---|
| 27 | |
|---|
| 28 | On Windows systems, the Logtalk installer makes the Prolog integration |
|---|
| 29 | shortcuts available from the "Start Menu/Programs/Logtalk" menu. |
|---|
| 30 | |
|---|
| 31 | The first run of the B-Prolog, Ciao, and XSB integration scripts must be |
|---|
| 32 | made by an user with administrative rights (on POSIX systems, run them |
|---|
| 33 | once as root or using sudo; in Windows systems run them once from an |
|---|
| 34 | administrative account). |
|---|
| 35 | |
|---|
| 36 | The GNU Prolog integration script provides adequate performance for |
|---|
| 37 | development. For production environments, improved performance can be |
|---|
| 38 | achieved by generating a new GNU-Prolog top-level that includes Logtalk. |
|---|
| 39 | |
|---|
| 40 | The SWI-Prolog integration script assumes XPCE is installed. If that's |
|---|
| 41 | not the case, comment out the loading of the file "xpcehook.pl" on the |
|---|
| 42 | "integration/logtalk_swi.pl" file. |
|---|
| 43 | |
|---|
| 44 | Other Prolog compilers require manual steps for integration with Logtalk. |
|---|
| 45 | See the "configs/NOTES.txt" file for details. |
|---|
| 46 | |
|---|
| 47 | The environment variables LOGTALKHOME and LOGTALKUSER should be defined |
|---|
| 48 | in order to run the integration scripts (see the "INSTALL.txt" file for |
|---|
| 49 | details on setting the variables). |
|---|
| 50 | |
|---|
| 51 | Note that the integration scripts and shortcuts may fail if you use non- |
|---|
| 52 | standard locations for your Prolog compilers. |
|---|
| 53 | |
|---|
| 54 | Depending on the size and complexity of your Logtalk applications, you |
|---|
| 55 | may need to change the integration scripts in order to allocate more |
|---|
| 56 | memory to the back-end Prolog compilers. Please consult the documentation |
|---|
| 57 | on the Prolog compilers you intend to use for details. |
|---|
| 58 | |
|---|
| 59 | All the scripts accept command-line options, which are passed straight to |
|---|
| 60 | the back-end Prolog compiler. For example (on a POSIX operating-system, |
|---|
| 61 | using SWI-Prolog as the back-end compiler): |
|---|
| 62 | |
|---|
| 63 | % swilgt -g "write('Hello world!'), nl" |
|---|
| 64 | |
|---|
| 65 | However, keep in mind that the integration scripts already use the back-end |
|---|
| 66 | Prolog command-line option that allows a initialization file to be loaded |
|---|
| 67 | in order to bootstrap Logtalk. See the scripts/shortcut files for details. |
|---|