aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/macro/pattern.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/macro/pattern.lux26
1 files changed, 13 insertions, 13 deletions
diff --git a/stdlib/source/library/lux/macro/pattern.lux b/stdlib/source/library/lux/macro/pattern.lux
index 9e8e64d70..7408d86e2 100644
--- a/stdlib/source/library/lux/macro/pattern.lux
+++ b/stdlib/source/library/lux/macro/pattern.lux
@@ -2,10 +2,10 @@
[library
[lux (.except or let with_template |> `)]])
-(def: partial_list
+(def partial_list
(`` ("lux in-module" (~~ (static .prelude)) .partial_list)))
-(def: locally
+(def locally
(macro (_ tokens lux)
(.let [[prelude _] (symbol ._)]
(case tokens
@@ -17,7 +17,7 @@
{.#Left ""}))))
(.with_template [<name>]
- [(def: <name> (..locally <name>))]
+ [(def <name> (..locally <name>))]
[list#size]
[list#composite]
@@ -72,7 +72,7 @@
[frac$]
)
-(def: .public or
+(def .public or
(macro (_ tokens)
(case tokens
(pattern (partial_list [_ {.#Form patterns}] body branches))
@@ -88,7 +88,7 @@
_
(failure (..wrong_syntax_error (symbol ..or))))))
-(def: .public with_template
+(def .public with_template
(macro (_ tokens)
(case tokens
(pattern (partial_list [_ {.#Form (list [_ {.#Tuple bindings}]
@@ -118,7 +118,7 @@
_
(failure (..wrong_syntax_error (symbol ..with_template))))))
-(def: .public multi
+(def .public multi
(macro (_ tokens)
(case tokens
(pattern (partial_list [_meta {.#Form levels}] body next_branches))
@@ -150,7 +150,7 @@
_
(failure (..wrong_syntax_error (symbol ..multi))))))
-(def: .public let
+(def .public let
(macro (_ tokens)
(case tokens
(pattern (partial_list [_meta {.#Form (list [_ {.#Symbol ["" name]}] pattern)}] body branches))
@@ -162,7 +162,7 @@
_
(failure (..wrong_syntax_error (symbol ..let))))))
-(def: .public |>
+(def .public |>
(macro (_ tokens)
(case tokens
(pattern (partial_list [_meta {.#Form (list [_ {.#Symbol ["" name]}] [_ {.#Tuple steps}])}] body branches))
@@ -175,11 +175,11 @@
_
(failure (..wrong_syntax_error (symbol ..|>))))))
-(def: (name$ [module name])
+(def (name$ [module name])
(-> Symbol Code)
(.` [(~ (text$ module)) (~ (text$ name))]))
-(def: (untemplated_partial_list last inits)
+(def (untemplated_partial_list last inits)
(-> Code (List Code) Code)
(case inits
{.#End}
@@ -189,7 +189,7 @@
(.` {.#Item (~ init) (~ (untemplated_partial_list last inits'))})))
(.with_template [<tag> <name>]
- [(def: (<name> g!meta untemplated_pattern elems)
+ [(def (<name> g!meta untemplated_pattern elems)
(-> Code (-> Code (Meta Code))
(-> (List Code) (Meta Code)))
(case (list#reversed elems)
@@ -209,7 +209,7 @@
[.#Tuple untemplated_tuple]
)
-(def: (untemplated_pattern pattern)
+(def (untemplated_pattern pattern)
(-> Code (Meta Code))
(do meta#monad
[g!meta (..generated_symbol "g!meta")]
@@ -239,7 +239,7 @@
[.#Tuple ..untemplated_tuple])
)))
-(def: .public `
+(def .public `
(macro (_ tokens)
(case tokens
(pattern (partial_list [_meta {.#Form (list template)}] body branches))