mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Add nil expression and fix return behavior with nil expression
This commit is contained in:
parent
6488bef75c
commit
b9c6d1d704
10 changed files with 84 additions and 21 deletions
|
|
@ -255,7 +255,7 @@ Paragraphs always have the following variable defined in its namespace by defaul
|
|||
:42 foo
|
||||
```
|
||||
|
||||
* `@`: return line. Can be followed by an [expression](#expressions). Exit the current function and returns the expression's value.
|
||||
* `@`: return line. Can be followed by an [expression](#expressions); otherwise nil expression is assumed. Exit the current function and returns the expression's value.
|
||||
|
||||
```
|
||||
$ hey
|
||||
|
|
@ -417,7 +417,7 @@ Note that these are *not* Lua expressions.
|
|||
|
||||
Default types are:
|
||||
|
||||
* `nil`: nil.
|
||||
* `nil`: nil. Can be defined using empty parantheses `()`.
|
||||
|
||||
* `number`: a number. Can be defined similarly to Lua number literals.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue