@abaplint/core
Version:
abaplint - Core API
17 lines • 831 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SQLCond = void 0;
const combi_1 = require("../combi");
const tokens_1 = require("../../1_lexer/tokens");
const _1 = require(".");
class SQLCond extends combi_1.Expression {
getRunnable() {
const operator = (0, combi_1.altPrio)("AND", "OR");
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), SQLCond, (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.ParenRightW)));
const cnd = (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)(_1.SQLCompare, paren));
const ret = (0, combi_1.seq)(cnd, (0, combi_1.starPrio)((0, combi_1.seq)(operator, cnd)));
return ret;
}
}
exports.SQLCond = SQLCond;
//# sourceMappingURL=sql_cond.js.map