Changeset c9383ee for tools/prettyprinter/token.cc
- Timestamp:
- Jun 29, 2017, 9:39:17 AM (6 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 288eede, 8c680e9, ae47a23
- Parents:
- c89503c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/prettyprinter/token.cc
rc89503c rc9383ee 10 10 // Created On : Wed Jun 28 22:46:23 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 28 23:06:07201713 // Update Count : 812 // Last Modified On : Thu Jun 29 09:33:49 2017 13 // Update Count : 9 14 14 // 15 15 … … 20 20 #include "filter.h" 21 21 22 Token::Token( const string & text, int kind ) : text(text), kind(kind) {22 Token::Token( const string & text, int kind ) : text(text), kind(kind) { 23 23 left = down = NULL; 24 24 } // Token::Token 25 25 26 Token::Token( const string & text, list<string> &ws_list, int kind ) : text(text), kind(kind) {26 Token::Token( const string & text, list<string> & ws_list, int kind ) : text(text), kind(kind) { 27 27 // cerr << "Token3 : text \"" << text << "\""; 28 28 // for ( list<string>::iterator i = ws_list.begin(); i != ws_list.end(); i ++ ) { … … 36 36 } // Token::Token 37 37 38 void Token::addLeftTail( Token * n ) {39 Token * p = this;38 void Token::addLeftTail( Token * n ) { 39 Token * p = this; 40 40 while ( p->left != 0 ) { 41 41 p = p->left; … … 44 44 } // Token::addLeftTail 45 45 46 void Token::addDownLeftTail( Token * n ) {46 void Token::addDownLeftTail( Token * n ) { 47 47 if ( down == 0 ) { 48 48 down = n;
Note: See TracChangeset
for help on using the changeset viewer.