aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/target/jvm
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/target/jvm')
-rw-r--r--stdlib/source/library/lux/target/jvm/attribute.lux32
-rw-r--r--stdlib/source/library/lux/target/jvm/attribute/code.lux84
-rw-r--r--stdlib/source/library/lux/target/jvm/attribute/code/exception.lux82
-rw-r--r--stdlib/source/library/lux/target/jvm/bytecode/environment/limit.lux26
-rw-r--r--stdlib/source/library/lux/target/jvm/bytecode/instruction.lux28
-rw-r--r--stdlib/source/library/lux/target/jvm/class.lux60
-rw-r--r--stdlib/source/library/lux/target/jvm/constant.lux14
-rw-r--r--stdlib/source/library/lux/target/jvm/field.lux26
-rw-r--r--stdlib/source/library/lux/target/jvm/method.lux28
-rw-r--r--stdlib/source/library/lux/target/jvm/type/alias.lux80
-rw-r--r--stdlib/source/library/lux/target/jvm/type/lux.lux90
-rw-r--r--stdlib/source/library/lux/target/jvm/type/parser.lux66
12 files changed, 308 insertions, 308 deletions
diff --git a/stdlib/source/library/lux/target/jvm/attribute.lux b/stdlib/source/library/lux/target/jvm/attribute.lux
index 6fd6eba84..c59e77236 100644
--- a/stdlib/source/library/lux/target/jvm/attribute.lux
+++ b/stdlib/source/library/lux/target/jvm/attribute.lux
@@ -39,10 +39,10 @@
(All (_ about)
(-> (Equivalence about)
(Equivalence (Info about))))
- ($_ product.equivalence
- //index.equivalence
- //unsigned.equivalence
- Equivalence<about>))
+ (all product.equivalence
+ //index.equivalence
+ //unsigned.equivalence
+ Equivalence<about>))
(def: (info_writer writer)
(All (_ about)
@@ -52,7 +52,7 @@
(let [[nameS nameT] (//index.writer name)
[lengthS lengthT] (//unsigned.writer/4 length)
[infoS infoT] (writer info)]
- [($_ n.+ nameS lengthS infoS)
+ [(all n.+ nameS lengthS infoS)
(|>> nameT lengthT infoT)])))
(with_expansions [<Code> (these (/code.Code Attribute))]
@@ -71,19 +71,19 @@
(Equivalence Attribute)
(equivalence.rec
(function (_ equivalence)
- ($_ sum.equivalence
- (info_equivalence /constant.equivalence)
- (info_equivalence (/code.equivalence equivalence))
- (info_equivalence //index.equivalence)
- ))))
+ (all sum.equivalence
+ (info_equivalence /constant.equivalence)
+ (info_equivalence (/code.equivalence equivalence))
+ (info_equivalence //index.equivalence)
+ ))))
(def: common_attribute_length
- ($_ n.+
- ... u2 attribute_name_index;
- //unsigned.bytes/2
- ... u4 attribute_length;
- //unsigned.bytes/4
- ))
+ (all n.+
+ ... u2 attribute_name_index;
+ //unsigned.bytes/2
+ ... u4 attribute_length;
+ //unsigned.bytes/4
+ ))
(def: (length attribute)
(-> Attribute Nat)
diff --git a/stdlib/source/library/lux/target/jvm/attribute/code.lux b/stdlib/source/library/lux/target/jvm/attribute/code.lux
index 9916f97b0..5d2ed4879 100644
--- a/stdlib/source/library/lux/target/jvm/attribute/code.lux
+++ b/stdlib/source/library/lux/target/jvm/attribute/code.lux
@@ -31,53 +31,53 @@
(def: .public (length length code)
(All (_ Attribute) (-> (-> Attribute Nat) (Code Attribute) Nat))
- ($_ n.+
- ... u2 max_stack;
- ... u2 max_locals;
- ///limit.length
- ... u4 code_length;
- ///unsigned.bytes/4
- ... u1 code[code_length];
- (binary.size (the #code code))
- ... u2 exception_table_length;
- ///unsigned.bytes/2
- ... exception_table[exception_table_length];
- (|> code
- (the #exception_table)
- sequence.size
- (n.* /exception.length))
- ... u2 attributes_count;
- ///unsigned.bytes/2
- ... attribute_info attributes[attributes_count];
- (|> code
- (the #attributes)
- (sequence#each length)
- (sequence#mix n.+ 0))))
+ (all n.+
+ ... u2 max_stack;
+ ... u2 max_locals;
+ ///limit.length
+ ... u4 code_length;
+ ///unsigned.bytes/4
+ ... u1 code[code_length];
+ (binary.size (the #code code))
+ ... u2 exception_table_length;
+ ///unsigned.bytes/2
+ ... exception_table[exception_table_length];
+ (|> code
+ (the #exception_table)
+ sequence.size
+ (n.* /exception.length))
+ ... u2 attributes_count;
+ ///unsigned.bytes/2
+ ... attribute_info attributes[attributes_count];
+ (|> code
+ (the #attributes)
+ (sequence#each length)
+ (sequence#mix n.+ 0))))
(def: .public (equivalence attribute_equivalence)
(All (_ attribute)
(-> (Equivalence attribute) (Equivalence (Code attribute))))
- ($_ product.equivalence
- ///limit.equivalence
- binary.equivalence
- (sequence.equivalence /exception.equivalence)
- (sequence.equivalence attribute_equivalence)
- ))
+ (all product.equivalence
+ ///limit.equivalence
+ binary.equivalence
+ (sequence.equivalence /exception.equivalence)
+ (sequence.equivalence attribute_equivalence)
+ ))
... https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.3
(def: .public (writer writer code)
(All (_ Attribute) (-> (Writer Attribute) (Writer (Code Attribute))))
- ($_ binaryF#composite
- ... u2 max_stack;
- ... u2 max_locals;
- (///limit.writer (the #limit code))
- ... u4 code_length;
- ... u1 code[code_length];
- (binaryF.binary_32 (the #code code))
- ... u2 exception_table_length;
- ... exception_table[exception_table_length];
- ((binaryF.sequence_16 /exception.writer) (the #exception_table code))
- ... u2 attributes_count;
- ... attribute_info attributes[attributes_count];
- ((binaryF.sequence_16 writer) (the #attributes code))
- ))
+ (all binaryF#composite
+ ... u2 max_stack;
+ ... u2 max_locals;
+ (///limit.writer (the #limit code))
+ ... u4 code_length;
+ ... u1 code[code_length];
+ (binaryF.binary_32 (the #code code))
+ ... u2 exception_table_length;
+ ... exception_table[exception_table_length];
+ ((binaryF.sequence_16 /exception.writer) (the #exception_table code))
+ ... u2 attributes_count;
+ ... attribute_info attributes[attributes_count];
+ ((binaryF.sequence_16 writer) (the #attributes code))
+ ))
diff --git a/stdlib/source/library/lux/target/jvm/attribute/code/exception.lux b/stdlib/source/library/lux/target/jvm/attribute/code/exception.lux
index 6dc9cade9..649049e0b 100644
--- a/stdlib/source/library/lux/target/jvm/attribute/code/exception.lux
+++ b/stdlib/source/library/lux/target/jvm/attribute/code/exception.lux
@@ -1,23 +1,23 @@
(.using
- [library
- [lux "*"
- [abstract
- [equivalence {"+" Equivalence}]]
- [data
- ["[0]" product]
- ["[0]" format "_"
- ["[1]" binary {"+" Writer}]]]
- [math
- [number
- ["n" nat]]]]]
- ["[0]" // "_"
- ["//[1]" /// "_"
- [constant {"+" Class}]
- ["[1][0]" index {"+" Index}]
- [bytecode
- ["[1][0]" address {"+" Address}]]
- [encoding
- ["[1][0]" unsigned {"+" U2}]]]])
+ [library
+ [lux "*"
+ [abstract
+ [equivalence {"+" Equivalence}]]
+ [data
+ ["[0]" product]
+ ["[0]" format "_"
+ ["[1]" binary {"+" Writer}]]]
+ [math
+ [number
+ ["n" nat]]]]]
+ ["[0]" // "_"
+ ["//[1]" /// "_"
+ [constant {"+" Class}]
+ ["[1][0]" index {"+" Index}]
+ [bytecode
+ ["[1][0]" address {"+" Address}]]
+ [encoding
+ ["[1][0]" unsigned {"+" U2}]]]])
(type: .public Exception
(Record
@@ -28,32 +28,32 @@
(def: .public equivalence
(Equivalence Exception)
- ($_ product.equivalence
- ////address.equivalence
- ////address.equivalence
- ////address.equivalence
- ////index.equivalence
- ))
+ (all product.equivalence
+ ////address.equivalence
+ ////address.equivalence
+ ////address.equivalence
+ ////index.equivalence
+ ))
... https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.3
(def: .public length
Nat
- ($_ n.+
- ... u2 start_pc;
- ////unsigned.bytes/2
- ... u2 end_pc;
- ////unsigned.bytes/2
- ... u2 handler_pc;
- ////unsigned.bytes/2
- ... u2 catch_type;
- ////unsigned.bytes/2
- ))
+ (all n.+
+ ... u2 start_pc;
+ ////unsigned.bytes/2
+ ... u2 end_pc;
+ ////unsigned.bytes/2
+ ... u2 handler_pc;
+ ////unsigned.bytes/2
+ ... u2 catch_type;
+ ////unsigned.bytes/2
+ ))
(def: .public writer
(Writer Exception)
- ($_ format.and
- ////address.writer
- ////address.writer
- ////address.writer
- ////index.writer
- ))
+ (all format.and
+ ////address.writer
+ ////address.writer
+ ////address.writer
+ ////index.writer
+ ))
diff --git a/stdlib/source/library/lux/target/jvm/bytecode/environment/limit.lux b/stdlib/source/library/lux/target/jvm/bytecode/environment/limit.lux
index 3d3bb2d8d..eb98b1262 100644
--- a/stdlib/source/library/lux/target/jvm/bytecode/environment/limit.lux
+++ b/stdlib/source/library/lux/target/jvm/bytecode/environment/limit.lux
@@ -38,22 +38,22 @@
)
(def: .public length
- ($_ n.+
- ... u2 max_stack;
- /stack.length
- ... u2 max_locals;
- /registry.length))
+ (all n.+
+ ... u2 max_stack;
+ /stack.length
+ ... u2 max_locals;
+ /registry.length))
(def: .public equivalence
(Equivalence Limit)
- ($_ product.equivalence
- /stack.equivalence
- /registry.equivalence
- ))
+ (all product.equivalence
+ /stack.equivalence
+ /registry.equivalence
+ ))
(def: .public (writer limit)
(Writer Limit)
- ($_ format#composite
- (/stack.writer (the #stack limit))
- (/registry.writer (the #registry limit))
- ))
+ (all format#composite
+ (/stack.writer (the #stack limit))
+ (/registry.writer (the #registry limit))
+ ))
diff --git a/stdlib/source/library/lux/target/jvm/bytecode/instruction.lux b/stdlib/source/library/lux/target/jvm/bytecode/instruction.lux
index 379adfd35..61201beb5 100644
--- a/stdlib/source/library/lux/target/jvm/bytecode/instruction.lux
+++ b/stdlib/source/library/lux/target/jvm/bytecode/instruction.lux
@@ -578,14 +578,14 @@
(-> S4 Big_Jump [Big_Jump (List Big_Jump)] Instruction)]
(let [estimator (is (-> Nat Estimator)
(function (_ amount_of_afterwards offset)
- (|> ($_ n.+
- (///unsigned.value ..opcode_size)
- (switch_padding (///unsigned.value (//address.value offset)))
- (///unsigned.value ..big_jump_size)
- (///unsigned.value ..integer_size)
- (///unsigned.value ..integer_size)
- (n.* (///unsigned.value ..big_jump_size)
- (++ amount_of_afterwards)))
+ (|> (all n.+
+ (///unsigned.value ..opcode_size)
+ (switch_padding (///unsigned.value (//address.value offset)))
+ (///unsigned.value ..big_jump_size)
+ (///unsigned.value ..integer_size)
+ (///unsigned.value ..integer_size)
+ (n.* (///unsigned.value ..big_jump_size)
+ (++ amount_of_afterwards)))
///unsigned.u2
try.trusted)))]
[estimator
@@ -644,12 +644,12 @@
(///unsigned.value ..big_jump_size))
estimator (is (-> Nat Estimator)
(function (_ amount_of_cases offset)
- (|> ($_ n.+
- (///unsigned.value ..opcode_size)
- (switch_padding (///unsigned.value (//address.value offset)))
- (///unsigned.value ..big_jump_size)
- (///unsigned.value ..integer_size)
- (n.* amount_of_cases case_size))
+ (|> (all n.+
+ (///unsigned.value ..opcode_size)
+ (switch_padding (///unsigned.value (//address.value offset)))
+ (///unsigned.value ..big_jump_size)
+ (///unsigned.value ..integer_size)
+ (n.* amount_of_cases case_size))
///unsigned.u2
try.trusted)))]
[estimator
diff --git a/stdlib/source/library/lux/target/jvm/class.lux b/stdlib/source/library/lux/target/jvm/class.lux
index 8447c56de..cd459643a 100644
--- a/stdlib/source/library/lux/target/jvm/class.lux
+++ b/stdlib/source/library/lux/target/jvm/class.lux
@@ -58,18 +58,18 @@
(def: .public equivalence
(Equivalence Class)
- ($_ product.equivalence
- //unsigned.equivalence
- //unsigned.equivalence
- //unsigned.equivalence
- //pool.equivalence
- //modifier.equivalence
- //index.equivalence
- //index.equivalence
- (sequence.equivalence //index.equivalence)
- (sequence.equivalence //field.equivalence)
- (sequence.equivalence //method.equivalence)
- (sequence.equivalence //attribute.equivalence)))
+ (all product.equivalence
+ //unsigned.equivalence
+ //unsigned.equivalence
+ //unsigned.equivalence
+ //pool.equivalence
+ //modifier.equivalence
+ //index.equivalence
+ //index.equivalence
+ (sequence.equivalence //index.equivalence)
+ (sequence.equivalence //field.equivalence)
+ (sequence.equivalence //method.equivalence)
+ (sequence.equivalence //attribute.equivalence)))
(def: (install_classes this super interfaces)
(-> Internal Internal (List Internal)
@@ -128,23 +128,23 @@
(def: .public (writer class)
(Writer Class)
- (`` ($_ binaryF#composite
- (~~ (template [<writer> <slot>]
- [(<writer> (the <slot> class))]
+ (`` (all binaryF#composite
+ (~~ (template [<writer> <slot>]
+ [(<writer> (the <slot> class))]
- [//magic.writer #magic]
- [//version.writer #minor_version]
- [//version.writer #major_version]
- [//pool.writer #constant_pool]
- [//modifier.writer #modifier]
- [//index.writer #this]
- [//index.writer #super]))
- (~~ (template [<writer> <slot>]
- [((binaryF.sequence_16 <writer>) (the <slot> class))]
+ [//magic.writer #magic]
+ [//version.writer #minor_version]
+ [//version.writer #major_version]
+ [//pool.writer #constant_pool]
+ [//modifier.writer #modifier]
+ [//index.writer #this]
+ [//index.writer #super]))
+ (~~ (template [<writer> <slot>]
+ [((binaryF.sequence_16 <writer>) (the <slot> class))]
- [//index.writer #interfaces]
- [//field.writer #fields]
- [//method.writer #methods]
- [//attribute.writer #attributes]
- ))
- )))
+ [//index.writer #interfaces]
+ [//field.writer #fields]
+ [//method.writer #methods]
+ [//attribute.writer #attributes]
+ ))
+ )))
diff --git a/stdlib/source/library/lux/target/jvm/constant.lux b/stdlib/source/library/lux/target/jvm/constant.lux
index c32ca731c..230157059 100644
--- a/stdlib/source/library/lux/target/jvm/constant.lux
+++ b/stdlib/source/library/lux/target/jvm/constant.lux
@@ -140,15 +140,15 @@
(template [<type> <equivalence> <writer>]
[(def: .public <equivalence>
(Equivalence (<type> Any))
- ($_ product.equivalence
- //index.equivalence
- //index.equivalence))
+ (all product.equivalence
+ //index.equivalence
+ //index.equivalence))
(def: <writer>
(Writer (<type> Any))
- ($_ binaryF.and
- //index.writer
- //index.writer))]
+ (all binaryF.and
+ //index.writer
+ //index.writer))]
[Name_And_Type name_and_type_equivalence name_and_type_writer]
[Reference reference_equivalence reference_writer]
@@ -201,7 +201,7 @@
_
false)))
- ... ($_ sum.equivalence
+ ... (all sum.equivalence
... ... #UTF8
... text.equivalence
... ... #Long
diff --git a/stdlib/source/library/lux/target/jvm/field.lux b/stdlib/source/library/lux/target/jvm/field.lux
index 5db3ac6b0..d97951fbf 100644
--- a/stdlib/source/library/lux/target/jvm/field.lux
+++ b/stdlib/source/library/lux/target/jvm/field.lux
@@ -42,23 +42,23 @@
(def: .public equivalence
(Equivalence Field)
- ($_ product.equivalence
- modifier.equivalence
- //index.equivalence
- //index.equivalence
- (sequence.equivalence //attribute.equivalence)))
+ (all product.equivalence
+ modifier.equivalence
+ //index.equivalence
+ //index.equivalence
+ (sequence.equivalence //attribute.equivalence)))
(def: .public (writer field)
(Writer Field)
- (`` ($_ binaryF#composite
- (~~ (template [<writer> <slot>]
- [(<writer> (the <slot> field))]
+ (`` (all binaryF#composite
+ (~~ (template [<writer> <slot>]
+ [(<writer> (the <slot> field))]
- [modifier.writer #modifier]
- [//index.writer #name]
- [//index.writer #descriptor]
- [(binaryF.sequence_16 //attribute.writer) #attributes]))
- )))
+ [modifier.writer #modifier]
+ [//index.writer #name]
+ [//index.writer #descriptor]
+ [(binaryF.sequence_16 //attribute.writer) #attributes]))
+ )))
(def: .public (field modifier name with_signature? type attributes)
(-> (Modifier Field) UTF8 Bit (Type Value) (Sequence Attribute)
diff --git a/stdlib/source/library/lux/target/jvm/method.lux b/stdlib/source/library/lux/target/jvm/method.lux
index cac656214..193bb4db8 100644
--- a/stdlib/source/library/lux/target/jvm/method.lux
+++ b/stdlib/source/library/lux/target/jvm/method.lux
@@ -89,21 +89,21 @@
(def: .public equivalence
(Equivalence Method)
- ($_ product.equivalence
- //modifier.equivalence
- //index.equivalence
- //index.equivalence
- (sequence.equivalence //attribute.equivalence)
- ))
+ (all product.equivalence
+ //modifier.equivalence
+ //index.equivalence
+ //index.equivalence
+ (sequence.equivalence //attribute.equivalence)
+ ))
(def: .public (writer field)
(Writer Method)
- (`` ($_ format#composite
- (~~ (template [<writer> <slot>]
- [(<writer> (the <slot> field))]
+ (`` (all format#composite
+ (~~ (template [<writer> <slot>]
+ [(<writer> (the <slot> field))]
- [//modifier.writer #modifier]
- [//index.writer #name]
- [//index.writer #descriptor]
- [(format.sequence_16 //attribute.writer) #attributes]))
- )))
+ [//modifier.writer #modifier]
+ [//index.writer #name]
+ [//index.writer #descriptor]
+ [(format.sequence_16 //attribute.writer) #attributes]))
+ )))
diff --git a/stdlib/source/library/lux/target/jvm/type/alias.lux b/stdlib/source/library/lux/target/jvm/type/alias.lux
index 9c802f924..39f8aba69 100644
--- a/stdlib/source/library/lux/target/jvm/type/alias.lux
+++ b/stdlib/source/library/lux/target/jvm/type/alias.lux
@@ -1,28 +1,28 @@
(.using
- [library
- [lux {"-" Type Primitive int char type parameter}
- [abstract
- ["[0]" monad {"+" do}]]
- [control
- ["[0]" maybe]
- ["[0]" try]
- ["[0]" exception {"+" exception:}]
- ["<>" parser
- ["<[0]>" text {"+" Parser}]]]
- [data
- ["[0]" text
- ["%" format {"+" format}]]
- [collection
- ["[0]" dictionary {"+" Dictionary}]]]]]
- ["[0]" // {"+" Type}
- [category {"+" Void Value Return Method Primitive Object Class Array Var Parameter}]
- ["[1][0]" descriptor]
- ["[1][0]" signature {"+" Signature}]
- ["[1][0]" reflection]
- ["[1][0]" parser]
- ["/[1]" // "_"
- [encoding
- ["[1][0]" name]]]])
+ [library
+ [lux {"-" Type Primitive int char type parameter}
+ [abstract
+ ["[0]" monad {"+" do}]]
+ [control
+ ["[0]" maybe]
+ ["[0]" try]
+ ["[0]" exception {"+" exception:}]
+ ["<>" parser
+ ["<[0]>" text {"+" Parser}]]]
+ [data
+ ["[0]" text
+ ["%" format {"+" format}]]
+ [collection
+ ["[0]" dictionary {"+" Dictionary}]]]]]
+ ["[0]" // {"+" Type}
+ [category {"+" Void Value Return Method Primitive Object Class Array Var Parameter}]
+ ["[1][0]" descriptor]
+ ["[1][0]" signature {"+" Signature}]
+ ["[1][0]" reflection]
+ ["[1][0]" parser]
+ ["/[1]" // "_"
+ [encoding
+ ["[1][0]" name]]]])
(type: .public Aliasing
(Dictionary Text Text))
@@ -67,23 +67,23 @@
(<>.rec
(function (_ parameter)
(let [class (..class parameter)]
- ($_ <>.either
- (..var aliasing)
- //parser.wildcard
- (..lower class)
- (..upper class)
- class
- )))))
+ (all <>.either
+ (..var aliasing)
+ //parser.wildcard
+ (..lower class)
+ (..upper class)
+ class
+ )))))
(def: (value aliasing)
(-> Aliasing (Parser (Type Value)))
(<>.rec
(function (_ value)
- ($_ <>.either
- //parser.primitive
- (parameter aliasing)
- (//parser.array' value)
- ))))
+ (all <>.either
+ //parser.primitive
+ (parameter aliasing)
+ (//parser.array' value)
+ ))))
(def: (inputs aliasing)
(-> Aliasing (Parser (List (Type Value))))
@@ -93,10 +93,10 @@
(def: (return aliasing)
(-> Aliasing (Parser (Type Return)))
- ($_ <>.either
- //parser.void
- (..value aliasing)
- ))
+ (all <>.either
+ //parser.void
+ (..value aliasing)
+ ))
(def: (exception aliasing)
(-> Aliasing (Parser (Type Class)))
diff --git a/stdlib/source/library/lux/target/jvm/type/lux.lux b/stdlib/source/library/lux/target/jvm/type/lux.lux
index c608b7a94..60960123d 100644
--- a/stdlib/source/library/lux/target/jvm/type/lux.lux
+++ b/stdlib/source/library/lux/target/jvm/type/lux.lux
@@ -85,29 +85,29 @@
(def: primitive
(Parser (Check Type))
- ($_ <>.either
- ..boolean
- ..byte
- ..short
- ..int
- ..long
- ..float
- ..double
- ..char
- ))
+ (all <>.either
+ ..boolean
+ ..byte
+ ..short
+ ..int
+ ..long
+ ..float
+ ..double
+ ..char
+ ))
(def: boxed_primitive
(Parser (Check Type))
- ($_ <>.either
- ..boxed_boolean
- ..boxed_byte
- ..boxed_short
- ..boxed_int
- ..boxed_long
- ..boxed_float
- ..boxed_double
- ..boxed_char
- ))
+ (all <>.either
+ ..boxed_boolean
+ ..boxed_byte
+ ..boxed_short
+ ..boxed_int
+ ..boxed_long
+ ..boxed_float
+ ..boxed_double
+ ..boxed_char
+ ))
(def: wildcard
(Parser (Check Type))
@@ -157,13 +157,13 @@
(<>.rec
(function (_ parameter)
(let [class (..class' parameter)]
- ($_ <>.either
- (..var mapping)
- ..wildcard
- (..lower class)
- (..upper class)
- class
- )))))
+ (all <>.either
+ (..var mapping)
+ ..wildcard
+ (..lower class)
+ (..upper class)
+ class
+ )))))
(def: .public class
(-> Mapping (Parser (Check Type)))
@@ -196,35 +196,35 @@
(-> Mapping (Parser (Check Type)))
(<>.rec
(function (_ type)
- ($_ <>.either
- ..primitive
- (parameter mapping)
- (..array type)
- ))))
+ (all <>.either
+ ..primitive
+ (parameter mapping)
+ (..array type)
+ ))))
(def: .public (boxed_type mapping)
(-> Mapping (Parser (Check Type)))
(<>.rec
(function (_ type)
- ($_ <>.either
- ..boxed_primitive
- (parameter mapping)
- (..array type)
- ))))
+ (all <>.either
+ ..boxed_primitive
+ (parameter mapping)
+ (..array type)
+ ))))
(def: .public (return mapping)
(-> Mapping (Parser (Check Type)))
- ($_ <>.either
- ..void
- (..type mapping)
- ))
+ (all <>.either
+ ..void
+ (..type mapping)
+ ))
(def: .public (boxed_return mapping)
(-> Mapping (Parser (Check Type)))
- ($_ <>.either
- ..void
- (..boxed_type mapping)
- ))
+ (all <>.either
+ ..void
+ (..boxed_type mapping)
+ ))
(def: .public (check operation input)
(All (_ a) (-> (Parser (Check a)) Text (Check a)))
diff --git a/stdlib/source/library/lux/target/jvm/type/parser.lux b/stdlib/source/library/lux/target/jvm/type/parser.lux
index b576c8d5b..e7c2a2c70 100644
--- a/stdlib/source/library/lux/target/jvm/type/parser.lux
+++ b/stdlib/source/library/lux/target/jvm/type/parser.lux
@@ -42,16 +42,16 @@
(def: .public primitive
(Parser (Type Primitive))
- ($_ <>.either
- ..boolean
- ..byte
- ..short
- ..int
- ..long
- ..float
- ..double
- ..char
- ))
+ (all <>.either
+ ..boolean
+ ..byte
+ ..short
+ ..int
+ ..long
+ ..float
+ ..double
+ ..char
+ ))
(def: var/head
(format "abcdefghijklmnopqrstuvwxyz"
@@ -137,23 +137,23 @@
(<>.rec
(function (_ parameter)
(let [class (..class' parameter)]
- ($_ <>.either
- ..var
- ..wildcard
- (..lower parameter)
- (..upper parameter)
- (..array' value)
- class
- )))))
+ (all <>.either
+ ..var
+ ..wildcard
+ (..lower parameter)
+ (..upper parameter)
+ (..array' value)
+ class
+ )))))
(def: .public value
(Parser (Type Value))
(<>.rec
(function (_ value)
- ($_ <>.either
- ..primitive
- (..parameter' value)
- ))))
+ (all <>.either
+ ..primitive
+ (..parameter' value)
+ ))))
(def: .public parameter
(Parser (Type Parameter))
@@ -188,9 +188,9 @@
(def: .public object
(Parser (Type Object))
- ($_ <>.either
- ..class
- ..array))
+ (all <>.either
+ ..class
+ ..array))
(def: inputs
(|> (<>.some ..value)
@@ -225,14 +225,14 @@
(List (Type Value))
(Type Return)
(List (Type Class))])
- ($_ <>.and
- (|> (<>.some (<>#each product.left ..var_declaration))
- (<>.after (<text>.this //signature.parameters_start))
- (<>.before (<text>.this //signature.parameters_end))
- (<>.else (list)))
- ..inputs
- ..return
- (<>.some ..exception)))]
+ (all <>.and
+ (|> (<>.some (<>#each product.left ..var_declaration))
+ (<>.after (<text>.this //signature.parameters_start))
+ (<>.before (<text>.this //signature.parameters_end))
+ (<>.else (list)))
+ ..inputs
+ ..return
+ (<>.some ..exception)))]
(|>> //.signature
//signature.signature
(<text>.result parser)