Line Number - Line Numbers and Syntax Errors

Line Numbers and Syntax Errors

If a programmer introduces a syntax error into a program, the compiler (or interpreter) will inform the programmer that the attempt to compile (or execute) failed at the given line number. This simplifies the job of finding the error immensely for the programmer.

The use of line numbers to describe the location of errors remains standard in modern programming tools, even though line numbers are never required to be manually specified. It is a simple matter for a program to count the newlines in a source file and display an automatically generated line number as the location of the error. In IDEs such as Microsoft Visual Studio or Xcode, in which the compiler is usually integrated with the text editor, the programmer can even double-click on an error and be taken directly to the line containing that error.

Read more about this topic:  Line Number

Famous quotes containing the words line, numbers and/or errors:

    I had lived over twenty years without the legal right to be alone one hour M to have the exclusive use of one foot of space M to receive an unopened letter, or to preserve a line of manuscript “from sharp and sly inspection.”
    Jane Grey Swisshelm (1815–1884)

    ... there are persons who seem to have overcome obstacles and by character and perseverance to have risen to the top. But we have no record of the numbers of able persons who fall by the wayside, persons who, with enough encouragement and opportunity, might make great contributions.
    Mary Barnett Gilson (1877–?)

    Of all the errors which can possibly be committed to the education of youth, that of sending them to Europe is the most fatal. I see [clearly] that no American should come to Europe under 30 years of age.
    Thomas Jefferson (1743–1826)