diff options
Diffstat (limited to 'spec/inputs/import.mp')
-rw-r--r-- | spec/inputs/import.mp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/spec/inputs/import.mp b/spec/inputs/import.mp new file mode 100644 index 0000000..99981f8 --- /dev/null +++ b/spec/inputs/import.mp | |||
@@ -0,0 +1,67 @@ | |||
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 | |||
60 | do | ||
61 | global * | ||
62 | import 'module' | ||
63 | import 'module_x' | ||
64 | import "org.package.module-y" | ||
65 | |||
66 | do | ||
67 | import "org.package.module" as {function:func,if:ifVar} | ||