#include <stdio.h>

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

int
main (int argc, char *argv[])
{
  double result = 0;
  
  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) */  
  result = math(argc, argv);
  fprintf (stdout, "%g\n", result); 
  

  return 0;
}






                                                   /* NOTE */
/* ******************************************************************************************************* */
/* 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 */
/* ****************************************************************************************************** */
