Implement semantic-only flag for the compiler.
Need to check for errors before tryin to access the name of the package.
Merge pull request #200 from mpark/semantic-only

Implement semantic-only flag for the compiler.