diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-25 16:30:49 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-25 16:31:09 -0700 |
| commit | 5d59d510cd6fdc8553250e5ec10f19a285e8878c (patch) | |
| tree | 69d9a2646ed59746500fc9c62a04294a1019d381 /tests/object.nom | |
| parent | 50a092e4b5cb82131c0c8f6f46c7d21a42198858 (diff) | |
Removing end-of-line ":" and "(..)" for blocks (they just use
indentation now).
Diffstat (limited to 'tests/object.nom')
| -rw-r--r-- | tests/object.nom | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/object.nom b/tests/object.nom index ab87fc7..a986abf 100644 --- a/tests/object.nom +++ b/tests/object.nom @@ -2,16 +2,16 @@ use "core" use "lib/object2.nom" #.. - immediately: - define object "Dog": - action [bark]: + immediately + define object "Dog" + action [bark] %barks <- ("Bark!" for all 1 to (@%barks)) return (%barks joined with " ") - action [get pissed off]: + action [get pissed off] (@%barks) +<- 1 %d <- (new Dog {barks:2}) - as %d: + as %d assume ((@) = %d) assume ((@%barks) = 2) assume ((bark) = "Bark! Bark!") |
