Case-Insensitive SQL Keyword Lexer with Nom
When writing a SQL tokenizer with the nom parser-combinator library, you often need to recognize reserved words regardless of their letter casing. The naive approach that uses tag fails on inputs such as SeLeCt or from. Replacing every tag("LITERAL") with tag_no_case("LITERAL") s...