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
function-dec.hxx
Go to the documentation of this file.
1
6
#ifndef AST_FUNCTION_DEC_HXX
7
# define AST_FUNCTION_DEC_HXX
8
9
# include <
ast/function-dec.hh
>
10
11
namespace
ast
12
{
13
14
15
inline
const
VarDecs
&
16
FunctionDec::formals_get
()
const
17
{
18
return
*
formals_
;
19
}
20
inline
VarDecs
&
21
FunctionDec::formals_get
()
22
{
23
return
*
formals_
;
24
}
25
26
inline
const
NameTy
*
27
FunctionDec::result_get
()
const
28
{
29
return
result_
;
30
}
31
inline
NameTy
*
32
FunctionDec::result_get
()
33
{
34
return
result_
;
35
}
36
37
inline
const
Exp
*
38
FunctionDec::body_get
()
const
39
{
40
return
body_
;
41
}
42
inline
Exp
*
43
FunctionDec::body_get
()
44
{
45
return
body_
;
46
}
47
inline
void
48
FunctionDec::body_set
(
Exp
* body)
49
{
50
body_
= body;
51
}
52
53
54
55
56
}
// namespace ast
57
58
#endif // !AST_FUNCTION_DEC_HXX
ast
function-dec.hxx
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2