LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
binop.hxx
Go to the documentation of this file.
1
6
#ifndef TREE_BINOP_HXX
7
# define TREE_BINOP_HXX
8
9
# include <
tree/binop.hh
>
10
11
namespace
tree
12
{
13
14
15
inline
16
Binop::Binop
(
const
Oper
oper,
const
rExp
& left,
const
rExp
& right)
17
:
Exp
()
18
, oper_(oper)
19
{
20
child_push_back
(left);
21
child_push_back
(right);
22
}
23
24
inline
rExp
25
Binop::left_get
()
const
26
{
27
return
child_get
(0).cast<
Exp
>();
28
}
29
30
inline
rExp
31
Binop::right_get
()
const
32
{
33
return
child_get
(1).cast<
Exp
>();
34
}
35
36
inline
Binop::Oper
37
Binop::oper_get
()
const
38
{
39
return
oper_
;
40
}
41
42
}
43
44
#endif // !TREE_BINOP_HXX
tree
binop.hxx
Generated on Wed Mar 5 2014 15:47:37 for LRDE Tiger Compiler by
1.8.1.2