Skip to content

Instantly share code, notes, and snippets.

@fierval
Created January 25, 2012 01:56
Show Gist options
  • Save fierval/1674139 to your computer and use it in GitHub Desktop.
Save fierval/1674139 to your computer and use it in GitHub Desktop.
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