#ifndef CALCENGINE_HPP
#define CALCENGINE_HPP

#include <QObject>
#include <QString>

class CalcEngine : public QObject {
Q_OBJECT
public:
    CalcEngine();

    QString calc(QString input);
};

class ExprException {
public:
    ExprException(const QString& msg) : m_msg(msg) {}

    QString msg() { return m_msg; }

private:
    QString m_msg;
};

#endif /* CALCENGINE_HPP */
