MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / primaryexp

Function primaryexp

src/Chain/libraries/glua/lparser.cpp:901–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899
900
901static void primaryexp(LexState *ls, expdesc *v) {
902 /* primaryexp -> NAME | '(' expr ')' */
903 switch (ls->t.token) {
904 case '(': {
905 int line = ls->linenumber;
906 luaX_next(ls);
907 expr(ls, v);
908 check_match(ls, ')', '(', line);
909 luaK_dischargevars(ls->fs, v);
910 return;
911 }
912 case TK_NAME: {
913 singlevar(ls, v);
914 return;
915 }
916 default: {
917 luaX_syntaxerror(ls, "unexpected symbol");
918 }
919 }
920}
921
922
923static void suffixedexp(LexState *ls, expdesc *v) {

Callers 1

suffixedexpFunction · 0.85

Calls 6

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

Tested by

no test coverage detected