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

Function primaryexp

third-party/lua-5.4.6/src/lparser.c:1080–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1078
1079
1080static void primaryexp (LexState *ls, expdesc *v) {
1081 /* primaryexp -> NAME | '(' expr ')' */
1082 switch (ls->t.token) {
1083 case '(': {
1084 int line = ls->linenumber;
1085 luaX_next(ls);
1086 expr(ls, v);
1087 check_match(ls, ')', '(', line);
1088 luaK_dischargevars(ls->fs, v);
1089 return;
1090 }
1091 case TK_NAME: {
1092 singlevar(ls, v);
1093 return;
1094 }
1095 default: {
1096 luaX_syntaxerror(ls, "unexpected symbol");
1097 }
1098 }
1099}
1100
1101
1102static 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