aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-06-15 00:11:33 -0400
committerEduardo Julian2018-06-15 00:11:33 -0400
commitbcd3d9ee8f6797f758a2abea98d5cb6a74cc7df0 (patch)
treeb122b9ecf2d5333ba97cffbadfeee00eba2e1cf8 /new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
parent0190e084c6f44be32ea2bc5a89ef55b52bdc789b (diff)
- WIP: Adjustments to new-luxc based on recent changes to stdlib.
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux b/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
index 6776092c9..9271efe8f 100644
--- a/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
@@ -16,7 +16,7 @@
(do-template [<name> <prefix>]
[(def: #export (<name> idx)
(-> Nat Text)
- (|> idx nat-to-int %i (format <prefix>)))]
+ (|> idx .int %i (format <prefix>)))]
[captured "c"]
[partial "p"]
@@ -30,12 +30,12 @@
#let [function-class (format (text.replace-all "/" "." this-module) "." function-class)]]
(wrap (|>> ($i.ALOAD +0)
($i.GETFIELD function-class
- (|> variable i/inc (i/* -1) int-to-nat captured)
+ (|> variable inc (i/* -1) .nat captured)
commonT.$Object)))))
(def: #export (translate-local variable)
(-> Variable (Meta $.Inst))
- (macro/wrap ($i.ALOAD (int-to-nat variable))))
+ (macro/wrap ($i.ALOAD (.nat variable))))
(def: #export (translate-variable variable)
(-> Variable (Meta $.Inst))