From c6e90a619d4bf027fa0c9fd81c71a6227b8cb3ca Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 15 Feb 2021 13:17:47 +0800 Subject: fix some ambiguous syntax. --- spec/inputs/goto.mp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/inputs') diff --git a/spec/inputs/goto.mp b/spec/inputs/goto.mp index 3410ca3..1197251 100644 --- a/spec/inputs/goto.mp +++ b/spec/inputs/goto.mp @@ -7,7 +7,7 @@ do ::done:: do - for z = 1, 10 for y = 1, 10 for x = 1, 10 + for z = 1, 10 do for y = 1, 10 do for x = 1, 10 if x^2 + y^2 == z^2 print 'found a Pythagorean triple:', x, y, z goto done @@ -15,7 +15,7 @@ do do for z = 1, 10 - for y = 1, 10 for x = 1, 10 + for y = 1, 10 do for x = 1, 10 if x^2 + y^2 == z^2 print 'found a Pythagorean triple:', x, y, z print 'now trying next z...' @@ -24,7 +24,7 @@ do do ::redo:: - for x = 1, 10 for y = 1, 10 + for x = 1, 10 do for y = 1, 10 if not f x, y then goto continue if not g x, y then goto skip if not h x, y then goto redo -- cgit v1.2.3-55-g6feb