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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;
   string text = "(this and that) <this or that>";
   t.Text(text);

   // Define two rules
   auto rule1 = t.FromTo("({txt})", "#{txt}#");
   auto rule2 = t.FromTo("<{txt}>", "${txt}$");

   // Transform with both rules active
   cout << t.Transform() << endl;

   // Release the first rule
   rule1.Release();

   // Re-run the transformation; only the second rule applies
   t.Text(text);
   cout << t.Transform() << endl;
}