homunculus
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "homunculus", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "A lexer&parser by Javascript", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -77,2 +77,3 @@ # A lexer&parser by Javascript | ||
* ecmascript | ||
* reset():void 重置Token的tid | ||
@@ -114,2 +115,3 @@ ### lexer/Lexer | ||
* type(t:int):String 返回类型的字符串形式 | ||
* reset():Void 重置tid | ||
@@ -116,0 +118,0 @@ ### parser/Node |
@@ -199,2 +199,6 @@ var Lexer = require('./lexer/Lexer'); | ||
} | ||
}; | ||
exports.reset = function() { | ||
Token.reset(); | ||
}; |
@@ -109,4 +109,7 @@ var Class = require('../util/Class'); | ||
return types[tag]; | ||
}, | ||
reset: function() { | ||
tid = 0; | ||
} | ||
}); | ||
module.exports = Token; |
@@ -199,2 +199,6 @@ define(function(require, exports, module) {var Lexer = require('./lexer/Lexer'); | ||
} | ||
}; | ||
exports.reset = function() { | ||
Token.reset(); | ||
};}); |
@@ -109,4 +109,7 @@ define(function(require, exports, module) {var Class = require('../util/Class'); | ||
return types[tag]; | ||
}, | ||
reset: function() { | ||
tid = 0; | ||
} | ||
}); | ||
module.exports = Token;}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16703
161
574967