aboutsummaryrefslogtreecommitdiff
path: root/doc/syntax.md
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 15:23:18 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 15:23:18 +0100
commit3ba311b0afdf9cc62d630687d171bee0b6435e4a (patch)
tree6df42a2643f5d5bc43ff48641802f37cacf1d035 /doc/syntax.md
parenteebb3581ec688d77ad1d3cda7f85dd7043fde19b (diff)
parentb7ebccfc957095796d5d5343a4c034486a471a7f (diff)
downloaduwu-lang-3ba311b0afdf9cc62d630687d171bee0b6435e4a.tar.xz
Merge branch 'master' of github.com:EliasFleckenstein03/uwulang
Diffstat (limited to 'doc/syntax.md')
-rw-r--r--doc/syntax.md13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/syntax.md b/doc/syntax.md
index aa62fb6..fcb30a0 100644
--- a/doc/syntax.md
+++ b/doc/syntax.md
@@ -18,10 +18,15 @@ other_function_name
An expression is either of these:
- Integer literal: `0`, `1`, `3245`
-- String literal: `"hello, world"`, `""`, ```"this is
-a multiline
-string literal
-"```
+- String literal: `"hello, world"`, `""`,
+
+```
+"this is
+a multiline
+string literal
+"
+```
+
- Argument number: `$0`, `$1`, `$5`
- Function reference: `&function_name`
- Function call: `function_name(args)` or just `function_name`, where args is a comma-separated list of expressions.