//
// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
//
// The contents of this file are covered under the licence agreement in the
// file "LICENCE" distributed with Cforall.
//
// Constant.cc -- 
//
// Author           : Richard C. Bilson
// Created On       : Mon May 18 07:44:20 2015
// Last Modified By : Peter A. Buhr
// Last Modified On : Mon May 18 08:13:25 2015
// Update Count     : 1
//

#include <iostream>
#include <list>

#include "Constant.h"
#include "Type.h"

Constant::Constant( Type *_type, std::string _value ) : type(_type), value(_value) {}

Constant::~Constant() {}

Constant *Constant::clone() const { return 0; }

void Constant::print( std::ostream &os ) const {
	os << value;
	if ( type ) {
		os << " (type: ";
		type->print( os );
		os << ")";
	} // if
}

// Local Variables: //
// tab-width: 4 //
// mode: c++ //
// compile-command: "make install" //
// End: //
