diff options
author | Li Jin <dragon-fly@qq.com> | 2023-06-29 10:58:56 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-06-29 10:58:56 +0800 |
commit | c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef (patch) | |
tree | dcacf24e010346eb03e834d8081eb81e26f5c7ff /spec/inputs | |
parent | 51faef5288a64a84b8f8e5cea8631c7518b94411 (diff) | |
download | yuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.tar.gz yuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.tar.bz2 yuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.zip |
fix issue #139.
Diffstat (limited to 'spec/inputs')
-rw-r--r-- | spec/inputs/goto.yue | 8 | ||||
-rw-r--r-- | spec/inputs/import.yue | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/inputs/goto.yue b/spec/inputs/goto.yue index 61584ca..3f3ae89 100644 --- a/spec/inputs/goto.yue +++ b/spec/inputs/goto.yue | |||
@@ -16,10 +16,10 @@ do | |||
16 | do | 16 | do |
17 | for z = 1, 10 | 17 | for z = 1, 10 |
18 | for y = 1, 10 do for x = 1, 10 | 18 | for y = 1, 10 do for x = 1, 10 |
19 | if x^2 + y^2 == z^2 | 19 | if x^2 + y^2 == z^2 |
20 | print 'found a Pythagorean triple:', x, y, z | 20 | print 'found a Pythagorean triple:', x, y, z |
21 | print 'now trying next z...' | 21 | print 'now trying next z...' |
22 | goto zcontinue | 22 | goto zcontinue |
23 | ::zcontinue:: | 23 | ::zcontinue:: |
24 | 24 | ||
25 | do | 25 | do |
diff --git a/spec/inputs/import.yue b/spec/inputs/import.yue index fe5caf5..73e05d2 100644 --- a/spec/inputs/import.yue +++ b/spec/inputs/import.yue | |||
@@ -7,7 +7,7 @@ import x, \y, z from items | |||
7 | 7 | ||
8 | import master, \ghost from find "mytable" | 8 | import master, \ghost from find "mytable" |
9 | 9 | ||
10 | _table_0 = 232 | 10 | _obj_0 = 232 |
11 | 11 | ||
12 | import something from a table | 12 | import something from a table |
13 | 13 | ||