Defines a TokenParser that will match a string s.
s
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.
matchError
A new TokenParser that will match s.
The string to be matched.
A callback that returns a semantic error value for "Unexpected EOF".
A callback that returns a semantic error value for "No match found".
Defines a TokenParser that will match a string
s
.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 bymatchError
gets returned.Returns
A new TokenParser that will match
s
.