diff options
author | Li Jin <dragon-fly@qq.com> | 2021-02-17 11:22:07 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-02-17 11:22:07 +0800 |
commit | 7066392d1c974065181d95d93274136dcd625d43 (patch) | |
tree | cf51eafc2c52cbc12246a306bca172d799193d30 /spec/inputs/import.yue | |
parent | 90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff) | |
download | yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.gz yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.bz2 yuescript-7066392d1c974065181d95d93274136dcd625d43.zip |
stop reusing variables, rename project.
Diffstat (limited to 'spec/inputs/import.yue')
-rw-r--r-- | spec/inputs/import.yue | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/spec/inputs/import.yue b/spec/inputs/import.yue new file mode 100644 index 0000000..e075404 --- /dev/null +++ b/spec/inputs/import.yue | |||
@@ -0,0 +1,68 @@ | |||
1 | |||
2 | |||
3 | import hello from yeah | ||
4 | import hello, world from table["cool"] | ||
5 | |||
6 | import a, \b, c from items | ||
7 | |||
8 | |||
9 | import master, \ghost from find "mytable" | ||
10 | |||
11 | |||
12 | a, yumm = 3434, "hello" | ||
13 | |||
14 | |||
15 | _table_0 = 232 | ||
16 | |||
17 | import something from a table | ||
18 | |||
19 | |||
20 | if indent | ||
21 | import okay, \well from tables[100] | ||
22 | |||
23 | do | ||
24 | import a, b, c from z | ||
25 | |||
26 | do | ||
27 | import a, | ||
28 | b, c from z | ||
29 | |||
30 | do | ||
31 | import a | ||
32 | b | ||
33 | c from z | ||
34 | |||
35 | do | ||
36 | import | ||
37 | a | ||
38 | b | ||
39 | c from z | ||
40 | |||
41 | |||
42 | do | ||
43 | import | ||
44 | a | ||
45 | b | ||
46 | c | ||
47 | from z | ||
48 | |||
49 | |||
50 | do | ||
51 | import 'module' | ||
52 | import 'module_x' | ||
53 | import "d-a-s-h-e-s" | ||
54 | import "module.part" | ||
55 | |||
56 | do | ||
57 | import "player" as Player | ||
58 | import "lpeg" as {:C, :Ct, :Cmt} | ||
59 | import "export" as {Something:{umm:{ch}}} | ||
60 | |||
61 | do | ||
62 | global * | ||
63 | import 'module' | ||
64 | import 'module_x' | ||
65 | import "org.package.module-y" | ||
66 | |||
67 | do | ||
68 | import "org.package.module" as {function:func, if:ifVar} | ||