UNPKG

@abaplint/core

Version:
18 lines 900 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Shift = void 0; const combi_1 = require("../combi"); const expressions_1 = require("../expressions"); class Shift { getMatcher() { const deleting = (0, combi_1.seq)("DELETING", (0, combi_1.altPrio)("LEADING", "TRAILING"), expressions_1.Source); const up = (0, combi_1.seq)("UP TO", expressions_1.Source); const mode = (0, combi_1.seq)("IN", (0, combi_1.altPrio)("CHARACTER", "BYTE"), "MODE"); const dir = (0, combi_1.altPrio)("LEFT", "RIGHT"); const by = (0, combi_1.seq)("BY", expressions_1.Source, (0, combi_1.optPrio)("PLACES")); const options = (0, combi_1.per)(deleting, up, mode, dir, by, "CIRCULAR"); return (0, combi_1.seq)("SHIFT", expressions_1.Target, (0, combi_1.opt)(options)); } } exports.Shift = Shift; //# sourceMappingURL=shift.js.map