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

Function primaryexp

third-party/lua-5.2.4/src/lparser.c:877–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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