MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaX_token2str

Function luaX_token2str

lua/llex.c:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80const char *luaX_token2str (LexState *ls, int token) {
81 if (token < FIRST_RESERVED) {
82 lua_assert(token == cast(unsigned char, token));
83 return (iscntrl(token)) ? luaO_pushfstring(ls->L, "char(%d)", token) :
84 luaO_pushfstring(ls->L, "%c", token);
85 }
86 else
87 return luaX_tokens[token-FIRST_RESERVED];
88}
89
90
91const char *txtToken (LexState *ls, int token) {

Callers 3

txtTokenFunction · 0.85
error_expectedFunction · 0.85
check_matchFunction · 0.85

Calls 1

luaO_pushfstringFunction · 0.85

Tested by

no test coverage detected