aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source')
-rw-r--r--new-luxc/source/luxc/eval.lux5
-rw-r--r--new-luxc/source/luxc/generator/eval.jvm.lux5
2 files changed, 5 insertions, 5 deletions
diff --git a/new-luxc/source/luxc/eval.lux b/new-luxc/source/luxc/eval.lux
index 266becee6..9d6ee05e7 100644
--- a/new-luxc/source/luxc/eval.lux
+++ b/new-luxc/source/luxc/eval.lux
@@ -13,5 +13,6 @@
(do macro;Monad<Lux>
[exprA (../base;with-expected-type type
(analyser;analyser eval exprC))
- #let [exprS (synthesizer;synthesize exprA)]]
- (eval;eval (expr;generate exprS))))
+ #let [exprS (synthesizer;synthesize exprA)]
+ exprI (expr;generate exprS)]
+ (eval;eval exprI)))
diff --git a/new-luxc/source/luxc/generator/eval.jvm.lux b/new-luxc/source/luxc/generator/eval.jvm.lux
index 818c03b66..96f7a4917 100644
--- a/new-luxc/source/luxc/generator/eval.jvm.lux
+++ b/new-luxc/source/luxc/generator/eval.jvm.lux
@@ -59,11 +59,10 @@
(def: eval-field Text "_value")
(def: $Object $;Type ($t;class "java.lang.Object" (list)))
-(def: #export (eval generator)
- (-> (Lux $;Inst) (Lux Top))
+(def: #export (eval valueI)
+ (-> $;Inst (Lux Top))
(do Monad<Lux>
[class-name (:: @ map %code (macro;gensym "eval"))
- valueI generator
#let [writer (|> (do-to (ClassWriter.new ClassWriter.COMPUTE_MAXS)
(ClassWriter.visit [&common;bytecode-version
(i.+ Opcodes.ACC_PUBLIC Opcodes.ACC_SUPER)