"use strict"; const ifMatch = require("../if-match"); module.exports = function* wholeMatch(instruction, state, context) { let result = yield instruction.rule; return ifMatch(result, () => { return state.currentInput.slice(context.startIndex, state.currentIndex); }); };