aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/import.mp
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/import.mp')
-rw-r--r--spec/inputs/import.mp67
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
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
60do
61 global *
62 import 'module'
63 import 'module_x'
64 import "org.package.module-y"
65
66do
67 import "org.package.module" as {function:func,if:ifVar}