UNPKG

@abaplint/core

Version:
14 lines 597 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDSInteger = void 0; const combi_1 = require("../../abap/2_statements/combi"); class CDSInteger extends combi_1.Expression { getRunnable() { const digits = (0, combi_1.regex)(/^\d+$/); // Decimal numbers like 100.00 are lexed as 3 tokens: "100" "." "00" const decimal = (0, combi_1.seq)(digits, ".", digits); return (0, combi_1.seq)((0, combi_1.opt)("-"), (0, combi_1.altPrio)(decimal, digits)); } } exports.CDSInteger = CDSInteger; //# sourceMappingURL=cds_integer.js.map