- Installing
- Hello World
- Spaces
- Identation
- Basics
- Comments
- Output
- ++ method
- Assignments and types
- Operator Precedence
- String interpolation
- Input
- Simple arithmetic
- Multiline strings
- Assert
- Arrays and literal arrays
- Literal intervals
- If, for, while and repeat-until
- Message sends
- Conversion between basic type values
- Anonymous functions
- Evaluating an anonymous function
- Functions with method foreach
- Prototypes
- Packages
- Gradual typing
- Generic prototypes
- Important metaobjects
- The CyanInterpreter prototype
Spaces and spacing rules
Every operator but +, -, *, /, %, ~, !, .., and ..< should be preceded and followed by a white space. That is, all binary operators but the arithmetical ones (+, -, *, /, %) should be surrounded by white spaces, aswell as assignments and if, else and for statements These are illegal statements:
if+1 < 0 { ... } if i < j{ ... } if i< j{ ... }if i
if i < j {a = 0;} a= 0; a =0; if i < j&& j < k { ... }
However, these are legal because they’re arithmetic operators:
a = a+b; a = a*b;