aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/host.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/host.jvm.lux66
1 files changed, 33 insertions, 33 deletions
diff --git a/stdlib/source/lux/host.jvm.lux b/stdlib/source/lux/host.jvm.lux
index 8639ea2c5..927f16c7d 100644
--- a/stdlib/source/lux/host.jvm.lux
+++ b/stdlib/source/lux/host.jvm.lux
@@ -13,7 +13,7 @@
[product]
[text ("text/" Equivalence<Text> Monoid<Text>)
format]
- [bool ("bool/" Codec<Text,Bool>)]]
+ [bit ("bit/" Codec<Text,Bit>)]]
[macro (#+ with-gensyms Functor<Meta> Monad<Meta>)
[code]
["s" syntax (#+ syntax: Syntax)]]
@@ -147,27 +147,27 @@
[GenericType Code])
(type: Method-Definition
- (#ConstructorMethod [Bool
+ (#ConstructorMethod [Bit
(List Type-Paramameter)
(List ArgDecl)
(List ConstructorArg)
Code
(List GenericType)])
- (#VirtualMethod [Bool
- Bool
+ (#VirtualMethod [Bit
+ Bit
(List Type-Paramameter)
(List ArgDecl)
GenericType
Code
(List GenericType)])
- (#OverridenMethod [Bool
+ (#OverridenMethod [Bit
Class-Declaration
(List Type-Paramameter)
(List ArgDecl)
GenericType
Code
(List GenericType)])
- (#StaticMethod [Bool
+ (#StaticMethod [Bit
(List Type-Paramameter)
(List ArgDecl)
GenericType
@@ -195,10 +195,10 @@
#import-member-alias Text
#import-member-kind ImportMethodKind
#import-member-tvars (List Type-Paramameter)
- #import-member-args (List [Bool GenericType])
- #import-member-maybe? Bool
- #import-member-try? Bool
- #import-member-io? Bool})
+ #import-member-args (List [Bit GenericType])
+ #import-member-maybe? Bit
+ #import-member-try? Bit
+ #import-member-io? Bit})
(type: ImportConstructorDecl
{})
@@ -210,9 +210,9 @@
(type: ImportFieldDecl
{#import-field-mode Primitive-Mode
#import-field-name Text
- #import-field-static? Bool
- #import-field-maybe? Bool
- #import-field-setter? Bool
+ #import-field-static? Bit
+ #import-field-maybe? Bit
+ #import-field-setter? Bit
#import-field-type GenericType})
(type: Import-Member-Declaration
@@ -259,7 +259,7 @@
(^template [<prim> <type>]
<prim>
(#.Some (' <type>)))
- (["boolean" .Bool]
+ (["boolean" .Bit]
["byte" .Int]
["short" .Int]
["int" .Int]
@@ -277,8 +277,8 @@
(def: (generic-class->type' mode type-params in-array? name+params
class->type')
- (-> Primitive-Mode (List Type-Paramameter) Bool [Text (List GenericType)]
- (-> Primitive-Mode (List Type-Paramameter) Bool GenericType Code)
+ (-> Primitive-Mode (List Type-Paramameter) Bit [Text (List GenericType)]
+ (-> Primitive-Mode (List Type-Paramameter) Bit GenericType Code)
Code)
(case [name+params mode in-array?]
(^multi [[prim #.Nil] #ManualPrM false]
@@ -295,7 +295,7 @@
(` (primitive (~ (code.text name)) [(~+ =params)])))))
(def: (class->type' mode type-params in-array? class)
- (-> Primitive-Mode (List Type-Paramameter) Bool GenericType Code)
+ (-> Primitive-Mode (List Type-Paramameter) Bit GenericType Code)
(case class
(#GenericTypeVar name)
(case (list.find (function (_ [pname pbounds])
@@ -977,11 +977,11 @@
s.local-symbol)))
(def: (import-member-args^ imports type-vars)
- (-> Class-Imports (List Type-Paramameter) (Syntax (List [Bool GenericType])))
+ (-> Class-Imports (List Type-Paramameter) (Syntax (List [Bit GenericType])))
(s.tuple (p.some (p.seq (s.this? (' #?)) (generic-type^ imports type-vars)))))
(def: import-member-return-flags^
- (Syntax [Bool Bool Bool])
+ (Syntax [Bit Bit Bit])
($_ p.seq (s.this? (' #io)) (s.this? (' #try)) (s.this? (' #?))))
(def: primitive-mode^
@@ -1181,7 +1181,7 @@
(with-parens
(spaced (list "init"
(privacy-modifier$ pm)
- (bool/encode strict-fp?)
+ (bit/encode strict-fp?)
(with-brackets (spaced (list/map annotation$ anns)))
(with-brackets (spaced (list/map type-param$ type-vars)))
(with-brackets (spaced (list/map generic-type$ exs)))
@@ -1195,8 +1195,8 @@
(spaced (list "virtual"
name
(privacy-modifier$ pm)
- (bool/encode final?)
- (bool/encode strict-fp?)
+ (bit/encode final?)
+ (bit/encode strict-fp?)
(with-brackets (spaced (list/map annotation$ anns)))
(with-brackets (spaced (list/map type-param$ type-vars)))
(with-brackets (spaced (list/map generic-type$ exs)))
@@ -1216,7 +1216,7 @@
(spaced (list "override"
(class-decl$ class-decl)
name
- (bool/encode strict-fp?)
+ (bit/encode strict-fp?)
(with-brackets (spaced (list/map annotation$ anns)))
(with-brackets (spaced (list/map type-param$ type-vars)))
(with-brackets (spaced (list/map generic-type$ exs)))
@@ -1233,7 +1233,7 @@
(spaced (list "static"
name
(privacy-modifier$ pm)
- (bool/encode strict-fp?)
+ (bit/encode strict-fp?)
(with-brackets (spaced (list/map annotation$ anns)))
(with-brackets (spaced (list/map type-param$ type-vars)))
(with-brackets (spaced (list/map generic-type$ exs)))
@@ -1398,7 +1398,7 @@
(null? "YOLO")
"=>"
false)}
- (-> (primitive "java.lang.Object") Bool)
+ (-> (primitive "java.lang.Object") Bit)
("jvm object null?" obj))
(syntax: #export (??? expr)
@@ -1454,7 +1454,7 @@
(do @
[g!_ (macro.gensym "_")
g!obj (macro.gensym "obj")]
- (wrap (list (` (: (-> (primitive "java.lang.Object") Bool)
+ (wrap (list (` (: (-> (primitive "java.lang.Object") Bit)
(function ((~ g!_) (~ g!obj))
((~ (code.text (format "jvm instanceof" ":" (simple-class$ (list) class)))) (~ g!obj))))))))
))
@@ -1480,7 +1480,7 @@
(~ g!obj))))))))
(def: (class-import$ long-name? [full-name params])
- (-> Bool Class-Declaration Code)
+ (-> Bit Class-Declaration Code)
(let [def-name (if long-name?
full-name
(short-class-name full-name))
@@ -1517,7 +1517,7 @@
(let [(^slots [#import-member-tvars #import-member-args]) commons]
(do Monad<Meta>
[arg-inputs (monad.map @
- (: (-> [Bool GenericType] (Meta [Code Code]))
+ (: (-> [Bit GenericType] (Meta [Code Code]))
(function (_ [maybe? _])
(with-gensyms [arg-name]
(wrap [arg-name (if maybe?
@@ -1527,7 +1527,7 @@
#let [arg-classes (: (List Text)
(list/map (|>> product.right (simple-class$ (list/compose type-params import-member-tvars)))
import-member-args))
- arg-types (list/map (: (-> [Bool GenericType] Code)
+ arg-types (list/map (: (-> [Bit GenericType] Code)
(function (_ [maybe? arg])
(let [arg-type (class->type (get@ #import-member-mode commons) type-params arg)]
(if maybe?
@@ -1588,7 +1588,7 @@
)
(def: (free-type-param? [name bounds])
- (-> Type-Paramameter Bool)
+ (-> Type-Paramameter Bit)
(case bounds
#.Nil true
_ false))
@@ -1621,7 +1621,7 @@
body)))
(def: (auto-conv-class? class)
- (-> Text Bool)
+ (-> Text Bit)
(case class
(^or "byte" "short" "int" "float")
true
@@ -1828,7 +1828,7 @@
)))
(def: (member-import$ type-params long-name? kind class member)
- (-> (List Type-Paramameter) Bool Class-Kind Class-Declaration Import-Member-Declaration (Meta (List Code)))
+ (-> (List Type-Paramameter) Bit Class-Kind Class-Declaration Import-Member-Declaration (Meta (List Code)))
(let [[full-name _] class
method-prefix (if long-name?
full-name
@@ -1838,7 +1838,7 @@
(member-def-interop type-params kind class =args member method-prefix))))
(def: (interface? class)
- (All [a] (-> (primitive "java.lang.Class" [a]) Bool))
+ (All [a] (-> (primitive "java.lang.Class" [a]) Bit))
("jvm invokevirtual:java.lang.Class:isInterface:" class))
(def: (load-class class-name)