From 0797dfc9ebb32e5eb324eec58e1e4b1c99895ce7 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 14 Sep 2021 01:26:29 -0400 Subject: Re-named "Name" to "Symbol". --- stdlib/source/documentation/lux.lux | 9 ++++---- stdlib/source/documentation/lux/data.lux | 2 -- stdlib/source/documentation/lux/data/name.lux | 29 ------------------------- stdlib/source/documentation/lux/meta.lux | 6 +++-- stdlib/source/documentation/lux/meta/symbol.lux | 29 +++++++++++++++++++++++++ 5 files changed, 38 insertions(+), 37 deletions(-) delete mode 100644 stdlib/source/documentation/lux/data/name.lux create mode 100644 stdlib/source/documentation/lux/meta/symbol.lux (limited to 'stdlib/source/documentation') diff --git a/stdlib/source/documentation/lux.lux b/stdlib/source/documentation/lux.lux index c6c5394f9..2fe05c99e 100644 --- a/stdlib/source/documentation/lux.lux +++ b/stdlib/source/documentation/lux.lux @@ -80,8 +80,9 @@ (documentation: /.Text "Your standard, run-of-the-mill string values.") -(documentation: /.Name - "A name. It is used as part of Lux syntax to represent identifiers and tags.") +(documentation: /.Symbol + (format "A name for a Lux definition." + \n "It includes the module of provenance.")) (documentation: (/.Maybe value) "A potentially missing value.") @@ -339,7 +340,7 @@ {#UnivQ (List @) @} {#ExQ (List @) @} {#Apply @ @} - {#Named Name @})))]) + {#Named Symbol @})))]) (documentation: /.exec "Sequential execution of expressions (great for side-effects)." @@ -920,7 +921,7 @@ ..Rev ..Frac ..Text - ..Name + ..Symbol ..Maybe ..Type ..Location diff --git a/stdlib/source/documentation/lux/data.lux b/stdlib/source/documentation/lux/data.lux index 5fce18ca7..1e86a77fc 100644 --- a/stdlib/source/documentation/lux/data.lux +++ b/stdlib/source/documentation/lux/data.lux @@ -14,7 +14,6 @@ ["[1][0]" color] ["[1][0]" format] ["[1][0]" identity] - ["[1][0]" name] ["[1][0]" product] ["[1][0]" sum] ["[1][0]" text]]) @@ -28,7 +27,6 @@ /color.documentation /format.documentation /identity.documentation - /name.documentation /product.documentation /sum.documentation /text.documentation diff --git a/stdlib/source/documentation/lux/data/name.lux b/stdlib/source/documentation/lux/data/name.lux deleted file mode 100644 index 3406e9654..000000000 --- a/stdlib/source/documentation/lux/data/name.lux +++ /dev/null @@ -1,29 +0,0 @@ -(.module: - [library - [lux {"-" nat int rev list type or and} - ["$" documentation {"+" documentation:}] - [data - [text {"+" \n} - ["%" format {"+" format}]]] - [macro - ["[0]" template]]]] - [\\library - ["[0]" /]]) - -(documentation: /.module - "The module part of a name.") - -(documentation: /.short - "The short part of a name.") - -(.def: .public documentation - (.List $.Module) - ($.module /._ - "" - [..module - ..short - ($.default /.hash) - ($.default /.equivalence) - ($.default /.order) - ($.default /.codec)] - [])) diff --git a/stdlib/source/documentation/lux/meta.lux b/stdlib/source/documentation/lux/meta.lux index 960bef2da..4d348d681 100644 --- a/stdlib/source/documentation/lux/meta.lux +++ b/stdlib/source/documentation/lux/meta.lux @@ -10,7 +10,8 @@ [\\library ["[0]" /]] ["[0]" / "_" - ["[1][0]" location]]) + ["[1][0]" location] + ["[1][0]" symbol]]) (documentation: /.result' (format "Evaluates a computation that depends on Lux's compiler state." @@ -197,4 +198,5 @@ ($.default /.monad) ($.default /.lifted) ($.default /.try)] - [/location.documentation])) + [/location.documentation + /symbol.documentation])) diff --git a/stdlib/source/documentation/lux/meta/symbol.lux b/stdlib/source/documentation/lux/meta/symbol.lux new file mode 100644 index 000000000..c4dc3a7a5 --- /dev/null +++ b/stdlib/source/documentation/lux/meta/symbol.lux @@ -0,0 +1,29 @@ +(.module: + [library + [lux {"-" nat int rev list type or and} + ["$" documentation {"+" documentation:}] + [data + [text {"+" \n} + ["%" format {"+" format}]]] + [macro + ["[0]" template]]]] + [\\library + ["[0]" /]]) + +(documentation: /.module + "The module part of a symbol.") + +(documentation: /.short + "The short part of a symbol.") + +(.def: .public documentation + (.List $.Module) + ($.module /._ + "" + [..module + ..short + ($.default /.hash) + ($.default /.equivalence) + ($.default /.order) + ($.default /.codec)] + [])) -- cgit v1.2.3