presto-teradata-functions/src/main/java/io/prestosql/teradata/functions/dateformat/DateFormatParser.java/DateFormatParser/tokenize
class DateFormatParser:    public static List<? extends Token> tokenize(String format)
    {
        DateFormat lexer = new io.prestosql.teradata.functions.DateFormat(new ANTLRInputStream(format));
        return lexer.getAllTokens();
    }