| 90 | BinaryAST(const std::string& op, const ASTPtr& lhs, const ASTPtr& rhs) |
| 91 | : m_op(op), m_lhs(lhs), m_rhs(rhs) {} |
| 92 | inline std::string code_gen() override { |
| 93 | return "(" + m_lhs->code_gen() + " " + m_op + " " + m_rhs->code_gen() + ")"; |
| 94 | } |
| 95 | |
| 96 | private: |
| 97 | std::string m_op; |