diff options
Diffstat (limited to 'cpp.cpp')
-rw-r--r-- | cpp.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -82,6 +82,7 @@ std::pair<index_t, std::vector<TreeNode>> CPP::preprocessing_tokenize(const std: {" "}, {"\t"}, {"\n"}, {"\r"} }; Gram::Compiler compiler(bnf, "file"); + debug = true; std::pair<index_t, std::vector<TreeNode>> Tree = compiler.compile(m_charTokens); debug = true; @@ -246,12 +247,21 @@ protected: } }; +#if 0 TEST_F(CppTest, preprocessing_tokenize) { CPP cpp; auto ppTree = cpp.preprocessing_tokenize("int main() { return 1; }"); cpp.tokens_from_pptokens(ppTree); } +#endif + +TEST_F(CppTest, preprocessing_tokenize2) { + CPP cpp; + auto ppTree = cpp.preprocessing_tokenize("in ma"); + + cpp.tokens_from_pptokens(ppTree); +} #if 0 TEST(Cpp, translate) { |