PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

Unknown | 46 lines | 44 code | 2 blank | 0 comment | 0 complexity | 3a720281f2fdd060815f5390e0e8ee51 MD5 | raw file
 1-- An ACE file defines the environment for a project, together with its root
 2-- class and initial creation procedure.
 4-- ACE is an abbreviation of Assembly of Classes in Eiffel.
 6-- Use of an ACE file obviates the need for specifying many options on the
 7-- command line and ensures consistency between successive compilations or
 8-- other operations on the project. Such consistency makes it easier to test
 9-- and debug, since changes from one compilation to the next are guaranteed to
10-- be limited to coding changes rather than to changes in the compilation
11-- environment.
13-- To launch the compilation with this ACE file, just type:
15--               compile example1.ace
17-- This is a very simple example with the most basic ACE file.
20       -- The system section is introduced by the keyword system followed by
21       -- the name to be given to the executable program which will be produced
22       -- by a compilation. The system name should be enclosed in double
23       -- quotes.
24   "hello"
27       -- The root section defines the root class of the system and the initial
28       -- creation procedure. The creation procedure is the routine which is
29       -- executed first when the executable program is run; it is equivalent
30       -- to main() in a C program. This procedure must be a procedure in the
31       -- root class and must be declared as a creation procedure in that
32       -- class.
33   HELLO_WORLD: main
36       -- The cluster section is introduced by the keyword cluster and defines
37       -- an ordered list of clusters. Roughly speaking, a cluster can be
38       -- considered as a directory in which Eiffel source files are to be
39       -- searched for. The order of this list of clusters is important because
40       -- clusters are considered sequentially when searching for an Eiffel
41       -- source file. The first class file found in the search is the one that
42       -- will be used.  Also note that one may only use the / character as the
43       -- directory separator.
44   "${path_tutorial}"
45   "${path_liberty_core}/"