Changeset be5aa1b for src/SynTree/Statement.cc
- Timestamp:
- May 27, 2015, 4:40:05 PM (9 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, string, with_gc
- Children:
- 46cbfe1, 52ac3b4
- Parents:
- 6aa5ec0f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r6aa5ec0f rbe5aa1b 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon May 18 10:55:19201513 // Update Count : 211 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed May 27 15:41:13 2015 13 // Update Count : 8 14 14 // 15 15 … … 46 46 47 47 BranchStmt::BranchStmt( std::list<Label> labels, Label _target, Type _type ) throw ( SemanticError ) : 48 Statement( labels ), target(_target ), type(_type ) {48 Statement( labels ), originalTarget(_target ), target(_target ), type(_type ) { 49 49 //actually this is a syntactic error signaled by the parser 50 50 if ( type == BranchStmt::Goto && target.size() == 0 ) … … 200 200 201 201 void ForStmt::print( std::ostream &os, int indent ) { 202 os << "\r" << string( indent, ' ') << "Labels: {"; 203 for (std::list<Label>::iterator it = get_labels().begin(); it != get_labels().end(); ++it) { 204 os << *it << ","; 205 } 206 os << "}" << endl; 207 202 208 os << "\r" << string( indent, ' ') << "For Statement" << endl ; 203 209
Note: See TracChangeset
for help on using the changeset viewer.