Difference between revisions of "Tutorial tour"

From Liberty Eiffel Wiki
Jump to navigation Jump to search
(I can't read French very well and I don't want to wait for the French version to stabilise)
(following the French version)
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Book]]
 
[[Category:Book]]
   
  +
Welcome in the guided tour of the tutorial!
Hello world... To execute the program, go to the SmartEiffel/tutorial folder and execute the command:
 
   
  +
All the classes in the tutorial are provided with your SmartEiffel installation, int the <code>tutorial</code> directory.
<pre>se c hello_world make -o hello</pre>
 
   
  +
=== Easy starting ===
The command produces an executable, general "hello" or "hello.exe". Run it.
 
   
  +
'''Hello world...''' To execute the program, go to the <code>SmartEiffel/tutorial</code> directory and execute the command:
*** Please wait for the French version to be stable enough
 
  +
*** Thanks :-)
 
  +
se c hello_world make -o hello
  +
  +
The command produces an executable, usually <code>hello</code> or <code>hello.exe</code> depending on the system. Run it.
  +
  +
This unavoidable program is in <code>hello_world.e</code> and lets you grasp the basic concepts of Eiffel. Those concepts are:
  +
* '''Everything is a class'''. In Eiffel, out of classes there is no salvation.
  +
* The program starts by '''creating an object'''. Here, the method is the <code>make</code> creation feature in the class <code>HELLO_WORLD</code>.
  +
* Each file is named after the name of the class, lower-case, with the <code>.e</code> extension.
  +
* Note the special object <code>io</code> that allows to write text on the standard output. We will see that it also allows to read data.
  +
* For the Eiffel syntax, look [[Syntax_diagrams|here]].
  +
  +
Also to look at:
  +
* fibonacci.e
  +
* knight.e
  +
* pyramide.e and pyramide2.e
  +
* gcd
  +
* hanoi
  +
* parking
  +
* triangle
  +
  +
== Some important concepts ==
  +
  +
=== ACE files ===
  +
  +
=== Input-output ===
  +
* io
  +
* directory
  +
* basic_directory?
  +
  +
=== Arguments ===
  +
print_arguments.e
  +
  +
=== Collections ===
  +
including iterator and sorting
  +
  +
=== Manifest notations ===
  +
manifest_notation.e
  +
  +
=== Downcasting ===
  +
downcasting.e
  +
  +
== To go further ==
  +
  +
=== Agents ===
  +
... and tuples
  +
  +
=== external ===
  +
  +
=== cecil ===
  +
  +
=== Memory management ===
  +
memory
  +
  +
== Extension libraries ==
  +
  +
=== Random ===
  +
  +
=== Date & time ===
  +
  +
=== Storable ===
  +
  +
=== Sequencer ===
  +
  +
=== Vision ===
  +
visiopn, signal
  +
  +
=== Network ===
  +
  +
=== Execution ===

Revision as of 13:06, 10 May 2007


Welcome in the guided tour of the tutorial!

All the classes in the tutorial are provided with your SmartEiffel installation, int the tutorial directory.

Easy starting

Hello world... To execute the program, go to the SmartEiffel/tutorial directory and execute the command:

se c hello_world make -o hello

The command produces an executable, usually hello or hello.exe depending on the system. Run it.

This unavoidable program is in hello_world.e and lets you grasp the basic concepts of Eiffel. Those concepts are:

  • Everything is a class. In Eiffel, out of classes there is no salvation.
  • The program starts by creating an object. Here, the method is the make creation feature in the class HELLO_WORLD.
  • Each file is named after the name of the class, lower-case, with the .e extension.
  • Note the special object io that allows to write text on the standard output. We will see that it also allows to read data.
  • For the Eiffel syntax, look here.

Also to look at:

  • fibonacci.e
  • knight.e
  • pyramide.e and pyramide2.e
  • gcd
  • hanoi
  • parking
  • triangle

Some important concepts

ACE files

Input-output

  • io
  • directory
  • basic_directory?

Arguments

print_arguments.e

Collections

including iterator and sorting

Manifest notations

manifest_notation.e

Downcasting

downcasting.e

To go further

Agents

... and tuples

external

cecil

Memory management

memory

Extension libraries

Random

Date & time

Storable

Sequencer

Vision

visiopn, signal

Network

Execution