Line data Source code
1 : #ifndef MATHEVAL_IMPLEMENTATION 2 : #error "Do not include ast_adapted.hpp directly!" 3 : #endif 4 : 5 : #pragma once 6 : 7 : #include "ast.hpp" 8 : 9 : #include <boost/fusion/include/adapt_struct.hpp> 10 : 11 258 : BOOST_FUSION_ADAPT_STRUCT(matheval::ast::unary_op, op, rhs) 12 : 13 189 : BOOST_FUSION_ADAPT_STRUCT(matheval::ast::binary_op, op, lhs, rhs) 14 : 15 260 : BOOST_FUSION_ADAPT_STRUCT(matheval::ast::ternary_op, op, cond, t, f) 16 : 17 2904 : BOOST_FUSION_ADAPT_STRUCT(matheval::ast::operation, op, rhs) 18 : 19 2708 : BOOST_FUSION_ADAPT_STRUCT(matheval::ast::expression, lhs, rhs)