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

(type: #export JVM-Bytecode
  Void)

(type: #export Compiled
  JVM-Bytecode)

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

(def: (eval type code)
  Eval
  (undefined))

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