eis/mix_cc/matheval/ast_adapted.hpp

18 lines
459 B
C++
Raw Permalink Normal View History

#ifndef MATHEVAL_IMPLEMENTATION
#error "Do not include ast_adapted.hpp directly!"
#endif
#pragma once
#include "ast.hpp"
#include <boost/fusion/include/adapt_struct.hpp>
BOOST_FUSION_ADAPT_STRUCT(mix_cc::matheval::ast::unary_op, op, rhs)
BOOST_FUSION_ADAPT_STRUCT(mix_cc::matheval::ast::binary_op, op, lhs, rhs)
BOOST_FUSION_ADAPT_STRUCT(mix_cc::matheval::ast::operation, op, rhs)
BOOST_FUSION_ADAPT_STRUCT(mix_cc::matheval::ast::expression, lhs, rhs)