Created
March 2, 2017 04:41
-
-
Save ccorcos/0bf7456713a8add545178f344043080f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lookahead = parser => | |
new Parser(stream => | |
parser.run(stream) | |
.fold( | |
(v) => new Success(v, stream), | |
(v) => new Failure(v, stream))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment