@Override
    public Term parseTerm() throws IOException {
        Term term = new Term();

        term.getFactorList().add(parseFactor());
        while (curToken.type == DIVIDE ||
                curToken.type == MULTIPLY) {
            switch (curToken.type) {
                case DIVIDE:
                    curToken = lexer.getToken();
                    term.getOpList().add(DIVIDE);
                    term.getFactorList().add(parseFactor());
                    break;
                case MULTIPLY:
                    curToken = lexer.getToken();
                    term.getOpList().add(MULTIPLY);
                    term.getFactorList().add(parseFactor());
                    break;

            }
        }
        return term;
    }