aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/ffi.php.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/ffi.php.lux26
1 files changed, 13 insertions, 13 deletions
diff --git a/stdlib/source/library/lux/ffi.php.lux b/stdlib/source/library/lux/ffi.php.lux
index 94732874e..6199df2ad 100644
--- a/stdlib/source/library/lux/ffi.php.lux
+++ b/stdlib/source/library/lux/ffi.php.lux
@@ -8,14 +8,14 @@
[control
["[0]" io]
["[0]" maybe]
- ["<>" parser ("[1]\[0]" monad)
+ ["<>" parser ("[1]#[0]" monad)
["<[0]>" code {"+" [Parser]}]]]
[data
["[0]" product]
["[0]" text
["%" format]]
[collection
- ["[0]" list ("[1]\[0]" functor)]]]
+ ["[0]" list ("[1]#[0]" functor)]]]
[type
abstract]
[macro {"+" [with_identifiers]}
@@ -80,7 +80,7 @@
(def: constant
(Parser Field)
(<code>.form ($_ <>.and
- (<>\in true)
+ (<>#in true)
<code>.local_identifier
(<>.maybe ..alias)
..nullable)))
@@ -135,7 +135,7 @@
(def: input_variables
(-> (List Nullable) (List [Bit Code]))
(|>> list.enumeration
- (list\each (function (_ [idx [nullable? type]])
+ (list#each (function (_ [idx [nullable? type]])
[nullable? (|> idx %.nat code.local_identifier)]))))
(def: (nullable_type [nullable? type])
@@ -223,8 +223,8 @@
(-> Code Code Code (List Nullable) Bit Bit Nullable Code)
(let [g!inputs (input_variables inputsT)]
(` (def: ((~ g!method)
- [(~+ (list\each product.right g!inputs))])
- (-> [(~+ (list\each nullable_type inputsT))]
+ [(~+ (list#each product.right g!inputs))])
+ (-> [(~+ (list#each nullable_type inputsT))]
(~ (|> (nullable_type outputT)
(try_type try?)
(io_type io?))))
@@ -234,7 +234,7 @@
(without_null g!temp outputT)
(` ("php apply"
(:as ..Function (~ source))
- (~+ (list\each (with_null g!temp) g!inputs)))))))))))
+ (~+ (list#each (with_null g!temp) g!inputs)))))))))))
(syntax: .public (import: [import ..import])
(with_identifiers [g!temp]
@@ -251,12 +251,12 @@
class_import (` ("php constant" (~ (code.text class))))]
(in (list& (` (type: (~ g!type)
(..Object (primitive (~ (code.text class))))))
- (list\each (function (_ member)
+ (list#each (function (_ member)
(case member
{#Field [static? field alias fieldT]}
(if static?
(` ((~! syntax:) ((~ (qualify (maybe.else field alias))) [])
- (\ (~! meta.monad) (~' in)
+ (# (~! meta.monad) (~' in)
(list (` (.:as (~ (nullable_type fieldT))
("php constant" (~ (code.text (%.format class "::" field))))))))))
(` (def: ((~ (qualify field))
@@ -283,9 +283,9 @@
{#Virtual [method alias inputsT io? try? outputT]}
(let [g!inputs (input_variables inputsT)]
(` (def: ((~ (qualify (maybe.else method alias)))
- [(~+ (list\each product.right g!inputs))]
+ [(~+ (list#each product.right g!inputs))]
(~ g!object))
- (-> [(~+ (list\each nullable_type inputsT))]
+ (-> [(~+ (list#each nullable_type inputsT))]
(~ g!type)
(~ (|> (nullable_type outputT)
(try_type try?)
@@ -297,7 +297,7 @@
(` ("php object do"
(~ (code.text method))
(~ g!object)
- (~+ (list\each (with_null g!temp) g!inputs)))))))))))))
+ (~+ (list#each (with_null g!temp) g!inputs)))))))))))))
members)))))
{#Function [name alias inputsT io? try? outputT]}
@@ -313,6 +313,6 @@
{#Constant [_ name alias fieldT]}
(let [imported (` ("php constant" (~ (code.text name))))]
(in (list (` ((~! syntax:) ((~ (code.local_identifier (maybe.else name alias))) [])
- (\ (~! meta.monad) (~' in)
+ (# (~! meta.monad) (~' in)
(list (` (.:as (~ (nullable_type fieldT)) (~ imported))))))))))
)))