The parse dialect has a lot more useful features and functionalities. In this section, we discuss some more examples, so that you get a feeling for what is possible.
More features and examples
Using end
Remember our vowels example from The bitset! datatype section?
;-- see Chapter08/more-features.red:
vowel: charset "aeiou"
str: "dog"
find str vowel ;== "og"
Using parse we can write this as follows:
parse str [ to vowel to end] ;== true
parse "xyz" [ to vowel to end] ;== false
The end word, which exists only in the parse dialect, returns true when the current position pointer is at the end of the input.