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

Function getbinopr

third-party/lua-5.5.0/src/lparser.c:1320–1345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318
1319
1320static BinOpr getbinopr (int op) {
1321 switch (op) {
1322 case '+': return OPR_ADD;
1323 case '-': return OPR_SUB;
1324 case '*': return OPR_MUL;
1325 case '%': return OPR_MOD;
1326 case '^': return OPR_POW;
1327 case '/': return OPR_DIV;
1328 case TK_IDIV: return OPR_IDIV;
1329 case '&': return OPR_BAND;
1330 case '|': return OPR_BOR;
1331 case '~': return OPR_BXOR;
1332 case TK_SHL: return OPR_SHL;
1333 case TK_SHR: return OPR_SHR;
1334 case TK_CONCAT: return OPR_CONCAT;
1335 case TK_NE: return OPR_NE;
1336 case TK_EQ: return OPR_EQ;
1337 case '<': return OPR_LT;
1338 case TK_LE: return OPR_LE;
1339 case '>': return OPR_GT;
1340 case TK_GE: return OPR_GE;
1341 case TK_AND: return OPR_AND;
1342 case TK_OR: return OPR_OR;
1343 default: return OPR_NOBINOPR;
1344 }
1345}
1346
1347
1348/*

Callers 1

subexprFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected