Syntax vs.Semantics The syntax of a programming language describes the proper form ofits programs The semantics of the language defines what its programs mean. CS308 Compiler Theory 5Syntax vs. Semantics • The syntax of a programming language describes the proper form of its programs • The semantics of the language defines what its programs mean semantics of the language defines what its programs mean. CS308 Compiler Theory 5