aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-12-30 23:58:47 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-12-30 23:58:47 -0800
commit5059c081ac624ede925d5256885509ddd17181c6 (patch)
tree0457d135e5193126bf73466bfaae09df94ab8a7d /examples
parentec69ee6f62016a2edcc13e3183cbe4cadd75717f (diff)
Auto-upgraded code.
Diffstat (limited to 'examples')
-rw-r--r--examples/how_do_i.nom9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom
index cc1f699..b04e9f4 100644
--- a/examples/how_do_i.nom
+++ b/examples/how_do_i.nom
@@ -248,8 +248,7 @@ say (2 + 3)
# If you need to keep going after an indented region, you can start the next line with ".."
say both "Very long first argument that needs its own line" and also
-.."short second arg"
-
+ "short second arg"
(my favorite number) means (21 + 2)
# This can be nested:
@@ -272,7 +271,11 @@ say "The square root of 2 is \(square root of 2)"
# Or to transform nomsu code into custom lua code using "compile % to %"
(debug only $body) compiles to:
if $DEBUG_ENABLED:
- return (Lua "-- Debug code:\n\($body as lua)")
+ return
+ Lua ("
+ -- Debug code:
+ \($body as lua)
+ ")
..else:
return (Lua "-- (debug code removed for production)")
$DEBUG_ENABLED = (yes)