Some convenience parser combinators.
Apply a parser one or more times and return a tuple of the first result parsed and the list of the remaining results.
Parse an expression between two other parsers
Parse an expression between parenthesis.
parens p == between (symbol "(") (symbol ")") pParse an expression between curly braces.
braces p == between (symbol "{") (symbol "}") pParse an expression between square brackets.
brackets p == between (symbol "[") (symbol "]") pParse a quoted string with an escape character.
quotedString '\\' '\'' "'a 'quoted' string'" -- Ok "a 'quoted' string"
Apply a parser zero or more times and return a list of the results.