diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-03-23 22:19:36 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-03-23 22:19:36 +0100 |
commit | 0e1d2ab5ca0f0fde5d2dd83b95230a8d93b58e7b (patch) | |
tree | 13ca0dd1300f35d3bee94f0d7a1ff171cdcd26d7 /test-cpp.cpp | |
parent | fce1c18103f208857af477ca47af9aa908bd69b6 (diff) |
BNF match (WIP: return nodes)
Diffstat (limited to 'test-cpp.cpp')
-rw-r--r-- | test-cpp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test-cpp.cpp b/test-cpp.cpp index 6727966..2a67b38 100644 --- a/test-cpp.cpp +++ b/test-cpp.cpp @@ -30,7 +30,7 @@ protected: } }; -#if 0 +#if 1 TEST_F(CppTest, preprocessing_tokenize) { CPP cpp; auto pp_tokens = cpp.preprocessing_tokenize("int main() { return 1; }"); @@ -40,7 +40,7 @@ TEST_F(CppTest, preprocessing_tokenize) { auto tokens = cpp.tokens_from_pptokens(pp_tokens); ASSERT_EQ(tokens.size(), 9); -#if 1 +#if 0 for (auto &i: tokens) { std::cout << i.type << ": " << i.value << std::endl; } |