#ifndef _GLOBALS_H #define _GLOBALS_H #include "OperatorMap.h" /** *Globals holds all of the global variables to be accesed by the arithmatica *program * *Written by Jessica Smith */ const int CONSTANT_PRECEDENCE =10; //sets precedence for constnats const int EQUALS_PRECEDENCE=2; const int VARIABLE_PRECEDENCE=1; const int ADD_PRECEDENCE=4; const int SUBTRACT_PRECEDENCE=4; const int TIMES_PRECEDENCE=5; const int DIV_PRECEDENCE=5; const int MOD_PRECEDENCE=5; const int POW_PRECEDENCE=6; const int OPEN_PAREN_PRECEDENCE=11; const int CLOSED_PAREN_PRECEDENCE =3; const char COMMENT_CHARACTER='#'; const int UNARY_PRECEDENCE=9; const int BINARY_FUNCTION_PRECEDENCE=7; const int DERIVATIVE_PRECEDENCE=7; const int COMMA_PRECEDENCE=0; const int KEY_PRECEDENCE =10; static OperatorMap myOperatorMap; #endif