UNPKG

pegisland

Version:

General PEG-based parser supporting island grammars with lake symbols

16 lines 482 B
"use strict"; // Copyright (C) 2022- Katsumi Okuda. All rights reserved. Object.defineProperty(exports, "__esModule", { value: true }); exports.getValue = exports.measure = void 0; function measure(f) { const start = performance.now(); const result = f(); const end = performance.now(); return [result, end - start]; } exports.measure = measure; function getValue(map, key) { return map.get(key); } exports.getValue = getValue; //# sourceMappingURL=utils.js.map