Skip to content

Commit

Permalink
Re-named the of macro to by.
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoejp committed Jan 28, 2024
1 parent f53ef96 commit a2d9489
Show file tree
Hide file tree
Showing 617 changed files with 3,077 additions and 2,976 deletions.
6 changes: 3 additions & 3 deletions lux-c++/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as /runtime.Declaration)))

Expand Down Expand Up @@ -270,7 +270,7 @@
platform.#runtime /runtime.translation

platform.#phase_wrapper ..phase_wrapper
platform.#write (|>> _.code (of utf8.format injection))]])))
platform.#write (|>> _.code (by utf8.format injection))]])))

(the (extender _)
Extender
Expand All @@ -287,7 +287,7 @@
(the (declare_success! _)
(-> Any
(Async Any))
(async.future (of environment.default exit +0)))
(async.future (by environment.default exit +0)))

(the _
(program [service cli.service]
Expand Down
6 changes: 3 additions & 3 deletions lux-cl/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@

(the (ingest context content)
(|> content
(of encoding.utf8 projection)
(by encoding.utf8 projection)
try.trusted
(as (_.Expression Any))))

Expand All @@ -362,7 +362,7 @@
platform.#host host
platform.#phase common_lisp.translate
platform.#runtime runtime.translate
platform.#write (|>> _.code (of encoding.utf8 injection))])))
platform.#write (|>> _.code (by encoding.utf8 injection))])))

(the get_ecl_cli_inputs
(let [@idx (_.var "i")]
Expand Down Expand Up @@ -410,7 +410,7 @@
(the (declare_success! _)
(-> Any
(Promise Any))
(promise.future (of world/program.default exit +0)))
(promise.future (by world/program.default exit +0)))

(the (then pre post)
(-> (_.Expression Any) (_.Expression Any)
Expand Down
8 changes: 4 additions & 4 deletions lux-js/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Statement)))

Expand Down Expand Up @@ -620,7 +620,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Statement)))

Expand Down Expand Up @@ -659,7 +659,7 @@
platform.#phase js.expression
platform.#runtime runtime.translate
platform.#phase_wrapper ..phase_wrapper
platform.#write (|>> _.code (of utf8.format injection))])))
platform.#write (|>> _.code (by utf8.format injection))])))

(the (lux_program context program)
(Program _.Expression _.Statement)
Expand Down Expand Up @@ -714,7 +714,7 @@

(the (declare_success! _)
(-> Any (Async Any))
(async.future (of environment.default exit +0)))
(async.future (by environment.default exit +0)))

(the (scope body)
(-> _.Statement _.Statement)
Expand Down
4 changes: 2 additions & 2 deletions lux-jvm/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
[meta
[archive (.only Archive)]
["[0]" context]
["[0]" cli]
["[0]" cli]z
["[0]" packager
["[1]" jvm]]]
[language
Expand Down Expand Up @@ -152,7 +152,7 @@

(the (declare_success! _)
(-> Any (Async Any))
(async.future (of environment.default exit +0)))
(async.future (by environment.default exit +0)))

(the _
(program [service cli.service]
Expand Down
10 changes: 5 additions & 5 deletions lux-lua/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Statement)))

Expand Down Expand Up @@ -760,7 +760,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Statement)))

Expand Down Expand Up @@ -839,7 +839,7 @@
platform.#phase lua.expression
platform.#runtime runtime.translate
platform.#phase_wrapper (..phase_wrapper ..to_host)
platform.#write (|>> _.code (of utf8.format injection))]])))
platform.#write (|>> _.code (by utf8.format injection))]])))
.lua (the platform
(IO (Platform [Register _.Label] _.Expression _.Statement))
(do io.monad
Expand All @@ -849,7 +849,7 @@
platform.#phase lua.expression
platform.#runtime runtime.translate
platform.#phase_wrapper (..phase_wrapper ..to_host)
platform.#write (|>> _.code (of utf8.format injection))]))))
platform.#write (|>> _.code (by utf8.format injection))]))))

(the (lux_program context program)
(Program _.Expression _.Statement)
Expand All @@ -860,7 +860,7 @@

(the (declare_success! _)
(-> Any (Async Any))
(async.future (of world/environment.default exit +0)))
(async.future (by world/environment.default exit +0)))

(the (lux_compiler it)
(-> Any platform.Custom)
Expand Down
2 changes: 1 addition & 1 deletion lux-mode/lux-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ Called by `imenu--generic-function'."
(type//capability (altRE "capability"))
;; Data
(data//record (altRE "its" "has" "revised"))
(data//interface (altRE "use" "implementation" "with" "of"))
(data//interface (altRE "use" "implementation" "with" "by"))
(data//implicit (altRE "implicitly" "a/an" "a" "an"))
(data//collection (altRE "list" "sequence" "tree"))
;; Code
Expand Down
6 changes: 3 additions & 3 deletions lux-php/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Statement)))

Expand All @@ -519,7 +519,7 @@
platform.#host host
platform.#phase php.translate
platform.#runtime runtime.translate
platform.#write (|>> _.code (of utf8.format injection))])))
platform.#write (|>> _.code (by utf8.format injection))])))

(the (program context program)
(Program _.Expression _.Statement)
Expand Down Expand Up @@ -565,7 +565,7 @@

(the (declare_success! _)
(-> Any (Promise Any))
(promise.future (of world/program.default exit +0)))
(promise.future (by world/program.default exit +0)))

(`` (the _
(program [service /cli.service]
Expand Down
8 changes: 4 additions & 4 deletions lux-python/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Statement)))

Expand Down Expand Up @@ -483,7 +483,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Statement)))

Expand Down Expand Up @@ -539,7 +539,7 @@
platform.#phase python.expression
platform.#runtime runtime.translate
platform.#phase_wrapper ..phase_wrapper
platform.#write (|>> _.code (of utf8.format injection))])))
platform.#write (|>> _.code (by utf8.format injection))])))

(the (lux_program context program)
(Program _.Expression _.Statement)
Expand All @@ -556,7 +556,7 @@

(the (declare_success! _)
(-> Any (Async Any))
(async.future (of world/environment.default exit +0)))
(async.future (by world/environment.default exit +0)))

(the (scope body)
(-> _.Statement _.Statement)
Expand Down
6 changes: 3 additions & 3 deletions lux-r/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Expression)))

Expand All @@ -561,7 +561,7 @@
platform.#host host
platform.#phase r.translate
platform.#runtime runtime.translate
platform.#write (|>> _.code (of utf8.format injection))]])))
platform.#write (|>> _.code (by utf8.format injection))]])))

(the (program context program)
(Program _.Expression _.Expression)
Expand Down Expand Up @@ -591,7 +591,7 @@

(the (declare_success! _)
(-> Any (Promise Any))
(promise.future (of world/program.default exit +0)))
(promise.future (by world/program.default exit +0)))

(the (scope body)
(-> _.Expression _.Expression)
Expand Down
6 changes: 3 additions & 3 deletions lux-ruby/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@

(the (ingest context content)
(|> content
(of utf8.format projection)
(by utf8.format projection)
try.trusted
(as _.Statement)))

Expand Down Expand Up @@ -974,7 +974,7 @@
platform.#phase ruby.expression
platform.#runtime runtime.translate
platform.#phase_wrapper ..phase_wrapper
platform.#write (|>> _.code (of utf8.format injection))])))
platform.#write (|>> _.code (by utf8.format injection))])))

(the (lux_program context program)
(Program _.Expression _.Statement)
Expand All @@ -990,7 +990,7 @@

(the (declare_success! _)
(-> Any (Async Any))
(async.future (of world/environment.default exit +0)))
(async.future (by world/environment.default exit +0)))

(the (lux_compiler it)
(-> Any platform.Custom)
Expand Down
6 changes: 3 additions & 3 deletions lux-scheme/source/program.lux
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@

(the (ingest context content)
(|> content
(of encoding.utf8 projection)
(by encoding.utf8 projection)
try.trusted
(as _.Expression)))

Expand All @@ -416,7 +416,7 @@
platform.#host host
platform.#phase scheme.translate
platform.#runtime runtime.translate
platform.#write (|>> _.code (of encoding.utf8 injection))])))
platform.#write (|>> _.code (by encoding.utf8 injection))])))

(the (program context program)
(Program _.Expression _.Expression)
Expand Down Expand Up @@ -459,7 +459,7 @@

(the (declare_success! _)
(-> Any (Promise Any))
(promise.future (of world/program.default exit +0)))
(promise.future (by world/program.default exit +0)))

(`` (the _
(program [service /cli.service]
Expand Down
14 changes: 7 additions & 7 deletions stdlib/source/documentation/lux.lux
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@
"Opens a implementation and generates a definition for each of its members (including nested members)."
($.example (' (use "i:[0]" order)))
($.comment "=>")
($.example (' (the i:= (of order =))))
($.example (' (the i:< (of order <)))))
($.example (' (the i:= (by order =))))
($.example (' (the i:< (by order <)))))

($.definition /.|>>
"Similar to the piping macro, but rather than taking an initial object to work on, creates a function for taking it."
Expand Down Expand Up @@ -597,12 +597,12 @@
[//
[type (.use "[0]" equivalence)]]))))

($.definition /.of
($.definition /.by
"Allows accessing the value of a implementation's member."
($.example (' (of format injection)))
($.example (' (by format injection)))

($.comment "Also allows using that value as a function.")
($.example (' (of format injection +123))))
($.example (' (by format injection +123))))

($.definition /.has
"Sets the value of a record at a given tag."
Expand Down Expand Up @@ -702,7 +702,7 @@
[<tests> (template.with [<function> <parameter> <expected>]
[(cover [<function>]
(compare <text>
(of format injection <function> <parameter>)))]
(by format injection <function> <parameter>)))]

[bit #1 "#1"]
[integer +123 "+123"]
Expand Down Expand Up @@ -795,7 +795,7 @@
... ($.example (' (the (hash (^let set [member_hash _]))
... (list#mix (function (_ elem acc)
... (+ acc
... (of member_hash hash elem)))
... (by member_hash hash elem)))
... 0
... (set.list set))))))

Expand Down
2 changes: 1 addition & 1 deletion stdlib/source/documentation/lux/math/number/decimal.lux
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@

($.definition /.approximately
""
($.example (' (of (approximately margin_of_error) = standard value))))
($.example (' (by (approximately margin_of_error) = standard value))))

($.definition /.mod
""
Expand Down
6 changes: 3 additions & 3 deletions stdlib/source/documentation/lux/meta/type/implicit.lux
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
\n \n "Caveat emptor: You need to make sure to import the module of any implementation you want to use."
\n "Otherwise, this macro will not find it.")
($.example (' ($.comment "Natural equivalence")))
($.example (' (of number.equivalence = x y)))
($.example (' (by number.equivalence = x y)))
($.example (' (any = x y)))

($.comment "Can optionally add the prefix of the module where the signature was defined.")
Expand All @@ -46,12 +46,12 @@
($.definition /.with
"Establish lexical bindings for implementations that will be prioritized over non-lexically-bound implementations."
($.example (' (with [n.addition]
(n.= (of n.addition composite left right)
(n.= (by n.addition composite left right)
(any composite left right))))))

($.definition /.implicitly
"Establish local definitions for implementations that will be prioritized over foreign definitions."
($.example (' (implicitly n.multiplication)))
($.example (' (n.= (of n.multiplication composite left right)
($.example (' (n.= (by n.multiplication composite left right)
(any composite left right)))))
))
Loading

0 comments on commit a2d9489

Please sign in to comment.