Implemented syntax error for  missing comma, extra comma and missing right bracket