From 118895081d97279a796cc704e6c23bf92ed79e5e Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sat, 30 Mar 2019 21:45:45 -0400 Subject: Re-named "do-template" to "template". --- .../luxc/lang/translation/jvm/procedure/common.jvm.lux | 18 +++++++++--------- .../luxc/lang/translation/jvm/procedure/host.jvm.lux | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'new-luxc/source/luxc/lang/translation/jvm/procedure') diff --git a/new-luxc/source/luxc/lang/translation/jvm/procedure/common.jvm.lux b/new-luxc/source/luxc/lang/translation/jvm/procedure/common.jvm.lux index 55cf8a644..faec813e9 100644 --- a/new-luxc/source/luxc/lang/translation/jvm/procedure/common.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/jvm/procedure/common.jvm.lux @@ -118,7 +118,7 @@ #0))) ### Bits -(do-template [ ] +(template [ ] [(def: ( [maskI inputI]) Binary (|>> inputI (_.unwrap #$.Long) @@ -130,7 +130,7 @@ [bit::xor _.LXOR] ) -(do-template [ ] +(template [ ] [(def: ( [shiftI inputI]) Binary (|>> inputI (_.unwrap #$.Long) @@ -144,7 +144,7 @@ ) ### Numbers -(do-template [ ] +(template [ ] [(def: ( _) Nullary (|>> (_.wrap )))] @@ -154,7 +154,7 @@ [frac::max (_.double (Double::MAX_VALUE)) #$.Double] ) -(do-template [ ] +(template [ ] [(def: ( [subjectI paramI]) Binary (|>> subjectI (_.unwrap ) @@ -175,8 +175,8 @@ [frac::% #$.Double _.DREM] ) -(do-template [ ] - [(do-template [ ] +(template [ ] + [(template [ ] [(def: ( [subjectI paramI]) Binary (|>> subjectI @@ -192,7 +192,7 @@ [frac::= frac::< (_.unwrap #$.Double) _.DCMPG] ) -(do-template [ ] +(template [ ] [(def: ( inputI) Unary (|>> inputI ))] @@ -216,7 +216,7 @@ (_.INVOKEVIRTUAL "java.lang.String" "length" (_t.method (list) (#.Some _t.int) (list)) #0) lux-intI)) -(do-template [ ] +(template [ ] [(def: ( [subjectI paramI]) Binary (|>> subjectI @@ -237,7 +237,7 @@ lux-intI] ) -(do-template [ ] +(template [ ] [(def: ( [subjectI paramI extraI]) Trinary (|>> subjectI diff --git a/new-luxc/source/luxc/lang/translation/jvm/procedure/host.jvm.lux b/new-luxc/source/luxc/lang/translation/jvm/procedure/host.jvm.lux index 483f810e2..624af7ed8 100644 --- a/new-luxc/source/luxc/lang/translation/jvm/procedure/host.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/jvm/procedure/host.jvm.lux @@ -25,7 +25,7 @@ ["ls" synthesis])) (// ["@" common])) -(do-template [] +(template [] [(exception: #export ( {message Text}) message)] @@ -33,7 +33,7 @@ [Invalid-Syntax-For-Argument-Generation] ) -(do-template [ ] +(template [ ] [(def: $.Inst )] @@ -43,7 +43,7 @@ [L2C (|>> _.L2I _.I2C)] ) -(do-template [ ] +(template [ ] [(def: ( inputI) @.Unary (if (is? _.NOP ) @@ -111,7 +111,7 @@ (@.install "short-to-long" (@.unary convert//short-to-long)) ))) -(do-template [ ] +(template [ ] [(def: ( [xI yI]) @.Binary (|>> xI (_.unwrap ) @@ -159,7 +159,7 @@ (def: falseI (_.GETSTATIC "java.lang.Boolean" "FALSE" boolean-class)) (def: trueI (_.GETSTATIC "java.lang.Boolean" "TRUE" boolean-class)) -(do-template [ ] +(template [ ] [(def: ( [xI yI]) @.Binary (<| _.with-label (function (_ @then)) @@ -180,7 +180,7 @@ [char//< _.IF_ICMPLT #$.Char #$.Char #$.Boolean] ) -(do-template [ ] +(template [ ] [(def: ( [xI yI]) @.Binary (<| _.with-label (function (_ @then)) @@ -684,7 +684,7 @@ _ (&.throw @.Wrong-Syntax (@.wrong-syntax proc inputs)))) -(do-template [ ] +(template [ ] [(def: ( proc translate inputs) (-> Text @.Proc) (case inputs -- cgit v1.2.3