aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/compiler/expr.jvm.lux
blob: 6655abd5ff3265fe243f2429fc1081a871edba03 (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
(;module:
  lux
  (lux (control monad)
       (data text/format)
       [macro #+ Monad<Lux>])
  (luxc ["&" base]
        ["&;" module]
        ["&;" env]
        ["&;" analyser]
        ["&;" synthesizer #+ Synthesis]))

(type: #export JVM-Bytecode
  Void)

(type: Compiled
  JVM-Bytecode)

(def: (compile-synthesis synthesis)
  (-> Synthesis Compiled)
  (undefined))

(def: #export (compile input)
  (-> AST (Lux Compiled))
  (|> input
      &analyser;analyse
      (Lux/map &synthesizer;synthesize)
      (Lux/map compile-synthesis)))