MCPcopy Create free account
hub / github.com/F-Stack/f-stack / primaryexp

Function primaryexp

freebsd/contrib/openzfs/module/lua/lparser.c:881–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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