Improved error messages for compile-time parsing errors