Open mattfenwick opened 8 years ago
Is this different from:
// [Parser e s (m t) a] -> Parser e s (m t) [a]
function and(parsers) {
parsers.forEach(checkParser.bind(null, 'and'));
return seq(parsers.map(lookahead));
}
?
Is there a better name than and
? Perhaps all
?
Run a bunch of parsers, checking that they all succeed, without advancing the position. Something like: