MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / primaryexp

Function primaryexp

third-party/lua-5.5.0/src/lparser.c:1195–1214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193
1194
1195static void primaryexp (LexState *ls, expdesc *v) {
1196 /* primaryexp -> NAME | '(' expr ')' */
1197 switch (ls->t.token) {
1198 case '(': {
1199 int line = ls->linenumber;
1200 luaX_next(ls);
1201 expr(ls, v);
1202 check_match(ls, ')', '(', line);
1203 luaK_dischargevars(ls->fs, v);
1204 return;
1205 }
1206 case TK_NAME: {
1207 singlevar(ls, v);
1208 return;
1209 }
1210 default: {
1211 luaX_syntaxerror(ls, "unexpected symbol");
1212 }
1213 }
1214}
1215
1216
1217static void suffixedexp (LexState *ls, expdesc *v) {

Callers 1

suffixedexpFunction · 0.70

Calls 6

luaX_nextFunction · 0.70
exprFunction · 0.70
check_matchFunction · 0.70
luaK_dischargevarsFunction · 0.70
singlevarFunction · 0.70
luaX_syntaxerrorFunction · 0.70

Tested by

no test coverage detected