aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/how_do_i.nom11
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom
index 9cfc0dc..d176ed8 100644
--- a/examples/how_do_i.nom
+++ b/examples/how_do_i.nom
@@ -244,9 +244,6 @@ say (1 ++ (2 * 3))
### Expressions can be grouped by enclosing parentheses:
say (2 + 3)
-### Or by (..) followed by an indented region
-say (2 + 3)
-
### If you need to keep going after an indented region, you can start the next line with ".."
say both "Very very very very long first argument that needs its own line"
..and also "short second arg"
@@ -280,7 +277,7 @@ say "The square root of 2 is \(square root of 2)"
### Macros can be defined to transform one bit of nomsu code into another using "parse $ as $":
(if $condition is untrue $body) parses as (if (not $condition) $body)
-### Or to transform nomsu code into custom lua code using "compile $ to $"
+### Or to transform nomsu code into custom lua code using "$ compiles to $"
(debug only $body) compiles to:
if $DEBUG_ENABLED:
return
@@ -294,10 +291,8 @@ say "The square root of 2 is \(square root of 2)"
$DEBUG_ENABLED = (yes)
### Constants can be defined as macros
-(TWENTY) parses as 20
-
### When they're invoked, they'll need parentheses just like a function call
-(TWENTY ONE) parses as 21
+(TWENTY) parses as 20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -356,4 +351,4 @@ say
if (($best == (nil)) or ($key > $best_key)):
[$best, $best_key] = [$x, $key]
- return $best \ No newline at end of file
+ return $best