Defines a TokenParser that will match parser as many times as possible in a row, but at least once.
parser
If parser does not get matched at least once, an error with a semantic error value returned by matchError gets returned.
matchError
A new TokenParser that will match parser as many times as possible.
The parser to be matched.
A callback that returnes a semantic error value for "No match found".
Defines a TokenParser that will match
parser
as many times as possible in a row, but at least once.If
parser
does not get matched at least once, an error with a semantic error value returned bymatchError
gets returned.Returns
A new TokenParser that will match
parser
as many times as possible.