From 4d61a00ebc5b956da72525de0e180de28a1e8ac6 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 13 May 2021 10:38:31 +0800 Subject: fix issue #52, add until statement. --- spec/inputs/loops.yue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'spec') diff --git a/spec/inputs/loops.yue b/spec/inputs/loops.yue index 5708809..3191000 100644 --- a/spec/inputs/loops.yue +++ b/spec/inputs/loops.yue @@ -109,6 +109,22 @@ repeat print a until a == 10 +a = 3 +until a == 0 + a -= 1 +done = false +until done do done = true +repeat + print "hello" +until true +until done + x = 10 + repeat + x -= 1 + until x == 0 +until cond + print "okay" + for x=1,10 continue if x > 3 and x < 7 print x -- cgit v1.2.3-55-g6feb