root/tags/lgt2150/QUICK_START

Revision 377, 2.7 KB (checked in by pmoura, 6 years ago)

Updated release number to 2.15.0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1=================================================================
2Logtalk - Object oriented extension to Prolog
3Release 2.15.0
4
5Copyright (c) 1998-2003 Paulo Moura.  All Rights Reserved.
6=================================================================
7
8
9Quick start
10===========
11
12
131. Open the manuals/index.html file with a web browser.
14
152. Select the Tutorial link. This will provide you with a basic understanding
16of the main Logtalk concepts.
17
183. Go back to the index.html file and select the User Manual link and then
19the Installing and running Logtalk link. This will provide you with a basic
20understanding of how to start Logtalk and compile and load Logtalk code.
21
22
23Assuming that Logtalk supports your Prolog compiler:
24
251. Read the NOTES file in the configs sub-directory to check if any patch
26or workaround is needed for your compiler.
27
282. Start your Prolog compiler.
29
303. Compile and load the config file for your Prolog compiler.
31
324. Compile and load the Logtalk pre-processor/runtime found in the compiler
33sub-directory.
34
35Note that both the configuration files and the compiler/pre-processor
36files are Prolog files. The predicate called to load these files depends
37on your Prolog compiler. In case of doubt, consult your Prolog compiler
38reference manual or take a look at the definition of the predicate
39$lgt_load_prolog_code/1 in the configuration file.
40
41
42Now you can try some of the included examples:
43
441. Open the examples sub-directory. There you find several sub-directories
45with ready to run examples and a NOTES file containing a brief description
46of each example. Select and open one of the examples sub-directory.
47
483. Read the example NOTES file. Some examples are dependent on other examples
49or on library objects. You may need to load additional files before running
50the chosen example.
51
524. Change the working directory of your Prolog compiler to the example
53directory. If you don't know what predicate to use, check the configs/NOTES
54file or your Prolog reference manual.
55
565. Compile and load the file named <example name>.loader. This will compile
57and load all the example files. Note that the loader file is a Prolog file.
58
596. Open the example SCRIPT file. One by one, copy&paste or drag&drop the
60queries in the file to your Prolog top-level.
61
627. Enjoy!
63
64
65Ready to start writing your own programs?
66
671. Take a look at the wenv sub-directory. There you will find syntax
68configuration files for popular text editors that enable syntax coloring
69when editing Logtalk source files.
70
712. Create a sub-directory with a suitable name to hold all the files of your
72program.
73
743. Copy to this sub-directory a *.loader file form one of the examples and
75modify it to load your own object files.
Note: See TracBrowser for help on using the browser.