Parse a sequences of digits, return an array of number
Skip white spaces
Parse a sequence of characters
Parse an identifier, starts with a letter or _, followed by letter, _, or digits
Consumes nothing, always return OK
Parse escaped character, \n, \r, \b, \" and \\
Parse a string enclosed by a pair of quotes, and containing escape sequence
Match any character in accept
Match any character except those in reject
Match a string, return the matched string
Parse a number
Simple parsers
Here are some commonly used parsers. Also as an example for how to use the combinators.