From b98059261c173dab8d919e7f9a93d44c5de0329d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 19 Oct 2017 17:00:10 -0700 Subject: Abbreviated "lua code" to "lua>" and "lua expr" to "=lua" and "lua block" to "lua do>" --- examples/sample_code.nom | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'examples/sample_code.nom') diff --git a/examples/sample_code.nom b/examples/sample_code.nom index 1e1ccc6..08f2af5 100644 --- a/examples/sample_code.nom +++ b/examples/sample_code.nom @@ -131,14 +131,12 @@ say ".." | and an interpolated expression: \2 + 5\ rule [%n bottles] =: - lua block ".." - |do - | print("running raw lua code...") - | for i=\(%n),1,-1 do - | print(tostring(i).." bottles of beer on the wall. Take one down, pass it around,") - | end - | print("no more bottles of beer on the wall.") + lua do> ".." + |print("running raw lua code...") + |for i=\(%n),1,-1 do + | print(tostring(i).." bottles of beer on the wall. Take one down, pass it around,") |end + |print("no more bottles of beer on the wall.") nil 9 bottles -- cgit v1.2.3