diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-19 17:00:10 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-19 17:00:10 -0700 |
| commit | b98059261c173dab8d919e7f9a93d44c5de0329d (patch) | |
| tree | b7fdbfe9c746dc2f52a25e0dd2715c769a371d8c /examples/sample_code.nom | |
| parent | 443f8c73bb67e2fb085c5595add10b98f4696805 (diff) | |
Abbreviated "lua code" to "lua>" and "lua expr" to "=lua" and "lua
block" to "lua do>"
Diffstat (limited to 'examples/sample_code.nom')
| -rw-r--r-- | examples/sample_code.nom | 12 |
1 files changed, 5 insertions, 7 deletions
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 |
