Fixed #44. Added EOF check to the parseStatements function.
Formatting.