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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;
   auto source = R"(<data>
  content spans
  multiple lines
</data>)";

   // This rule must disable StatementSensitive to capture the multi-line body,
   // otherwise the first newline would terminate the {body} variable.
   auto rule = t.FromTo("<data>{body}</data>", "Body: [{body}]");
   rule.StatementSensitive(false);

   cout << t.Transform(source) << endl;
}