2016-01-28 14:52:40 +01:00
|
|
|
/** @file
|
|
|
|
|
*
|
|
|
|
|
* @par History
|
|
|
|
|
* - 2015/12/29 Bodom: created this file
|
|
|
|
|
*/
|
2015-12-29 15:43:27 +01:00
|
|
|
|
|
|
|
|
|
2016-02-19 19:26:35 +01:00
|
|
|
#include "tokens.h"
|
2015-12-29 15:43:27 +01:00
|
|
|
|
|
|
|
|
|
2016-02-19 19:26:35 +01:00
|
|
|
namespace Pol
|
|
|
|
|
{
|
|
|
|
|
namespace Clib
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Template specialization for outputting the token type
|
|
|
|
|
*/
|
|
|
|
|
template <>
|
|
|
|
|
std::string tostring( const Bscript::BTokenType& v )
|
|
|
|
|
{
|
|
|
|
|
return tostring( static_cast<int>( v ) );
|
|
|
|
|
}
|
2015-12-29 15:43:27 +01:00
|
|
|
|
2016-02-19 19:26:35 +01:00
|
|
|
/**
|
|
|
|
|
* Template specialization for outputting the token ID
|
|
|
|
|
*/
|
|
|
|
|
template <>
|
|
|
|
|
std::string tostring( const Bscript::BTokenId& v )
|
|
|
|
|
{
|
|
|
|
|
return tostring( static_cast<int>( v ) );
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-29 15:43:27 +01:00
|
|
|
}
|