| 78 | |
| 79 | |
| 80 | const 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 | |
| 91 | const char *txtToken (LexState *ls, int token) { |
no test coverage detected