occam-parsers 23.0.139 → 23.0.141
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/example.js +7 -7
- package/lib/basic/parser.js +1 -1
- package/lib/definition/callAheadModifierRule.js +1 -1
- package/lib/definition/choiceOfParts.js +1 -1
- package/lib/definition/definition.js +1 -1
- package/lib/definition/definitions.js +1 -1
- package/lib/definition/document.js +1 -1
- package/lib/definition/error.js +1 -1
- package/lib/definition/name.js +1 -1
- package/lib/definition/noWhitespacePart.js +1 -1
- package/lib/definition/opacityModifierRule.js +1 -1
- package/lib/definition/partChoice.js +1 -1
- package/lib/definition/partRule/nonTerminal/ruleName.js +1 -1
- package/lib/definition/partRule/nonTerminal.js +1 -1
- package/lib/definition/partRule/terminal.js +1 -1
- package/lib/definition/precedence.js +1 -1
- package/lib/definition/quantifierRule.js +1 -1
- package/lib/definition/rule.js +1 -1
- package/lib/definition/ruleName.js +1 -1
- package/lib/definition/sequenceOfParts.js +1 -1
- package/lib/definition/significantTokenType.js +1 -1
- package/lib/definition/startOfContentPart.js +1 -1
- package/lib/definition/terminalSymbol.js +1 -1
- package/lib/example/basic/lexer.js +2 -3
- package/lib/example/basic/parser.js +1 -1
- package/lib/example/view/basic.js +1 -1
- package/lib/example/view/bnf.js +2 -3
- package/lib/example/view/input/ruleName.js +1 -1
- package/lib/example/view/textarea/bnf.js +1 -1
- package/lib/example/view/textarea/content.js +1 -1
- package/lib/example/view/textarea/lexicalEntries.js +1 -1
- package/lib/example/view/textarea/parseTree.js +1 -1
- package/lib/example/view/textarea/tokens.js +1 -1
- package/lib/example/view.js +1 -1
- package/lib/mixins/node.js +5 -5
- package/lib/node/bnf/callAheadModifier.js +1 -1
- package/lib/node/bnf/choiceOfParts.js +1 -1
- package/lib/node/bnf/definition.js +1 -1
- package/lib/node/bnf/definitions.js +1 -1
- package/lib/node/bnf/document.js +1 -1
- package/lib/node/bnf/endOfLine.js +1 -1
- package/lib/node/bnf/epsilon.js +1 -1
- package/lib/node/bnf/error.js +1 -1
- package/lib/node/bnf/name.js +1 -1
- package/lib/node/bnf/noWhitespacePart.js +1 -1
- package/lib/node/bnf/opacityModifier.js +1 -1
- package/lib/node/bnf/part/nonTerminal.js +1 -1
- package/lib/node/bnf/part/terminal.js +1 -1
- package/lib/node/bnf/part.js +1 -1
- package/lib/node/bnf/partChoice.js +1 -1
- package/lib/node/bnf/precedence.js +1 -1
- package/lib/node/bnf/quantifier.js +1 -1
- package/lib/node/bnf/rule.js +1 -1
- package/lib/node/bnf/ruleName.js +1 -1
- package/lib/node/bnf/sequenceOfParts.js +1 -1
- package/lib/node/bnf/startOfContentPart.js +1 -1
- package/lib/node/bnf/wildcard.js +1 -1
- package/lib/node/nonTerminal.js +1 -1
- package/lib/node/terminal/endOfLine.js +1 -1
- package/lib/node/terminal/epsilon.js +1 -1
- package/lib/node/terminal/noWhitespace.js +1 -1
- package/lib/node/terminal/startOfContent.js +1 -1
- package/lib/node/terminal.js +3 -3
- package/lib/parseTree/childNodes.js +1 -1
- package/lib/parseTree/endOfLineNode.js +1 -1
- package/lib/parseTree/epsilonNode.js +1 -1
- package/lib/parseTree/horizontalBranch.js +1 -1
- package/lib/parseTree/noWhitespaceNode.js +1 -1
- package/lib/parseTree/nonTerminalNode.js +1 -1
- package/lib/parseTree/ruleName.js +1 -1
- package/lib/parseTree/startOfContentNode.js +1 -1
- package/lib/parseTree/terminalNode.js +1 -1
- package/lib/part/terminal/endOfLine.js +1 -1
- package/lib/part/terminal/epsilon.js +1 -1
- package/lib/part/terminal/noWhitespace.js +1 -1
- package/lib/part/terminal/startOfContent.js +1 -1
- package/lib/part/terminal/wildcard.js +1 -1
- package/lib/rule/bnf/callAheadModifier.js +1 -1
- package/lib/rule/bnf/choiceOfParts.js +1 -1
- package/lib/rule/bnf/definition.js +1 -1
- package/lib/rule/bnf/definitions.js +1 -1
- package/lib/rule/bnf/document.js +1 -1
- package/lib/rule/bnf/endOfLine.js +1 -1
- package/lib/rule/bnf/epsilon.js +1 -1
- package/lib/rule/bnf/error.js +1 -1
- package/lib/rule/bnf/name.js +1 -1
- package/lib/rule/bnf/noWhitespacePart.js +1 -1
- package/lib/rule/bnf/nonTerminalPart.js +1 -1
- package/lib/rule/bnf/oneOrMoreQuantifier.js +1 -1
- package/lib/rule/bnf/opacityModifier.js +1 -1
- package/lib/rule/bnf/optionalQuantifier.js +1 -1
- package/lib/rule/bnf/part.js +1 -1
- package/lib/rule/bnf/partChoice.js +1 -1
- package/lib/rule/bnf/precedence.js +1 -1
- package/lib/rule/bnf/quantifier.js +1 -1
- package/lib/rule/bnf/regularExpression.js +1 -1
- package/lib/rule/bnf/rule.js +1 -1
- package/lib/rule/bnf/ruleName.js +1 -1
- package/lib/rule/bnf/sequenceOfParts.js +1 -1
- package/lib/rule/bnf/significantTokenType.js +1 -1
- package/lib/rule/bnf/startOfContentPart.js +1 -1
- package/lib/rule/bnf/terminalPart.js +1 -1
- package/lib/rule/bnf/terminalSymbol.js +1 -1
- package/lib/rule/bnf/wildcard.js +1 -1
- package/lib/rule/bnf/zeroOrMoreQuantifier.js +1 -1
- package/package.json +3 -3
- package/src/mixins/node.js +4 -4
- package/src/node/terminal.js +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "occam-parsers",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "23.0.
|
|
4
|
+
"version": "23.0.141",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/occam-parsers",
|
|
7
7
|
"description": "Occam's parsers.",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@swc/core": "^1.5.6",
|
|
18
18
|
"easy": "^23.0.1",
|
|
19
|
-
"easy-layout": "^6.0.
|
|
20
|
-
"easy-with-style": "^3.0.
|
|
19
|
+
"easy-layout": "^6.0.244",
|
|
20
|
+
"easy-with-style": "^3.0.492",
|
|
21
21
|
"esbuild": "^0.9.6",
|
|
22
22
|
"express": "^4.17.1",
|
|
23
23
|
"juxtapose": "^4.0.117",
|
package/src/mixins/node.js
CHANGED
|
@@ -199,7 +199,7 @@ function someAncestorNode(callback) {
|
|
|
199
199
|
ancestorNode = this.parentNode; ///
|
|
200
200
|
|
|
201
201
|
while (ancestorNode !== null) {
|
|
202
|
-
result = callback(ancestorNode, index);
|
|
202
|
+
result = !!callback(ancestorNode, index); ///
|
|
203
203
|
|
|
204
204
|
if (result) {
|
|
205
205
|
break;
|
|
@@ -245,7 +245,7 @@ function everyAncestorNode(callback) {
|
|
|
245
245
|
ancestorNode = this.parentNode; ///
|
|
246
246
|
|
|
247
247
|
while (ancestorNode !== null) {
|
|
248
|
-
result = callback(ancestorNode, index);
|
|
248
|
+
result = !!callback(ancestorNode, index);
|
|
249
249
|
|
|
250
250
|
if (!result) {
|
|
251
251
|
break;
|
|
@@ -304,7 +304,7 @@ function someDescendantNode(callback) {
|
|
|
304
304
|
const childNode = this.childNodes[index],
|
|
305
305
|
descendantNode = childNode; ///
|
|
306
306
|
|
|
307
|
-
result = callback(descendantNode);
|
|
307
|
+
result = !!callback(descendantNode);
|
|
308
308
|
|
|
309
309
|
if (result) {
|
|
310
310
|
break;
|
|
@@ -357,7 +357,7 @@ function everyDescendantNode(callback) {
|
|
|
357
357
|
const childNode = this.childNodes[index],
|
|
358
358
|
descendantNode = childNode; ///
|
|
359
359
|
|
|
360
|
-
result = callback(descendantNode);
|
|
360
|
+
result = !!callback(descendantNode);
|
|
361
361
|
|
|
362
362
|
if (!result) {
|
|
363
363
|
break;
|
package/src/node/terminal.js
CHANGED
|
@@ -131,7 +131,7 @@ export default class TerminalNode {
|
|
|
131
131
|
ancestorNode = this.parentNode; ///
|
|
132
132
|
|
|
133
133
|
while (ancestorNode !== null) {
|
|
134
|
-
result = callback(ancestorNode, index);
|
|
134
|
+
result = !!callback(ancestorNode, index); ///
|
|
135
135
|
|
|
136
136
|
if (result) {
|
|
137
137
|
break;
|
|
@@ -177,7 +177,7 @@ export default class TerminalNode {
|
|
|
177
177
|
ancestorNode = this.parentNode; ///
|
|
178
178
|
|
|
179
179
|
while (ancestorNode !== null) {
|
|
180
|
-
result = callback(ancestorNode, index);
|
|
180
|
+
result = !!callback(ancestorNode, index); ///
|
|
181
181
|
|
|
182
182
|
if (!result) {
|
|
183
183
|
break;
|