MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / prefixexp

Function prefixexp

Source/Misc/lua/src/lua.c:8243–8263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8241
8242
8243static void prefixexp (LexState *ls, expdesc *v) {
8244/* prefixexp -> NAME | '(' expr ')' */
8245switch (ls->t.token) {
8246case '(': {
8247int line = ls->linenumber;
8248luaX_next(ls);
8249expr(ls, v);
8250check_match(ls, ')', '(', line);
8251luaK_dischargevars(ls->fs, v);
8252return;
8253}
8254case TK_NAME: {
8255singlevar(ls, v);
8256return;
8257}
8258default: {
8259luaX_syntaxerror(ls, "unexpected symbol");
8260return;
8261}
8262}
8263}
8264
8265
8266static void primaryexp (LexState *ls, expdesc *v) {

Callers 1

primaryexpFunction · 0.85

Calls 6

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

Tested by

no test coverage detected