Home
last modified time | relevance | path

Searched refs:LexState (Results 1 – 10 of 10) sorted by relevance

/src/contrib/lua/src/
H A Dllex.c54 static l_noret lexerror (LexState *ls, const char *msg, int token);
57 static void save (LexState *ls, int c) { in save()
82 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str()
99 static const char *txtToken (LexState *ls, int token) { in txtToken()
111 static l_noret lexerror (LexState *ls, const char *msg, int token) { in lexerror()
119 l_noret luaX_syntaxerror (LexState *ls, const char *msg) { in luaX_syntaxerror()
134 TString *luaX_newstring (LexState *ls, const char *str, size_t l) { in luaX_newstring()
156 static void inclinenumber (LexState *ls) { in inclinenumber()
167 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, in luaX_setinput()
191 static int check_next1 (LexState *ls, int c) { in check_next1()
[all …]
H A Dllex.h64 typedef struct LexState { struct
78 } LexState; argument
82 LUAI_FUNC void luaX_setinput (lua_State *L, LexState *ls, ZIO *z,
84 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
85 LUAI_FUNC void luaX_next (LexState *ls);
86 LUAI_FUNC int luaX_lookahead (LexState *ls);
87 LUAI_FUNC l_noret luaX_syntaxerror (LexState *ls, const char *s);
88 LUAI_FUNC const char *luaX_token2str (LexState *ls, int token);
H A Dlparser.c64 static void statement (LexState *ls);
65 static void expr (LexState *ls, expdesc *v);
68 static l_noret error_expected (LexState *ls, int token) { in error_expected()
95 static int testnext (LexState *ls, int c) { in testnext()
107 static void check (LexState *ls, int c) { in check()
116 static void checknext (LexState *ls, int c) { in checknext()
130 static void check_match (LexState *ls, int what, int who, int where) { in check_match()
143 static TString *str_checkname (LexState *ls) { in str_checkname()
166 static void codename (LexState *ls, expdesc *e) { in codename()
175 static int registerlocalvar (LexState *ls, FuncState *fs, TString *varname) { in registerlocalvar()
[all …]
H A Dlparser.h147 struct LexState *ls; /* lexical state */
H A Dlcode.h98 LUAI_FUNC l_noret luaK_semerror (LexState *ls, const char *msg);
H A Dlcode.c47 l_noret luaK_semerror (LexState *ls, const char *msg) { in luaK_semerror()
/src/sys/contrib/openzfs/module/lua/
H A Dllex.h55 typedef struct LexState { struct
69 } LexState; argument
73 LUAI_FUNC void luaX_setinput (lua_State *L, LexState *ls, ZIO *z,
75 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
76 LUAI_FUNC void luaX_next (LexState *ls);
77 LUAI_FUNC int luaX_lookahead (LexState *ls);
78 LUAI_FUNC l_noret luaX_syntaxerror (LexState *ls, const char *s);
79 LUAI_FUNC const char *luaX_token2str (LexState *ls, int token);
H A Dlparser.c54 static void statement (LexState *ls);
55 static void expr (LexState *ls, expdesc *v);
58 static void anchor_token (LexState *ls) { in anchor_token()
69 static l_noret semerror (LexState *ls, const char *msg) { in semerror()
75 static l_noret error_expected (LexState *ls, int token) { in error_expected()
99 static int testnext (LexState *ls, int c) { in testnext()
108 static void check (LexState *ls, int c) { in check()
114 static void checknext (LexState *ls, int c) { in checknext()
124 static void check_match (LexState *ls, int what, int who, int where) { in check_match()
137 static TString *str_checkname (LexState *ls) { in str_checkname()
[all …]
H A Dllex.c46 static l_noret lexerror (LexState *ls, const char *msg, int token);
49 static void save (LexState *ls, int c) { in save()
72 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str()
88 static const char *txtToken (LexState *ls, int token) { in txtToken()
101 static l_noret lexerror (LexState *ls, const char *msg, int token) { in lexerror()
111 l_noret luaX_syntaxerror (LexState *ls, const char *msg) { in luaX_syntaxerror()
121 TString *luaX_newstring (LexState *ls, const char *str, size_t l) { in luaX_newstring()
145 static void inclinenumber (LexState *ls) { in inclinenumber()
156 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, in luaX_setinput()
182 static int check_next (LexState *ls, const char *set) { in check_next()
[all …]
H A Dlparser.h101 struct LexState *ls; /* lexical state */