#include "lprefix.h"
#include <locale.h>
#include <string.h>
#include "lua.h"
#include "lctype.h"
#include "ldebug.h"
#include "ldo.h"
#include "lgc.h"
#include "llex.h"
#include "lobject.h"
#include "lparser.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "lzio.h"
Go to the source code of this file.
Macros | |
#define | currIsNewline(ls) (ls->current == '\n' || ls->current == '\r') |
#define | llex_c |
#define | LUA_CORE |
#define | next(ls) (ls->current = zgetc(ls->z)) |
#define | save_and_next(ls) (save(ls, ls->current), next(ls)) |
Functions | |
static int | check_next1 (LexState *ls, int c) |
static int | check_next2 (LexState *ls, const char *set) |
static void | esccheck (LexState *ls, int c, const char *msg) |
static int | gethexa (LexState *ls) |
static void | inclinenumber (LexState *ls) |
static l_noret | lexerror (LexState *ls, const char *msg, int token) |
static int | llex (LexState *ls, SemInfo *seminfo) |
void | luaX_init (lua_State *L) |
int | luaX_lookahead (LexState *ls) |
TString * | luaX_newstring (LexState *ls, const char *str, size_t l) |
void | luaX_next (LexState *ls) |
void | luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, int firstchar) |
l_noret | luaX_syntaxerror (LexState *ls, const char *msg) |
const char * | luaX_token2str (LexState *ls, int token) |
static void | read_long_string (LexState *ls, SemInfo *seminfo, size_t sep) |
static int | read_numeral (LexState *ls, SemInfo *seminfo) |
static void | read_string (LexState *ls, int del, SemInfo *seminfo) |
static int | readdecesc (LexState *ls) |
static int | readhexaesc (LexState *ls) |
static unsigned long | readutf8esc (LexState *ls) |
static void | save (LexState *ls, int c) |
static size_t | skip_sep (LexState *ls) |
static const char * | txtToken (LexState *ls, int token) |
static void | utf8esc (LexState *ls) |
Variables | |
static const char *const | luaX_tokens [] |
#define currIsNewline | ( | ls | ) | (ls->current == '\n' || ls->current == '\r') |
|
static |
|
static |
|
static |
|
static |