From d97831577433ff74422ca8d799053ea5c959bbd5 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sun, 29 Oct 2023 22:05:45 -0600 Subject: [PATCH] Add minimal main example for binary size testing --- src/cons_expr_cli/main_minimal.cpp | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/cons_expr_cli/main_minimal.cpp diff --git a/src/cons_expr_cli/main_minimal.cpp b/src/cons_expr_cli/main_minimal.cpp new file mode 100644 index 0000000..a5046bd --- /dev/null +++ b/src/cons_expr_cli/main_minimal.cpp @@ -0,0 +1,41 @@ +#include + +template> +struct null_container +{ + constexpr const Contained *begin() const { + return &dummyobj; + } + + constexpr const Contained *end() const { + return &dummyobj; + } + + constexpr const Contained &operator[](const std::size_t) const { + return dummyobj; + } + constexpr Contained &operator[](const std::size_t) { + return dummyobj; + } + + + constexpr void push_back(const Contained &) {} + + Contained dummyobj; + + constexpr bool empty() const { return true; } + constexpr std::size_t size() const { return 0; } +}; + +int main(int argc, const char **argv) +{ +// lefticus::cons_expr evaluator1; + +// lefticus::cons_expr> evaluator; + lefticus::cons_expr> evaluator; + + + evaluator.sequence(evaluator.global_scope, + std::get::list_type>(evaluator.parse(argv[1]).first.value)); + +}