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