@usearazzo/parser 1.0.1-alpha.17 → 1.0.1-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.1-alpha.18](https://github.com/usearazzo/arazzo-toolkit/compare/v1.0.1-alpha.17...v1.0.1-alpha.18) (2026-10-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @usearazzo/parser
|
|
9
|
+
|
|
6
10
|
## [1.0.1-alpha.17](https://github.com/usearazzo/arazzo-toolkit/compare/v1.0.1-alpha.16...v1.0.1-alpha.17) (2026-10-29)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @usearazzo/parser
|
|
@@ -54264,7 +54264,7 @@ const Ast = function fnast() {
|
|
|
54264
54264
|
xml += `<root nodes="${records.length / 2}" characters="${chars.length}">\n`;
|
|
54265
54265
|
xml += `<!-- input string -->\n`;
|
|
54266
54266
|
xml += indent(depth + 2);
|
|
54267
|
-
xml += utils.
|
|
54267
|
+
xml += utils.charsToXmlString(chars);
|
|
54268
54268
|
xml += '\n';
|
|
54269
54269
|
records.forEach((rec) => {
|
|
54270
54270
|
if (rec.state === id.SEM_PRE) {
|
|
@@ -54272,7 +54272,7 @@ const Ast = function fnast() {
|
|
|
54272
54272
|
xml += indent(depth);
|
|
54273
54273
|
xml += `<node name="${rec.name}" index="${rec.phraseIndex}" length="${rec.phraseLength}">\n`;
|
|
54274
54274
|
xml += indent(depth + 2);
|
|
54275
|
-
xml += utils.
|
|
54275
|
+
xml += utils.charsToXmlString(chars, rec.phraseIndex, rec.phraseLength);
|
|
54276
54276
|
xml += '\n';
|
|
54277
54277
|
} else {
|
|
54278
54278
|
xml += indent(depth);
|
|
@@ -54654,6 +54654,14 @@ const utilities = {
|
|
|
54654
54654
|
}
|
|
54655
54655
|
return String.fromCodePoint(...subChars);
|
|
54656
54656
|
},
|
|
54657
|
+
charsToXmlString: (chars, beg, len) =>
|
|
54658
|
+
utilities
|
|
54659
|
+
.charsToString(chars, beg, len)
|
|
54660
|
+
.replace(/&/g, '&')
|
|
54661
|
+
.replace(/</g, '<')
|
|
54662
|
+
.replace(/>/g, '>')
|
|
54663
|
+
.replace(/'/g, ''')
|
|
54664
|
+
.replace(/"/g, '"'),
|
|
54657
54665
|
};
|
|
54658
54666
|
|
|
54659
54667
|
const identifiers = {
|