diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-03-21 22:11:57 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-03-21 22:11:57 +0100 |
commit | 365183e243d164185bca6ad9fa4e0d75664800f4 (patch) | |
tree | e488e99f78551773518c2fb946cbd165bb6a8c90 /test-cpp.cpp | |
parent | cdf001920fde6652b344775589b0524ff6529809 (diff) |
C++ grammer (WIP)
Diffstat (limited to 'test-cpp.cpp')
-rw-r--r-- | test-cpp.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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 |