From 2113893010a6ebaae4dfa6fadfda6f674336b69b Mon Sep 17 00:00:00 2001 From: Will Budic Date: Sun, 9 Nov 2025 19:52:00 +1100 Subject: [PATCH] Spelling constants not constances. --- Specifications_For_CNF_ReadMe.md | 8 ++++---- tests/example.cnf | 4 ++-- tests/testCNFConstances.pl | 6 +++--- tests/test_CursesProgressBar.pl | 2 +- vscode_local_extensions/perlcnf-extension/extension.js | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Specifications_For_CNF_ReadMe.md b/Specifications_For_CNF_ReadMe.md index a9b1836..614849f 100644 --- a/Specifications_For_CNF_ReadMe.md +++ b/Specifications_For_CNF_ReadMe.md @@ -27,11 +27,11 @@ Quick Jump: [CNF Tag Formats](#cnf-tag-formats) | [CNF Collections Formatting] 4. Multi line values are tag ended on a separate line with an **>>>**. 5. CNF tag value can post processed by placing macros making it a template. 6. Standard markup of a macro is to enclose the property name or number with a triple dollar signifier **\$\$\$**{macro}**\$\$\$**. - 1. Precedence of resolving the property name/value is by first passed macros, then config anons and finally the looking up constances. + 1. Precedence of resolving the property name/value is by first passed macros, then config anons and finally the looking up constants. 2. Nested macros resolving from linked in other properties is currently not supported. 7. CNF full tag syntax format: **```<<{$|@|%}NAME{}{}>>```**, the name and instruction parts, sure open but don't have to be closed with **>** on a multiple line value. 8. CNF instructions and constants are uppercase. - 1. Example 1 format with instruction: ```<<>>``` autonomous const ins., with inner attributes as constances. + 1. Example 1 format with instruction: ```<<>>``` autonomous const ins., with inner attributes as constants. 2. Example 2 format with instruction: ```<<{$sig}{NAME}>>``` A single const property with a multi line value. 3. Example 3 format with instruction: ```<>>``` A single const property with a multi line value. 4. Example 4 format with instruction: ```<<{NAME}<{INSTRUCTION}<{value}>>>``` A anon. @@ -277,7 +277,7 @@ Quick Jump: [Introduction](#introduction) | [CNF Tag Formats](#cnf-tag-formats) 1. Reserved words relate to instructions, that are specially treated, and interpreted by the parser to perform extra or specifically processing on the current value. 2. Reserved instructions can't be used for future custom ones, and also not recommended tag or property names. 3. Current Reserved words list is. - - CONST - Concentrated list of constances, or individually tagged a name and its value. + - CONST - Concentrated list of constants, or individually tagged a name and its value. - VARIABLE - Concentrated list of anons, or individually tagged name and its value. - DATA - CNF scripted delimited data property, having uniform table data rows. - FILE - CNF scripted delimited data property is in a separate file. @@ -285,7 +285,7 @@ Quick Jump: [Introduction](#introduction) | [CNF Tag Formats](#cnf-tag-formats) - TABLE - SQL related. - TREE - Property is a CNFNode tree containing multiple depth nested children nodes. - INCLUDE - Include properties from another file to this repository. - - Included files constances are ignored if are in parent file assigned. + - Included files constants are ignored if are in parent file assigned. - Includes are processed last and not on the spot, so their anons encountered take over precedence. - Include instruction use is not recommended and is as same to as calling the parse method of the parser. - INDEX - SQL related. diff --git a/tests/example.cnf b/tests/example.cnf index d635a09..b088553 100644 --- a/tests/example.cnf +++ b/tests/example.cnf @@ -159,9 +159,9 @@ Or performs white-space stripings or trimming. >> /** - Typical app settings converted into CNF constances via meta tag instruction. + Typical app settings converted into CNF constants via meta tag instruction. If name is uppercase and has a '$' prefix. - The Collection property will exlude them from its list and appoint as constances + The Collection property will exlude them from its list and appoint as constants if they have not been already assigned. This is a pure convenince thing to keep settings under one property. **/ diff --git a/tests/testCNFConstances.pl b/tests/testCNFConstances.pl index 89b9a76..81e15bd 100644 --- a/tests/testCNFConstances.pl +++ b/tests/testCNFConstances.pl @@ -24,7 +24,7 @@ try{ $test->subcase('Test undeclared constance access!'); try{ my $immutable = $cnf->{IMMUTABLE}; - $test->failed("Failed access allowed to undefined constances.") + $test->failed("Failed access allowed to undefined constants.") }catch{ $test->passed("It errored, trying to access undeclared constance."); } @@ -35,7 +35,7 @@ try{ $test->passed("Passed to access constance with variable resolve."); $test->isDefined('$FRENCH_PARAGRAPH',$immutable); }catch{ - $test->failed("Failed access allowed to undefined constances.") + $test->failed("Failed access allowed to undefined constants.") } # ### @@ -51,7 +51,7 @@ try{ # ### - # Test constances. + # Test constants. ### $test->case("Test mutability."); try{ diff --git a/tests/test_CursesProgressBar.pl b/tests/test_CursesProgressBar.pl index d6bf389..29f7feb 100644 --- a/tests/test_CursesProgressBar.pl +++ b/tests/test_CursesProgressBar.pl @@ -8,7 +8,7 @@ use feature 'signatures'; # use lib::relative (".","../system/modules"); ## -use CNFParser; +use CNFParser; use TestManager; my $test = TestManager -> new($0)-> unsuited(); my $cnf = CNFParser->blank()->parse(undef,q{ diff --git a/vscode_local_extensions/perlcnf-extension/extension.js b/vscode_local_extensions/perlcnf-extension/extension.js index 8ea9bc6..783af3f 100644 --- a/vscode_local_extensions/perlcnf-extension/extension.js +++ b/vscode_local_extensions/perlcnf-extension/extension.js @@ -5,7 +5,7 @@ const vscode = require('vscode'); const cnfKeywords = [ { keyword: "CONSTANCE", - description: "Concentrated list of constances, or individually tagged name and its value.", + description: "Concentrated list of constants, or individually tagged name and its value.", template: "CONST>", // Simple completion }, { -- 2.34.1