Moved syntax error output into parser itself.

Also print error position now.