2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
3 |
|
|
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
6 |
acting through the Defence Evaluation and Research Agency
|
|
|
7 |
(DERA). It is made available to Recipients with a
|
|
|
8 |
royalty-free licence for its use, reproduction, transfer
|
|
|
9 |
to other parties and amendment for any purpose not excluding
|
|
|
10 |
product development provided that any such use et cetera
|
|
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
|
|
12 |
|
|
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
|
|
15 |
|
|
|
16 |
(2) Any amended version of it shall be clearly marked to
|
|
|
17 |
show both the nature of and the organisation responsible
|
|
|
18 |
for the relevant amendment or amendments;
|
|
|
19 |
|
|
|
20 |
(3) Its onward transfer from a recipient to another
|
|
|
21 |
party shall be deemed to be that party's acceptance of
|
|
|
22 |
these conditions;
|
|
|
23 |
|
|
|
24 |
(4) DERA gives no warranty or assurance as to its
|
|
|
25 |
quality or suitability for any purpose and DERA accepts
|
|
|
26 |
no liability whatsoever in relation to any use to which
|
|
|
27 |
it may be put.
|
|
|
28 |
*/
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
#ifndef EXPRESSION_INCLUDED
|
|
|
32 |
#define EXPRESSION_INCLUDED
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
/*
|
|
|
36 |
EXPRESSION CONSTRUCTION DECLARATIONS
|
|
|
37 |
|
|
|
38 |
The routines in this module are used to build up the basic expressions.
|
|
|
39 |
They, and the similar routines in statement.c and elsewhere, are the
|
|
|
40 |
main interface between the parser and the internal processing routines.
|
|
|
41 |
*/
|
|
|
42 |
|
|
|
43 |
extern EXP make_and_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
44 |
extern EXP make_comma_exp PROTO_S ( ( LIST ( EXP ) ) ) ;
|
|
|
45 |
extern EXP make_cond_exp PROTO_S ( ( EXP, EXP, EXP ) ) ;
|
|
|
46 |
extern EXP make_equality_exp PROTO_S ( ( int, EXP, EXP ) ) ;
|
|
|
47 |
extern EXP make_error_exp PROTO_S ( ( int ) ) ;
|
|
|
48 |
extern EXP make_index_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
49 |
extern EXP make_indir_exp PROTO_S ( ( EXP ) ) ;
|
|
|
50 |
extern EXP make_log_and_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
51 |
extern EXP make_log_or_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
52 |
extern EXP make_minus_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
53 |
extern EXP make_mult_exp PROTO_S ( ( int, EXP, EXP ) ) ;
|
|
|
54 |
extern EXP make_not_exp PROTO_S ( ( EXP ) ) ;
|
|
|
55 |
extern EXP make_or_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
56 |
extern EXP make_paren_exp PROTO_S ( ( EXP ) ) ;
|
|
|
57 |
extern EXP make_plus_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
58 |
extern EXP make_ref_exp PROTO_S ( ( EXP, int ) ) ;
|
|
|
59 |
extern EXP make_ref_object PROTO_S ( ( EXP, ERROR * ) ) ;
|
|
|
60 |
extern EXP make_relation_exp PROTO_S ( ( int, EXP, EXP ) ) ;
|
|
|
61 |
extern EXP make_rem_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
62 |
extern EXP make_shift_exp PROTO_S ( ( int, EXP, EXP ) ) ;
|
|
|
63 |
extern EXP make_uminus_exp PROTO_S ( ( int, EXP ) ) ;
|
|
|
64 |
extern EXP make_xor_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
65 |
extern EXP join_exp PROTO_S ( ( EXP, EXP ) ) ;
|
|
|
66 |
|
|
|
67 |
extern OFFSET make_off_mult PROTO_S ( ( TYPE, EXP, int ) ) ;
|
|
|
68 |
extern EXP make_add_ptr PROTO_S ( ( TYPE, EXP, OFFSET ) ) ;
|
|
|
69 |
extern EXP make_null_ptr PROTO_S ( ( EXP, TYPE ) ) ;
|
|
|
70 |
extern int check_div_exp PROTO_S ( ( int, EXP, EXP ) ) ;
|
|
|
71 |
extern int check_shift_exp PROTO_S ( ( int, TYPE, EXP, EXP ) ) ;
|
|
|
72 |
extern int division_mode ;
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
#endif
|