retagged by
381 views

1 Answer

0 votes
0 votes
  •  Syntax errors occur during the parsing of input code, and are caused by grammatically incorrect statements. Typical errors might be an illegal character in the input, a missing operator, two operators in a row, two statements on the same line with no intervening semicolon, unbalanced parentheses, a misplaced reserved word, etc.
  •  Semantic errors occur during the execution of the code, after it has been parsed as grammatically correct. These have to do not with how statements are constructed, but with what they mean. Such things as incorrect variable types or sizes, nonexistent variables, subscripts out of range, and the like, are semantic errors.
    https://wci.llnl.gov/codes/basis/manual/node53.html
    http://space.wccnet.edu/~pmillis/cps120/cps120_pgm_syntax.pdf

Related questions