Files
spark/src/lib/expression/BooleanGrammar.cpp
T

30 lines
1.2 KiB
C++

#include "BooleanGrammar.h"
namespace bts {
namespace expression {
ph::function<binary_operator> const and_expr = binary_operator("and");
ph::function<binary_operator> const or_expr = binary_operator("or");
ph::function<binary_operator> const in_expr = binary_operator("in");
ph::function<binary_operator> const gt_expr = binary_operator(">");
ph::function<binary_operator> const gte_expr = binary_operator(">=");
ph::function<binary_operator> const lt_expr = binary_operator("<");
ph::function<binary_operator> const lte_expr = binary_operator("<=");
ph::function<binary_operator> const eq_expr = binary_operator("==");
ph::function<binary_operator> const neq_expr = binary_operator("!=");
ph::function<binary_operator> const match_expr = binary_operator("~=");
ph::function<unary_operator> not_expr = unary_operator("!");
ph::function<property_expr_type> const property_expr;
ph::function<list_expr_type> list_expr;
// For the sake of build performance this is instantiated here
// and referenced by ExpressionEvaluator so that minor changes
// to ExpressionEvaluator don't take 30 seconds to build.
BooleanGrammar<std::string::const_iterator> boolean_string_grammar;
} // namespace expression
} // namespace bts