Tweaks to the tutorial.
This commit is contained in:
parent
54c2959409
commit
ac8dcb2ebf
@ -178,12 +178,12 @@ any of [0,0,0,0,1,0,0]
|
|||||||
|
|
||||||
(# Macros: #)
|
(# Macros: #)
|
||||||
(# The "lua block %" and "lua expr %" macros can be used to write raw lua code: #)
|
(# The "lua block %" and "lua expr %" macros can be used to write raw lua code: #)
|
||||||
rule "say time":
|
rule "say the time":
|
||||||
lua block ".."
|
lua block ".."
|
||||||
|io.write("The OS time is: ")
|
|io.write("The OS time is: ")
|
||||||
|io.write(tostring(os.time()).."\n")
|
|io.write(tostring(os.time()).."\n")
|
||||||
say time
|
say the time
|
||||||
printf ["Math expression: ", lua expr "(1 + 2*3 + 3*4)^2"]
|
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
|
(# 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 #)
|
"compiler" can be used to access the compiler, function defs, and other things #)
|
||||||
rule "square root of %n":
|
rule "square root of %n":
|
||||||
|
Loading…
Reference in New Issue
Block a user