test lexer

This commit is contained in:
Aleksey Chichenkov 2019-01-30 13:20:16 +03:00
parent 7f8ea12ffb
commit 11948ecb73
2 changed files with 4 additions and 4 deletions

View File

@ -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__";

View File

@ -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