aboutsummaryrefslogtreecommitdiff
path: root/examples/sample_code.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-20 05:02:53 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-20 05:02:53 -0700
commit0750d642624b2262afdb4dd17b275a16e96971b5 (patch)
tree0d526e928115238862375441f5e4176638d07eb4 /examples/sample_code.nom
parent18365e02b14686e9ad26d1fbc5ac19984b73da6b (diff)
Updated all the code to work with the latest nomsu.
Diffstat (limited to 'examples/sample_code.nom')
-rw-r--r--examples/sample_code.nom33
1 files changed, 12 insertions, 21 deletions
diff --git a/examples/sample_code.nom b/examples/sample_code.nom
index f8315a8..e2b3a62 100644
--- a/examples/sample_code.nom
+++ b/examples/sample_code.nom
@@ -97,40 +97,31 @@ say (..)
3 * 4
when:
- when %x == 1:
+ ? %x == 1:
say "one"
- when %x == 2:
+ ? %x == 2:
say "two"
- when %x:
+ ? %x:
say "nonzero"
- else:
+ ?:
say "???"
-when:
- * %x == 1:
+when %x:
+ == 1:
say "one"
- * %x == 2:
+ == 2:
say "two"
- * %x:
- say "nonzero"
- *:
- say "???"
-
-when %x ==:
- * 1:
- say "one"
- * 2:
- say "two"
- *:
+ ==:
say "???"
if %x:
say "one"
-..else: if %y:
- say "two"
..else:
- say "three"
+ if %y:
+ say "two"
+ ..else:
+ say "three"
say ".."