www.delorie.com/gnu/docs/guile/r5rs_17.html   search  
Buy GNU books!

Revised(5) Scheme

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3 Other notations

For a description of the notations used for numbers, see section 6.2 Numbers.

. + -
These are used in numbers, and may also occur anywhere in an identifier except as the first character. A delimited plus or minus sign by itself is also an identifier. A delimited period (not occurring within a number or identifier) is used in the notation for pairs (section see section 6.3.2 Pairs and lists), and to indicate a rest-parameter in a formal parameter list (section see section 4.1.4 Procedures). A delimited sequence of three successive periods is also an identifier.

( )
Parentheses are used for grouping and to notate lists (section see section 6.3.2 Pairs and lists).

The single quote character is used to indicate literal data (section see section 4.1.2 Literal expressions).

The backquote character is used to indicate almost-constant data (section see section 4.2.6 Quasiquotation).

, ,@
The character comma and the sequence comma at-sign are used in conjunction with backquote (section see section 4.2.6 Quasiquotation).

The double quote character is used to delimit strings (section see section 6.3.5 Strings).

Backslash is used in the syntax for character constants (section see section 6.3.4 Characters) and as an escape character within string constants (section see section 6.3.5 Strings).

[ ] { } |
Left and right square brackets and curly braces and vertical bar are reserved for possible future extensions to the language.

Sharp sign is used for a variety of purposes depending on the character that immediately follows it:

#t #f
These are the boolean constants (section see section 6.3.1 Booleans).

This introduces a character constant (section see section 6.3.4 Characters).

This introduces a vector constant (section see section 6.3.6 Vectors). Vector constants are terminated by ) .

#e #i #b #o #d #x
These are used in the notation for numbers (section see section 6.2.4 Syntax of numerical constants).

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003