Content deleted Content added
→top: “human languages” to “natural languages” where the latter is correct |
→Syntax: grammatical number; notation |
||
(3 intermediate revisions by the same user not shown) | |||
Line 25:
==Syntax==
Citrine has a very limited syntax
* {{code|Nil}}
Line 33:
* <code>{ ...params.. ...block of code... }</code>
The code block literal uses a ''pipe'' symbol ⟨|⟩ to separate the parameters from the logic
parameters, the backslash should be used instead.
Citrine only supports full-line comments, which start with
A Citrine program is basically a sequence of messages sent to objects. For instance, to determine whether 5 is an even number, the message 'even?' is sent to the number 5.
|