ohm-js 16.3.3 → 16.3.4
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/dist/ohm.esm.js +6 -6
- package/dist/ohm.js +7 -7
- package/dist/ohm.min.js +1 -1
- package/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/Grammar.js +1 -1
- package/src/errors.js +2 -2
- package/src/main.js +2 -2
package/dist/ohm.esm.js
CHANGED
|
@@ -991,7 +991,7 @@ function invalidParameter(ruleName, expr) {
|
|
|
991
991
|
|
|
992
992
|
const syntacticVsLexicalNote =
|
|
993
993
|
'NOTE: A _syntactic rule_ is a rule whose name begins with a capital letter. ' +
|
|
994
|
-
'See https://
|
|
994
|
+
'See https://ohmjs.org/d/svl for more details.';
|
|
995
995
|
|
|
996
996
|
function applicationOfSyntacticRuleFromLexicalContext(ruleName, applyExpr) {
|
|
997
997
|
return createError(
|
|
@@ -1121,7 +1121,7 @@ function missingSemanticAction(ctorName, name, type, stack) {
|
|
|
1121
1121
|
if (ctorName === '_iter') {
|
|
1122
1122
|
moreInfo = [
|
|
1123
1123
|
'\nNOTE: as of Ohm v16, there is no default action for iteration nodes — see ',
|
|
1124
|
-
' https://
|
|
1124
|
+
' https://ohmjs.org/d/dsa for details.',
|
|
1125
1125
|
].join('\n');
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
@@ -4833,7 +4833,7 @@ Grammar$4.prototype = {
|
|
|
4833
4833
|
if (k === '_iter' || k === '_nonterminal') {
|
|
4834
4834
|
details =
|
|
4835
4835
|
`it should use a rest parameter, e.g. \`${k}(...children) {}\`. ` +
|
|
4836
|
-
'NOTE: this is new in Ohm v16 — see https://
|
|
4836
|
+
'NOTE: this is new in Ohm v16 — see https://ohmjs.org/d/ati for details.';
|
|
4837
4837
|
} else {
|
|
4838
4838
|
details = `expected ${expected}, got ${actual}`;
|
|
4839
4839
|
}
|
|
@@ -5460,7 +5460,7 @@ Builder$2.prototype = {
|
|
|
5460
5460
|
var Builder_1 = Builder$2;
|
|
5461
5461
|
|
|
5462
5462
|
var name = "ohm-js";
|
|
5463
|
-
var version$2 = "16.3.
|
|
5463
|
+
var version$2 = "16.3.4";
|
|
5464
5464
|
var description = "An object-oriented language for parsing and pattern matching";
|
|
5465
5465
|
var repository = "https://github.com/harc/ohm";
|
|
5466
5466
|
var keywords = [
|
|
@@ -6018,13 +6018,13 @@ function grammars(source, optNamespace) {
|
|
|
6018
6018
|
|
|
6019
6019
|
function grammarFromScriptElement(optNode) {
|
|
6020
6020
|
throw new Error(
|
|
6021
|
-
'grammarFromScriptElement was removed in Ohm v16.0. See https://
|
|
6021
|
+
'grammarFromScriptElement was removed in Ohm v16.0. See https://ohmjs.org/d/gfs for more info.'
|
|
6022
6022
|
);
|
|
6023
6023
|
}
|
|
6024
6024
|
|
|
6025
6025
|
function grammarsFromScriptElements(optNodeOrNodeList) {
|
|
6026
6026
|
throw new Error(
|
|
6027
|
-
'grammarsFromScriptElements was removed in Ohm v16.0. See https://
|
|
6027
|
+
'grammarsFromScriptElements was removed in Ohm v16.0. See https://ohmjs.org/d/gfs for more info.'
|
|
6028
6028
|
);
|
|
6029
6029
|
}
|
|
6030
6030
|
|