From 5d59d510cd6fdc8553250e5ec10f19a285e8878c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 25 Apr 2018 16:30:49 -0700 Subject: Removing end-of-line ":" and "(..)" for blocks (they just use indentation now). --- tests/object.nom | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/object.nom') 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!") -- cgit v1.2.3