source: project/wiki/man/5/TODO/Extensions to the standard @ 35323

Last change on this file since 35323 was 35323, checked in by felix, 16 months ago

manual: more links changed, added R5RS page (or should it be R7RS?)

File size: 1.9 KB
Line 
1[[tags: manual]]
2
3[[toc:]]
4
5== Extensions to the standard
6
7=== Identifiers
8
9Identifiers may contain special characters if delimited with
10{{| ... |}}.
11
12=== Brackets and braces
13
14The brackets {{[ ... ]}} and the braces {{ { ... } }} are
15provided as an alternative syntax for {{( ... )}}.  A number of reader
16extensions is provided. See [[Non-standard read syntax]].
17
18=== Non-standard macros
19
20Numerous non-standard macros are provided. See
21[[Non-standard macros and special forms]] for more information.
22
23=== Non-standard procedures
24
25CHICKEN provides numerous non-standard procedures. See the manual
26sections on library units for more information.
27
28=== User defined character names
29
30User defined character names are supported. See
31{{char-name}}. Characters can be given
32in hexadecimal notation using the ''#\xXX'' syntax where ''XX'' specifies the
33character code. Character codes above 255 are supported and can be read (and are
34written) using the ''#\uXXXX'' and ''#\UXXXXXXXX'' notations.
35
36Non-standard characters names supported are {{#\tab}}, {{#\linefeed}}, {{#\return}}, {{#\alarm}},
37{{#\vtab}}, {{#\nul}}, {{#\page}}, {{#\esc}}, {{#\delete}} and {{#\backspace}}.
38
39=== Special characters in strings
40
41CHICKEN supports special characters preceded with
42a backslash ''\'' in quoted string
43constants. ''\n'' denotes the newline-character,
44''\r'' carriage return, ''\b''
45backspace, ''\t'' TAB, ''\v'' vertical TAB, ''\a'' alarm, ''\f'' formfeed,
46''\xXX'' a character with the code {{XX}} in hex and
47''\uXXXX'' (and ''\UXXXXXXXX'') a unicode character with the code {{XXXX}}.
48The latter is encoded in UTF-8 format.
49
50The third argument to {{substring}} is optional and defaults to the length
51of the string.
52
53=== {{exit}}
54
55The {{exit}} procedure exits a program right away and does ''not'' invoke pending {{dynamic-wind}} thunks.
56
57---
58Previous: [[Deviations from the standard]]
59
60Next: [[Non-standard macros and special forms]]
Note: See TracBrowser for help on using the repository browser.