diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-30 23:58:47 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-30 23:58:47 -0800 |
| commit | 5059c081ac624ede925d5256885509ddd17181c6 (patch) | |
| tree | 0457d135e5193126bf73466bfaae09df94ab8a7d /examples/how_do_i.nom | |
| parent | ec69ee6f62016a2edcc13e3183cbe4cadd75717f (diff) | |
Auto-upgraded code.
Diffstat (limited to 'examples/how_do_i.nom')
| -rw-r--r-- | examples/how_do_i.nom | 9 |
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) |
