From 9e7ddacf853efd7a18c1911d2f287d483b083229 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 3 Jul 2022 00:35:32 -0400 Subject: Added a new custom type for pattern-matching macros. --- stdlib/source/documentation/lux.lux | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'stdlib/source/documentation/lux.lux') diff --git a/stdlib/source/documentation/lux.lux b/stdlib/source/documentation/lux.lux index 7be9e1622..1819cb426 100644 --- a/stdlib/source/documentation/lux.lux +++ b/stdlib/source/documentation/lux.lux @@ -11,9 +11,7 @@ ["%" \\format (.only format)]] [collection ["[0]" list] - ["[0]" set]]] - [macro - ["[0]" template]]]] + ["[0]" set]]]]] [\\library ["[0]" /]] ["[0]" / @@ -25,7 +23,6 @@ ["[1][0]" extension] ["[1][0]" ffi] ["[1][0]" locale] - ["[1][0]" macro] ["[1][0]" math] ["[1][0]" meta] ["[1][0]" program] @@ -357,7 +354,7 @@ \n "It's a special macro meant to be used with 'case'.") [(case (is (List Int) (list +1 +2 +3)) - (pattern (list x y z)) + (list x y z) {#Some (all * x y z)} _ @@ -428,7 +425,7 @@ (macro (_ tokens) (case tokens (^with_template [] - [(pattern (list [_ { [module name]}])) + [(list [_ { [module name]}]) (in (list (` [(, (text$ module)) (, (text$ name))])))]) ([#Symbol]) @@ -712,13 +709,13 @@ [(def my_nat 123) (def my_text "456") (and (case [my_nat my_text] - (pattern (static [..my_nat ..my_text])) + (static [..my_nat ..my_text]) true _ false) (case [my_nat my_text] - (pattern [(static ..my_nat) (static ..my_text)]) + [(static ..my_nat) (static ..my_text)] true _ @@ -898,7 +895,6 @@ /extension.documentation /ffi.documentation /locale.documentation - /macro.documentation /math.documentation /meta.documentation /program.documentation -- cgit v1.2.3