blob: 59c31abc795594f1f2ced6d0aa5740169e019fb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
(;module:
lux
(lux (control [monad #+ do])
[meta])
[../base]
(.. [analyser]
[synthesizer]
(generator [expr]
[eval])))
(def: #export (eval type exprC)
../base;Eval
(do meta;Monad<Meta>
[exprA (../base;with-expected-type type
(analyser;analyser eval exprC))
#let [exprS (synthesizer;synthesize exprA)]
exprI (expr;generate exprS)]
(eval;eval exprI)))
|