diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-21 02:33:04 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-21 02:33:04 -0700 |
| commit | 5f2db8da0e99fca282265b232330f3f432b94373 (patch) | |
| tree | 5c27a1f958b55a15b0e35139165c885574d4fa3a /examples/sample_code.nom | |
| parent | 371548150618d5b3501f388972077b5d035f7d8a (diff) | |
Everything fixed up and some reduced lua codespew too!
Diffstat (limited to 'examples/sample_code.nom')
| -rw-r--r-- | examples/sample_code.nom | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/sample_code.nom b/examples/sample_code.nom index e2b3a62..fe73ec7 100644 --- a/examples/sample_code.nom +++ b/examples/sample_code.nom @@ -78,7 +78,7 @@ if 1: yes if 1 (:yes) else (:no) -say (do: return: 5) +say (do: return 5) # Some variables rule [do %one also %two] =: @@ -88,7 +88,7 @@ rule [do %one also %two] =: do: say "one liner" ..also: say "another one liner" -say (do: return: "wow") +say (do: return "wow") say (1 + (-(2 * 3))) @@ -146,7 +146,7 @@ rule [dumsum %nums] =: %sum =: 0 for %n in %nums: %sum +=: %n - return: %sum + return %sum say (dumsum [1,2,3]) |
