From ac8dcb2ebf8b1b07b115a0e0d321079e3c103a91 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 12 Sep 2017 22:25:08 -0700 Subject: Tweaks to the tutorial. --- examples/tutorial.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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": -- cgit v1.2.3