public static DRLLexer getDRLLexer(CharStream input, LanguageLevelOption languageLevel) {
switch (languageLevel) {
case DRL5:
return new DRL5Lexer(input);
case DRL6:
return new DRL6Lexer(input);
}
throw new RuntimeException("Unknown language level");
}