remove test file and fix lexer

This commit is contained in:
Aleksey Chichenkov 2019-01-24 18:18:27 +03:00
parent 76ddc4083a
commit b7a5194e0a
2 changed files with 5 additions and 4 deletions

View File

@ -60,8 +60,9 @@ var unknownSymbol = function(_str, _yylexstart, _yycursor){
throw print_f("Found unknown symbol on position: %s", _yycursor) throw print_f("Found unknown symbol on position: %s", _yycursor)
}; };
var notFoundCloseQuote = function (_str, _yylexstart, _yycursor) { var notFoundCloseQuote = function(_str, _yylexstart, _yycursor) {
throw print_f("Not found close quote start: %s", _yycursor) console.log( print_f("Not found close quote start: %s", _yycursor));
throw print_f("Not found close quote start: %s", _yycursor);
}; };
var start_search = function(_str) { var start_search = function(_str) {
@ -252,5 +253,5 @@ console.log("TEST STRING LITERAL");
start_search(' "111\\\"11\\\"1" "222222" '); start_search(' "111\\\"11\\\"1" "222222" ');
start_search(" '111\\\'11\\\'1' '222222' "); start_search(" '111\\\'11\\\'1' '222222' ");
//console.log("TEST FAILS"); console.log("TEST FAILS");
//start_search(' sdfasdfasdfsdf "fasdf'); start_search(' sdfasdfasdfsdf "fasdf');

View File