Next: scheme lex datum, Previous: scheme lex notation, Up: scheme lex [Index]
The lexical syntax determines how a character sequence is split into a sequence of lexemes, omitting non–significant portions such as comments and whitespace. The character sequence is assumed to be text according to the Unicode standard. Some of the lexemes, such as identifiers, representations of number objects, strings etc., of the lexical syntax are syntactic data in the datum syntax, and thus represent objects. Besides the formal account of the syntax, this section also describes what datum values are represented by these syntactic data.
The lexical syntax, in the description of comments, contains a forward reference to ?datum, which is described as part of the datum syntax. Being comments, however, these ?datums do not play a significant role in the syntax.
Case is significant except in representations of booleans, number
objects, and in hexadecimal numbers specifying Unicode scalar values.
For example, #x1A
and #X1a
are equivalent. The identifier
Foo
is, however, distinct from the identifier FOO
.
• scheme lex syntax formal account: | Formal account. | |
• scheme lex syntax line endings: | Line endings. | |
• scheme lex syntax whitespace and comments: | Whitespace and comments. | |
• scheme lex syntax identifiers: | Identifiers. | |
• scheme lex syntax booleans: | Booleans. | |
• scheme lex syntax characters: | Characters. | |
• scheme lex syntax strings: | Strings. | |
• scheme lex syntax numbers: | Numbers. |
Next: scheme lex datum, Previous: scheme lex notation, Up: scheme lex [Index]