chevrotain
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -1,1 +0,1 @@ | ||
See [online docs](https://sap.github.io/chevrotain/docs/guide/generating_syntax_diagrams.html). | ||
See [online docs](https://chevrotain.io/docs/guide/generating_syntax_diagrams.html). |
@@ -29,3 +29,3 @@ /* istanbul ignore file - tricky to import some things from this module during testing */ | ||
throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\n" + | ||
"See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0"); | ||
"See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0"); | ||
} | ||
@@ -32,0 +32,0 @@ return Parser; |
@@ -89,3 +89,3 @@ import { hasTokenLabel, tokenLabel } from "../scan/tokens_public"; | ||
var hasExplicitIndex = index > 0; | ||
var msg = "->" + dslName + (hasExplicitIndex ? index : "") + "<- " + (extraArgument ? "with argument: ->" + extraArgument + "<-" : "") + "\n appears more than once (" + duplicateProds.length + " times) in the top level rule: ->" + topLevelName + "<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n "; | ||
var msg = "->" + dslName + (hasExplicitIndex ? index : "") + "<- " + (extraArgument ? "with argument: ->" + extraArgument + "<-" : "") + "\n appears more than once (" + duplicateProds.length + " times) in the top level rule: ->" + topLevelName + "<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n "; | ||
// white space trimming time! better to trim afterwards as it allows to use WELL formatted multi line template strings... | ||
@@ -112,3 +112,3 @@ msg = msg.replace(/[ \t]+/g, " "); | ||
("<" + pathMsg + "> may appears as a prefix path in all these alternatives.\n") + | ||
"See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + | ||
"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + | ||
"For Further details."; | ||
@@ -127,3 +127,3 @@ return errMsg; | ||
currMessage + | ||
"See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + | ||
"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + | ||
"For Further details."; | ||
@@ -130,0 +130,0 @@ return currMessage; |
@@ -283,3 +283,3 @@ var __extends = (this && this.__extends) || (function () { | ||
// New Handling of ignoring ambiguities | ||
// - https://github.com/SAP/chevrotain/issues/869 | ||
// - https://github.com/chevrotain/chevrotain/issues/869 | ||
ors = reject(ors, function (currOr) { return currOr.ignoreAmbiguities === true; }); | ||
@@ -286,0 +286,0 @@ var errors = utils.reduce(ors, function (result, currOr) { |
@@ -84,3 +84,3 @@ var __extends = (this && this.__extends) || (function () { | ||
"Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\t" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + | ||
"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + | ||
"For further details."); | ||
@@ -87,0 +87,0 @@ } |
@@ -18,3 +18,3 @@ import { forEach, has, isArray, isFunction, peek, some } from "../../../utils/utils"; | ||
"" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", | ||
"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", | ||
// Using "-1" instead of NaN (as in EOF) because an actual number is less likely to | ||
@@ -26,3 +26,3 @@ // cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. | ||
name: "This CSTNode indicates the Parser is in Recording Phase\n\t" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", | ||
"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", | ||
children: {} | ||
@@ -170,3 +170,3 @@ }; | ||
'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\t' + | ||
"https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording"; | ||
"https://chevrotain.io/docs/guide/internals.html#grammar-recording"; | ||
} | ||
@@ -173,0 +173,0 @@ catch (mutabilityError) { |
@@ -33,3 +33,3 @@ import { cloneArr, cloneObj, every, flatten, has, isArray, isEmpty, isObject, reduce, uniq, values } from "../../../utils/utils"; | ||
throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + | ||
"\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + | ||
"\tFor Further details."); | ||
@@ -48,3 +48,3 @@ } | ||
throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + | ||
"\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + | ||
"\tFor Further details."); | ||
@@ -51,0 +51,0 @@ } |
@@ -83,3 +83,3 @@ import { analyzeTokenTypes, charCodeToOptimizedIndex, cloneEmptyGroups, DEFAULT_MODE, LineTerminatorOptimizedTester, performRuntimeChecks, performWarningRuntimeChecks, SUPPORT_STICKY, validatePatterns } from "./lexer"; | ||
throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); | ||
} | ||
@@ -86,0 +86,0 @@ } |
@@ -240,3 +240,3 @@ var __extends = (this && this.__extends) || (function () { | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); | ||
} | ||
@@ -265,3 +265,3 @@ } | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); | ||
} | ||
@@ -381,3 +381,3 @@ canBeOptimized = false; | ||
"<- static 'PATTERN' cannot contain end of input anchor '$'\n" + | ||
"\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tfor details.", | ||
@@ -440,3 +440,3 @@ type: LexerDefinitionErrorType.EOI_ANCHOR_FOUND, | ||
"<- static 'PATTERN' cannot contain start of input anchor '^'\n" + | ||
"\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tfor details.", | ||
@@ -558,3 +558,3 @@ type: LexerDefinitionErrorType.SOI_ANCHOR_FOUND, | ||
"in the lexer's definition.\n" + | ||
"See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; | ||
"See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; | ||
errors.push({ | ||
@@ -703,3 +703,3 @@ message: msg, | ||
"\tBut none of the Token Types can be identified as matching a line terminator.\n" + | ||
"\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + | ||
"\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + | ||
"\tfor details.", | ||
@@ -823,3 +823,3 @@ type: LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS | ||
("\t Root cause: " + details.errMsg + ".\n") + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); | ||
} | ||
@@ -829,3 +829,3 @@ else if (details.issue === LexerDefinitionErrorType.CUSTOM_LINE_BREAK) { | ||
("\tThe problem is in the <" + tokType.name + "> Token Type\n") + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); | ||
} | ||
@@ -832,0 +832,0 @@ else { |
@@ -37,3 +37,3 @@ var __extends = (this && this.__extends) || (function () { | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); | ||
"\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); | ||
} | ||
@@ -46,3 +46,3 @@ } | ||
"\n\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; | ||
"\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; | ||
} | ||
@@ -49,0 +49,0 @@ PRINT_ERROR(failedOptimizationPrefixMsg + "\n" + |
@@ -39,3 +39,3 @@ import { has, isString, isUndefined } from "../utils/utils"; | ||
throw ("The parent property is no longer supported.\n" + | ||
"See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details."); | ||
"See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details."); | ||
} | ||
@@ -42,0 +42,0 @@ if (has(config, CATEGORIES)) { |
// needs a separate module as this is required inside chevrotain productive code | ||
// and also in the entry point for webpack(api.ts). | ||
// A separate file avoids cyclic dependencies and webpack errors. | ||
export var VERSION = "7.1.1"; | ||
export var VERSION = "7.1.2"; | ||
//# sourceMappingURL=version.js.map |
@@ -74,3 +74,3 @@ "use strict"; | ||
throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\n" + | ||
"See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0"); | ||
"See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0"); | ||
} | ||
@@ -77,0 +77,0 @@ return Parser; |
@@ -92,3 +92,3 @@ "use strict"; | ||
var hasExplicitIndex = index > 0; | ||
var msg = "->" + dslName + (hasExplicitIndex ? index : "") + "<- " + (extraArgument ? "with argument: ->" + extraArgument + "<-" : "") + "\n appears more than once (" + duplicateProds.length + " times) in the top level rule: ->" + topLevelName + "<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n "; | ||
var msg = "->" + dslName + (hasExplicitIndex ? index : "") + "<- " + (extraArgument ? "with argument: ->" + extraArgument + "<-" : "") + "\n appears more than once (" + duplicateProds.length + " times) in the top level rule: ->" + topLevelName + "<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n "; | ||
// white space trimming time! better to trim afterwards as it allows to use WELL formatted multi line template strings... | ||
@@ -115,3 +115,3 @@ msg = msg.replace(/[ \t]+/g, " "); | ||
("<" + pathMsg + "> may appears as a prefix path in all these alternatives.\n") + | ||
"See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + | ||
"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + | ||
"For Further details."; | ||
@@ -130,3 +130,3 @@ return errMsg; | ||
currMessage + | ||
"See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + | ||
"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + | ||
"For Further details."; | ||
@@ -133,0 +133,0 @@ return currMessage; |
@@ -293,3 +293,3 @@ "use strict"; | ||
// New Handling of ignoring ambiguities | ||
// - https://github.com/SAP/chevrotain/issues/869 | ||
// - https://github.com/chevrotain/chevrotain/issues/869 | ||
ors = utils_1.reject(ors, function (currOr) { return currOr.ignoreAmbiguities === true; }); | ||
@@ -296,0 +296,0 @@ var errors = utils.reduce(ors, function (result, currOr) { |
@@ -88,3 +88,3 @@ "use strict"; | ||
"Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\t" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + | ||
"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + | ||
"For further details."); | ||
@@ -91,0 +91,0 @@ } |
@@ -21,3 +21,3 @@ "use strict"; | ||
"" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", | ||
"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", | ||
// Using "-1" instead of NaN (as in EOF) because an actual number is less likely to | ||
@@ -29,3 +29,3 @@ // cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. | ||
name: "This CSTNode indicates the Parser is in Recording Phase\n\t" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", | ||
"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", | ||
children: {} | ||
@@ -173,3 +173,3 @@ }; | ||
'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\t' + | ||
"https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording"; | ||
"https://chevrotain.io/docs/guide/internals.html#grammar-recording"; | ||
} | ||
@@ -176,0 +176,0 @@ catch (mutabilityError) { |
@@ -36,3 +36,3 @@ "use strict"; | ||
throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + | ||
"\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + | ||
"\tFor Further details."); | ||
@@ -51,3 +51,3 @@ } | ||
throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + | ||
"\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + | ||
"\tFor Further details."); | ||
@@ -54,0 +54,0 @@ } |
@@ -86,3 +86,3 @@ "use strict"; | ||
throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); | ||
} | ||
@@ -89,0 +89,0 @@ } |
@@ -245,3 +245,3 @@ "use strict"; | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); | ||
} | ||
@@ -270,3 +270,3 @@ } | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); | ||
} | ||
@@ -390,3 +390,3 @@ canBeOptimized = false; | ||
"<- static 'PATTERN' cannot contain end of input anchor '$'\n" + | ||
"\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tfor details.", | ||
@@ -451,3 +451,3 @@ type: lexer_public_1.LexerDefinitionErrorType.EOI_ANCHOR_FOUND, | ||
"<- static 'PATTERN' cannot contain start of input anchor '^'\n" + | ||
"\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tfor details.", | ||
@@ -574,3 +574,3 @@ type: lexer_public_1.LexerDefinitionErrorType.SOI_ANCHOR_FOUND, | ||
"in the lexer's definition.\n" + | ||
"See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; | ||
"See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; | ||
errors.push({ | ||
@@ -723,3 +723,3 @@ message: msg, | ||
"\tBut none of the Token Types can be identified as matching a line terminator.\n" + | ||
"\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + | ||
"\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + | ||
"\tfor details.", | ||
@@ -847,3 +847,3 @@ type: lexer_public_1.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS | ||
("\t Root cause: " + details.errMsg + ".\n") + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); | ||
} | ||
@@ -853,3 +853,3 @@ else if (details.issue === lexer_public_1.LexerDefinitionErrorType.CUSTOM_LINE_BREAK) { | ||
("\tThe problem is in the <" + tokType.name + "> Token Type\n") + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); | ||
} | ||
@@ -856,0 +856,0 @@ else { |
@@ -40,3 +40,3 @@ "use strict"; | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); | ||
"\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); | ||
} | ||
@@ -49,3 +49,3 @@ } | ||
"\n\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; | ||
"\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; | ||
} | ||
@@ -52,0 +52,0 @@ utils_1.PRINT_ERROR(exports.failedOptimizationPrefixMsg + "\n" + |
@@ -46,3 +46,3 @@ "use strict"; | ||
throw ("The parent property is no longer supported.\n" + | ||
"See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details."); | ||
"See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details."); | ||
} | ||
@@ -49,0 +49,0 @@ if (utils_1.has(config, CATEGORIES)) { |
@@ -7,3 +7,3 @@ "use strict"; | ||
// A separate file avoids cyclic dependencies and webpack errors. | ||
exports.VERSION = "7.1.1"; | ||
exports.VERSION = "7.1.2"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "chevrotain", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "Chevrotain is a high performance fault tolerant javascript parsing DSL for building recursive decent parsers", | ||
@@ -19,3 +19,3 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/SAP/chevrotain/issues" | ||
"url": "https://github.com/Chevrotain/chevrotain/issues" | ||
}, | ||
@@ -44,5 +44,5 @@ "license": "Apache-2.0", | ||
"type": "git", | ||
"url": "git://github.com/SAP/chevrotain.git" | ||
"url": "git://github.com/Chevrotain/chevrotain.git" | ||
}, | ||
"homepage": "https://sap.github.io/chevrotain/docs/", | ||
"homepage": "https://chevrotain.io/docs/", | ||
"scripts": { | ||
@@ -72,3 +72,3 @@ "---------- CI FLOWS --------": "", | ||
"bundle": "npm-run-all bundle:regular bundle:min", | ||
"api-site:build": "typedoc api.d.ts --mode file --out dev/docs --module commonjs --excludeExternals --includeDeclarations --excludePrivate", | ||
"api-site:build": "typedoc api.d.ts --out dev/docs --excludeExternals --excludePrivate", | ||
"api-site:upload": "./scripts/api-site-upload.sh", | ||
@@ -106,6 +106,6 @@ "website:dev": "vuepress dev docs", | ||
"tslint": "^6.0.0", | ||
"typedoc": "^0.19.2", | ||
"typescript": "4.1.3", | ||
"typedoc": "^0.20.28", | ||
"typescript": "4.1.5", | ||
"vuepress": "^1.4.1", | ||
"webpack": "5.20.1", | ||
"webpack": "5.24.0", | ||
"webpack-cli": "^4.1.0", | ||
@@ -124,3 +124,3 @@ "xregexp": "^4.2.0" | ||
}, | ||
"gitHead": "01753e36dc2bef849a35a825684b641e0e3508e6" | ||
"gitHead": "b96a15493fb28b458f67f10a05f78c1fa5a5f871" | ||
} |
@@ -5,4 +5,4 @@ # Chevrotain | ||
- Chevrotain's [website](https://sap.github.io/chevrotain/docs/). | ||
- Chevrotain's root [README](https://github.com/SAP/chevrotain). | ||
- Chevrotain's [website](https://chevrotain.io/docs/). | ||
- Chevrotain's root [README](https://github.com/chevrotain/chevrotain). | ||
@@ -9,0 +9,0 @@ ## Install |
@@ -94,5 +94,5 @@ /* istanbul ignore file - tricky to import some things from this module during testing */ | ||
"The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\n" + | ||
"See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0" | ||
"See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0" | ||
) | ||
} | ||
} |
@@ -152,3 +152,3 @@ import { hasTokenLabel, tokenLabel } from "../scan/tokens_public" | ||
} times) in the top level rule: ->${topLevelName}<-. | ||
For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES | ||
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES | ||
` | ||
@@ -191,3 +191,3 @@ | ||
`<${pathMsg}> may appears as a prefix path in all these alternatives.\n` + | ||
`See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n` + | ||
`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n` + | ||
`For Further details.` | ||
@@ -218,3 +218,3 @@ | ||
currMessage + | ||
`See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n` + | ||
`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n` + | ||
`For Further details.` | ||
@@ -221,0 +221,0 @@ return currMessage |
@@ -431,3 +431,3 @@ import * as utils from "../../utils/utils" | ||
// New Handling of ignoring ambiguities | ||
// - https://github.com/SAP/chevrotain/issues/869 | ||
// - https://github.com/chevrotain/chevrotain/issues/869 | ||
ors = reject(ors, (currOr) => currOr.ignoreAmbiguities === true) | ||
@@ -434,0 +434,0 @@ |
@@ -266,3 +266,3 @@ import { | ||
"Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\t" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + | ||
"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + | ||
"For further details." | ||
@@ -269,0 +269,0 @@ ) |
@@ -59,3 +59,3 @@ import { | ||
"" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", | ||
"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", | ||
// Using "-1" instead of NaN (as in EOF) because an actual number is less likely to | ||
@@ -75,3 +75,3 @@ // cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. | ||
"This CSTNode indicates the Parser is in Recording Phase\n\t" + | ||
"See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", | ||
"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", | ||
children: {} | ||
@@ -229,3 +229,3 @@ } | ||
'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\t' + | ||
"https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording" | ||
"https://chevrotain.io/docs/guide/internals.html#grammar-recording" | ||
} catch (mutabilityError) { | ||
@@ -232,0 +232,0 @@ // We may not be able to modify the original error object |
@@ -12,3 +12,3 @@ ### Parser Traits (mixins) | ||
- For example, consider: `this.LA()` vs `this.traitX.LA()` | ||
- Past attempts at extracting an API for Lexer Adaptors using composition have [shown](https://github.com/SAP/chevrotain/issues/528#issuecomment-313863665) | ||
- Past attempts at extracting an API for Lexer Adaptors using composition have [shown](https://github.com/chevrotain/chevrotain/issues/528#issuecomment-313863665) | ||
significant performance regressions. | ||
@@ -36,20 +36,20 @@ | ||
- by using Intersection Types to define the complete Type (after all the mixins). | ||
- [Source Snippet](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/parser_traits.ts#L20-L28) | ||
- [Source Snippet](https://github.com/chevrotain/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/parser_traits.ts#L20-L28) | ||
- **Make every method aware of its full execution context** | ||
- By specifying the type of "this" context in methods as the "full combined type" Type | ||
to allow "interaction" between different mixed-ins of the same class. | ||
- [e.g calling a method from another trait](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/recognizer_api.ts#L35-L41) | ||
- [e.g calling a method from another trait](https://github.com/chevrotain/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/recognizer_api.ts#L35-L41) | ||
- **Define state initialization for each trait/mixin**?: | ||
- By defining init methods for each trait/mixin which would be called during the combined type initialization. | ||
- [A single trait's initializer definition](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/lexer_adapter.ts#L17-L21) | ||
- [A single trait's initializer definition](https://github.com/chevrotain/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/lexer_adapter.ts#L17-L21) | ||
- **Invoke the state initialization in the combined class** | ||
- By using a type assertion in the main class constructor to enable calling these init methods. | ||
- [Invoking the init methods](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/parser.ts#L225-L232) | ||
- [Invoking the init methods](https://github.com/chevrotain/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/parser.ts#L225-L232) | ||
- **Ensuring alignment with the public API** | ||
- By using a dummy assignment statement to leverge the TypeScript compiler to ensure the internal Parser implementation matches | ||
the exposed public API of Chevrotain. | ||
- [Dummy assignment](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/api.ts#L193-L197) | ||
- [Dummy assignment](https://github.com/chevrotain/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/api.ts#L193-L197) | ||
- **Enriching the combined class's prototype** | ||
- [Invoking ApplyMixings](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/parser.ts#L240-L249) | ||
- [Upgraded ApplyMixings with setter/getter handling](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/utils/utils.ts#L433-L460) | ||
- [Invoking ApplyMixings](https://github.com/chevrotain/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/parser.ts#L240-L249) | ||
- [Upgraded ApplyMixings with setter/getter handling](https://github.com/chevrotain/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/utils/utils.ts#L433-L460) | ||
@@ -56,0 +56,0 @@ * Pros |
@@ -105,3 +105,3 @@ import { | ||
"The Parser's configuration can no longer contain a <serializedGrammar> property.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + | ||
"\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + | ||
"\tFor Further details." | ||
@@ -126,3 +126,3 @@ ) | ||
"The Parser constructor no longer accepts a token vector as the first argument.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + | ||
"\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + | ||
"\tFor Further details." | ||
@@ -129,0 +129,0 @@ ) |
@@ -155,3 +155,3 @@ import { | ||
"Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS" | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS" | ||
) | ||
@@ -158,0 +158,0 @@ } |
@@ -336,3 +336,3 @@ import { BaseRegExpVisitor } from "regexp-to-ast" | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE" | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE" | ||
) | ||
@@ -364,3 +364,3 @@ } | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE" | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE" | ||
) | ||
@@ -529,3 +529,3 @@ } | ||
"<- static 'PATTERN' cannot contain end of input anchor '$'\n" + | ||
"\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tfor details.", | ||
@@ -597,3 +597,3 @@ type: LexerDefinitionErrorType.EOI_ANCHOR_FOUND, | ||
"<- static 'PATTERN' cannot contain start of input anchor '^'\n" + | ||
"\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + | ||
"\tfor details.", | ||
@@ -765,3 +765,3 @@ type: LexerDefinitionErrorType.SOI_ANCHOR_FOUND, | ||
`in the lexer's definition.\n` + | ||
`See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE` | ||
`See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE` | ||
errors.push({ | ||
@@ -941,3 +941,3 @@ message: msg, | ||
"\tBut none of the Token Types can be identified as matching a line terminator.\n" + | ||
"\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + | ||
"\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + | ||
"\tfor details.", | ||
@@ -1079,3 +1079,3 @@ type: LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS | ||
`\t Root cause: ${details.errMsg}.\n` + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR" | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR" | ||
) | ||
@@ -1086,3 +1086,3 @@ } else if (details.issue === LexerDefinitionErrorType.CUSTOM_LINE_BREAK) { | ||
`\tThe problem is in the <${tokType.name}> Token Type\n` + | ||
"\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK" | ||
"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK" | ||
) | ||
@@ -1089,0 +1089,0 @@ } else { |
@@ -45,3 +45,3 @@ import { VERSION, BaseRegExpVisitor } from "regexp-to-ast" | ||
"\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details." | ||
"\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details." | ||
) | ||
@@ -54,3 +54,3 @@ } | ||
"\n\tThis will disable the lexer's first char optimizations.\n" + | ||
"\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details." | ||
"\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details." | ||
} | ||
@@ -57,0 +57,0 @@ PRINT_ERROR( |
@@ -49,3 +49,3 @@ import { has, isString, isUndefined } from "../utils/utils" | ||
"The parent property is no longer supported.\n" + | ||
"See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details." | ||
"See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details." | ||
) | ||
@@ -52,0 +52,0 @@ } |
// needs a separate module as this is required inside chevrotain productive code | ||
// and also in the entry point for webpack(api.ts). | ||
// A separate file avoids cyclic dependencies and webpack errors. | ||
export const VERSION = "7.1.1" | ||
export const VERSION = "7.1.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
38729
0
2228060