Fixes handling of EOF in the compiler

Fixes #127
Fixes #93
Merge pull request #134 from yjaradin/fixParser

Fixes handling of EOF in the compiler