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

Function getbinopr

third-party/lua-5.4.6/src/lparser.c:1205–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1203
1204
1205static BinOpr getbinopr (int op) {
1206 switch (op) {
1207 case '+': return OPR_ADD;
1208 case '-': return OPR_SUB;
1209 case '*': return OPR_MUL;
1210 case '%': return OPR_MOD;
1211 case '^': return OPR_POW;
1212 case '/': return OPR_DIV;
1213 case TK_IDIV: return OPR_IDIV;
1214 case '&': return OPR_BAND;
1215 case '|': return OPR_BOR;
1216 case '~': return OPR_BXOR;
1217 case TK_SHL: return OPR_SHL;
1218 case TK_SHR: return OPR_SHR;
1219 case TK_CONCAT: return OPR_CONCAT;
1220 case TK_NE: return OPR_NE;
1221 case TK_EQ: return OPR_EQ;
1222 case '<': return OPR_LT;
1223 case TK_LE: return OPR_LE;
1224 case '>': return OPR_GT;
1225 case TK_GE: return OPR_GE;
1226 case TK_AND: return OPR_AND;
1227 case TK_OR: return OPR_OR;
1228 default: return OPR_NOBINOPR;
1229 }
1230}
1231
1232
1233/*

Callers 1

subexprFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected