Implement some Rust operations
[deliverable/binutils-gdb.git] / gdb / rust-exp.h
CommitLineData
6fab4359
TT
1/* Definitions for Rust expressions
2
3 Copyright (C) 2020 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20#ifndef RUST_EXP_H
21#define RUST_EXP_H
22
23#include "expop.h"
24
25extern struct value *eval_op_rust_complement (struct type *expect_type,
26 struct expression *exp,
27 enum noside noside,
28 enum exp_opcode opcode,
29 struct value *value);
30extern struct value *eval_op_rust_array (struct type *expect_type,
31 struct expression *exp,
32 enum noside noside,
33 enum exp_opcode opcode,
34 struct value *ncopies,
35 struct value *elt);
36
37namespace expr
38{
39
40using rust_unop_compl_operation = unop_operation<UNOP_COMPLEMENT,
41 eval_op_rust_complement>;
42using rust_array_operation = binop_operation<OP_RUST_ARRAY,
43 eval_op_rust_array>;
44
45} /* namespace expr */
46
47#endif /* RUST_EXP_H */
This page took 0.025219 seconds and 4 git commands to generate.