Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente | |||
| en:presentation [2026/03/08 17:26] – [W Language Description] root | en:presentation [2026/04/03 12:13] (Version actuelle) – root | ||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| Comments are written after the semicolon (;). They can appear either alone on a line or at the end of a line after an instruction. | Comments are written after the semicolon (;). They can appear either alone on a line or at the end of a line after an instruction. | ||
| Empty lines are considered comments. | Empty lines are considered comments. | ||
| - | < | + | < |
| ; First comment | ; First comment | ||
| ; Other comment | ; Other comment | ||
| Ligne 20: | Ligne 20: | ||
| During execution, any exception automatically causes a jump to the beginning of the exception block of the current program or subroutine. This is the equivalent of a systematic '' | During execution, any exception automatically causes a jump to the beginning of the exception block of the current program or subroutine. This is the equivalent of a systematic '' | ||
| Let's revisit the classic //Hello world// example : | Let's revisit the classic //Hello world// example : | ||
| - | < | + | < |
| ; classic example... | ; classic example... | ||
| Ligne 37: | Ligne 37: | ||
| The source file to be included must be located in the [[w: | The source file to be included must be located in the [[w: | ||
| - | < | + | < |
| include " | include " | ||
| </ | </ | ||
| Ligne 48: | Ligne 48: | ||
| ==== Data Types ==== | ==== Data Types ==== | ||
| Variables must be declared, but without a type, and can be declared anywhere in the code. They only become usable after their declaration; | Variables must be declared, but without a type, and can be declared anywhere in the code. They only become usable after their declaration; | ||
| - | < | + | < |
| ; declaration of 3 variables | ; declaration of 3 variables | ||
| declare x, y, tmp | declare x, y, tmp | ||
| Ligne 71: | Ligne 71: | ||
| === Usage === | === Usage === | ||
| Variables are assigned using the //let// statement. It is possible to // | Variables are assigned using the //let// statement. It is possible to // | ||
| - | < | + | < |
| declare h, n, d | declare h, n, d | ||
| Ligne 90: | Ligne 90: | ||
| Example | Example | ||
| - | < | + | < |
| begin test | begin test | ||
| declare x | declare x | ||