Expand description
Parsers extracting tokens from the stream
Functionsยง
- Matches one token
- any_ ๐
- Recognizes a literal
- literal_ ๐
- Recognize a token that does not match a set of tokens
- Recognize a token that matches a set of tokens
- Recognize an input slice containing the first N input elements (I[..N]).
- take_ ๐
- Recognize the longest input slice (if any) till a member of a set of tokens is found.
- take_
till0 ๐ - take_
till1 ๐ - take_
till_ ๐m_ n - Recognize the input slice up to the first occurrence of a literal.
- take_
until0_ ๐ - take_
until1_ ๐ - take_
until_ ๐m_ n_ - Recognize the longest (m <= len <= n) input slice that matches a set of tokens