#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   // Attempt to evaluate an expression with unbalanced parenthesis causing a syntax error.
   uc.EvalStr("5 * (10 +");

   // Check the error message from the last operation.
   cout << "Last error message: " << uc.Error().Message() << endl;
}