Changes in src/SynTree/Constant.cc [9d7b3ea:7f5566b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.cc
r9d7b3ea r7f5566b 16 16 #include <iostream> 17 17 #include <list> 18 #include <string>19 18 20 19 #include "Constant.h" … … 29 28 30 29 Constant::~Constant() { delete type; } 31 32 Constant Constant::from( int i ) {33 return Constant( new BasicType( Type::Qualifiers(), BasicType::SignedInt ), std::to_string( i ) );34 }35 36 Constant Constant::from( unsigned long i ) {37 return Constant( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ), std::to_string( i ) );38 }39 40 Constant Constant::from( double d ) {41 return Constant( new BasicType( Type::Qualifiers(), BasicType::Double ), std::to_string( d ) );42 }43 30 44 31 Constant *Constant::clone() const { assert( false ); return 0; }
Note: See TracChangeset
for help on using the changeset viewer.