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)); + +}