If "with" is used in the sense of "contains" , then the PP is a likely noun attachment, as in n1 contains n2 in the quad ate, cookies, with, cranberries.
if "with" is used in the sense of "accompanied by", then the PP is a likely verb attachment, as in the quad visted, P aris, with, Sue.