1 #ifndef STAN_LANG_AST_NODE_BINARY_OP_DEF_HPP
2 #define STAN_LANG_AST_NODE_BINARY_OP_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <string>
6 
7 namespace stan {
8   namespace lang {
9 
binary_op()10     binary_op::binary_op() { }
11 
binary_op(const expression & left,const std::string & op,const expression & right)12     binary_op::binary_op(const expression& left, const std::string& op,
13                          const expression& right)
14       : op(op), left(left), right(right),
15         type_(promote_primitive(left.bare_type(),
16                                 right.bare_type())) {
17     }
18 
19   }
20 }
21 #endif
22