Toggle navigation
=nil;
Foundation
=nil;
Crypto3
=nil;
Crypto3 Cryptography Suite 0.3.0
libs
math
include
nil
crypto3
math
expressions
ast_adapted.hpp
Go to the documentation of this file.
1
//---------------------------------------------------------------------------//
2
// Copyright (c) 2021 Mikhail Komarov <nemo@nil.foundation>
3
// Copyright (c) 2021 Nikita Kaskov <nbering@nil.foundation>
4
//
5
// MIT License
6
//
7
// Permission is hereby granted, free of charge, to any person obtaining a copy
8
// of this software and associated documentation files (the "Software"), to deal
9
// in the Software without restriction, including without limitation the rights
10
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
// copies of the Software, and to permit persons to whom the Software is
12
// furnished to do so, subject to the following conditions:
13
//
14
// The above copyright notice and this permission notice shall be included in all
15
// copies or substantial portions of the Software.
16
//
17
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
// SOFTWARE.
24
//---------------------------------------------------------------------------//
25
26
#ifndef CRYPTO3_MATH_EXPRESSION_AST_ADAPTED_HPP
27
#define CRYPTO3_MATH_EXPRESSION_AST_ADAPTED_HPP
28
29
#ifndef CRYPTO3_MATH_EXPRESSION_HPP
30
#error "ast_adapted.hpp must not be included directly!"
31
#endif
32
33
#include <
nil/crypto3/math/expressions/ast.hpp
>
34
35
#include <boost/fusion/include/adapt_struct.hpp>
36
37
using namespace
nil::crypto3::math::expressions::detail::ast
;
38
39
BOOST_FUSION_ADAPT_STRUCT(
unary_op
, op, rhs)
40
41
BOOST_FUSION_ADAPT_STRUCT(
binary_op
, op, lhs, rhs)
42
43
BOOST_FUSION_ADAPT_STRUCT(
operation
, op, rhs)
44
45
BOOST_FUSION_ADAPT_STRUCT(
expression
, lhs, rhs)
46
47
#endif
// CRYPTO3_MATH_EXPRESSION_AST_ADAPTED_HPP
ast.hpp
nil::crypto3::math::expressions::detail::ast
Definition:
ast.hpp:47
nil::crypto3::math::expressions::detail::ast::binary_op
Definition:
ast.hpp:73
nil::crypto3::math::expressions::detail::ast::expression
Definition:
ast.hpp:84
nil::crypto3::math::expressions::detail::ast::operation
Definition:
ast.hpp:79
nil::crypto3::math::expressions::detail::ast::unary_op
Definition:
ast.hpp:68