1 | #ifndef SASS_OPERATORS_H |
2 | #define SASS_OPERATORS_H |
3 | |
4 | #include "values.hpp" |
5 | #include "sass/values.h" |
6 | |
7 | namespace Sass { |
8 | |
9 | namespace Operators { |
10 | |
11 | // equality operator using AST Node operator== |
12 | bool eq(ExpressionObj, ExpressionObj); |
13 | bool neq(ExpressionObj, ExpressionObj); |
14 | // specific operators based on cmp and eq |
15 | bool lt(ExpressionObj, ExpressionObj); |
16 | bool gt(ExpressionObj, ExpressionObj); |
17 | bool lte(ExpressionObj, ExpressionObj); |
18 | bool gte(ExpressionObj, ExpressionObj); |
19 | // arithmetic for all the combinations that matter |
20 | Value* op_strings(Sass::Operand, Value&, Value&, struct Sass_Inspect_Options opt, const SourceSpan& pstate, bool delayed = false); |
21 | Value* op_colors(enum Sass_OP, const Color_RGBA&, const Color_RGBA&, struct Sass_Inspect_Options opt, const SourceSpan& pstate, bool delayed = false); |
22 | Value* op_numbers(enum Sass_OP, const Number&, const Number&, struct Sass_Inspect_Options opt, const SourceSpan& pstate, bool delayed = false); |
23 | Value* op_number_color(enum Sass_OP, const Number&, const Color_RGBA&, struct Sass_Inspect_Options opt, const SourceSpan& pstate, bool delayed = false); |
24 | Value* op_color_number(enum Sass_OP, const Color_RGBA&, const Number&, struct Sass_Inspect_Options opt, const SourceSpan& pstate, bool delayed = false); |
25 | |
26 | }; |
27 | |
28 | } |
29 | |
30 | #endif |
31 | |