/* ******************************************************************************************************* */
/* Programmet använder 'x' istället för '*' som sin multiplikationsoperator */
/* detta är medvetet eftersom '*' tolkas först av bash som ställer till massvis med problem */
/* ****************************************************************************************************** */
#include <stdio.h>

#include "parser/parser.h"
#include "math/math.h"

int
main (int argc, char *argv[])
{

  
  parser (argc, argv); /*puts the arguments through the parser, which detects input errors and exits the program */
  /* with the appropriate return value if an error is found */
  
  
  /* if all conditions are met, the the returned result of the math function is passed to stdout and the program exits with a success value (0) */  
  fprintf (stdout, "Result: %g\n", math(argc, argv)); 
  

  return 0;
}



