ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since 643a2e1 was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef _TUPLE_FUNCHK_H_
|
---|
2 | #define _TUPLE_FUNCHK_H_
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 | #include <list>
|
---|
6 | #include <iostream>
|
---|
7 |
|
---|
8 | #include "UniqueName.h"
|
---|
9 |
|
---|
10 | #include "SynTree/SynTree.h"
|
---|
11 | #include "SynTree/Mutator.h"
|
---|
12 |
|
---|
13 | #include "SynTree/Type.h"
|
---|
14 | #include "SynTree/Declaration.h"
|
---|
15 | #include "SynTree/Expression.h"
|
---|
16 | #include "SynTree/Statement.h"
|
---|
17 |
|
---|
18 |
|
---|
19 | namespace Tuples {
|
---|
20 | class FunctionChecker : public Mutator
|
---|
21 | {
|
---|
22 | typedef Mutator Parent;
|
---|
23 |
|
---|
24 | public:
|
---|
25 | FunctionChecker( bool _topLevel = false, UniqueName *_nameGen = 0 );
|
---|
26 | ~FunctionChecker();
|
---|
27 |
|
---|
28 | virtual Expression* mutate(ApplicationExpr *applicationExpr);
|
---|
29 | virtual Statement* mutate(ExprStmt *exprStmt);
|
---|
30 |
|
---|
31 | private:
|
---|
32 | bool topLevel;
|
---|
33 | UniqueName *nameGen;
|
---|
34 | std::list< ObjectDecl * > temporaries;
|
---|
35 | std::list< Expression * > tempExpr;
|
---|
36 | };
|
---|
37 |
|
---|
38 | class TupleDistrib : public Mutator {
|
---|
39 | public:
|
---|
40 | virtual Expression* mutate(UntypedExpr *utExpr);
|
---|
41 |
|
---|
42 | private:
|
---|
43 | };
|
---|
44 |
|
---|
45 | void checkFunctions( std::list< Declaration * > translationUnit );
|
---|
46 |
|
---|
47 | } // namespace Tuples
|
---|
48 |
|
---|
49 | #endif // #ifndef _TUPLE_FUNCHK_H_
|
---|
50 |
|
---|
51 | /*
|
---|
52 | Local Variables:
|
---|
53 | mode: c++
|
---|
54 | End:
|
---|
55 | */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.