Case insensitive token matching
问题 Is it possible to set the grammar to match case insensitively. so for example a rule: checkName = 'CHECK' Word; would match check name as well as CHECK name 回答1: Creator of PEGKit here. The only way to do this currently is to use a Semantic Predicate in a round-about sort of way: checkName = { MATCHES_IGNORE_CASE(LS(1), @"check") }? Word Word; Some explanations: Semantic Predicates are a feature lifted directly from ANTLR. The Semantic Predicate part is the { ... }? . These can be placed