Documentation Conventions of the Tutorials

Last updated 26 June 2006

This page describes how source code, key words, etc, are distinguised from each other and general text in the Pascal tutorials. 

Keywords

Pascal language keywords are shown in

bold face

Pascal keywords are always case-insensitive (can be written in upper and lower case).  They are generally written in lower case here and in the example source code.  Other than upper/lower case, keywords must be written exactly as shown. 

Description

Brief descriptions of what to write instead of the actual text to write are shown in

italic type

Such descriptions must be replaced by the item they describe in the actual source code. 

Source code

Source code is shown in

fixed-space font

just like you would see it in a source code editor. 

Example

The following example illustrates the rules above:

program program-name;

begin
  writeln ('Hello, world.');
  end.

In this example "program", "begin", and "end" must be entered as shown, except that they may be upper case or lower case.  "Program-name" must be replaced with the actual name of the program.  The line starting with "writeln" is part of the source code content decided by the programmer.