Changeset 0f8e4ac for src/SynTree
- Timestamp:
- Jun 16, 2016, 12:24:39 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 25296a3
- Parents:
- f4bc57c
- Location:
- src/SynTree
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
rf4bc57c r0f8e4ac 87 87 Statement( labels ), originalTarget( _target ), target( _target ), computedTarget( NULL ), type( _type ) { 88 88 //actually this is a syntactic error signaled by the parser 89 if ( type == BranchStmt::Goto && target. size() == 0)89 if ( type == BranchStmt::Goto && target.empty() ) 90 90 throw SemanticError("goto without target"); 91 91 } -
src/SynTree/Statement.h
rf4bc57c r0f8e4ac 22 22 #include "Common/SemanticError.h" 23 23 #include "Type.h" 24 #include "Label.h" 24 25 25 26 class Statement { -
src/SynTree/SynTree.h
rf4bc57c r0f8e4ac 113 113 class Constant; 114 114 115 typedef std::string Label; 115 // typedef std::string Label; 116 class Label; 116 117 typedef unsigned int UniqueId; 117 118
Note: See TracChangeset
for help on using the changeset viewer.