test lexer
This commit is contained in:
parent
7f8ea12ffb
commit
11948ecb73
@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
var fs = require("fs");
|
||||
var Lexer = require('./lexer.js');
|
||||
var Lexer = require('./test_lexer.js');
|
||||
|
||||
var std = (function () {
|
||||
var protos = "__protos__";
|
||||
|
@ -38,7 +38,7 @@ var errors = {
|
||||
"1": "found unknown symbol"
|
||||
};
|
||||
|
||||
var Lexer = function(_string) {
|
||||
var Test_lexer = function(_string) {
|
||||
this._last_found_lexeme = {
|
||||
error: -1
|
||||
};
|
||||
@ -53,7 +53,7 @@ var Lexer = function(_string) {
|
||||
this._yy_accept = 0;
|
||||
};
|
||||
|
||||
Lexer.prototype = {
|
||||
Test_lexer.prototype = {
|
||||
types: types,
|
||||
errors: errors,
|
||||
_notFoundCloseQuote: function() {
|
||||
@ -2206,4 +2206,4 @@ var print_f = function() {
|
||||
|
||||
return r_str;
|
||||
};
|
||||
module.exports = Lexer
|
||||
module.exports = Test_lexer
|
Loading…
Reference in New Issue
Block a user