blob: c669b9c24693b9faae4c2e3ee589712e391946ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
(.module:
[lux #*
[cli (#+ program:)]
[control
[monad (#+ do)]]
["." io (#+ IO)]
[world
["." file]]
[host
["." js]]
[tool
[compiler
["." cli]
["/" program]
[phase
["." macro]
["." translation
[".T" js
[".JS" runtime]
[".JS" expression]
[".JS" extension]]]
["." statement]]
[default
["." platform (#+ Platform)]]]]]
[luxc
[lang
[host
["." jvm]]
[translation
[".T" jvm
[".JVM" runtime]
[".JVM" expression]
[procedure
[".JVM" common]]]]]]
)
(def: jvm
(IO (Platform IO jvm.Anchor jvm.Inst jvm.Definition))
(do io.monad
[host jvmT.host]
(wrap {#platform.&monad io.monad
#platform.&file-system file.system
#platform.host host
#platform.phase expressionJVM.translate
#platform.runtime runtimeJVM.translate})))
(def: js
(IO (Platform IO js.Var js.Expression js.Statement))
(do io.monad
[host jsT.host]
(wrap {#platform.&monad io.monad
#platform.&file-system file.system
#platform.host host
#platform.phase expressionJS.translate
#platform.runtime runtimeJS.translate})))
(program: [{service cli.service}]
## (/.compiler macro.jvm ..jvm commonJVM.bundle service)
(/.compiler jsT.expander ..js extensionJS.bundle service))
|