remove references to window (not supported by node)
This commit is contained in:
parent
36595bd9d6
commit
bf71127511
1 changed files with 0 additions and 4 deletions
|
|
@ -77,8 +77,6 @@ var Tokenizer = function(rules) {
|
||||||
if (re.lastIndex == lastIndex) { throw new Error("tokenizer error"); }
|
if (re.lastIndex == lastIndex) { throw new Error("tokenizer error"); }
|
||||||
lastIndex = re.lastIndex;
|
lastIndex = re.lastIndex;
|
||||||
|
|
||||||
window.LOG && console.log(currentState, match);
|
|
||||||
|
|
||||||
for ( var i = 0; i < state.length; i++) {
|
for ( var i = 0; i < state.length; i++) {
|
||||||
if (match[i + 1]) {
|
if (match[i + 1]) {
|
||||||
if (typeof state[i].token == "function") {
|
if (typeof state[i].token == "function") {
|
||||||
|
|
@ -118,8 +116,6 @@ var Tokenizer = function(rules) {
|
||||||
tokens.push(token);
|
tokens.push(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.LOG && console.log(tokens, currentState);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tokens : tokens,
|
tokens : tokens,
|
||||||
state : currentState
|
state : currentState
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue