aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-14 04:23:18 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-14 04:23:18 -0700
commit02cda763c58e988301fe7819c9a12d9268e702c7 (patch)
treee9d0b5ec632194b9cd0fa3c938d4478a1a96464b
parent7c02fe05646c7d2e3b268375cf014ff27db1af22 (diff)
Added dict example to tutorial
-rw-r--r--examples/tutorial.nom8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/tutorial.nom b/examples/tutorial.nom
index 14a487f..84f4a21 100644
--- a/examples/tutorial.nom
+++ b/examples/tutorial.nom
@@ -13,7 +13,7 @@ run file "core.nom"
# Strings:
"asdf"
-".."|This is a multi-line string with a #.. fake comment
+".."|This is a multi-line string
|that starts with ".." and includes each indented line that starts with a "|"
|until the indentation ends
@@ -25,6 +25,12 @@ run file "core.nom"
5
6,7,8
+# Dicts:
+dict [["x", 99], ["y", 101]]
+dict [..]
+ ["z", 222]
+ [383, "howdy"]
+
# Function calls:
say "Hello world!"