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
var-dec.hh
Go to the documentation of this file.
1
6
#ifndef AST_VAR_DEC_HH
7
# define AST_VAR_DEC_HH
8
9
# include <
ast/exp.hh
>
10
# include <
ast/name-ty.hh
>
11
# include <
ast/escapable.hh
>
12
# include <
ast/dec.hh
>
13
14
namespace
ast
15
{
16
18
class
VarDec
:
public
Dec
,
public
Escapable
19
{
22
public
:
24
VarDec
(
const
Location
& location,
const
misc::symbol
& name,
25
NameTy
* type_name,
Exp
* init);
27
virtual
~VarDec
();
30
31
32
public
:
34
virtual
void
accept
(
ConstVisitor
& v)
const override
;
36
virtual
void
accept
(
Visitor
& v)
override
;
38
41
public
:
43
const
NameTy
*
type_name_get
()
const
;
45
NameTy
*
type_name_get
();
47
const
Exp
*
init_get
()
const
;
49
Exp
*
init_get
();
52
protected
:
54
NameTy
*
type_name_
;
56
Exp
*
init_
;
57
};
58
59
}
// namespace ast
60
61
# include <
ast/var-dec.hxx
>
62
63
#endif // !AST_VAR_DEC_HH
ast
var-dec.hh
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2