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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto tokens = uc.ExpressionTokens();
   int i = 0;
   uCalc::Item literalToken;

   cout << "--- All Literal Tokens ---" << endl;
   do {
      literalToken = tokens.ByType(TokenType::Literal, i);
      if (literalToken.NotEmpty()) {
         cout << i << ": " << literalToken.Name() << " - " << literalToken.Regex() << endl;
      }
      i = i + 1;
   } while (literalToken.NotEmpty());
}