From cdffe4708b9ac3b8ef70ccf200e2e7b4312579f3 Mon Sep 17 00:00:00 2001 From: Vivek N Date: Fri, 24 Nov 2017 15:46:34 +0530 Subject: [PATCH] Implement rendering functions --- main_bench.cpp | 6 +++--- seephit.h | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/main_bench.cpp b/main_bench.cpp index 973d5e6..f426d52 100644 --- a/main_bench.cpp +++ b/main_bench.cpp @@ -9,7 +9,7 @@ using namespace std; int main() { constexpr auto parser = - #include "test/large_template.spt" + #include "test/loop_bench.spt" REPORT_ERRORS(parser); @@ -17,11 +17,11 @@ int main() auto tmStart = chrono::high_resolution_clock::now(); int k; - for(int i = 0; i < 1000; ++i) + for(int i = 0; i < 1; ++i) { spt::tree spt_tree(parser); spt::template_dict dct = spt_tree.get_default_dict(); - spt_tree.root.render(cout, dct); + spt_tree.root().render(cout, dct); k = dct.size(); } diff --git a/seephit.h b/seephit.h index 5934595..01ed7e0 100644 --- a/seephit.h +++ b/seephit.h @@ -9,12 +9,15 @@ #include #include #include +#include +#include using std::string; using std::vector; using std::pair; using std::unordered_map; - +using std::any; +using std::function; using std::ostream; using std::cerr; using std::endl;