presto-cli/src/main/java/io/prestosql/cli/InputParser.java/InputParser/parse
class InputParser:    @Override
    public ParsedLine parse(String line, int cursor, ParseContext context)
            throws SyntaxError
    {
        String command = whitespace().trimFrom(line);
        if (command.isEmpty() || SPECIAL.contains(command.toLowerCase(ENGLISH))) {
            return new DefaultParser().parse(line, cursor, context);
        }

        StatementSplitter splitter = new StatementSplitter(line, STATEMENT_DELIMITERS);
        if (splitter.getCompleteStatements().isEmpty()) {
            throw new EOFError(-1, -1, null);
        }

        return new DefaultParser().parse(line, cursor, context);
    }