top | up | prev | next

Global Namespace

Namespaces

soulng
lexer

Classes

class TrivialLexer

Functions

std::string GetTrivialTokenInfo(int tokenId)

Function Details

GetTrivialTokenInfo Function

std::string GetTrivialTokenInfo(int tokenId)

Definition at line 28 of TrivialLexer.cpp :
29 {
30     if (tokenId == soulng::lexer::END_TOKEN)
31     {
32         return "end of file";
33     }
34     return std::to_string(tokenId);
35 }


Declaration at line 18 of TrivialLexer.hpp


top | up | prev | next