added compile function; int and float literals are converted to appropriate types