Skip to content

Commit

Permalink
regenerated library files and updated NPM packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt committed Oct 30, 2017
1 parent c4e5e7f commit 008454a
Show file tree
Hide file tree
Showing 105 changed files with 20,303 additions and 13,630 deletions.
599 changes: 373 additions & 226 deletions dist/cli-cjs-es5.js

Large diffs are not rendered by default.

961 changes: 576 additions & 385 deletions dist/cli-cjs.js

Large diffs are not rendered by default.

961 changes: 576 additions & 385 deletions dist/cli-es6.js

Large diffs are not rendered by default.

599 changes: 373 additions & 226 deletions dist/cli-umd-es5.js

Large diffs are not rendered by default.

961 changes: 576 additions & 385 deletions dist/cli-umd.js

Large diffs are not rendered by default.

599 changes: 373 additions & 226 deletions dist/jison-cjs-es5.js

Large diffs are not rendered by default.

766 changes: 453 additions & 313 deletions dist/jison-cjs.js

Large diffs are not rendered by default.

766 changes: 453 additions & 313 deletions dist/jison-es6.js

Large diffs are not rendered by default.

599 changes: 373 additions & 226 deletions dist/jison-umd-es5.js

Large diffs are not rendered by default.

766 changes: 453 additions & 313 deletions dist/jison-umd.js

Large diffs are not rendered by default.

92 changes: 50 additions & 42 deletions docs/assets/js/calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ var parser = {
// parser engine type: .............. lalr
// output main() in the module: ..... true
// has user-specified main(): ....... false
// has user-specified require()/import modules for main():
// has user-specified require()/import modules for main():
// .................................. false
// number of expected conflicts: .... 0
//
Expand Down Expand Up @@ -1504,7 +1504,10 @@ parse: function parse(input) {
}
// we cannot recover from the error!
p = this.constructParseErrorInfo(errStr, null, expected, false);
retval = this.parseError(p.errStr, p, this.JisonParserError);
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
break;
}

Expand All @@ -1526,13 +1529,19 @@ parse: function parse(input) {
// this shouldn't happen, unless resolve defaults are off
if (action instanceof Array) {
p = this.constructParseErrorInfo('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol, null, null, false);
retval = this.parseError(p.errStr, p, this.JisonParserError);
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
break;
}
// Another case of better safe than sorry: in case state transitions come out of another error recovery process
// or a buggy LUT (LookUp Table):
p = this.constructParseErrorInfo('Parsing halted. No viable error recovery approach available due to internal system failure.', null, null, false);
retval = this.parseError(p.errStr, p, this.JisonParserError);
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
break;

// shift:
Expand All @@ -1546,26 +1555,20 @@ parse: function parse(input) {
symbol = 0;


// Pick up the lexer details for the current symbol as that one is not 'look-ahead' any more:

yytext = lexer.yytext;










// Pick up the lexer details for the current symbol as that one is not 'look-ahead' any more:

yytext = lexer.yytext;


continue;

// reduce:
case 2:



this_production = this.productions_[newState - 1]; // `this.productions_[]` is zero-based indexed while states start from 1 upwards...
yyrulelen = this_production[1];

Expand Down Expand Up @@ -1610,33 +1613,34 @@ parse: function parse(input) {

// accept:
case 3:
retval = true;
// Return the `$accept` rule's `$$` result, if available.
//
// Also note that JISON always adds this top-most `$accept` rule (with implicit,
// default, action):
//
// $accept: <startSymbol> $end
// %{ $$ = $1; @$ = @1; %}
//
// which, combined with the parse kernel's `$accept` state behaviour coded below,
// will produce the `$$` value output of the <startSymbol> rule as the parse result,
// IFF that result is *not* `undefined`. (See also the parser kernel code.)
//
// In code:
//
// %{
// @$ = @1; // if location tracking support is included
// if (typeof $1 !== 'undefined')
// return $1;
// else
// return true; // the default parse result if the rule actions don't produce anything
// %}
sp--;
if (typeof vstack[sp] !== 'undefined') {
retval = vstack[sp];
if (sp !== -2) {
retval = true;
// Return the `$accept` rule's `$$` result, if available.
//
// Also note that JISON always adds this top-most `$accept` rule (with implicit,
// default, action):
//
// $accept: <startSymbol> $end
// %{ $$ = $1; @$ = @1; %}
//
// which, combined with the parse kernel's `$accept` state behaviour coded below,
// will produce the `$$` value output of the <startSymbol> rule as the parse result,
// IFF that result is *not* `undefined`. (See also the parser kernel code.)
//
// In code:
//
// %{
// @$ = @1; // if location tracking support is included
// if (typeof $1 !== 'undefined')
// return $1;
// else
// return true; // the default parse result if the rule actions don't produce anything
// %}
sp--;
if (typeof vstack[sp] !== 'undefined') {
retval = vstack[sp];
}
}

break;
}

Expand All @@ -1654,7 +1658,11 @@ parse: function parse(input) {
}
else {
p = this.constructParseErrorInfo('Parsing aborted due to exception.', ex, null, false);
retval = this.parseError(p.errStr, p, this.JisonParserError);
retval = false;
r = this.parseError(p.errStr, p, this.JisonParserError);
if (typeof r !== 'undefined') {
retval = r;
}
}
} finally {
retval = this.cleanupAfterParse(retval, true, true);
Expand Down
Loading

0 comments on commit 008454a

Please sign in to comment.