From b7a5194e0aeeeb72f808393398b564d6b8cfaca4 Mon Sep 17 00:00:00 2001 From: Aleksey Chichenkov Date: Thu, 24 Jan 2019 18:18:27 +0300 Subject: [PATCH] remove test file and fix lexer --- lexer.l | 9 +++++---- test_strings | 0 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 test_strings diff --git a/lexer.l b/lexer.l index 86f157a..db9b8d9 100644 --- a/lexer.l +++ b/lexer.l @@ -60,8 +60,9 @@ var unknownSymbol = function(_str, _yylexstart, _yycursor){ throw print_f("Found unknown symbol on position: %s", _yycursor) }; -var notFoundCloseQuote = function (_str, _yylexstart, _yycursor) { - throw print_f("Not found close quote start: %s", _yycursor) +var notFoundCloseQuote = function(_str, _yylexstart, _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) { @@ -252,5 +253,5 @@ console.log("TEST STRING LITERAL"); start_search(' "111\\\"11\\\"1" "222222" '); start_search(" '111\\\'11\\\'1' '222222' "); -//console.log("TEST FAILS"); -//start_search(' sdfasdfasdfsdf "fasdf'); \ No newline at end of file +console.log("TEST FAILS"); +start_search(' sdfasdfasdfsdf "fasdf'); \ No newline at end of file diff --git a/test_strings b/test_strings deleted file mode 100644 index e69de29..0000000