The notion 'grammatical' cannot be identified with 'meaningful' or 'significant' in any semantic sense. Sentences (1) and (2) are equally nonsensical, but…only the former is grammatical. (1) Colourless green ideas sleep furiously.(2) Furiously sleep ideas green colourless.
Syntactic Structures (1957) ch. 2