working on docs

This commit is contained in:
cozis
2021-11-05 15:27:34 +01:00
parent 1769ffc995
commit b2dca9c40b
2 changed files with 220 additions and 5 deletions
+3 -5
View File
@@ -1,7 +1,7 @@
# ------------------------------------------------------------------------- #
# --- Functions ----------------------------------------------------------- #
#
# Functions can be defined using the following syntax:
fun say_hello_to(name)
@@ -54,10 +54,10 @@ test_func = 5;
# test_func();
#
# ------------------------------------------------------------------------- #
# --- Returns ------------------------------------------------------------- #
#
# Functions can return values exactly like in other languages:
fun multiply(x, y)
@@ -69,7 +69,6 @@ r = multiply(p, q);
print(p, ' * ', q, ' = ', r, '\n');
#
# ------------------------------------------------------------------------- #
# --- Scopes -------------------------------------------------------------- #
#
@@ -111,6 +110,5 @@ print = get_print_back();
print('Hei! Print is back!\n');
#
# ------------------------------------------------------------------------- #
# ------------------------------------------------------------------------- #