What is the role of syntax in writing?

What is the role of syntax in writing?