This section gives an informal account of some of the lexical conventions used in writing Scheme programs. For a formal syntax of Scheme, see section section Formal syntax . Upper and lower case forms of a letter are never distinguished except within character and string constants. Identifiers Most identifiers allowed by other programming languages are also acceptable to Scheme. Lexical structure for a formal syntax of identifiers.
Whitespace characters are spaces and newlines.
Whitespace is used for improved readability and as necessary to separate tokens from each other, a token being an indivisible lexical unit such as an identifier or number, but is otherwise insignificant. Whitespace may occur between any two tokens, but not within a token. Whitespace may also occur inside a string, where it is significant. The comment continues to the end of the line on which the semicolon appears. Comments are invisible to Scheme, but the end of the line is visible as whitespace.