| 196 | }; |
| 197 | |
| 198 | class binary_operator_expr |
| 199 | { |
| 200 | public: |
| 201 | binary_operator_expr(expr&& left, expr&& right, nd::binary_operator_type type); |
| 202 | |
| 203 | const expr& get_left() const; |
| 204 | |
| 205 | const expr& get_right() const; |
| 206 | |
| 207 | nd::binary_operator_type get_type() const |
| 208 | { |
| 209 | return type; |
| 210 | } |
| 211 | |
| 212 | std::string to_string() const; |
| 213 | |
| 214 | private: |
| 215 | std::shared_ptr<std::pair<expr, expr>> exprs; |
| 216 | nd::binary_operator_type type; |
| 217 | }; |
| 218 | |
| 219 | class ternary_operator_expr |
| 220 | { |
no outgoing calls
no test coverage detected