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". --- .../source/luxc/lang/translation/jvm/primitive.jvm.lux | 2 +- .../luxc/lang/translation/jvm/procedure/common.jvm.lux | 18 +++++++++--------- .../luxc/lang/translation/jvm/procedure/host.jvm.lux | 14 +++++++------- .../source/luxc/lang/translation/jvm/reference.jvm.lux | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) (limited to 'new-luxc/source/luxc/lang/translation/jvm') diff --git a/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux b/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux index 628edff49..e514fe28a 100644 --- a/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux @@ -21,7 +21,7 @@ (if value "TRUE" "FALSE") ($t.class "java.lang.Boolean" (list))))) -(do-template [ ] +(template [ ] [(def: #export ( value) (-> (Operation Inst)) (let [loadI (|> value )] 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 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 fe4a58b36..0a354a929 100644 --- a/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux +++ b/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux @@ -19,7 +19,7 @@ ["_" inst]]]]] ["." //]) -(do-template [ ] +(template [ ] [(def: #export ( idx) (-> Nat Text) (|> idx %n (format )))] -- cgit v1.2.3