Changes in src/SynTree/Statement.cc [843054c2:be5aa1b]
- File:
-
- 1 edited
-
src/SynTree/Statement.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.cc
r843054c2 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.