UNPKG

@abaplint/core

Version:
17 lines 769 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.At = void 0; const combi_1 = require("../combi"); const expressions_1 = require("../expressions"); class At { getMatcher() { const field = (0, combi_1.alt)((0, combi_1.seq)(expressions_1.FieldSub, (0, combi_1.opt)(expressions_1.FieldOffset), (0, combi_1.opt)(expressions_1.FieldLength)), expressions_1.Dynamic, expressions_1.SourceFieldSymbol); const atNew = (0, combi_1.seq)("NEW", field); const atEnd = (0, combi_1.seq)("END OF", field); const group = (0, combi_1.regex)(/^[%\w]+$/); const ret = (0, combi_1.seq)("AT", (0, combi_1.altPrio)(atNew, atEnd, group)); return ret; } } exports.At = At; //# sourceMappingURL=at.js.map