ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since 42e2ad7 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
564 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | #ifndef CODEGENV_H |
---|
| 2 | #define CODEGENV_H |
---|
| 3 | |
---|
| 4 | #include <typeinfo> |
---|
| 5 | |
---|
| 6 | #include "SynTree.h" |
---|
| 7 | #include "Visitor.h" |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | class CodeGenVisitor : public Visitor { |
---|
| 11 | public: |
---|
| 12 | //*** Types |
---|
| 13 | virtual void visit(Type *); |
---|
| 14 | virtual void visit(BasicType *); |
---|
| 15 | |
---|
| 16 | //*** Constant |
---|
| 17 | virtual void visit(Constant *); |
---|
| 18 | |
---|
| 19 | //*** Expressions |
---|
| 20 | virtual void visit(Expression *); |
---|
| 21 | virtual void visit(ConstantExpr *); |
---|
| 22 | |
---|
| 23 | //*** Statements |
---|
| 24 | virtual void visit(Statement *); |
---|
| 25 | virtual void visit(ExprStmt *); |
---|
| 26 | virtual void visit(SwitchStmt *); |
---|
| 27 | }; |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | #endif /* #ifndef CODEGENV_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.