update expression parser
*handling different sorts of opening and closing brackets