Definition of syntax error in US English:

syntax error


  • A character or string incorrectly placed in a command or instruction that causes a failure in execution.

    • ‘If there is an exception (because of a syntax error, etc.) in the program, the exception will be traced back and reported.’
    • ‘I assume that there is a subtle syntax error or variable mismatch, but my debugger doesn't provide enough info to diagnose such problems without a lot of trial and error.’
    • ‘For example, when you make a typo or syntax error that the compiler catches, fixing it is basically trivial.’
    • ‘The system either gives me a syntax error or some file is missing.’
    • ‘Then the parser, purveyor of the dreaded syntax error, looks at the stream of tokens to verify its syntactic correctness.’