added squared bracket handling in ExpressionParser