ohm-js 16.3.2 → 16.4.0

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.
Files changed (52) hide show
  1. package/dist/dist/built-in-rules.d.ts +2 -0
  2. package/dist/dist/ohm-grammar.d.ts +2 -0
  3. package/dist/dist/operations-and-attributes.d.ts +2 -0
  4. package/dist/ohm.esm.js +21 -20
  5. package/dist/ohm.js +7 -7
  6. package/dist/ohm.min.js +1 -1
  7. package/dist/src/Builder.d.ts +25 -0
  8. package/dist/src/CaseInsensitiveTerminal.d.ts +15 -0
  9. package/dist/src/Failure.d.ts +22 -0
  10. package/dist/src/Grammar.d.ts +66 -0
  11. package/dist/src/GrammarDecl.d.ts +23 -0
  12. package/dist/src/InputStream.d.ts +16 -0
  13. package/dist/src/Interval.d.ts +29 -0
  14. package/dist/src/MatchResult.d.ts +20 -0
  15. package/dist/src/MatchState.d.ts +57 -0
  16. package/dist/src/Matcher.d.ts +15 -0
  17. package/dist/src/Namespace.d.ts +8 -0
  18. package/dist/src/PosInfo.d.ts +17 -0
  19. package/dist/src/Semantics.d.ts +49 -0
  20. package/dist/src/Trace.d.ts +23 -0
  21. package/dist/src/deferredInit.d.ts +1 -0
  22. package/dist/src/errors.d.ts +25 -0
  23. package/dist/src/grammarDeferredInit.d.ts +1 -0
  24. package/dist/src/main.d.ts +13 -0
  25. package/dist/src/makeRecipe.d.ts +1 -0
  26. package/dist/src/nodes.d.ts +40 -0
  27. package/dist/src/ohm-cmd.d.ts +2 -0
  28. package/dist/src/pexprs-allowsSkippingPrecedingSpace.d.ts +1 -0
  29. package/dist/src/pexprs-assertAllApplicationsAreValid.d.ts +1 -0
  30. package/dist/src/pexprs-assertChoicesHaveUniformArity.d.ts +1 -0
  31. package/dist/src/pexprs-assertIteratedExprsAreNotNullable.d.ts +1 -0
  32. package/dist/src/pexprs-eval.d.ts +1 -0
  33. package/dist/src/pexprs-getArity.d.ts +1 -0
  34. package/dist/src/pexprs-introduceParams.d.ts +1 -0
  35. package/dist/src/pexprs-isNullable.d.ts +1 -0
  36. package/dist/src/pexprs-main.d.ts +83 -0
  37. package/dist/src/pexprs-outputRecipe.d.ts +1 -0
  38. package/dist/src/pexprs-substituteParams.d.ts +1 -0
  39. package/dist/src/pexprs-toArgumentNameList.d.ts +1 -0
  40. package/dist/src/pexprs-toDisplayString.d.ts +1 -0
  41. package/dist/src/pexprs-toFailure.d.ts +1 -0
  42. package/dist/src/pexprs-toString.d.ts +1 -0
  43. package/dist/src/pexprs.d.ts +2 -0
  44. package/dist/src/semanticsDeferredInit.d.ts +1 -0
  45. package/dist/src/util.d.ts +15 -0
  46. package/dist/src/version.d.ts +2 -0
  47. package/dist/third_party/UnicodeCategories.d.ts +13 -0
  48. package/index.d.ts +57 -4
  49. package/package.json +16 -15
  50. package/src/Grammar.js +1 -1
  51. package/src/errors.js +2 -2
  52. package/src/main.js +2 -2
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
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://git.io/JiYgP for more details.';
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://git.io/JRwtG for details.',
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://git.io/Jz4CI for details.';
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.2";
5463
+ var version$2 = "16.4.0";
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 = [
@@ -5516,38 +5516,39 @@ var contributors = [
5516
5516
  "Tony Garnock-Jones <tonygarnockjones@gmail.com>",
5517
5517
  "Saketh Kasibatla <sake.kasi@gmail.com>",
5518
5518
  "Lionel Landwerlin <llandwerlin@gmail.com>",
5519
- "Jason Merrill <jwmerrill@gmail.com>",
5520
5519
  "Ray Toal <rtoal@lmu.edu>",
5520
+ "Jason Merrill <jwmerrill@gmail.com>",
5521
5521
  "Yoshiki Ohshima <Yoshiki.Ohshima@acm.org>",
5522
5522
  "megabuz <3299889+megabuz@users.noreply.github.com>",
5523
- "stagas <gstagas@gmail.com>",
5524
- "Jonathan Edwards <JonathanMEdwards@gmail.com>",
5525
5523
  "Milan Lajtoš <milan.lajtos@me.com>",
5526
5524
  "Neil Jewers <njjewers@uwaterloo.ca>",
5527
- "Mike Niebling <(none)>",
5528
- "AngryPowman <angrypowman@qq.com>",
5529
- "Patrick Dubroy <patrick@sourcegraph.com>",
5530
- "Leslie Ying <acetophore@users.noreply.github.com>",
5525
+ "Jonathan Edwards <JonathanMEdwards@gmail.com>",
5526
+ "stagas <gstagas@gmail.com>",
5527
+ "Daniel Tomlinson <DanielTomlinson@me.com>",
5531
5528
  "Pierre Donias <pierre.donias@gmail.com>",
5532
- "Justin Chase <justin.m.chase@gmail.com>",
5533
- "Ian Harris <ian@fofgof.xyz>",
5529
+ "Casey Olson <casey.m.olson@gmail.com>",
5530
+ "Arthur Carabott <arthurc@gmail.com>",
5534
5531
  "Stan Rozenraukh <stan@stanistan.com>",
5535
5532
  "Stephan Seidt <stephan.seidt@gmail.com>",
5536
- "Steve Phillips <steve@tryingtobeawesome.com>",
5533
+ "Leslie Ying <acetophore@users.noreply.github.com>",
5537
5534
  "Szymon Kaliski <kaliskiszymon@gmail.com>",
5538
5535
  "Thomas Nyberg <tomnyberg@gmail.com>",
5539
- "Daniel Tomlinson <DanielTomlinson@me.com>",
5536
+ "AngryPowman <angrypowman@qq.com>",
5540
5537
  "Vse Mozhet Byt <vsemozhetbyt@gmail.com>",
5541
5538
  "Wil Chung <10446+iamwilhelm@users.noreply.github.com>",
5542
- "Casey Olson <casey.m.olson@gmail.com>",
5539
+ "Zachary Sakowitz <zsakowitz@gmail.com>",
5543
5540
  "abego <ub@abego-software.de>",
5544
5541
  "acslk <d_vd415@hotmail.com>",
5545
5542
  "codeZeilen <codeZeilen@users.noreply.github.com>",
5546
5543
  "kassadin <kassadin@foxmail.com>",
5547
- "Arthur Carabott <arthurc@gmail.com>",
5548
5544
  "owch <bowenrainyday@gmail.com>",
5545
+ "sfinnie <scott.finnie@gmail.com>",
5546
+ "Steve Phillips <steve@tryingtobeawesome.com>",
5547
+ "Justin Chase <justin.m.chase@gmail.com>",
5549
5548
  "Luca Guzzon <luca.guzzon@gmail.com>",
5550
- "sfinnie <scott.finnie@gmail.com>"
5549
+ "Ian Harris <ian@fofgof.xyz>",
5550
+ "Mike Niebling <(none)>",
5551
+ "Patrick Dubroy <patrick@sourcegraph.com>"
5551
5552
  ];
5552
5553
  var dependencies = {
5553
5554
  };
@@ -6017,13 +6018,13 @@ function grammars(source, optNamespace) {
6017
6018
 
6018
6019
  function grammarFromScriptElement(optNode) {
6019
6020
  throw new Error(
6020
- 'grammarFromScriptElement was removed in Ohm v16.0. See https://git.io/Jwow5 for more info.'
6021
+ 'grammarFromScriptElement was removed in Ohm v16.0. See https://ohmjs.org/d/gfs for more info.'
6021
6022
  );
6022
6023
  }
6023
6024
 
6024
6025
  function grammarsFromScriptElements(optNodeOrNodeList) {
6025
6026
  throw new Error(
6026
- 'grammarsFromScriptElements was removed in Ohm v16.0. See https://git.io/Jwow5 for more info.'
6027
+ 'grammarsFromScriptElements was removed in Ohm v16.0. See https://ohmjs.org/d/gfs for more info.'
6027
6028
  );
6028
6029
  }
6029
6030