advanceWhile
Advances to the next XmlChar in the buffer that does not match the predicate.
This can be used to implement T+ and T* constructs in lexical tokens. For example, the lexical token:
Digits := [0-9]+Content copied to clipboard
can be implemented as:
if (reader.currentChar in Digit) {
reader.advanceWhile { it in Digit }
}Content copied to clipboard