From 56304269d06dfbafbf0dac5e6fc3e3a6d8cc07e7 Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 9 Feb 2015 08:25:53 -0500 Subject: [PATCH] Fixd build errors on Visual Studio 2013. --- test/test.cc | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/test.cc b/test/test.cc index c55151f..7e78cac 100644 --- a/test/test.cc +++ b/test/test.cc @@ -8,19 +8,11 @@ TEST_CASE("String capture test", "[general]") { { -#if defined(_MSC_VER) && _MSC_VER < 1900 // Less than Visual Studio 2015 auto parser = peglib::make_parser( " ROOT <- _ ('[' TAG_NAME ']' _)* " " TAG_NAME <- (!']' .)+ " " _ <- [ \t]* " ); -#else - auto parser = peglib::make_parser(R"( - ROOT <- _ ('[' TAG_NAME ']' _)* - TAG_NAME <- (!']' .)+ - _ <- [ \t]* - )"); -#endif std::vector tags; @@ -203,7 +195,6 @@ TEST_CASE("Calculator test3", "[general]") { { // Parse syntax -#if defined(_MSC_VER) && _MSC_VER < 1900 // Less than Visual Studio 2015 auto parser = make_parser( " # Grammar for Calculator...\n " " EXPRESSION <- TERM (TERM_OPERATOR TERM)* " @@ -213,17 +204,6 @@ TEST_CASE("Calculator test3", "[general]") " FACTOR_OPERATOR <- [/*] " " NUMBER <- [0-9]+ " ); -#else - auto parser = make_parser(R"( - # Grammar for Calculator... - EXPRESSION <- TERM (TERM_OPERATOR TERM)* - TERM <- FACTOR (FACTOR_OPERATOR FACTOR)* - FACTOR <- NUMBER / '(' EXPRESSION ')' - TERM_OPERATOR <- [-+] - FACTOR_OPERATOR <- [/*] - NUMBER <- [0-9]+ - )"); -#endif auto reduce = [](const vector& v) -> long { long ret = v[0].get();