Add mini-descriptions to the keywords

This commit is contained in:
Teascade 2017-08-26 23:59:29 +00:00
parent 4a4e275e55
commit 11f34f933f
1 changed files with 8 additions and 8 deletions

View File

@ -187,17 +187,17 @@ The following keywords are specified to execute an action.
- [`let`](#let) initializes a new variable. - [`let`](#let) initializes a new variable.
- [`if`](#if) enters the scope once if the condition is met. - [`if`](#if) enters the scope once if the condition is met.
- [`else`](#else) - [`else`](#else) enters the scope if the if before failed.
- [`def`](#def) defines a new function. - [`def`](#def) defines a new function.
- [`while`](#while) functions like `if`, but enters the scope as long as the condition is met. - [`while`](#while) functions like `if`, but enters the scope as long as the condition is met.
- [`for`](#for) initializes a scope which will be ran a number of times specified after the `for`. - [`for`](#for) initializes a scope which will be ran a number of times specified after the `for`.
- [`break`](#break) - [`break`](#break) breaks the loop prematurely.
- [`continue`](#continue) - [`continue`](#continue) skips the rest of the loop's body for a new iteration.
- [`unwrap`](#unwrap) - [`unwrap`](#unwrap) unwraps an optional-type variable.
- [`some`](#some) - [`some`](#some) wraps a variable into an optional.
- [`exists`](#exists) - [`exists`](#exists) tests weather an optional is not empty.
- [`empty`](#empty) - [`empty`](#empty) value to set in an optional variable.
- [`as`](#as) - [`as`](#as) casts the leftside value into the type on the rightside of this keyword.
- [All operators](#operators) are also somewhat considered as keywords. - [All operators](#operators) are also somewhat considered as keywords.
#### `let` #### `let`