class GlueFieldLexer {

    public static Field lex(String name, String input)
    {
        ArrowType typeResult = DEFAULT_TYPE_MAPPER.getType(input);
        if (typeResult != null) {
            return FieldBuilder.newBuilder(name, typeResult).build();
        }

        GlueTypeParser parser = new GlueTypeParser(input);
        return lexComplex(name, parser.next(), parser, DEFAULT_TYPE_MAPPER);
    }

    private  GlueFieldLexer();

}