UNPKG

mframejs

Version:
20 lines 1.12 kB
Object.defineProperty(exports, "__esModule", { value: true }); var CharCodes = (function () { function CharCodes() { var _this = this; this.WHITESPACE = new Set(); [32, 10, 13].map(function (a) { return _this.WHITESPACE.add(a); }); this.STRING_START_END = new Set(); ["'", '"', '`'].map(function (a) { return _this.STRING_START_END.add(a.charCodeAt(0)); }); this.OPERATOR = new Set(); ['=', '!', '>', '<', '+', '-', '*', '/', '%', '@', '^', '(', ')', '|', '&', '?', ':', ',', '{', , '}', '[', ']', '$', '.'].map(function (a) { return _this.OPERATOR.add(a.charCodeAt(0)); }); this.NUMBER = new Set(); ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'].map(function (a) { return _this.NUMBER.add(a.charCodeAt(0)); }); this.OPERATOR_COMBO = new Set(); ['===', '==', '+=', '-=', '*=', '/=', '!=', '&&', '||', '!==', '>=', '<=', '${', '@{'].map(function (a) { return _this.OPERATOR_COMBO.add(a); }); } return CharCodes; }()); exports.CharCodes = CharCodes; //# sourceMappingURL=charcode.js.map