Slide 11.Syntax and Semantics The syntax of a programming language is the part of the language definition that says how programs look: their form and structure, such as its…