Update interpreter.py

Modified the visitProgram() method so that it can properly account for the semi-colons present in the code.