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

using namespace std;
using namespace uCalcSoftware;

#define tf(IsTrue) ((IsTrue) ? "True" : "False")

int main() {
   uCalc uc;
   uCalc::Transformer t;
   auto rootRule = t.Pattern("root");
   auto localTransformer = rootRule.LocalTransformer();
   auto childRule = localTransformer.Pattern("child");

   cout << "Is 'rootRule' a child? " << tf(rootRule.IsChildRule()) << endl;
   cout << "Is 'childRule' a child? " << tf(childRule.IsChildRule()) << endl;
}