In computer science, a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in compile-time. A program will not compile until all syntax errors are corrected.
What are syntactic errors?
Syntactic errors consisted of a violation of very basic grammatical rules such as number congruency between noun, adjective, and verb or changes in the appropriate word order (see Table 1). ...
What are syntactic and semantic errors?
Syntax errors and "semantic" errors are not the same. The syntax error is an incorrect construction of the source code, whereas a semantic error is erroneous logic that produces the wrong result when executed.