Created
October 17, 2018 10:07
-
-
Save scientific-coder/4fc740c472a4fe598ab208dd1dfabcf2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(def const-parser | |
(instaparse.core/parser | |
"prog= spaces? number spaces? | |
number=#'-?[0-9]+' | |
<spaces> = <#'[\\s]'+>")) | |
(const-parser " -123456 ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment