updated parser.c with parse errors completed