"use strict"; module.exports = function* peek(instruction, state, context) { let result = yield instruction.rule; // Reset the index, to "undo" consuming the input state.currentIndex = context.startIndex; return result; };