]> git.tdb.fi Git - builder.git/blobdiff - source/booleanevaluator.h
Refactor transitive dependencies to work on all targets
[builder.git] / source / booleanevaluator.h
diff --git a/source/booleanevaluator.h b/source/booleanevaluator.h
deleted file mode 100644 (file)
index 7c2af6f..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef BOOLEANEVALUATOR_H_
-#define BOOLEANEVALUATOR_H_
-
-#include <functional>
-#include <string>
-#include <vector>
-
-class BooleanEvaluator
-{
-public:
-       using Function = std::function<bool(const std::string &, const std::string *)>;
-
-private:
-       Function func;
-       std::string ops;
-       std::vector<std::string> var_stack;
-       std::vector<unsigned char> value_stack;
-       std::vector<char> op_stack;
-       bool last_was_op;
-
-public:
-       BooleanEvaluator(const Function &, bool = true);
-
-       bool evaluate(const std::string &);
-private:
-       void push_op(char);
-       bool pop_value();
-       void collapse(unsigned);
-       unsigned precedence(char);
-       bool is_unary(char);
-       bool is_logic(char);
-};
-
-#endif