Excerpted from Araby by James Joyce:
What innumerable follies laid waste my waking and sleeping thoughts after the evening!
I can't understand the sentence structure above, What at the beginning indicates it's exclamatory, but I don't see the normal structure of exclamatory sentence. Lay is supposed to have some nouns after it, so I assume waste is a noun there, but then how can my waking attached directly after a noun like that?