Const
A rule that matches any character as long as it belongs to the graphemes in str
Optional
Rest
A rule that accepts the stream only if it follows exactly with str
Utility function to create tokens that are discriminated by the field type (ie. {type:'text'})
A rule that accepts any character, unless it belongs to the graphemes in str
Matches the given rule, or nothing if original rule doesn't match
A rule that may or may not match the original rule
A rule that matches as many characters, as long as they pass predicated pred
A rule that returns the matched substring
Utility function to create tokens that are discriminated by the field type (ie. {type:'text'})