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:

    If you’re anxious for to shine in the high esthetic line as a man
    of culture rare,
    You must get up all the germs of the transcendental terms, and plant
    them everywhere.
    You must lie upon the daisies and discourse in novel phrases of your
    complicated state of mind,
    The meaning doesn’t matter if it’s only idle chatter of a
    transcendental kind.
    Sir William Schwenck Gilbert (1836–1911)

    Think of the earth as a living organism that is being attacked by billions of bacteria whose numbers double every forty years. Either the host dies, or the virus dies, or both die.
    Gore Vidal (b. 1925)

    [Montesquieu] lifted the veil from the venerable errors which enslaved opinion, and pointed the way to those luminous truths of which he had but a glimpse himself.
    James Madison (1751–1836)