White Space

White space is conceptually those characters which do not print but control where the next character will appear. White space serves to separate tokens (defined in a different lesson) and it helps to arrange the two dimensional visual appearance of the text in a program (on the page or screen) so that the structure of the program to a human reader of the source file is much clearer. Some white space is required to separate otherwise adjacent keywords, identifiers and constants.

White space consists of any sequence of:

   SYMBOL  ASCII CODE  NAME
   ------  ----------  --------------
     HT         7      horizontal tab
     LF        10      new line
     VT        11      vertical tab
     FF        12      form feed
     SP        32      space

A comment is also considered to be white space.


© 1991-2008 Prem Sobel. All Rights Reserved.