Changes in src/SynTree/Constant.cc [ea9b9d3:843054c2]
- File:
-
- 1 edited
-
src/SynTree/Constant.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.cc
rea9b9d3 r843054c2 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Wed Jun 10 14:41:03201513 // Update Count : 811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 08:13:25 2015 13 // Update Count : 1 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 << " : ";31 os << " (type: "; 32 32 type->print( os ); 33 os << ")"; 33 34 } // if 34 os << ")";35 35 } 36 36
Note:
See TracChangeset
for help on using the changeset viewer.