From 365183e243d164185bca6ad9fa4e0d75664800f4 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 21 Mar 2020 22:11:57 +0100 Subject: C++ grammer (WIP) --- test-cpp.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test-cpp.cpp') diff --git a/test-cpp.cpp b/test-cpp.cpp index d08f9b0..2a67b38 100644 --- a/test-cpp.cpp +++ b/test-cpp.cpp @@ -24,7 +24,7 @@ class CppTest: public ::testing::Test { protected: CppTest() { - //debug = true; + debug = true; } ~CppTest() { } @@ -40,8 +40,13 @@ TEST_F(CppTest, preprocessing_tokenize) { auto tokens = cpp.tokens_from_pptokens(pp_tokens); ASSERT_EQ(tokens.size(), 9); +#if 0 + for (auto &i: tokens) { + std::cout << i.type << ": " << i.value << std::endl; + } +#endif - //auto result = cpp.analysis(tokens); + auto result = cpp.analysis(tokens); } #endif -- cgit v1.2.3