summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-10-10 16:14:07 +0200
committerRoland Reichwein <mail@reichwein.it>2020-10-10 16:14:07 +0200
commit0c5a5a94dab6d19192946f0a57d920628823ece1 (patch)
treeeb12563e98d453ae4997d9b99a99506011f34886
parent2671f6800090affb2f89d5b2932df4450e1d7507 (diff)
Uncommitted changes
-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() {
}