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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();
   auto ruleA = t.FromTo("a", "A");
   ruleA.Minimum(3);

   cout << "--- Case 1: Fails (only 2 'a's) ---" << endl;
   t.Transform("a b a b c");
   cout << "Result: " << t << endl;
   cout << "Matches Found: " << t.Matches().Count() << endl;

   cout << "" << endl;
   cout << "--- Case 2: Succeeds (3 'a's) ---" << endl;
   t.Transform("a b a b a c");
   cout << "Result: " << t << endl;
   cout << "Matches Found: " << t.Matches().Count() << endl;
}