Working out what is and isn't allowed in the syntax.