aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-12 22:25:08 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-12 22:25:08 -0700
commitac8dcb2ebf8b1b07b115a0e0d321079e3c103a91 (patch)
treed8d560b58eab3123508b808ddaff9b9e84b33ddb /examples
parent54c29594097f44fd2b15b253c90bedeca03690a7 (diff)
Tweaks to the tutorial.
Diffstat (limited to 'examples')
-rw-r--r--examples/tutorial.nom6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tutorial.nom b/examples/tutorial.nom
index 2617964..147a292 100644
--- a/examples/tutorial.nom
+++ b/examples/tutorial.nom
@@ -178,12 +178,12 @@ any of [0,0,0,0,1,0,0]
(# Macros: #)
(# The "lua block %" and "lua expr %" macros can be used to write raw lua code: #)
-rule "say time":
+rule "say the time":
lua block ".."
|io.write("The OS time is: ")
|io.write(tostring(os.time()).."\n")
-say time
-printf ["Math expression: ", lua expr "(1 + 2*3 + 3*4)^2"]
+say the time
+printf ["Math expression result is: ", lua expr "(1 + 2*3 + 3*4)^2"]
(# In the lua environment, "vars" can be used to get local variables/function args, and
"compiler" can be used to access the compiler, function defs, and other things #)
rule "square root of %n":