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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;
   auto tokens = t.Tokens();
   tokens.Clear();
   tokens.Add("."); // Add a fallback token at index 0

   // The order of definition determines the index (precedence)
   auto tokenA = tokens.Add("A");
   auto tokenB = tokens.Add("B");

   cout << "Index of A: " << tokens.IndexOf(tokenA) << endl; // Will have a lower index
   cout << "Index of B: " << tokens.IndexOf(tokenB) << endl; // Will have a higher index, thus higher precedence
}