Skip to content

Commit

Permalink
enhance yy info
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Jul 20, 2016
1 parent 7653842 commit 6b6d850
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/jison.js
Original file line number Diff line number Diff line change
Expand Up @@ -1594,6 +1594,11 @@ _handle_error:
// goto new state = table[STATE][NONTERMINAL]
newState = table[stack[stack.length-2]][stack[stack.length-1]];
stack.push(newState);

// enhance
sharedState.yy.stack = stack;
sharedState.yy.vstack = vstack;
sharedState.yy.lstack = lstack;
break;

case 3:
Expand Down

0 comments on commit 6b6d850

Please sign in to comment.