Merge pull request #1599 from robertbrignull/fix-missing-variable-declarations
Fix missing variable declarations
This commit is contained in:
commit
93f916745d
|
@ -129,6 +129,7 @@ YYYY/MM/DD, github id, Full name, email
|
||||||
2016/12/11, Gaulouis, Gaulouis, gaulouis.com@gmail.com
|
2016/12/11, Gaulouis, Gaulouis, gaulouis.com@gmail.com
|
||||||
2016/12/22, akosthekiss, Akos Kiss, akiss@inf.u-szeged.hu
|
2016/12/22, akosthekiss, Akos Kiss, akiss@inf.u-szeged.hu
|
||||||
2016/12/24, adrpo, Adrian Pop, adrian.pop@liu.se
|
2016/12/24, adrpo, Adrian Pop, adrian.pop@liu.se
|
||||||
|
2017/01/11, robertbrignull, Robert Brignull, robertbrignull@gmail.com
|
||||||
2017/01/13, marcelo-rocha, Marcelo Rocha, mcrocha@gmail.com
|
2017/01/13, marcelo-rocha, Marcelo Rocha, mcrocha@gmail.com
|
||||||
2017/01/23, bhamiltoncx, Ben Hamilton, bhamiltoncx+antlr@gmail.com
|
2017/01/23, bhamiltoncx, Ben Hamilton, bhamiltoncx+antlr@gmail.com
|
||||||
2017/01/18, mshockwave, Bekket McClane, yihshyng223@gmail.com
|
2017/01/18, mshockwave, Bekket McClane, yihshyng223@gmail.com
|
|
@ -361,7 +361,7 @@ Hash.prototype.update = function () {
|
||||||
k = (k << 15) | (k >>> (32 - 15));
|
k = (k << 15) | (k >>> (32 - 15));
|
||||||
k = k * 0x1B873593;
|
k = k * 0x1B873593;
|
||||||
this.count = this.count + 1;
|
this.count = this.count + 1;
|
||||||
hash = this.hash ^ k;
|
var hash = this.hash ^ k;
|
||||||
hash = (hash << 13) | (hash >>> (32 - 13));
|
hash = (hash << 13) | (hash >>> (32 - 13));
|
||||||
hash = hash * 5 + 0xE6546B64;
|
hash = hash * 5 + 0xE6546B64;
|
||||||
this.hash = hash;
|
this.hash = hash;
|
||||||
|
|
|
@ -1444,7 +1444,7 @@ ParserATNSimulator.prototype.precedenceTransition = function(config, pt, collec
|
||||||
c = new ATNConfig({state:pt.target}, config); // no pred context
|
c = new ATNConfig({state:pt.target}, config); // no pred context
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
newSemCtx = SemanticContext.andContext(config.semanticContext, pt.getPredicate());
|
var newSemCtx = SemanticContext.andContext(config.semanticContext, pt.getPredicate());
|
||||||
c = new ATNConfig({state:pt.target, semanticContext:newSemCtx}, config);
|
c = new ATNConfig({state:pt.target, semanticContext:newSemCtx}, config);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -32,7 +32,7 @@ function DFA(atnStartState, decision) {
|
||||||
{
|
{
|
||||||
if (atnStartState.isPrecedenceDecision) {
|
if (atnStartState.isPrecedenceDecision) {
|
||||||
this.precedenceDfa = true;
|
this.precedenceDfa = true;
|
||||||
precedenceState = new DFAState(null, new ATNConfigSet());
|
var precedenceState = new DFAState(null, new ATNConfigSet());
|
||||||
precedenceState.edges = [];
|
precedenceState.edges = [];
|
||||||
precedenceState.isAcceptState = false;
|
precedenceState.isAcceptState = false;
|
||||||
precedenceState.requiresFullContext = false;
|
precedenceState.requiresFullContext = false;
|
||||||
|
|
Loading…
Reference in New Issue