Capture types of parsing

If ERROR or ERROR_STAR is returned from a parse, return ERROR.
Add return ERORR_STAR after calls to synch.
Return status indicates whether parsing of program was successful.