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 c8ffe20b was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago |
|
initial commit
|
-
Property mode
set to
100644
|
|
File size:
612 bytes
|
| Line | |
|---|
| 1 | #ifndef LABEL_TYPE_H
|
|---|
| 2 | #define LABEL_TYPE_H
|
|---|
| 3 |
|
|---|
| 4 | #include "SynTree/Visitor.h"
|
|---|
| 5 | #include "SymTab/Indexer.h"
|
|---|
| 6 | #include "SynTree/Statement.h"
|
|---|
| 7 |
|
|---|
| 8 | #include "utility.h"
|
|---|
| 9 |
|
|---|
| 10 | namespace ControlStruct {
|
|---|
| 11 |
|
|---|
| 12 | class LabelTypeChecker : public Visitor
|
|---|
| 13 | {
|
|---|
| 14 | public:
|
|---|
| 15 | //LabelTypeChecker() {
|
|---|
| 16 |
|
|---|
| 17 | virtual void visit(CompoundStmt *compoundStmt);
|
|---|
| 18 | virtual void visit(DeclStmt *declStmt);
|
|---|
| 19 | virtual void visit(BranchStmt *branchStmt);
|
|---|
| 20 | virtual void visit(UntypedExpr *untypedExpr);
|
|---|
| 21 | private:
|
|---|
| 22 | SymTab::Indexer index;
|
|---|
| 23 | };
|
|---|
| 24 |
|
|---|
| 25 | } // namespace ControlStruct
|
|---|
| 26 |
|
|---|
| 27 | #endif // #ifndef LABEL_TYPE_H
|
|---|
| 28 |
|
|---|
| 29 | /*
|
|---|
| 30 | Local Variables:
|
|---|
| 31 | mode: c++
|
|---|
| 32 | End:
|
|---|
| 33 | */
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.