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 fe3b61b was d9a0e76, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago |
|
remove Parser.old, add -XCFA to driver, copy ptrdiff_t from stddef.h in preclude, remove casts from initialization constants, adjust formatting
|
-
Property mode
set to
100644
|
|
File size:
602 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 | class LabelTypeChecker : public Visitor {
|
|---|
| 12 | public:
|
|---|
| 13 | //LabelTypeChecker() {
|
|---|
| 14 |
|
|---|
| 15 | virtual void visit( CompoundStmt *compoundStmt );
|
|---|
| 16 | virtual void visit( DeclStmt *declStmt );
|
|---|
| 17 | virtual void visit( BranchStmt *branchStmt );
|
|---|
| 18 | virtual void visit( UntypedExpr *untypedExpr );
|
|---|
| 19 | private:
|
|---|
| 20 | SymTab::Indexer index;
|
|---|
| 21 | };
|
|---|
| 22 | } // namespace ControlStruct
|
|---|
| 23 |
|
|---|
| 24 | #endif // LABEL_TYPE_H
|
|---|
| 25 |
|
|---|
| 26 | /*
|
|---|
| 27 | Local Variables:
|
|---|
| 28 | mode: c++
|
|---|
| 29 | End:
|
|---|
| 30 | */
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.