| 1 | ================================================================= |
|---|
| 2 | Logtalk - Object oriented extension to Prolog |
|---|
| 3 | Release 2.11.0 |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved. |
|---|
| 6 | ================================================================= |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | Quick start |
|---|
| 10 | =========== |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | 1. Open the manuals/index.html file with a web browser. |
|---|
| 14 | |
|---|
| 15 | 2. Select the Tutorial link. This will provide you with a basic understanding |
|---|
| 16 | of the main Logtalk concepts. |
|---|
| 17 | |
|---|
| 18 | 3. Go back to the index.html file and select the User Manual link and then |
|---|
| 19 | the Installing and running Logtalk link. This will provide you with a basic |
|---|
| 20 | understanding of how to start Logtalk and compile and load Logtalk code. |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | Assuming that Logtalk supports your Prolog compiler: |
|---|
| 24 | |
|---|
| 25 | 1. Read the NOTES file in the configs sub-directory to check if any patch |
|---|
| 26 | or workaround is needed for your compiler. |
|---|
| 27 | |
|---|
| 28 | 2. Start your Prolog compiler. |
|---|
| 29 | |
|---|
| 30 | 3. Compile and load the config file for your Prolog compiler. |
|---|
| 31 | |
|---|
| 32 | 4. Compile and load the Logtalk pre-processor/runtime found in the compiler |
|---|
| 33 | sub-directory. |
|---|
| 34 | |
|---|
| 35 | Note that both the configuration files and the compiler/pre-processor |
|---|
| 36 | files are Prolog files. The predicate called to load these files depends |
|---|
| 37 | on your Prolog compiler. In case of doubt, consult your Prolog compiler |
|---|
| 38 | reference manual or take a look at the definition of the predicate |
|---|
| 39 | lgt_load_prolog_code/1 in the configuration file. |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | Now you can try some of the included examples: |
|---|
| 43 | |
|---|
| 44 | 1. Open the examples sub-directory. There you find several sub-directories |
|---|
| 45 | with ready to run examples and a NOTES file containing a brief description |
|---|
| 46 | of each example. Select and open one of the examples sub-directory. |
|---|
| 47 | |
|---|
| 48 | 3. Read the example NOTES file. Some examples are dependent on other examples |
|---|
| 49 | or on library objects. You may need to load additional files before running |
|---|
| 50 | the chosen example. |
|---|
| 51 | |
|---|
| 52 | 4. Change the working directory of your Prolog compiler to the example |
|---|
| 53 | directory. If you don't know what predicate to use, check the configs/NOTES |
|---|
| 54 | file or your Prolog reference manual. |
|---|
| 55 | |
|---|
| 56 | 5. Compile and load the file named <example name>.loader. This will compile |
|---|
| 57 | and load all the example files. Note that the loader file is a Prolog file. |
|---|
| 58 | |
|---|
| 59 | 6. Open the example SCRIPT file. One by one, copy&paste or drag&drop the |
|---|
| 60 | queries in the file to your Prolog top-level. |
|---|
| 61 | |
|---|
| 62 | 7. Enjoy! |
|---|