summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cpp.cpp3
-rw-r--r--test-cpp.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/cpp.cpp b/cpp.cpp
index 27f8570..48bf764 100644
--- a/cpp.cpp
+++ b/cpp.cpp
@@ -227,7 +227,8 @@ std::vector<Gram::TreeNode> CPP::analysis(const std::vector<Token>& tokens)
namespace {
CPP::map_type map_translation_unit {
- {"top-level-declaration-seq", [](){}}
+ //{"top-level-declaration-seq", [](){}},
+ {"top-level-declaration-seq/top-level-declaration/declaration/function-definition", [](){}},
};
} // anonymous namespace
diff --git a/test-cpp.cpp b/test-cpp.cpp
index e5b2a1a..513a3a5 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() {
}