class ExtendedParser extends BaseParser {

    protected final float readExpression() throws ParserException {
        skipWhitespaces();
        float result = readTerm();
        skipWhitespaces();
        while (available() && (peek() == '+' || peek() == '-')) {
            if (pop() == '+') {
                result += readTerm();
            } else {
                result -= readTerm();
            }
            skipWhitespaces();
        }
        return result;
    }

    public  ExtendedParser(String toParse);

}