Open manuel-rubio opened 1 year ago
what about this?
pub fn itoken(str: String, value: a) -> Matcher(a, mode) {
use mode, lexeme, _ <- Matcher
case string.lowercase(lexeme) == string.lowercase(str) {
True -> Keep(value, mode)
False -> NoMatch
}
}
Is it possible to indicate tokens to be case-sensitive or case-insensitive? I'm needing for a SQL-like parser to have case-insensitive tokens.