For example, if a lane were to be marked "exit only", this would indicate that the lane is only for exiting. On the other hand, if a lane were to be marked "only exit", this would indicate that it's the only exit lane.
Linguistically, what's going on here? It seems like the word "only" is modifying the word "exit" in both instances, but is there a linguistic term for the two different ways "only" is operating here?
To be clear, I'm not asking about the meaning of "exit only" or "only exit" road signs (in fact, "only exit" signs probably don't exist). Instead, I'm merely using the signs to illustrate the semantic difference between "exit only" and "only exit". That way, we're all on the same page for my actual question: given that both phrases are made up of the same noun (i.e. "exit") and adjective (i.e. "only"), what is the linguistic term for the way in which the noun-adjective order determines the meaning of these two phrases?