From 0750d642624b2262afdb4dd17b275a16e96971b5 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 20 Sep 2017 05:02:53 -0700 Subject: Updated all the code to work with the latest nomsu. --- examples/sample_code.nom | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) (limited to 'examples/sample_code.nom') 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 ".." -- cgit v1.2.3