Changeset 1d4580a for src/Parser/ExpressionNode.cc
- Timestamp:
- Aug 14, 2016, 8:36:29 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, 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:
- 777bfcf
- Parents:
- 46b4259
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r46b4259 r1d4580a 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 10 11:07:38201613 // Update Count : 48 612 // Last Modified On : Thu Aug 11 20:24:36 2016 13 // Update Count : 487 14 14 // 15 15 … … 309 309 310 310 //############################################################################## 311 312 // ForCtlExprNode::ForCtlExprNode( ParseNode *init_, ExpressionNode *cond, ExpressionNode *incr ) throw ( SemanticError ) : condition( cond ), change( incr ) {313 // if ( init_ == 0 )314 // init = 0;315 // else {316 // DeclarationNode *decl;317 // ExpressionNode *exp;318 319 // if (( decl = dynamic_cast<DeclarationNode *>(init_) ) != 0)320 // init = new StatementNode( decl );321 // else if (( exp = dynamic_cast<ExpressionNode *>( init_)) != 0)322 // init = new StatementNode( StatementNode::Exp, exp );323 // else324 // throw SemanticError("Error in for control expression");325 // }326 // }327 328 // ForCtlExprNode::ForCtlExprNode( const ForCtlExprNode &other )329 // : ExpressionNode( other ), init( maybeClone( other.init ) ), condition( maybeClone( other.condition ) ), change( maybeClone( other.change ) ) {330 // }331 332 // ForCtlExprNode::~ForCtlExprNode() {333 // delete init;334 // delete condition;335 // delete change;336 // }337 338 // Expression *ForCtlExprNode::build() const {339 // // this shouldn't be used!340 // assert( false );341 // return 0;342 // }343 344 // void ForCtlExprNode::print( std::ostream &os, int indent ) const{345 // os << string( indent,' ' ) << "For Control Expression -- :" << endl;346 347 // os << string( indent + 2, ' ' ) << "initialization:" << endl;348 // if ( init != 0 )349 // init->printList( os, indent + 4 );350 351 // os << string( indent + 2, ' ' ) << "condition: " << endl;352 // if ( condition != 0 )353 // condition->print( os, indent + 4 );354 // os << string( indent + 2, ' ' ) << "increment: " << endl;355 // if ( change != 0 )356 // change->print( os, indent + 4 );357 // }358 359 // void ForCtlExprNode::printOneLine( std::ostream &, int indent ) const {360 // assert( false );361 // }362 363 //##############################################################################364 311 365 312 Expression *build_typevalue( DeclarationNode *decl ) {
Note: See TracChangeset
for help on using the changeset viewer.