@abaplint/core
Version:
abaplint - Core API
15 lines • 737 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldLength = void 0;
const combi_1 = require("../combi");
const tokens_1 = require("../../1_lexer/tokens");
const _1 = require(".");
class FieldLength extends combi_1.Expression {
getRunnable() {
const normal = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.Plus)), (0, combi_1.altPrio)((0, combi_1.regex)(/^\d+$/), _1.SimpleFieldChain2));
const length = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.optPrio)((0, combi_1.altPrio)(normal, "*")), (0, combi_1.tok)(tokens_1.ParenRightW));
return length;
}
}
exports.FieldLength = FieldLength;
//# sourceMappingURL=field_length.js.map