Created
March 18, 2017 08:11
-
-
Save darrenldl/ebfab9120ae80476851c603c794d27f3 to your computer and use it in GitHub Desktop.
Racket megaparsack compile test code
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
#lang racket | |
(require megaparsack megaparsack/text) | |
(module+ main | |
(displayln | |
(with-handlers ([exn:fail:read:megaparsack? (λ(x) #f)]) | |
(parse-result! | |
(parse-string integer/p "123")))) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment