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

using namespace std;
using namespace uCalcSoftware;

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

   t.FromTo("begin {body} end",   "bracket not ignored: <{@Self}>");
   t.FromTo("begin_ {body^} end", "bracket ignored:     <{@Self}>");

   cout << t.Transform("begin (a b c end) end") << endl;
   cout << t.Transform("begin_ (a b c end) end") << endl;
}