Assert, Exit builtins
* Builtins for assert and exit are added * Tests for assert are added * file operations from previous MR are added to documents * assert and exit are added to documents
This commit is contained in:
parent
270cc32572
commit
2cd5016c1d
6 changed files with 119 additions and 34 deletions
58
Writing.org
58
Writing.org
|
|
@ -283,35 +283,35 @@ The following table is up to date as of Relish 0.3.0. For latest information try
|
|||
- Call ~env~ from a fresh shell: ~(env)~
|
||||
This will output all variables and functions defined
|
||||
- Read the [[file:src/stl.rs][std library declaration code]]
|
||||
| *Control Flow* | *Declaration* | *Shell* | *List* | *Math* | *Strings* | *Boolean* | *Userlib* | *Misc* |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| if | lambda | pipe | car | float | strlen | toggle | reduce | call |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| let | q / quote | load-to-string | len | sub | substr? | bool | prepend | help |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| circuit | def | load / l | cons | mul | echo | and | add-path | env |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| while | get-doc | load-with | cdr | inc | split | eq? | set | eval |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | set-doc | cd | reverse | dec | input | not | map | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | set? | fg | dq | div | concat | or | get-paths | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | | | pop | gte? | string | | cond | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | | | | int | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | | | | mod | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | | | | exp | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | | | | lt? | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | | | | gt? | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | | | | add | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------|
|
||||
| | | | | lte? | | | | |
|
||||
| *Control Flow* | *Declaration* | *Shell* | *List* | *Math* | *Strings* | *Boolean* | *Userlib* | *Misc* | *Files* |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| if | lambda | pipe | car | float | strlen | toggle | reduce | call | read-file |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| let | q / quote | load-to-string | len | sub | substr? | bool | prepend | help | append-file |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| circuit | def | load / l | cons | mul | echo | and | add-path | env | write-file |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| while | get-doc | load-with | cdr | inc | split | eq? | set | eval | exists? |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| assert | set-doc | cd | reverse | dec | input | not | map | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| exit | set? | fg | dq | div | concat | or | get-paths | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| | | | pop | gte? | string | | cond | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| | | | | int | | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| | | | | mod | | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| | | | | exp | | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| | | | | lt? | | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| | | | | gt? | | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| | | | | add | | | | | |
|
||||
|----------------+---------------+----------------+---------+--------+-----------+-----------+-----------+--------+-------------|
|
||||
| | | | | lte? | | | | | |
|
||||
|
||||
To learn how to use a given function use the ~help~ command. See the Documentation section for more information.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue