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
type-dec.hh
Go to the documentation of this file.
1
6
#ifndef AST_TYPE_DEC_HH
7
# define AST_TYPE_DEC_HH
8
9
# include <
ast/type-constructor.hh
>
10
# include <
ast/dec.hh
>
11
# include <
ast/ty.hh
>
12
13
namespace
ast
14
{
15
17
class
TypeDec
:
public
Dec
,
public
TypeConstructor
18
{
21
public
:
23
TypeDec
(
const
Location
& location,
const
misc::symbol
& name,
Ty
* ty);
25
virtual
~TypeDec
();
28
29
30
public
:
32
virtual
void
accept
(
ConstVisitor
& v)
const override
;
34
virtual
void
accept
(
Visitor
& v)
override
;
36
39
public
:
41
const
Ty
&
ty_get
()
const
;
43
Ty
&
ty_get
();
46
protected
:
48
Ty
*
ty_
;
49
};
50
51
}
// namespace ast
52
53
# include <
ast/type-dec.hxx
>
54
55
#endif // !AST_TYPE_DEC_HH
ast
type-dec.hh
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2