Changeset 71a3593 for src/Parser
- Timestamp:
- Aug 5, 2016, 12:06:29 PM (9 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:
- d9e2280
- Parents:
- 9706554 (diff), a2f920f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/Parser
- Files:
-
- 4 edited
-
ExpressionNode.cc (modified) (1 diff)
-
ParseNode.h (modified) (2 diffs)
-
StatementNode.cc (modified) (1 diff)
-
TypeData.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r9706554 r71a3593 529 529 //############################################################################## 530 530 531 CommaExprNode::CommaExprNode(): CompositeExprNode( new OperatorNode( OperatorNode::Comma )) {}532 533 CommaExprNode::CommaExprNode( ExpressionNode *exp ) : CompositeExprNode( new OperatorNode( OperatorNode::Comma ), exp ) {534 }535 536 CommaExprNode::CommaExprNode( ExpressionNode *exp1, ExpressionNode *exp2) : CompositeExprNode( new OperatorNode( OperatorNode::Comma ), exp1, exp2) {537 }538 539 // CommaExprNode *CommaExprNode::add_to_list( ExpressionNode *exp ) {540 // add_arg( exp );541 //542 // return this;543 // }544 545 CommaExprNode::CommaExprNode( const CommaExprNode &other ) : CompositeExprNode( other ) {546 }547 548 //##############################################################################549 550 531 ValofExprNode::ValofExprNode( StatementNode *s ): body( s ) {} 551 532 -
src/Parser/ParseNode.h
r9706554 r71a3593 324 324 private: 325 325 std::list< Label > labels; 326 };327 328 class CommaExprNode : public CompositeExprNode {329 public:330 CommaExprNode();331 CommaExprNode( ExpressionNode * );332 CommaExprNode( ExpressionNode *, ExpressionNode * );333 CommaExprNode( const CommaExprNode &other );334 335 // virtual CommaExprNode *add_to_list( ExpressionNode * );336 virtual CommaExprNode *clone() const { return new CommaExprNode( *this ); }337 326 }; 338 327 … … 567 556 }; 568 557 569 class NullStmtNode : public CompoundStmtNode {570 public:571 Statement *build() const;572 void print( std::ostream &, int indent = 0 ) const;573 };574 575 558 class InitializerNode : public ParseNode { 576 559 public: -
src/Parser/StatementNode.cc
r9706554 r71a3593 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 // -
src/Parser/TypeData.cc
r9706554 r71a3593 510 510 return buildVariable(); 511 511 } else { 512 return new ObjectDecl( name, sc, linkage, bitfieldWidth, build(), init, isInline, isNoreturn );512 return new ObjectDecl( name, sc, linkage, bitfieldWidth, build(), init, std::list< Attribute * >(), isInline, isNoreturn ); 513 513 } // if 514 514 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.