Improving parsing error messages and ir generation, also more test
cases.
Improved lexical/syntactical error reporting.