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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();

   t.FromTo("a {txt} c", "<{@Self}>");
   t.FromTo("x {txt+} z", "<{@Self}>");

   cout << t.Transform("a b c; :: x y z; :: a b; c :: x y; z") << endl;
}