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

Function primaryexp

third-party/lua-5.3.5/src/lparser.c:871–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869
870
871static void primaryexp (LexState *ls, expdesc *v) {
872 /* primaryexp -> NAME | '(' expr ')' */
873 switch (ls->t.token) {
874 case '(': {
875 int line = ls->linenumber;
876 luaX_next(ls);
877 expr(ls, v);
878 check_match(ls, ')', '(', line);
879 luaK_dischargevars(ls->fs, v);
880 return;
881 }
882 case TK_NAME: {
883 singlevar(ls, v);
884 return;
885 }
886 default: {
887 luaX_syntaxerror(ls, "unexpected symbol");
888 }
889 }
890}
891
892
893static 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