diff options
author | Li Jin <dragon-fly@qq.com> | 2022-09-30 11:29:41 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-09-30 11:29:41 +0800 |
commit | 5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2 (patch) | |
tree | 5c5c0ecdab0d19544652bc05b70d8131e1645337 /spec/inputs/loops.yue | |
parent | a6b6753fda9745f316f3236462b74794b35b85c9 (diff) | |
download | yuescript-5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2.tar.gz yuescript-5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2.tar.bz2 yuescript-5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2.zip |
fix issue #81, refactor continue with gotos.
Diffstat (limited to 'spec/inputs/loops.yue')
-rw-r--r-- | spec/inputs/loops.yue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/inputs/loops.yue b/spec/inputs/loops.yue index d03e661..d997c65 100644 --- a/spec/inputs/loops.yue +++ b/spec/inputs/loops.yue | |||
@@ -111,10 +111,10 @@ until a == 10 | |||
111 | 111 | ||
112 | x = 0 | 112 | x = 0 |
113 | repeat | 113 | repeat |
114 | x += 1 | 114 | x += 1 |
115 | y = x | 115 | y = x |
116 | continue if x < 5 | 116 | continue if x < 5 |
117 | print y | 117 | print y |
118 | until y == 10 | 118 | until y == 10 |
119 | 119 | ||
120 | a = 3 | 120 | a = 3 |