From 01aa199f7acfe9af57c5970793259b36e060fd11 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 15 May 2018 16:36:21 -0700 Subject: Adding support for coroutines, and cleaning up comment syntax. --- tests/control_flow.nom | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/control_flow.nom') diff --git a/tests/control_flow.nom b/tests/control_flow.nom index 4fed7b4..899da22 100644 --- a/tests/control_flow.nom +++ b/tests/control_flow.nom @@ -200,3 +200,15 @@ assume for all [1,2,3]: %n +<- % return %n ..= 6 + +%nums <- [] +for all + values + -> 4 + -> 5 + -> 6 +.. + add % to %nums + +assume (%nums = [4,5,6]) or barf "Coroutine iteration failed" + -- cgit v1.2.3