From 6b6d850bc47f3cb20cab0f24afcda31d57a12404 Mon Sep 17 00:00:00 2001 From: Jumper Chen Date: Wed, 20 Jul 2016 16:30:24 +0800 Subject: [PATCH] enhance yy info --- lib/jison.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/jison.js b/lib/jison.js index d078056ee..07a269926 100755 --- a/lib/jison.js +++ b/lib/jison.js @@ -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: