define parser and compiler behavior for invalid expressions

fixes #9
Merge pull request #10 from uniphil/invalidExprs

Define parser and compiler behavior for invalid expressions