Implement basic error messages.

These do not match the standard Lua compiler's error messages.
This is partly due to the a very different structuring of the two
parsers. In the future the parser will be rewritten and should
be able to report errors more similar to the standard Lua
compiler.