Skip to content

Commit

Permalink
regenerated library files
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt committed Dec 23, 2017
1 parent ecaec7c commit c53fce7
Show file tree
Hide file tree
Showing 40 changed files with 8,772 additions and 7,910 deletions.
578 changes: 260 additions & 318 deletions dist/cli-cjs-es5.js

Large diffs are not rendered by default.

1,309 changes: 699 additions & 610 deletions dist/cli-cjs.js

Large diffs are not rendered by default.

1,309 changes: 699 additions & 610 deletions dist/cli-es6.js

Large diffs are not rendered by default.

582 changes: 262 additions & 320 deletions dist/cli-umd-es5.js

Large diffs are not rendered by default.

1,313 changes: 701 additions & 612 deletions dist/cli-umd.js

Large diffs are not rendered by default.

568 changes: 255 additions & 313 deletions dist/jison-cjs-es5.js

Large diffs are not rendered by default.

972 changes: 518 additions & 454 deletions dist/jison-cjs.js

Large diffs are not rendered by default.

958 changes: 510 additions & 448 deletions dist/jison-es6.js

Large diffs are not rendered by default.

572 changes: 257 additions & 315 deletions dist/jison-umd-es5.js

Large diffs are not rendered by default.

1,303 changes: 696 additions & 607 deletions dist/jison-umd.js

Large diffs are not rendered by default.

126 changes: 69 additions & 57 deletions packages/ebnf-parser/dist/ebnf-parser-cjs-es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ var XRegExp = _interopDefault(require('@gerhobbelt/xregexp'));
var fs = _interopDefault(require('fs'));
var path = _interopDefault(require('path'));
var recast = _interopDefault(require('@gerhobbelt/recast'));
var assert = _interopDefault(require('assert'));
var assert$1 = _interopDefault(require('assert'));

// Return TRUE if `src` starts with `searchString`.
function startsWith(src, searchString) {
Expand Down Expand Up @@ -238,6 +238,13 @@ function dquote$1(s) {
//


function chkBugger(src) {
src = String(src);
if (src.match(/\bcov_\w+/)) {
console.error('### ISTANBUL COVERAGE CODE DETECTED ###\n', src);
}
}

// Helper function: pad number with leading zeroes
function pad(n, p) {
p = p || 2;
Expand Down Expand Up @@ -328,6 +335,7 @@ function exec_and_diagnose_this_stuff(sourcecode, code_execution_rig, options, t
if (typeof code_execution_rig !== 'function') {
throw new Error("safe-code-exec-and-diag: code_execution_rig MUST be a JavaScript function");
}
chkBugger(sourcecode);
p = code_execution_rig.call(this, sourcecode, options, errname, debug);
} catch (ex) {
if (debug > 1) console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
Expand Down Expand Up @@ -367,13 +375,13 @@ var code_exec = {


//import astUtils from '@gerhobbelt/ast-util';
assert(recast);
assert$1(recast);
var types = recast.types;
assert(types);
assert$1(types);
var namedTypes = types.namedTypes;
assert(namedTypes);
assert$1(namedTypes);
var b = types.builders;
assert(b);
assert$1(b);
// //assert(astUtils);


Expand Down Expand Up @@ -437,15 +445,24 @@ var parse2AST = {
checkActionBlock: checkActionBlock$1
};

function chkBugger$1(src) {
src = String(src);
if (src.match(/\bcov_\w+/)) {
console.error('### ISTANBUL COVERAGE CODE DETECTED ###\n', src);
}
}

/// HELPER FUNCTION: print the function in source code form, properly indented.
/** @public */
function printFunctionSourceCode(f) {
chkBugger$1(f);
return String(f);
}

/// HELPER FUNCTION: print the function **content** in source code form, properly indented.
/** @public */
function printFunctionSourceCodeContainer(f) {
chkBugger$1(f);
return String(f).replace(/^[\s\r\n]*function\b[^\{]+\{/, '').replace(/\}[\s\r\n]*$/, '');
}

Expand All @@ -471,7 +488,7 @@ var helpers = {
printFunctionSourceCodeContainer: stringifier.printFunctionSourceCodeContainer
};

/* parser generated by jison 0.6.1-214 */
/* parser generated by jison 0.6.1-215 */

/*
* Returns a Parser object of the following structure:
Expand Down Expand Up @@ -985,7 +1002,8 @@ var parser$1 = {
//
// Options:
//
// default action mode: ............. classic,merge
// default action mode: ............. ["classic","merge"]
// test-compile action mode: ........ "parser:*,lexer:*"
// try..catch: ...................... true
// default resolve on conflict: ..... true
// on-demand look-ahead: ............ false
Expand Down Expand Up @@ -1747,13 +1765,13 @@ var parser$1 = {
throw ex;
} else if (lexer && typeof lexer.JisonLexerError === 'function' && ex instanceof lexer.JisonLexerError) {
throw ex;
} else {
p = this.constructParseErrorInfo('Parsing aborted due to exception.', ex, null, false);
retval = false;
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
}

p = this.constructParseErrorInfo('Parsing aborted due to exception.', ex, null, false);
retval = false;
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
} finally {
retval = this.cleanupAfterParse(retval, true, true);
Expand All @@ -1765,7 +1783,7 @@ var parser$1 = {
};
parser$1.originalParseError = parser$1.parseError;
parser$1.originalQuoteName = parser$1.quoteName;
/* lexer generated by jison-lex 0.6.1-214 */
/* lexer generated by jison-lex 0.6.1-215 */

/*
* Returns a Lexer object of the following structure:
Expand Down Expand Up @@ -3856,10 +3874,7 @@ function transform(ebnf) {
return rv;
}

// hack:
var assert$1;

/* parser generated by jison 0.6.1-214 */
/* parser generated by jison 0.6.1-215 */

/*
* Returns a Parser object of the following structure:
Expand Down Expand Up @@ -4385,7 +4400,8 @@ var parser = {
//
// Options:
//
// default action mode: ............. classic,merge
// default action mode: ............. ["classic","merge"]
// test-compile action mode: ........ "parser:*,lexer:*"
// try..catch: ...................... true
// default resolve on conflict: ..... true
// on-demand look-ahead: ............ false
Expand Down Expand Up @@ -6017,14 +6033,14 @@ var parser = {
};

var ASSERT;
if (typeof assert$1 !== 'function') {
if (typeof assert !== 'function') {
ASSERT = function JisonAssert(cond, msg) {
if (!cond) {
throw new Error('assertion failed: ' + (msg || '***'));
}
};
} else {
ASSERT = assert$1;
ASSERT = assert;
}

this.yyGetSharedState = function yyGetSharedState() {
Expand Down Expand Up @@ -6113,8 +6129,7 @@ var parser = {
hash.extra_error_attributes = args;
}

var r = this.parseError(str, hash, this.JisonParserError);
return r;
return this.parseError(str, hash, this.JisonParserError);
};
}

Expand Down Expand Up @@ -6669,14 +6684,15 @@ var parser = {
recoveringErrorInfo = this.shallowCopyErrorInfo(p);

r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
break;
}

// Protect against overly blunt userland `parseError` code which *sets*
// the `recoverable` flag without properly checking first:
// we always terminate the parse when there's no recovery rule available anyhow!
if (!p.recoverable || error_rule_depth < 0) {
if (typeof r !== 'undefined') {
retval = r;
}
break;
} else {
// TODO: allow parseError callback to edit symbol and or state at the start of the error recovery process...
Expand Down Expand Up @@ -7172,13 +7188,13 @@ var parser = {
throw ex;
} else if (lexer && typeof lexer.JisonLexerError === 'function' && ex instanceof lexer.JisonLexerError) {
throw ex;
} else {
p = this.constructParseErrorInfo('Parsing aborted due to exception.', ex, null, false);
retval = false;
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
}

p = this.constructParseErrorInfo('Parsing aborted due to exception.', ex, null, false);
retval = false;
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
} finally {
retval = this.cleanupAfterParse(retval, true, true);
Expand All @@ -7191,7 +7207,7 @@ var parser = {
};
parser.originalParseError = parser.parseError;
parser.originalQuoteName = parser.quoteName;
/* lexer generated by jison-lex 0.6.1-214 */
/* lexer generated by jison-lex 0.6.1-215 */

/*
* Returns a Lexer object of the following structure:
Expand Down Expand Up @@ -8790,7 +8806,6 @@ var lexer = function () {
xregexp: true,
ranges: true,
trackPosition: true,
parseActionsUseYYMERGELOCATIONINFO: true,
easy_keyword_rules: true
},

Expand Down Expand Up @@ -9640,10 +9655,7 @@ var bnf = {

};

// hack:
var assert$3;

/* parser generated by jison 0.6.1-214 */
/* parser generated by jison 0.6.1-215 */

/*
* Returns a Parser object of the following structure:
Expand Down Expand Up @@ -10169,7 +10181,8 @@ var parser$3 = {
//
// Options:
//
// default action mode: ............. classic,merge
// default action mode: ............. ["classic","merge"]
// test-compile action mode: ........ "parser:*,lexer:*"
// try..catch: ...................... true
// default resolve on conflict: ..... true
// on-demand look-ahead: ............ false
Expand Down Expand Up @@ -11758,14 +11771,14 @@ var parser$3 = {
};

var ASSERT;
if (typeof assert$3 !== 'function') {
if (typeof assert !== 'function') {
ASSERT = function JisonAssert(cond, msg) {
if (!cond) {
throw new Error('assertion failed: ' + (msg || '***'));
}
};
} else {
ASSERT = assert$3;
ASSERT = assert;
}

this.yyGetSharedState = function yyGetSharedState() {
Expand Down Expand Up @@ -11854,8 +11867,7 @@ var parser$3 = {
hash.extra_error_attributes = args;
}

var r = this.parseError(str, hash, this.JisonParserError);
return r;
return this.parseError(str, hash, this.JisonParserError);
};
}

Expand Down Expand Up @@ -12410,14 +12422,15 @@ var parser$3 = {
recoveringErrorInfo = this.shallowCopyErrorInfo(p);

r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
break;
}

// Protect against overly blunt userland `parseError` code which *sets*
// the `recoverable` flag without properly checking first:
// we always terminate the parse when there's no recovery rule available anyhow!
if (!p.recoverable || error_rule_depth < 0) {
if (typeof r !== 'undefined') {
retval = r;
}
break;
} else {
// TODO: allow parseError callback to edit symbol and or state at the start of the error recovery process...
Expand Down Expand Up @@ -12913,13 +12926,13 @@ var parser$3 = {
throw ex;
} else if (lexer && typeof lexer.JisonLexerError === 'function' && ex instanceof lexer.JisonLexerError) {
throw ex;
} else {
p = this.constructParseErrorInfo('Parsing aborted due to exception.', ex, null, false);
retval = false;
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
}

p = this.constructParseErrorInfo('Parsing aborted due to exception.', ex, null, false);
retval = false;
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
} finally {
retval = this.cleanupAfterParse(retval, true, true);
Expand All @@ -12932,7 +12945,7 @@ var parser$3 = {
};
parser$3.originalParseError = parser$3.parseError;
parser$3.originalQuoteName = parser$3.quoteName;
/* lexer generated by jison-lex 0.6.1-214 */
/* lexer generated by jison-lex 0.6.1-215 */

/*
* Returns a Lexer object of the following structure:
Expand Down Expand Up @@ -14531,7 +14544,6 @@ var lexer$2 = function () {
xregexp: true,
ranges: true,
trackPosition: true,
parseActionsUseYYMERGELOCATIONINFO: true,
easy_keyword_rules: true
},

Expand Down
Loading

0 comments on commit c53fce7

Please sign in to comment.