💾 Archived View for shaggypeak.com › library › r7rs › section2.3.gmi captured on 2024-05-10 at 12:58:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

-=-=-=-=-=-=-

Table of Contents

Section 2.2 - Whitespace and Comments

Section 2.4 - Datum Labels

2.3 Other notations

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

. +

These are used in numbers, and can also occur anywhere in an identifier. 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 6.4), and to indicate a restparameter in a formal parameter list (section 4.1.4). Note that a sequence of two or more periods is an identifier.

( )

Parentheses are used for grouping and to notate lists (section 6.4).

The apostrophe (single quote) character is used to indicate literal data (section 4.1.2).

`

The grave accent (backquote) character is used to indicate partly constant data (section 4.2.8).

, ,@

The character comma and the sequence comma atsign are used in conjunction with quasiquotation (section 4.2.8).

"

The quotation mark character is used to delimit strings (section 6.7).

\

Backslash is used in the syntax for character constants (section 6.6) and as an escape character within string constants (section 6.7) and identifiers (section 7.1.1).

[ ] { }

Left and right square and curly brackets (braces) are reserved for possible future extensions to the language.

#

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

#t #f

These are the boolean constants (section 6.3), along with the alternatives #true and #false.

#\

This introduces a character constant (section 6.6).

#(

This introduces a vector constant (section 6.8). Vector constants are terminated by ) .

#u8(

This introduces a bytevector constant (section 6.9). Bytevector constants are terminated by ) .

#e #i #b #o #d #x

These are used in the notation for numbers (section 6.2.5).

#⟨n⟩= #⟨n⟩#

These are used for labeling and referencing other literal data (section 2.4).