Expand description
Parsers extracting tokens from the stream
Functions§
- any
- Matches one token
- literal
- Recognizes a literal
- none_of
- Recognize a token that does not match a set of tokens
- one_of
- Recognize a token that matches a set of tokens
- rest
- Return the remaining input.
- rest_
len - Return the length of the remaining input.
- take
- Recognize an input slice containing the first N input elements (I[..N]).
- take_
till - Recognize the longest input slice (if any) till a member of a set of tokens is found.
- take_
until - Recognize the input slice up to the first occurrence of a literal.
- take_
while - Recognize the longest (m <= len <= n) input slice that matches a set of tokens