aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/import.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-02-17 11:22:07 +0800
committerLi Jin <dragon-fly@qq.com>2021-02-17 11:22:07 +0800
commit7066392d1c974065181d95d93274136dcd625d43 (patch)
treecf51eafc2c52cbc12246a306bca172d799193d30 /spec/inputs/import.yue
parent90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff)
downloadyuescript-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.yue68
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
3import hello from yeah
4import hello, world from table["cool"]
5
6import a, \b, c from items
7
8
9import master, \ghost from find "mytable"
10
11
12a, yumm = 3434, "hello"
13
14
15_table_0 = 232
16
17import something from a table
18
19
20if indent
21 import okay, \well from tables[100]
22
23do
24 import a, b, c from z
25
26do
27 import a,
28 b, c from z
29
30do
31 import a
32 b
33 c from z
34
35do
36 import
37 a
38 b
39 c from z
40
41
42do
43 import
44 a
45 b
46 c
47 from z
48
49
50do
51 import 'module'
52 import 'module_x'
53 import "d-a-s-h-e-s"
54 import "module.part"
55
56do
57 import "player" as Player
58 import "lpeg" as {:C, :Ct, :Cmt}
59 import "export" as {Something:{umm:{ch}}}
60
61do
62 global *
63 import 'module'
64 import 'module_x'
65 import "org.package.module-y"
66
67do
68 import "org.package.module" as {function:func, if:ifVar}