UNPKG

@abaplint/core

Version:
35 lines 2.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Scan = void 0; const combi_1 = require("../combi"); const expressions_1 = require("../expressions"); const version_1 = require("../../../version"); class Scan { getMatcher() { const tokens = (0, combi_1.seq)("TOKENS INTO", expressions_1.Target); const word = (0, combi_1.seq)("WORD INTO", expressions_1.Target); const line = (0, combi_1.seq)("LINE INTO", expressions_1.Target); const statements = (0, combi_1.seq)("STATEMENTS INTO", expressions_1.Target); const levels = (0, combi_1.seq)("LEVELS INTO", expressions_1.Target); const structures = (0, combi_1.seq)("STRUCTURES INTO", expressions_1.Target); const include = (0, combi_1.seq)("INCLUDE INTO", expressions_1.Target); const offset = (0, combi_1.seq)("OFFSET INTO", expressions_1.Target); const enh = (0, combi_1.seq)("ENHANCEMENTS INTO", expressions_1.Target); const enhO = (0, combi_1.seq)("ENHANCEMENT OPTIONS INTO", expressions_1.Target); const keywords = (0, combi_1.seq)("KEYWORDS FROM", expressions_1.Source); const pragmas = (0, combi_1.seq)("WITH PRAGMAS", expressions_1.Source); const overflow = (0, combi_1.seq)("OVERFLOW INTO", expressions_1.Target); const message = (0, combi_1.seq)("MESSAGE INTO", expressions_1.Target); const includeProgram = (0, combi_1.seq)("INCLUDE PROGRAM FROM", expressions_1.Source); const frame = (0, combi_1.seq)("FRAME PROGRAM FROM", expressions_1.Source); const program = (0, combi_1.seq)("PROGRAM FROM", expressions_1.Source); const from = (0, combi_1.seq)("FROM", expressions_1.Source); const to = (0, combi_1.seq)("TO", expressions_1.Source); const replacing = (0, combi_1.seq)("REPLACING", expressions_1.Source); const id = (0, combi_1.seq)("ID", expressions_1.Source, "TABLE", expressions_1.Source); const ret = (0, combi_1.seq)("SCAN ABAP-SOURCE", expressions_1.Source, (0, combi_1.per)(tokens, levels, from, to, statements, structures, keywords, word, line, offset, overflow, message, includeProgram, include, frame, enhO, enh, program, replacing, "WITH ANALYSIS", "WITH COMMENTS", "WITH TYPE-POOLS", "WITH INCLUDES", "WITHOUT TRMAC", "WITH DECLARATIONS", "WITH BLOCKS", "PRESERVING IDENTIFIER ESCAPING", "WITH LIST TOKENIZATION", "WITH EXPLICIT ENHANCEMENTS", "WITH IMPLICIT ENHANCEMENTS", "WITH INACTIVE ENHANCEMENTS", pragmas, id)); return (0, combi_1.verNot)(version_1.Version.Cloud, ret); } } exports.Scan = Scan; //# sourceMappingURL=scan.js.map