Changes in src/SynTree/Constant.cc [843054c2:ea9b9d3]
- File:
-
- 1 edited
-
src/SynTree/Constant.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.cc
r843054c2 rea9b9d3 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon May 18 08:13:25201513 // Update Count : 111 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Jun 10 14:41:03 2015 13 // Update Count : 8 14 14 // 15 15 … … 20 20 #include "Type.h" 21 21 22 Constant::Constant( Type * _type, std::string _value ) : type(_type), value(_value) {}22 Constant::Constant( Type *type_, std::string value_ ) : type( type_ ), value( value_ ) {} 23 23 24 24 Constant::~Constant() {} … … 27 27 28 28 void Constant::print( std::ostream &os ) const { 29 os << value;29 os << "(" << value; 30 30 if ( type ) { 31 os << " (type: ";31 os << ": "; 32 32 type->print( os ); 33 os << ")";34 33 } // if 34 os << ")"; 35 35 } 36 36
Note:
See TracChangeset
for help on using the changeset viewer.