Defines a TokenParser that will match a regular expressionregex.
If no match was made and targer reached EOF, an error with a semantic error value returned
by matchError gets returned.
If no match was made, an error with a semantic error value returned by matchError
gets returned.
Defines a TokenParser that will match a regular expression
regex.If no match was made and targer reached EOF, an error with a semantic error value returned by
matchErrorgets returned. If no match was made, an error with a semantic error value returned bymatchErrorgets returned.Returns
A new TokenParser that will match
regex.