Changes in / [dae881f:51e076e]
- Location:
- src/Parser
- Files:
-
- 3 edited
-
ExpressionNode.cc (modified) (1 diff)
-
ParseNode.h (modified) (2 diffs)
-
StatementNode.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
rdae881f r51e076e 551 551 //############################################################################## 552 552 553 CommaExprNode::CommaExprNode(): CompositeExprNode( new OperatorNode( OperatorNode::Comma )) {} 554 555 CommaExprNode::CommaExprNode( ExpressionNode *exp ) : CompositeExprNode( new OperatorNode( OperatorNode::Comma ), exp ) { 556 } 557 558 CommaExprNode::CommaExprNode( ExpressionNode *exp1, ExpressionNode *exp2) : CompositeExprNode( new OperatorNode( OperatorNode::Comma ), exp1, exp2) { 559 } 560 561 // CommaExprNode *CommaExprNode::add_to_list( ExpressionNode *exp ) { 562 // add_arg( exp ); 563 // 564 // return this; 565 // } 566 567 CommaExprNode::CommaExprNode( const CommaExprNode &other ) : CompositeExprNode( other ) { 568 } 569 570 //############################################################################## 571 553 572 ValofExprNode::ValofExprNode( StatementNode *s ): body( s ) {} 554 573 -
src/Parser/ParseNode.h
rdae881f r51e076e 319 319 private: 320 320 std::list< Label > labels; 321 }; 322 323 class CommaExprNode : public CompositeExprNode { 324 public: 325 CommaExprNode(); 326 CommaExprNode( ExpressionNode * ); 327 CommaExprNode( ExpressionNode *, ExpressionNode * ); 328 CommaExprNode( const CommaExprNode &other ); 329 330 // virtual CommaExprNode *add_to_list( ExpressionNode * ); 331 virtual CommaExprNode *clone() const { return new CommaExprNode( *this ); } 321 332 }; 322 333 … … 551 562 }; 552 563 564 class NullStmtNode : public CompoundStmtNode { 565 public: 566 Statement *build() const; 567 void print( std::ostream &, int indent = 0 ) const; 568 }; 569 553 570 class InitializerNode : public ParseNode { 554 571 public: -
src/Parser/StatementNode.cc
rdae881f r51e076e 417 417 } 418 418 419 420 void NullStmtNode::print( ostream &os, int indent ) const { 421 os << string( indent, ' ' ) << "Null Statement:" << endl; 422 } 423 424 Statement *NullStmtNode::build() const { 425 return new NullStmt; 426 } 427 419 428 // Local Variables: // 420 429 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.