Skip to content
Snippets Groups Projects
Commit 8f78bcae authored by Jan Trávníček's avatar Jan Trávníček Committed by Jan Travnicek
Browse files

improve lexer tokens printing

parent 9e3a0991
No related branches found
No related tags found
1 merge request!117Merge jt
...@@ -129,6 +129,10 @@ public: ...@@ -129,6 +129,10 @@ public:
   
operator std::string ( ) const { operator std::string ( ) const {
std::string res = Lexer::tokenTypeToString ( m_type ); std::string res = Lexer::tokenTypeToString ( m_type );
if ( m_value.empty ( ) )
return res;
switch ( m_type ) { switch ( m_type ) {
case TokenType::IDENTIFIER : case TokenType::IDENTIFIER :
return res + ": " + m_value; return res + ": " + m_value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment