formatting

This commit is contained in:
mrexodia 2016-06-05 19:25:31 +02:00
parent 547b65b284
commit d96b60b6b5
No known key found for this signature in database
GPG Key ID: D72F9A4FAA0073B4
1 changed files with 11 additions and 11 deletions

View File

@ -436,18 +436,18 @@ std::string Lexer::tokString(Token tok)
case tok_number: return StringUtils::sprintf(mIsHexNumberVal ? "0x%llX" : "%llu", mState.NumberVal);
case tok_stringlit: return StringUtils::sprintf("\"%s\"", StringUtils::Escape(mState.StringLit).c_str());
case tok_charlit:
{
std::string s;
s = mState.CharLit;
return StringUtils::sprintf("'%s'", StringUtils::Escape(s).c_str());
}
{
std::string s;
s = mState.CharLit;
return StringUtils::sprintf("'%s'", StringUtils::Escape(s).c_str());
}
default:
{
auto found = mReverseTokenMap.find(Token(tok));
if (found != mReverseTokenMap.end())
return found->second;
return "<UNKNOWN TOKEN>";
}
{
auto found = mReverseTokenMap.find(Token(tok));
if (found != mReverseTokenMap.end())
return found->second;
return "<UNKNOWN TOKEN>";
}
}
}