consumeIgnoreCase

fun consumeIgnoreCase(text: String, errorMessage: (Token<T>) -> String = { "Expected: '$text'" }): Token<T>

Consumes and returns a token matching text case-insensitively. If the current token text does not match, an exception is thrown.