Fixes.
h3rald h3rald@h3rald.com
Fri, 12 Feb 2021 22:27:10 +0000
5 files changed,
24 insertions(+),
10 deletions(-)
M
help.json
→
help.json
@@ -32,7 +32,7 @@ "kind": "symbol",
"name": "&" }, "'": { - "description": "See quote", + "description": "See quotesym", "kind": "symbol", "name": "'" },@@ -794,7 +794,7 @@ "name": "flatten",
"signature": "quot1 ==> quot2" }, "float": { - "description": "Converts a to an integer value based on the following rules:\n \n * If a is true, it is converted to 1.0.\n * If a is false , it is converted to 0.0.\n * If a is null, it is converted to 0.0\n. * If a is a integer, it is converted to float value.\n * If a is a float, no conversion is performed.\n * If a is a string, it is parsed as a float value.", + "description": "Converts a to a float value based on the following rules:\n \n * If a is true, it is converted to 1.0.\n * If a is false , it is converted to 0.0.\n * If a is null, it is converted to 0.0\n. * If a is a integer, it is converted to float value.\n * If a is a float, no conversion is performed.\n * If a is a string, it is parsed as a float value.", "kind": "symbol", "name": "float", "signature": "a ==> flt"@@ -997,10 +997,10 @@ "kind": "symbol",
"name": "insert", "signature": "quot1 a int ==> quot2" }, - "int": { + "integer": { "description": "Converts a to an integer value based on the following rules:\n \n * If a is true, it is converted to 1.\n * If a is false , it is converted to 0.\n * If a is null, it is converted to 0.\n * If a is an integer, no conversion is performed.\n * If a is a float, it is converted to an integer value by truncating its decimal part.\n * If a is a string, it is parsed as an integer value.", "kind": "symbol", - "name": "int", + "name": "integer", "signature": "a ==> int" }, "integer?": {@@ -1435,6 +1435,12 @@ "kind": "symbol",
"name": "quote-map", "signature": "quot1 ==> quot2" }, + "quotesym": { + "description": "Creates a symbol with the value of str and wraps it in a quotation.", + "kind": "symbol", + "name": "quotesym", + "signature": "str ==> (sym)" + }, "r2d": { "description": "Converts num1 from radians to degrees.", "kind": "symbol",@@ -2024,10 +2030,16 @@ "name": "type",
"signature": "a ==> str" }, "type?": { - "description": "Returns true if the data type of a is the specified type 'sym, false otherwise.", + "description": "Returns true if the data type of a satisfies the specified type expression 'sym, false otherwise.", "kind": "symbol", "name": "type?", "signature": "a 'sym ==> bool" + }, + "typealias": { + "description": "Creates a type alias 'sym1 for type expression 'sym2.", + "kind": "symbol", + "name": "typealias", + "signature": "'sym1 'sym2 ==> " }, "union": { "description": "Calculates the union quot3 of quot1 and quot2.\n\n \n Example\n \n The following program leaves (true 1 \"test\" \"a\" 2) on the stack:\n \n (1 2 \"test\") (\"test\" \"a\" true 1) union",@@ -2142,7 +2154,7 @@ "kind": "symbol",
"name": "&" }, "'": { - "description": "See quote", + "description": "See quotesym", "kind": "symbol", "name": "'" },
M
next-release.md
→
next-release.md
@@ -1,6 +1,6 @@
### Breaking changes -* #141 - The **'** symbol is now an alias of the **quotesym** symbol (but its behavior remains the same: it can be used to created quotes symbols from a string), and the **'** sigil is equivalent to the new **quotesym** symbol, not **quote**. +* #141 - The **'** symbol is now an alias of the **quotesym** symbol (but its behavior remains the same: it can be used to created quoted symbols from a string), and the **'** sigil is equivalent to the new **quotesym** symbol, not **quote**. ### Fixes@@ -8,7 +8,7 @@ * #140 - It is now possible to invoke symbols on ROOT.
* #147 - Fixed an error when processing operator output values. * Now adding **help.json** to installation folder when installing via nimble. * #151 - Added documentation for **integer**. -* #152 - Now preventing infinite recursion in case a symbol evaluates to itsel. +* #152 - Now preventing infinite recursion in case a symbol evaluates to itself. ### New features
M
site/contents/_defs_.md
→
site/contents/_defs_.md
@@ -44,6 +44,7 @@ {{1p => [<sub>\+</sub>](class:kwd)}}
{{sl => ['sym](class:kwd)}} {{sl1 => ['sym<sub>1</sub>](class:kwd)}} {{sl2 => ['sym<sub>2</sub>](class:kwd)}} +{{sym => [sym](class:kwd)}} {{f => [false](class:kwd)}} {{t => [true](class:kwd)}} {{null => [null](class:kwd)}}
M
site/contents/reference-lang.md
→
site/contents/reference-lang.md
@@ -363,8 +363,8 @@
{#op||quote||{{any}}||({{any}})|| Wraps {{any}} in a quotation. #} -{#op||quotesym||{{str}}||({{sym}})|| -Creates a symbol with the value of {{str}} and wraps it in a quotation. #} +{#op||quotesym||{{s}}||({{sym}})|| +Creates a symbol with the value of {{s}} and wraps it in a quotation. #} {#op||raise||{{e}}||{{none}}||
M
tasks/data/doc-snippets.json
→
tasks/data/doc-snippets.json
@@ -45,6 +45,7 @@ "1p": "+",
"sl": "'sym", "sl1": "'sym1", "sl2": "'sym2", + "sym": "sym", "f": "false ", "t": "true", "null": "null",