Category:Elena: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
ELENA is a general-purpose, object-oriented, polymorphic language with late binding. It features message dispatching/manipulation, dynamic object mutation, a script engine / interpreter and mix-ins. |
ELENA is a general-purpose, object-oriented, polymorphic language with late binding. It features message dispatching/manipulation, dynamic object mutation, a script engine / interpreter and mix-ins. |
||
The simplest program |
|||
=== |
|||
To create a simple console program we have to declare the **program** symbol in the project root namespace: |
To create a simple console program we have to declare the **program** symbol in the project root namespace: |
||
Line 57: | Line 58: | ||
**Console::write** method is similar to **writeLine** except that it writes to the output screen without a new line character. |
**Console::write** method is similar to **writeLine** except that it writes to the output screen without a new line character. |
||
Declaring a variable |
|||
=== |
|||
A variable can be declared in an assignment statement starting with **var** attribute: |
A variable can be declared in an assignment statement starting with **var** attribute: |
||
Line 129: | Line 131: | ||
system'startUp(5) |
system'startUp(5) |
||
Basic Types |
|||
=== |
|||
The Boolean Type |
|||
===== |
|||
Boolean type is used in conditional operations and may accept only two Boolean literals - **true** and **false**. |
Boolean type is used in conditional operations and may accept only two Boolean literals - **true** and **false**. |