diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-12 22:25:08 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-12 22:25:08 -0700 |
| commit | ac8dcb2ebf8b1b07b115a0e0d321079e3c103a91 (patch) | |
| tree | d8d560b58eab3123508b808ddaff9b9e84b33ddb | |
| parent | 54c29594097f44fd2b15b253c90bedeca03690a7 (diff) | |
Tweaks to the tutorial.
| -rw-r--r-- | examples/tutorial.nom | 6 |
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": |
