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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;

   // The variable {formula} will capture the literal text "10 * (5-2)".
   // {@@Eval} then executes that text as an expression.
   t.FromTo("solve({formula})", "'{formula}' is {@@Eval: formula}.");

   auto text = "The answer to solve(10 * (5-2))";
   cout << t.Transform(text) << endl;
}