Changes in / [51e076e:dae881f]
- Location:
- src/Parser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r51e076e rdae881f 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 572 553 ValofExprNode::ValofExprNode( StatementNode *s ): body( s ) {} 573 554 -
src/Parser/ParseNode.h
r51e076e rdae881f 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 ); }332 321 }; 333 322 … … 562 551 }; 563 552 564 class NullStmtNode : public CompoundStmtNode {565 public:566 Statement *build() const;567 void print( std::ostream &, int indent = 0 ) const;568 };569 570 553 class InitializerNode : public ParseNode { 571 554 public: -
src/Parser/StatementNode.cc
r51e076e rdae881f 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 428 419 // Local Variables: // 429 420 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.