Created
January 25, 2012 01:56
-
-
Save fierval/1674139 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
type PushParser<'a> = Parser<'a, unit> | |
let ws = spaces | |
let str s = pstring s | |
let openList : PushParser<string> = str "(" .>> ws | |
let closeList : PushParser<string> = ws >>. str ")" | |
let internal pushProgram, internal pushProgramRef = createParserForwardedToRef() | |
let internal listSeries = (sepEndBy pushProgram spaces) |>> PushList | |
let internal pushList = between openList closeList listSeries |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment