--- /srv/rebuilderd/tmp/rebuilderdVWq8Gc/inputs/guile-reader_0.6.3+20240808-2_amd64.deb +++ /srv/rebuilderd/tmp/rebuilderdVWq8Gc/out/guile-reader_0.6.3+20240808-2_amd64.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2026-11-30 09:37:17.000000 debian-binary │ -rw-r--r-- 0 0 0 1560 2026-11-30 09:37:17.000000 control.tar.xz │ --rw-r--r-- 0 0 0 107052 2026-11-30 09:37:17.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 107048 2026-11-30 09:37:17.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── file list │ │ │ @@ -21,25 +21,25 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 84541 2026-11-30 09:37:17.000000 ./usr/lib/x86_64-linux-gnu/guile/3.0/site-ccache/system/reader/library.go │ │ │ -rw-r--r-- 0 root (0) root (0) 70341 2026-11-30 09:37:17.000000 ./usr/lib/x86_64-linux-gnu/guile/3.0/site-ccache/system/reader.go │ │ │ -rw-r--r-- 0 root (0) root (0) 77704 2026-11-30 09:37:17.000000 ./usr/lib/x86_64-linux-gnu/libguile-reader.so.1.0.0 │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/doc/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/doc/guile-reader/ │ │ │ -rw-r--r-- 0 root (0) root (0) 290 2026-11-30 09:37:17.000000 ./usr/share/doc/guile-reader/changelog.Debian.gz │ │ │ --rw-r--r-- 0 root (0) root (0) 11982 2026-11-30 09:37:17.000000 ./usr/share/doc/guile-reader/changelog.gz │ │ │ +-rw-r--r-- 0 root (0) root (0) 11982 2024-07-03 16:50:53.000000 ./usr/share/doc/guile-reader/changelog.gz │ │ │ -rw-r--r-- 0 root (0) root (0) 4157 2026-11-30 09:37:17.000000 ./usr/share/doc/guile-reader/copyright │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/guile/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/guile/site/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/documentation/ │ │ │ -rw-r--r-- 0 root (0) root (0) 7124 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/documentation/c-snarf.scm │ │ │ -rw-r--r-- 0 root (0) root (0) 7213 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/documentation/output.scm │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/reader/ │ │ │ -rw-r--r-- 0 root (0) root (0) 5640 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/reader/compat.scm │ │ │ -rw-r--r-- 0 root (0) root (0) 5817 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/reader/confinement.scm │ │ │ -rw-r--r-- 0 root (0) root (0) 8983 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/reader/library.scm │ │ │ -rw-r--r-- 0 root (0) root (0) 3113 2026-11-30 09:37:17.000000 ./usr/share/guile/site/3.0/system/reader.scm │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/share/info/ │ │ │ --rw-r--r-- 0 root (0) root (0) 15804 2026-11-30 09:37:17.000000 ./usr/share/info/guile-reader.info.gz │ │ │ +-rw-r--r-- 0 root (0) root (0) 15797 2026-11-30 09:37:17.000000 ./usr/share/info/guile-reader.info.gz │ │ │ lrwxrwxrwx 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/lib/x86_64-linux-gnu/libguile-reader.so -> libguile-reader.so.1.0.0 │ │ │ lrwxrwxrwx 0 root (0) root (0) 0 2026-11-30 09:37:17.000000 ./usr/lib/x86_64-linux-gnu/libguile-reader.so.1 -> libguile-reader.so.1.0.0 │ │ ├── ./usr/share/info/guile-reader.info.gz │ │ │ ├── guile-reader.info │ │ │ │ @@ -77,3894 +77,3893 @@ │ │ │ │ 000004c0: 6572 7369 6f6e 2030 2e36 2e33 2c20 666f ersion 0.6.3, fo │ │ │ │ 000004d0: 7220 474e 5520 4775 696c 6527 7320 332e r GNU Guile's 3. │ │ │ │ 000004e0: 300a 7374 6162 6c65 2073 6572 6965 732c 0.stable series, │ │ │ │ 000004f0: 2061 7320 7765 6c6c 2061 7320 7468 6520 as well as the │ │ │ │ 00000500: 6c65 6761 6379 2031 2e38 2c20 322e 3020 legacy 1.8, 2.0 │ │ │ │ 00000510: 616e 6420 322e 3220 7365 7269 6573 2e20 and 2.2 series. │ │ │ │ 00000520: 2049 7420 7761 730a 6c61 7374 2075 7064 It was.last upd │ │ │ │ -00000530: 6174 6564 2069 6e20 4e6f 7665 6d62 6572 ated in November │ │ │ │ -00000540: 2032 3032 362e 0a0a 2020 2054 6869 7320 2026... This │ │ │ │ -00000550: 646f 6375 6d65 6e74 6174 696f 6e20 7368 documentation sh │ │ │ │ -00000560: 6f75 6c64 2062 6520 6d6f 7374 6c79 2063 ould be mostly c │ │ │ │ -00000570: 6f6d 706c 6574 652e 2020 4465 7461 696c omplete. Detail │ │ │ │ -00000580: 7320 6162 6f75 7420 7468 6520 430a 4150 s about the C.AP │ │ │ │ -00000590: 4920 6172 6520 6f6d 6974 7465 6420 6672 I are omitted fr │ │ │ │ -000005a0: 6f6d 2074 6869 7320 6d61 6e75 616c 2e20 om this manual. │ │ │ │ -000005b0: 2054 6865 7920 6361 6e20 6265 2066 6f75 They can be fou │ │ │ │ -000005c0: 6e64 2069 6e20 7468 6520 7075 626c 6963 nd in the public │ │ │ │ -000005d0: 0a68 6561 6465 7220 6669 6c65 732e 0a0a .header files... │ │ │ │ -000005e0: 2a20 4d65 6e75 3a0a 0a2a 2049 6e74 726f * Menu:..* Intro │ │ │ │ -000005f0: 6475 6374 696f 6e3a 3a20 2020 2020 2020 duction:: │ │ │ │ -00000600: 2020 2020 2020 2020 2054 6865 2067 6f61 The goa │ │ │ │ -00000610: 6c73 206f 6620 4775 696c 652d 5265 6164 ls of Guile-Read │ │ │ │ -00000620: 6572 2e0a 2a20 4f76 6572 7669 6577 3a3a er..* Overview:: │ │ │ │ +00000530: 6174 6564 2069 6e20 4a75 6c79 2032 3032 ated in July 202 │ │ │ │ +00000540: 342e 0a0a 2020 2054 6869 7320 646f 6375 4... This docu │ │ │ │ +00000550: 6d65 6e74 6174 696f 6e20 7368 6f75 6c64 mentation should │ │ │ │ +00000560: 2062 6520 6d6f 7374 6c79 2063 6f6d 706c be mostly compl │ │ │ │ +00000570: 6574 652e 2020 4465 7461 696c 7320 6162 ete. Details ab │ │ │ │ +00000580: 6f75 7420 7468 6520 430a 4150 4920 6172 out the C.API ar │ │ │ │ +00000590: 6520 6f6d 6974 7465 6420 6672 6f6d 2074 e omitted from t │ │ │ │ +000005a0: 6869 7320 6d61 6e75 616c 2e20 2054 6865 his manual. The │ │ │ │ +000005b0: 7920 6361 6e20 6265 2066 6f75 6e64 2069 y can be found i │ │ │ │ +000005c0: 6e20 7468 6520 7075 626c 6963 0a68 6561 n the public.hea │ │ │ │ +000005d0: 6465 7220 6669 6c65 732e 0a0a 2a20 4d65 der files...* Me │ │ │ │ +000005e0: 6e75 3a0a 0a2a 2049 6e74 726f 6475 6374 nu:..* Introduct │ │ │ │ +000005f0: 696f 6e3a 3a20 2020 2020 2020 2020 2020 ion:: │ │ │ │ +00000600: 2020 2020 2054 6865 2067 6f61 6c73 206f The goals o │ │ │ │ +00000610: 6620 4775 696c 652d 5265 6164 6572 2e0a f Guile-Reader.. │ │ │ │ +00000620: 2a20 4f76 6572 7669 6577 3a3a 2020 2020 * Overview:: │ │ │ │ 00000630: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00000640: 2020 2020 486f 7720 6974 2077 6f72 6b73 How it works │ │ │ │ -00000650: 2e0a 2a20 5175 6963 6b20 5374 6172 743a ..* Quick Start: │ │ │ │ -00000660: 3a20 2020 2020 2020 2020 2020 2020 2020 : │ │ │ │ -00000670: 2020 466f 7220 7468 6520 696d 7061 7469 For the impati │ │ │ │ -00000680: 656e 742e 0a2a 2041 5049 2052 6566 6572 ent..* API Refer │ │ │ │ -00000690: 656e 6365 3a3a 2020 2020 2020 2020 2020 ence:: │ │ │ │ -000006a0: 2020 2020 2055 7369 6e67 2047 7569 6c65 Using Guile │ │ │ │ -000006b0: 2d52 6561 6465 722e 0a2a 2049 6e74 6572 -Reader..* Inter │ │ │ │ -000006c0: 6e61 6c73 3a3a 2020 2020 2020 2020 2020 nals:: │ │ │ │ -000006d0: 2020 2020 2020 2020 2050 6572 666f 726d Perform │ │ │ │ -000006e0: 616e 6365 2063 6f6e 7369 6465 7261 7469 ance considerati │ │ │ │ -000006f0: 6f6e 732e 0a0a 2a20 436f 6e63 6570 7420 ons...* Concept │ │ │ │ -00000700: 496e 6465 783a 3a20 2020 2020 2020 2020 Index:: │ │ │ │ -00000710: 2020 2020 2020 436f 6e63 6570 7473 2e0a Concepts.. │ │ │ │ -00000720: 2a20 4675 6e63 7469 6f6e 2049 6e64 6578 * Function Index │ │ │ │ -00000730: 3a3a 2020 2020 2020 2020 2020 2020 2020 :: │ │ │ │ -00000740: 5363 6865 6d65 2070 726f 6365 6475 7265 Scheme procedure │ │ │ │ -00000750: 7320 616e 6420 4320 6675 6e63 7469 6f6e s and C function │ │ │ │ -00000760: 732e 0a0a 1f0a 4669 6c65 3a20 6775 696c s.....File: guil │ │ │ │ -00000770: 652d 7265 6164 6572 2e69 6e66 6f2c 2020 e-reader.info, │ │ │ │ -00000780: 4e6f 6465 3a20 496e 7472 6f64 7563 7469 Node: Introducti │ │ │ │ -00000790: 6f6e 2c20 204e 6578 743a 204f 7665 7276 on, Next: Overv │ │ │ │ -000007a0: 6965 772c 2020 5072 6576 3a20 546f 702c iew, Prev: Top, │ │ │ │ -000007b0: 2020 5570 3a20 546f 700a 0a31 2049 6e74 Up: Top..1 Int │ │ │ │ -000007c0: 726f 6475 6374 696f 6e0a 2a2a 2a2a 2a2a roduction.****** │ │ │ │ -000007d0: 2a2a 2a2a 2a2a 2a2a 0a0a 4775 696c 6520 ********..Guile │ │ │ │ -000007e0: 6375 7272 656e 746c 7920 7072 6f76 6964 currently provid │ │ │ │ -000007f0: 6573 206c 696d 6974 6564 2065 7874 656e es limited exten │ │ │ │ -00000800: 7369 6269 6c69 7479 206f 6620 6974 7320 sibility of its │ │ │ │ -00000810: 7265 6164 6572 2c20 6279 206d 6561 6e73 reader, by means │ │ │ │ -00000820: 0a6f 6620 e280 9872 6561 642d 6861 7368 .of ...read-hash │ │ │ │ -00000830: 2d65 7874 656e 64e2 8099 2028 2a6e 6f74 -extend... (*not │ │ │ │ -00000840: 6520 e280 9872 6561 642d 6861 7368 2d65 e ...read-hash-e │ │ │ │ -00000850: 7874 656e 64e2 8099 3a20 2867 7569 6c65 xtend...: (guile │ │ │ │ -00000860: 2952 6561 6465 720a 4578 7465 6e73 696f )Reader.Extensio │ │ │ │ -00000870: 6e73 2e29 2c20 666f 7220 696e 7374 616e ns.), for instan │ │ │ │ -00000880: 6365 2c20 6f72 20e2 8098 7265 6164 2d65 ce, or ...read-e │ │ │ │ -00000890: 6e61 626c 65e2 8099 2028 2a6e 6f74 6520 nable... (*note │ │ │ │ -000008a0: e280 9872 6561 642d 656e 6162 6c65 e280 ...read-enable.. │ │ │ │ -000008b0: 993a 0a28 6775 696c 6529 5363 6865 6d65 .:.(guile)Scheme │ │ │ │ -000008c0: 2052 6561 642e 292e 2020 5352 4649 2d31 Read.). SRFI-1 │ │ │ │ -000008d0: 300a 2868 7474 703a 2f2f 7372 6669 2e73 0.(http://srfi.s │ │ │ │ -000008e0: 6368 656d 6572 732e 6f72 672f 7372 6669 chemers.org/srfi │ │ │ │ -000008f0: 2d31 302f 7372 6669 2d31 302e 6874 6d6c -10/srfi-10.html │ │ │ │ -00000900: 2920 7472 6965 7320 746f 2070 726f 706f ) tries to propo │ │ │ │ -00000910: 7365 2061 0a67 656e 6572 6963 2c20 706f se a.generic, po │ │ │ │ -00000920: 7274 6162 6c65 2c20 6578 7465 6e73 696f rtable, extensio │ │ │ │ -00000930: 6e20 6d65 6368 616e 6973 6d20 7369 6d69 n mechanism simi │ │ │ │ -00000940: 6c61 7220 746f 20e2 8098 7265 6164 2d68 lar to ...read-h │ │ │ │ -00000950: 6173 682d 6578 7465 6e64 e280 9920 6275 ash-extend... bu │ │ │ │ -00000960: 740a 6c69 6d69 7465 6420 746f 20e2 8098 t.limited to ... │ │ │ │ -00000970: 232c e280 9920 7365 7175 656e 6365 732e #,... sequences. │ │ │ │ -00000980: 2020 4d6f 7265 6f76 6572 2c20 7768 696c Moreover, whil │ │ │ │ -00000990: 6520 7468 6973 206d 6179 206e 6f74 2061 e this may not a │ │ │ │ -000009a0: 6c77 6179 7320 6265 0a64 6573 6972 6162 lways be.desirab │ │ │ │ -000009b0: 6c65 2c20 616c 6c20 7468 6573 6520 6578 le, all these ex │ │ │ │ -000009c0: 7465 6e73 696f 6e20 6661 6369 6c69 7469 tension faciliti │ │ │ │ -000009d0: 6573 2068 6176 6520 6120 676c 6f62 616c es have a global │ │ │ │ -000009e0: 2065 6666 6563 742c 2063 6861 6e67 696e effect, changin │ │ │ │ -000009f0: 670a 7468 6520 6265 6861 7669 6f72 206f g.the behavior o │ │ │ │ -00000a00: 6620 7468 6520 736f 6c65 2072 6561 6465 f the sole reade │ │ │ │ -00000a10: 7220 696d 706c 656d 656e 7461 7469 6f6e r implementation │ │ │ │ -00000a20: 2061 7661 696c 6162 6c65 2061 7420 7275 available at ru │ │ │ │ -00000a30: 6e2d 7469 6d65 2e0a 5468 6973 206d 616b n-time..This mak │ │ │ │ -00000a40: 6573 2069 7420 696d 706f 7373 6962 6c65 es it impossible │ │ │ │ -00000a50: 2074 6f20 6861 7665 2c20 666f 7220 696e to have, for in │ │ │ │ -00000a60: 7374 616e 6365 2c20 6f6e 6520 6d6f 6475 stance, one modu │ │ │ │ -00000a70: 6c65 2063 6f6e 7369 6465 720a 6e61 6d65 le consider.name │ │ │ │ -00000a80: 7320 7374 6172 7469 6e67 2077 6974 6820 s starting with │ │ │ │ -00000a90: e280 983a e280 9920 6173 2073 796d 626f ...:... as symbo │ │ │ │ -00000aa0: 6c73 2c20 7768 696c 6520 616e 6f74 6865 ls, while anothe │ │ │ │ -00000ab0: 7220 636f 6e73 6964 6572 7320 7468 656d r considers them │ │ │ │ -00000ac0: 2061 730a 6b65 7977 6f72 6473 2e0a 0a20 as.keywords... │ │ │ │ -00000ad0: 2020 4578 7465 6e73 696f 6e73 2073 7563 Extensions suc │ │ │ │ -00000ae0: 6820 6173 2074 6865 2072 6561 6420 7379 h as the read sy │ │ │ │ -00000af0: 6e74 6178 2066 6f72 2053 5246 492d 3420 ntax for SRFI-4 │ │ │ │ -00000b00: 6e75 6d65 7269 6320 7665 6374 6f72 7320 numeric vectors │ │ │ │ -00000b10: 282a 6e6f 7465 0a53 5246 492d 3420 7665 (*note.SRFI-4 ve │ │ │ │ -00000b20: 6374 6f72 733a 2028 6775 696c 6529 556e ctors: (guile)Un │ │ │ │ -00000b30: 6966 6f72 6d20 4e75 6d65 7269 6320 5665 iform Numeric Ve │ │ │ │ -00000b40: 6374 6f72 732e 2920 6861 6420 746f 2062 ctors.) had to b │ │ │ │ -00000b50: 6520 6164 6465 6420 746f 0a47 7569 6c65 e added to.Guile │ │ │ │ -00000b60: 2773 2062 7569 6c74 2d69 6e20 4320 7265 's built-in C re │ │ │ │ -00000b70: 6164 6572 2e20 2053 796e 7461 6374 6963 ader. Syntactic │ │ │ │ -00000b80: 2065 7874 656e 7369 6f6e 7320 7468 6174 extensions that │ │ │ │ -00000b90: 2064 6964 206e 6f74 2061 7070 6561 6c20 did not appeal │ │ │ │ -00000ba0: 7468 650a 6d61 6a6f 7269 7479 206f 6620 the.majority of │ │ │ │ -00000bb0: 7573 6572 732c 206c 696b 6520 456d 6163 users, like Emac │ │ │ │ -00000bc0: 732d 4c69 7370 2076 6563 746f 7273 2c20 s-Lisp vectors, │ │ │ │ -00000bd0: 6172 6520 e280 9823 6966 6465 66e2 8099 are ...#ifdef... │ │ │ │ -00000be0: 2764 2077 6974 6869 6e20 7468 650a 7265 'd within the.re │ │ │ │ -00000bf0: 6164 6572 2063 6f64 6520 616e 6420 6172 ader code and ar │ │ │ │ -00000c00: 6520 6e6f 7420 6176 6169 6c61 626c 6520 e not available │ │ │ │ -00000c10: 6279 2064 6566 6175 6c74 2e20 204d 6f72 by default. Mor │ │ │ │ -00000c20: 656f 7665 722c 2073 6f6d 6520 6578 7465 eover, some exte │ │ │ │ -00000c30: 6e73 696f 6e73 0a61 7265 2069 6e63 6f6d nsions.are incom │ │ │ │ -00000c40: 7061 7469 626c 6520 7769 7468 2065 6163 patible with eac │ │ │ │ -00000c50: 6820 6f74 6865 722c 2073 7563 6820 6173 h other, such as │ │ │ │ -00000c60: 2074 6865 2044 5353 534c 206b 6579 776f the DSSSL keywo │ │ │ │ -00000c70: 7264 2073 796e 7461 7820 616e 640a 5343 rd syntax and.SC │ │ │ │ -00000c80: 5348 2062 6c6f 636b 2063 6f6d 6d65 6e74 SH block comment │ │ │ │ -00000c90: 7320 282a 6e6f 7465 2053 4353 4820 626c s (*note SCSH bl │ │ │ │ -00000ca0: 6f63 6b20 636f 6d6d 656e 7473 3a20 2867 ock comments: (g │ │ │ │ -00000cb0: 7569 6c65 2942 6c6f 636b 2043 6f6d 6d65 uile)Block Comme │ │ │ │ -00000cc0: 6e74 732e 292e 0a49 6e20 7368 6f72 7420 nts.)..In short │ │ │ │ -00000cd0: 7468 6520 6375 7272 656e 7420 7265 6164 the current read │ │ │ │ -00000ce0: 6572 2073 796e 7461 7820 6973 2068 6172 er syntax is har │ │ │ │ -00000cf0: 646c 7920 6578 7465 6e73 6962 6c65 2e0a dly extensible.. │ │ │ │ -00000d00: 0a20 2020 5468 6520 6964 6561 206f 6620 . The idea of │ │ │ │ -00000d10: 4775 696c 652d 5265 6164 6572 2069 7320 Guile-Reader is │ │ │ │ -00000d20: 746f 2070 726f 7669 6465 2061 2066 7261 to provide a fra │ │ │ │ -00000d30: 6d65 776f 726b 2061 6c6c 6f77 696e 6720 mework allowing │ │ │ │ -00000d40: 7573 6572 7320 746f 0a71 7569 636b 6c79 users to.quickly │ │ │ │ -00000d50: 2064 6566 696e 6520 7265 6164 6572 7320 define readers │ │ │ │ -00000d60: 666f 7220 7768 6174 6576 6572 2073 796e for whatever syn │ │ │ │ -00000d70: 7461 7820 286f 7220 7261 7468 6572 3a20 tax (or rather: │ │ │ │ -00000d80: 7661 7269 616e 7420 6f66 2074 6865 0a53 variant of the.S │ │ │ │ -00000d90: 6368 656d 6520 7379 6e74 6178 2920 7468 cheme syntax) th │ │ │ │ -00000da0: 6579 206c 696b 652e 2020 5072 6f67 7261 ey like. Progra │ │ │ │ -00000db0: 6d73 2063 616e 2074 6865 6e20 7072 6f76 ms can then prov │ │ │ │ -00000dc0: 6964 6520 7468 6569 7220 6f77 6e20 7265 ide their own re │ │ │ │ -00000dd0: 6164 6572 730a 616e 642c 2074 6861 6e6b aders.and, thank │ │ │ │ -00000de0: 7320 746f 2047 7569 6c65 2773 20e2 8098 s to Guile's ... │ │ │ │ -00000df0: 6375 7272 656e 742d 7265 6164 6572 e280 current-reader.. │ │ │ │ -00000e00: 9920 6d65 6368 616e 6973 6d2c 2068 6176 . mechanism, hav │ │ │ │ -00000e10: 6520 7468 6569 7220 636f 6465 2072 6561 e their code rea │ │ │ │ -00000e20: 640a 7769 7468 2074 6869 7320 7265 6164 d.with this read │ │ │ │ -00000e30: 6572 2e20 2057 6865 6e20 7573 696e 6720 er. When using │ │ │ │ -00000e40: 4775 696c 6520 322e 302c 2072 6561 6465 Guile 2.0, reade │ │ │ │ -00000e50: 7273 2070 726f 6475 6365 6420 6279 0a47 rs produced by.G │ │ │ │ -00000e60: 7569 6c65 2d52 6561 6465 7220 6172 6520 uile-Reader are │ │ │ │ -00000e70: 556e 6963 6f64 652d 6361 7061 626c 653b Unicode-capable; │ │ │ │ -00000e80: 2074 6865 7920 6361 6e20 7265 6164 2066 they can read f │ │ │ │ -00000e90: 726f 6d20 616e 790a 4153 4349 492d 636f rom any.ASCII-co │ │ │ │ -00000ea0: 6d70 6174 6962 6c65 2065 6e63 6f64 696e mpatible encodin │ │ │ │ -00000eb0: 672c 2073 7563 6820 6173 2055 5446 2d38 g, such as UTF-8 │ │ │ │ -00000ec0: 206f 7220 4953 4f2d 3838 3539 2d31 2e0a or ISO-8859-1.. │ │ │ │ -00000ed0: 0a20 2020 5768 696c 6520 6974 2069 7320 . While it is │ │ │ │ -00000ee0: 6d75 6368 2073 696d 706c 6572 2074 6861 much simpler tha │ │ │ │ -00000ef0: 6e20 6120 6675 6c6c 2d62 6c6f 776e 206c n a full-blown l │ │ │ │ -00000f00: 6578 6572 2067 656e 6572 6174 6f72 2073 exer generator s │ │ │ │ -00000f10: 7563 6820 6173 0a46 6c65 7820 2868 7474 uch as.Flex (htt │ │ │ │ -00000f20: 703a 2f2f 7777 772e 676e 752e 6f72 672f p://www.gnu.org/ │ │ │ │ -00000f30: 736f 6674 7761 7265 2f66 6c65 782f 292c software/flex/), │ │ │ │ -00000f40: 2044 616e 6e79 2044 7562 c3a9 2773 2053 Danny Dub..'s S │ │ │ │ -00000f50: 494c 6578 0a28 6874 7470 3a2f 2f77 7777 ILex.(http://www │ │ │ │ -00000f60: 2e69 726f 2e75 6d6f 6e74 7265 616c 2e63 .iro.umontreal.c │ │ │ │ -00000f70: 612f 7e64 7562 652f 2920 616e 6420 4269 a/~dube/) and Bi │ │ │ │ -00000f80: 676c 6f6f 2773 2052 4743 0a28 6874 7470 gloo's RGC.(http │ │ │ │ -00000f90: 3a2f 2f77 7777 2e69 6e72 6961 2e66 722f ://www.inria.fr/ │ │ │ │ -00000fa0: 6d69 6d6f 7361 2f66 702f 4269 676c 6f6f mimosa/fp/Bigloo │ │ │ │ -00000fb0: 292c 2069 7473 2073 696d 706c 6520 7072 ), its simple pr │ │ │ │ -00000fc0: 6f67 7261 6d6d 696e 6720 696e 7465 7266 ogramming interf │ │ │ │ -00000fd0: 6163 650a 7368 6f75 6c64 206d 616b 6520 ace.should make │ │ │ │ -00000fe0: 6974 2076 6572 7920 7374 7261 6967 6874 it very straight │ │ │ │ -00000ff0: 666f 7277 6172 6420 746f 2069 6d70 6c65 forward to imple │ │ │ │ -00001000: 6d65 6e74 2072 6561 6465 7273 2c20 6573 ment readers, es │ │ │ │ -00001010: 7065 6369 616c 6c79 2066 6f72 0a53 6368 pecially for.Sch │ │ │ │ -00001020: 656d 652d 6c69 6b65 2073 796e 7461 7865 eme-like syntaxe │ │ │ │ -00001030: 732e 2020 4265 7374 206f 6620 616c 6c2c s. Best of all, │ │ │ │ -00001040: 2047 7569 6c65 2052 6561 6465 7220 636f Guile Reader co │ │ │ │ -00001050: 6d65 7320 7769 7468 2061 206c 6962 7261 mes with a libra │ │ │ │ -00001060: 7279 206f 660a 636f 6d70 6f6e 656e 7473 ry of.components │ │ │ │ -00001070: 2074 6861 7420 6361 6e20 7479 7069 6361 that can typica │ │ │ │ -00001080: 6c6c 7920 6265 2075 7365 6420 746f 2063 lly be used to c │ │ │ │ -00001090: 6f6e 7374 7275 6374 2061 2072 6561 6465 onstruct a reade │ │ │ │ -000010a0: 7220 666f 7220 7468 650a 5363 6865 6d65 r for the.Scheme │ │ │ │ -000010b0: 2073 796e 7461 782e 2020 416e 6420 6561 syntax. And ea │ │ │ │ -000010c0: 6368 206f 6e65 206f 6620 7468 6973 2063 ch one of this c │ │ │ │ -000010d0: 6f6d 706f 6e65 6e74 7320 6d61 7920 6265 omponents may be │ │ │ │ -000010e0: 2072 6575 7365 6420 6174 2077 696c 6c0a reused at will. │ │ │ │ -000010f0: 7768 656e 2063 7265 6174 696e 6720 6f74 when creating ot │ │ │ │ -00001100: 6865 7220 7265 6164 6572 732e 2020 4f6e her readers. On │ │ │ │ -00001110: 2074 6865 206f 7468 6572 2068 616e 642c the other hand, │ │ │ │ -00001120: 206f 6e65 2073 686f 756c 6420 6265 2061 one should be a │ │ │ │ -00001130: 7761 7265 0a74 6861 7420 7468 6973 2073 ware.that this s │ │ │ │ -00001140: 696d 706c 6572 2041 5049 2063 6f6d 6573 impler API comes │ │ │ │ -00001150: 2061 7420 7468 6520 636f 7374 206f 6620 at the cost of │ │ │ │ -00001160: 6120 6c61 636b 206f 6620 636f 6e73 6973 a lack of consis │ │ │ │ -00001170: 7465 6e63 7920 696e 2073 6f6d 650a 6361 tency in some.ca │ │ │ │ -00001180: 7365 732c 2061 7320 6f75 746c 696e 6564 ses, as outlined │ │ │ │ -00001190: 206c 6174 6572 2069 6e20 7468 6973 206d later in this m │ │ │ │ -000011a0: 616e 7561 6c20 282a 6e6f 7465 204c 696d anual (*note Lim │ │ │ │ -000011b0: 6974 6174 696f 6e73 3a3a 292e 0a0a 2020 itations::)... │ │ │ │ -000011c0: 2043 6f6d 6d6f 6e20 4c69 7370 2068 6173 Common Lisp has │ │ │ │ -000011d0: 2061 2073 696d 696c 6172 206d 6563 6861 a similar mecha │ │ │ │ -000011e0: 6e69 736d 2074 6f20 6578 7465 6e64 2069 nism to extend i │ │ │ │ -000011f0: 7473 2072 6561 6465 7220 7768 6963 6820 ts reader which │ │ │ │ -00001200: 6973 0a63 616c 6c65 6420 7468 6520 e280 is.called the .. │ │ │ │ -00001210: 9c72 6561 6420 7461 626c 65e2 809d 2e20 .read table.... │ │ │ │ -00001220: 2047 616d 6269 7420 5363 6865 6d65 0a28 Gambit Scheme.( │ │ │ │ -00001230: 6874 7470 3a2f 2f77 7777 2e69 726f 2e75 http://www.iro.u │ │ │ │ -00001240: 6d6f 6e74 7265 616c 2e63 612f 7e67 616d montreal.ca/~gam │ │ │ │ -00001250: 6269 742f 292c 2066 6f72 2069 6e73 7461 bit/), for insta │ │ │ │ -00001260: 6e63 652c 2061 6c73 6f20 7072 6f76 6964 nce, also provid │ │ │ │ -00001270: 6573 2061 6e0a 696d 706c 656d 656e 7461 es an.implementa │ │ │ │ -00001280: 7469 6f6e 206f 6620 7265 6164 2074 6162 tion of read tab │ │ │ │ -00001290: 6c65 732e 2020 486f 7765 7665 722c 2069 les. However, i │ │ │ │ -000012a0: 7420 6170 7065 6172 7320 746f 2068 6176 t appears to hav │ │ │ │ -000012b0: 6520 6c69 6d69 7461 7469 6f6e 730a 7369 e limitations.si │ │ │ │ -000012c0: 6d69 6c61 7220 746f 2047 7569 6c65 2773 milar to Guile's │ │ │ │ -000012d0: 20e2 8098 7265 6164 2d65 6e61 626c 65e2 ...read-enable. │ │ │ │ -000012e0: 8099 2061 6e64 20e2 8098 7265 6164 2d68 .. and ...read-h │ │ │ │ -000012f0: 6173 682d 6578 7465 6e64 e280 9920 696e ash-extend... in │ │ │ │ -00001300: 2074 6572 6d73 206f 660a 706f 7373 6962 terms of.possib │ │ │ │ -00001310: 696c 6974 6965 7320 666f 7220 7379 6e74 ilities for synt │ │ │ │ -00001320: 6178 2065 7874 656e 7369 6f6e 2e20 204f ax extension. O │ │ │ │ -00001330: 6e20 7468 6520 6f74 6865 7220 6861 6e64 n the other hand │ │ │ │ -00001340: 2c20 6974 2061 6c6c 6f77 7320 7468 650a , it allows the. │ │ │ │ -00001350: 7265 6164 6572 2061 6e64 2077 7269 7465 reader and write │ │ │ │ -00001360: 7220 746f 2062 6520 6b65 7074 2063 6f6e r to be kept con │ │ │ │ -00001370: 7369 7374 656e 742c 2077 6869 6368 2047 sistent, which G │ │ │ │ -00001380: 7569 6c65 2d52 6561 6465 7220 646f 6573 uile-Reader does │ │ │ │ -00001390: 206e 6f74 0a61 6464 7265 7373 2e0a 0a1f not.address.... │ │ │ │ -000013a0: 0a46 696c 653a 2067 7569 6c65 2d72 6561 .File: guile-rea │ │ │ │ -000013b0: 6465 722e 696e 666f 2c20 204e 6f64 653a der.info, Node: │ │ │ │ -000013c0: 204f 7665 7276 6965 772c 2020 4e65 7874 Overview, Next │ │ │ │ -000013d0: 3a20 5175 6963 6b20 5374 6172 742c 2020 : Quick Start, │ │ │ │ -000013e0: 5072 6576 3a20 496e 7472 6f64 7563 7469 Prev: Introducti │ │ │ │ -000013f0: 6f6e 2c20 2055 703a 2054 6f70 0a0a 3220 on, Up: Top..2 │ │ │ │ -00001400: 4f76 6572 7669 6577 0a2a 2a2a 2a2a 2a2a Overview.******* │ │ │ │ -00001410: 2a2a 2a0a 0a47 7569 6c65 2d52 6561 6465 ***..Guile-Reade │ │ │ │ -00001420: 7220 616c 6c6f 7773 2066 6f72 2074 6865 r allows for the │ │ │ │ -00001430: 2063 6f6e 7374 7275 6374 696f 6e20 6f66 construction of │ │ │ │ -00001440: 2072 6561 6465 7273 2063 6170 6162 6c65 readers capable │ │ │ │ -00001450: 206f 660a 756e 6465 7273 7461 6e64 696e of.understandin │ │ │ │ -00001460: 6720 7661 7269 6f75 7320 7379 6e74 6163 g various syntac │ │ │ │ -00001470: 7469 6320 7661 7269 616e 7473 2e20 2054 tic variants. T │ │ │ │ -00001480: 6865 2073 696d 706c 6573 7420 7761 7920 he simplest way │ │ │ │ -00001490: 746f 2075 7365 2069 7420 6973 0a74 6872 to use it is.thr │ │ │ │ -000014a0: 6f75 6768 2069 7473 20e2 809c 7265 6164 ough its ...read │ │ │ │ -000014b0: 6572 206c 6962 7261 7279 e280 9d20 7468 er library... th │ │ │ │ -000014c0: 6174 2061 6c6c 6f77 7320 6f6e 6520 746f at allows one to │ │ │ │ -000014d0: 2070 6963 6b20 616e 6420 6368 6f6f 7365 pick and choose │ │ │ │ -000014e0: 2076 6172 696f 7573 0a63 6f6d 6d6f 6e6c various.commonl │ │ │ │ -000014f0: 7920 7573 6564 2073 796e 7461 6374 6963 y used syntactic │ │ │ │ -00001500: 2065 7874 656e 7369 6f6e 7320 746f 2074 extensions to t │ │ │ │ -00001510: 6865 2073 7461 6e64 6172 6420 5363 6865 he standard Sche │ │ │ │ -00001520: 6d65 2073 796e 7461 7820 282a 6e6f 7465 me syntax (*note │ │ │ │ -00001530: 0a52 6561 6465 7220 4c69 6272 6172 793a .Reader Library: │ │ │ │ -00001540: 3a29 2e20 2048 6f77 6576 6572 2c20 4775 :). However, Gu │ │ │ │ -00001550: 696c 652d 5265 6164 6572 2061 6c73 6f20 ile-Reader also │ │ │ │ -00001560: 7072 6f76 6964 6573 2061 2066 696e 6572 provides a finer │ │ │ │ -00001570: 2d67 7261 696e 0a70 726f 6772 616d 6d69 -grain.programmi │ │ │ │ -00001580: 6e67 2069 6e74 6572 6661 6365 2061 6c6c ng interface all │ │ │ │ -00001590: 6f77 696e 6720 7468 6520 636f 6e73 7472 owing the constr │ │ │ │ -000015a0: 7563 7469 6f6e 206f 6620 7669 7274 7561 uction of virtua │ │ │ │ -000015b0: 6c6c 7920 616e 7920 7265 6164 6572 2c0a lly any reader,. │ │ │ │ -000015c0: 7769 7468 2069 7473 206f 776e 2073 796e with its own syn │ │ │ │ -000015d0: 7461 6374 6963 2073 7065 6369 6669 6369 tactic specifici │ │ │ │ -000015e0: 7469 6573 2e20 2054 6865 2066 6f6c 6c6f ties. The follo │ │ │ │ -000015f0: 7769 6e67 2073 6563 7469 6f6e 7320 666f wing sections fo │ │ │ │ -00001600: 6375 730a 7072 696d 6172 696c 7920 6f6e cus.primarily on │ │ │ │ -00001610: 2074 6869 7320 6361 7061 6269 6c69 7479 this capability │ │ │ │ -00001620: 2e0a 0a20 2020 4265 666f 7265 2067 6f69 ... Before goi │ │ │ │ -00001630: 6e67 2069 6e74 6f20 7468 6520 6465 7461 ng into the deta │ │ │ │ -00001640: 696c 7320 6f66 2074 6865 2072 6561 6465 ils of the reade │ │ │ │ -00001650: 7220 6672 616d 6577 6f72 6b20 4150 492c r framework API, │ │ │ │ -00001660: 206c 6574 2075 730a 6861 7665 2061 2071 let us.have a q │ │ │ │ -00001670: 7569 636b 206f 7665 7276 6965 7720 6f66 uick overview of │ │ │ │ -00001680: 2077 6861 7420 7468 6973 2069 732e 2020 what this is. │ │ │ │ -00001690: 4261 7369 6361 6c6c 792c 2047 7569 6c65 Basically, Guile │ │ │ │ -000016a0: 2d52 6561 6465 720a 696e 7472 6f64 7563 -Reader.introduc │ │ │ │ -000016b0: 6573 2074 776f 206f 626a 6563 7473 3a20 es two objects: │ │ │ │ -000016c0: e280 9c72 6561 6465 7273 e280 9d20 616e ...readers... an │ │ │ │ -000016d0: 6420 e280 9c74 6f6b 656e 2072 6561 6465 d ...token reade │ │ │ │ -000016e0: 7273 e280 9d2e 2020 5265 6164 6572 7320 rs.... Readers │ │ │ │ -000016f0: 6361 6e20 6265 0a74 686f 7567 6874 206f can be.thought o │ │ │ │ -00001700: 662c 2073 696d 706c 792c 2061 7320 7072 f, simply, as pr │ │ │ │ -00001710: 6f63 6564 7572 6573 206c 696b 6520 5363 ocedures like Sc │ │ │ │ -00001720: 6865 6d65 2773 20e2 8098 7265 6164 e280 heme's ...read.. │ │ │ │ -00001730: 9920 282a 6e6f 7465 2052 3552 533a 0a28 . (*note R5RS:.( │ │ │ │ -00001740: 7235 7273 2949 6e70 7574 2e29 2c20 692e r5rs)Input.), i. │ │ │ │ -00001750: 652e 2c20 7072 6f63 6564 7572 6573 2074 e., procedures t │ │ │ │ -00001760: 6861 7420 7461 6b65 206f 6e65 2028 6f70 hat take one (op │ │ │ │ -00001770: 7469 6f6e 616c 2920 6172 6775 6d65 6e74 tional) argument │ │ │ │ -00001780: 2c0a 6e61 6d65 6c79 2074 6865 2070 6f72 ,.namely the por │ │ │ │ -00001790: 7420 746f 2072 6561 6420 6672 6f6d 2e20 t to read from. │ │ │ │ -000017a0: 2057 6520 7769 6c6c 2073 6565 206c 6174 We will see lat │ │ │ │ -000017b0: 6572 2074 6861 7420 7265 6164 6572 7320 er that readers │ │ │ │ -000017c0: 6173 2064 6566 696e 6564 0a62 7920 4775 as defined.by Gu │ │ │ │ -000017d0: 696c 652d 5265 6164 6572 2063 616e 2061 ile-Reader can a │ │ │ │ -000017e0: 6374 7561 6c6c 7920 7265 6365 6976 6520 ctually receive │ │ │ │ -000017f0: 7477 6f20 6d6f 7265 2061 7267 756d 656e two more argumen │ │ │ │ -00001800: 7473 2028 2a6e 6f74 6520 4465 6669 6e69 ts (*note Defini │ │ │ │ -00001810: 6e67 0a61 204e 6577 2052 6561 6465 723a ng.a New Reader: │ │ │ │ -00001820: 3a29 2e20 2041 2072 6561 6465 722c 206c :). A reader, l │ │ │ │ -00001830: 696b 6520 e280 9872 6561 64e2 8099 2c20 ike ...read..., │ │ │ │ -00001840: 7265 6164 7320 6120 7365 7175 656e 6365 reads a sequence │ │ │ │ -00001850: 206f 6620 6368 6172 6163 7465 7273 0a28 of characters.( │ │ │ │ -00001860: 7468 6520 e280 9c65 7874 6572 6e61 6c20 the ...external │ │ │ │ -00001870: 7265 7072 6573 656e 7461 7469 6f6e e280 representation.. │ │ │ │ -00001880: 9d20 6f66 2073 6f6d 6520 6f62 6a65 6374 . of some object │ │ │ │ -00001890: 2920 616e 6420 7265 7475 726e 7320 6120 ) and returns a │ │ │ │ -000018a0: 5363 6865 6d65 0a6f 626a 6563 742e 0a0a Scheme.object... │ │ │ │ -000018b0: 2020 2054 6f6b 656e 2072 6561 6465 7273 Token readers │ │ │ │ -000018c0: 2028 5452 732c 2066 6f72 2073 686f 7274 (TRs, for short │ │ │ │ -000018d0: 2920 6172 6520 7468 6520 6275 696c 6469 ) are the buildi │ │ │ │ -000018e0: 6e67 2062 6c6f 636b 206f 6620 6120 7265 ng block of a re │ │ │ │ -000018f0: 6164 6572 2e20 2041 0a74 6f6b 656e 2072 ader. A.token r │ │ │ │ -00001900: 6561 6465 7220 6973 2062 6173 6963 616c eader is basical │ │ │ │ -00001910: 6c79 2061 6e20 6173 736f 6369 6174 696f ly an associatio │ │ │ │ -00001920: 6e20 6265 7477 6565 6e20 6120 6368 6172 n between a char │ │ │ │ -00001930: 6163 7465 7220 6f72 2073 6574 206f 660a acter or set of. │ │ │ │ -00001940: 6368 6172 6163 7465 7273 2061 6e64 2061 characters and a │ │ │ │ -00001950: 2070 726f 6365 6475 7265 2074 6f20 7265 procedure to re │ │ │ │ -00001960: 6164 2061 6e64 2069 6e74 6572 7072 6574 ad and interpret │ │ │ │ -00001970: 2061 2073 6571 7565 6e63 6520 6f66 0a63 a sequence of.c │ │ │ │ -00001980: 6861 7261 6374 6572 7320 7374 6172 7469 haracters starti │ │ │ │ -00001990: 6e67 2077 6974 6820 6f6e 6520 6f66 2074 ng with one of t │ │ │ │ -000019a0: 6865 2066 6f72 6d65 722e 2020 466f 7220 he former. For │ │ │ │ -000019b0: 696e 7374 616e 6365 2c20 696e 2061 2073 instance, in a s │ │ │ │ -000019c0: 7461 6e64 6172 640a 5363 6865 6d65 2072 tandard.Scheme r │ │ │ │ -000019d0: 6561 6465 722c 2074 6865 2063 6861 7261 eader, the chara │ │ │ │ -000019e0: 6374 6572 20e2 8098 28e2 8099 206d 6179 cter ...(... may │ │ │ │ -000019f0: 2062 6520 6173 736f 6369 6174 6564 2074 be associated t │ │ │ │ -00001a00: 6f20 6120 7072 6f63 6564 7572 6520 7468 o a procedure th │ │ │ │ -00001a10: 6174 0a72 6561 6473 2061 6e20 532d 6578 at.reads an S-ex │ │ │ │ -00001a20: 7072 6573 7369 6f6e 2e20 204c 696b 6577 pression. Likew │ │ │ │ -00001a30: 6973 652c 206c 6f77 6572 2d63 6173 6520 ise, lower-case │ │ │ │ -00001a40: 616e 6420 7570 7065 722d 6361 7365 206c and upper-case l │ │ │ │ -00001a50: 6574 7465 7273 0a61 7373 6f63 6961 7465 etters.associate │ │ │ │ -00001a60: 6420 7769 7468 2074 6865 2061 7070 726f d with the appro │ │ │ │ -00001a70: 7072 6961 7465 2070 726f 6365 6475 7265 priate procedure │ │ │ │ -00001a80: 2066 6f72 6d20 6120 746f 6b65 6e20 7265 form a token re │ │ │ │ -00001a90: 6164 6572 2066 6f72 0a73 796d 626f 6c73 ader for.symbols │ │ │ │ -00001aa0: 2e0a 0a20 2020 496e 2047 7569 6c65 2d52 ... In Guile-R │ │ │ │ -00001ab0: 6561 6465 722c 2054 5273 206d 6179 2062 eader, TRs may b │ │ │ │ -00001ac0: 6520 7772 6974 7465 6e20 6569 7468 6572 e written either │ │ │ │ -00001ad0: 2069 6e20 5363 6865 6d65 206f 7220 696e in Scheme or in │ │ │ │ -00001ae0: 2043 2c20 616e 640a 7468 6579 2063 616e C, and.they can │ │ │ │ -00001af0: 2065 7665 6e20 6265 2061 2072 6561 6465 even be a reade │ │ │ │ -00001b00: 7220 7072 6f64 7563 6564 2062 7920 4775 r produced by Gu │ │ │ │ -00001b10: 696c 652d 5265 6164 6572 2069 7473 656c ile-Reader itsel │ │ │ │ -00001b20: 662e 2020 556e 6c65 7373 2069 7420 6973 f. Unless it is │ │ │ │ -00001b30: 0a61 2072 6561 6465 722c 2074 6865 2070 .a reader, the p │ │ │ │ -00001b40: 726f 6365 6475 7265 2028 6f72 2043 2066 rocedure (or C f │ │ │ │ -00001b50: 756e 6374 696f 6e29 2075 7365 6420 746f unction) used to │ │ │ │ -00001b60: 2063 7265 6174 6520 6120 5452 2077 696c create a TR wil │ │ │ │ -00001b70: 6c20 7265 6365 6976 650a 666f 7572 2061 l receive.four a │ │ │ │ -00001b80: 7267 756d 656e 7473 3a0a 0a20 2020 e280 rguments:.. .. │ │ │ │ -00001b90: a220 7468 6520 6368 6172 6163 7465 7220 . the character │ │ │ │ -00001ba0: 7468 6174 2077 6173 2072 6561 6420 616e that was read an │ │ │ │ -00001bb0: 6420 7768 6963 6820 7472 6967 6765 7265 d which triggere │ │ │ │ -00001bc0: 6420 6974 7320 6361 6c6c 3b20 696e 2074 d its call; in t │ │ │ │ -00001bd0: 6865 0a20 2020 2020 532d 6578 7020 6578 he. S-exp ex │ │ │ │ -00001be0: 616d 706c 652c 2074 6869 7320 776f 756c ample, this woul │ │ │ │ -00001bf0: 6420 6265 20e2 8098 28e2 8099 3b0a 2020 d be ...(...;. │ │ │ │ -00001c00: 20e2 80a2 2074 6865 2070 6f72 7420 746f ... the port to │ │ │ │ -00001c10: 2072 6561 6420 6672 6f6d 3b0a 2020 20e2 read from;. . │ │ │ │ -00001c20: 80a2 2074 6865 2072 6561 6465 7220 7768 .. the reader wh │ │ │ │ -00001c30: 6963 6820 7065 7266 6f72 6d65 6420 7468 ich performed th │ │ │ │ -00001c40: 6973 2069 6e76 6f63 6174 696f 6e3b 0a20 is invocation;. │ │ │ │ -00001c50: 2020 e280 a220 7468 6520 746f 702d 6c65 ... the top-le │ │ │ │ -00001c60: 7665 6c20 7265 6164 6572 2077 6869 6368 vel reader which │ │ │ │ -00001c70: 2079 6965 6c64 6564 2074 6869 7320 696e yielded this in │ │ │ │ -00001c80: 766f 6361 7469 6f6e 2e0a 0a20 2020 5468 vocation... Th │ │ │ │ -00001c90: 6520 6e65 7874 2073 6563 7469 6f6e 2073 e next section s │ │ │ │ -00001ca0: 686f 7773 2068 6f77 2074 6f20 6765 7420 hows how to get │ │ │ │ -00001cb0: 7374 6172 7465 6420 7769 7468 2047 7569 started with Gui │ │ │ │ -00001cc0: 6c65 2d52 6561 6465 722c 2075 7369 6e67 le-Reader, using │ │ │ │ -00001cd0: 2061 0a68 6967 682d 6c65 7665 6c20 4150 a.high-level AP │ │ │ │ -00001ce0: 492e 2044 6574 6169 6c73 2061 626f 7574 I. Details about │ │ │ │ -00001cf0: 206f 6620 7468 6520 7072 6f67 7261 6d6d of the programm │ │ │ │ -00001d00: 696e 6720 696e 7465 7266 6163 6520 6172 ing interface ar │ │ │ │ -00001d10: 6520 6769 7665 6e20 696e 0a74 6865 2041 e given in.the A │ │ │ │ -00001d20: 5049 2072 6566 6572 656e 6365 2028 2a6e PI reference (*n │ │ │ │ -00001d30: 6f74 6520 4150 4920 5265 6665 7265 6e63 ote API Referenc │ │ │ │ -00001d40: 653a 3a29 2e0a 0a1f 0a46 696c 653a 2067 e::).....File: g │ │ │ │ -00001d50: 7569 6c65 2d72 6561 6465 722e 696e 666f uile-reader.info │ │ │ │ -00001d60: 2c20 204e 6f64 653a 2051 7569 636b 2053 , Node: Quick S │ │ │ │ -00001d70: 7461 7274 2c20 204e 6578 743a 2041 5049 tart, Next: API │ │ │ │ -00001d80: 2052 6566 6572 656e 6365 2c20 2050 7265 Reference, Pre │ │ │ │ -00001d90: 763a 204f 7665 7276 6965 772c 2020 5570 v: Overview, Up │ │ │ │ -00001da0: 3a20 546f 700a 0a33 2051 7569 636b 2053 : Top..3 Quick S │ │ │ │ -00001db0: 7461 7274 0a2a 2a2a 2a2a 2a2a 2a2a 2a2a tart.*********** │ │ │ │ -00001dc0: 2a2a 0a0a 5468 6520 7369 6d70 6c65 7374 **..The simplest │ │ │ │ -00001dd0: 2077 6179 2074 6f20 6765 7420 7374 6172 way to get star │ │ │ │ -00001de0: 7465 6420 616e 6420 746f 2070 726f 6475 ted and to produ │ │ │ │ -00001df0: 6365 2063 7573 746f 6d69 7a65 6420 7265 ce customized re │ │ │ │ -00001e00: 6164 6572 7320 6973 0a74 6872 6f75 6768 aders is.through │ │ │ │ -00001e10: 2074 6865 2068 6967 682d 6c65 7665 6c20 the high-level │ │ │ │ -00001e20: 4150 4920 7072 6f76 6964 6564 2062 7920 API provided by │ │ │ │ -00001e30: 7468 6520 e280 9828 7379 7374 656d 2072 the ...(system r │ │ │ │ -00001e40: 6561 6465 7220 6c69 6272 6172 7929 e280 eader library).. │ │ │ │ -00001e50: 990a 6d6f 6475 6c65 2e20 2041 7320 7468 ..module. As th │ │ │ │ -00001e60: 6520 6e61 6d65 2073 7567 6765 7374 732c e name suggests, │ │ │ │ -00001e70: 2074 6869 7320 6d6f 6475 6c65 2070 726f this module pro │ │ │ │ -00001e80: 7669 6465 7320 6120 6c69 6272 6172 7920 vides a library │ │ │ │ -00001e90: 6f66 2072 6561 6469 6c79 0a75 7361 626c of readily.usabl │ │ │ │ -00001ea0: 6520 7265 6164 6572 732e 2020 5468 6520 e readers. The │ │ │ │ -00001eb0: e280 986d 616b 652d 616c 7465 726e 6174 ...make-alternat │ │ │ │ -00001ec0: 652d 6775 696c 652d 7265 6164 6572 e280 e-guile-reader.. │ │ │ │ -00001ed0: 9920 7072 6f63 6564 7572 6520 6769 7665 . procedure give │ │ │ │ -00001ee0: 730a 6163 6365 7373 2074 6f20 7468 6573 s.access to thes │ │ │ │ -00001ef0: 6520 7265 6164 6572 732e 2020 4974 2063 e readers. It c │ │ │ │ -00001f00: 616e 2062 6520 7061 7373 6564 2061 206c an be passed a l │ │ │ │ -00001f10: 6973 7420 6f66 2073 796d 626f 6c73 2064 ist of symbols d │ │ │ │ -00001f20: 6573 6372 6962 696e 670a 7265 6164 6572 escribing.reader │ │ │ │ -00001f30: 206f 7074 696f 6e73 2c20 7375 6368 2061 options, such a │ │ │ │ -00001f40: 7320 7768 6574 6865 7220 796f 7520 7761 s whether you wa │ │ │ │ -00001f50: 6e74 2073 7570 706f 7274 2066 6f72 2044 nt support for D │ │ │ │ -00001f60: 5353 534c 206b 6579 776f 7264 732c 0a53 SSSL keywords,.S │ │ │ │ -00001f70: 5246 492d 3632 2063 6f6d 6d65 6e74 7320 RFI-62 comments │ │ │ │ -00001f80: 2868 7474 703a 2f2f 7372 6669 2e73 6368 (http://srfi.sch │ │ │ │ -00001f90: 656d 6572 732e 6f72 672f 7372 6669 2d36 emers.org/srfi-6 │ │ │ │ -00001fa0: 322f 7372 6669 2d36 322e 6874 6d6c 292c 2/srfi-62.html), │ │ │ │ -00001fb0: 0a53 5246 492d 3330 2062 6c6f 636b 2063 .SRFI-30 block c │ │ │ │ -00001fc0: 6f6d 6d65 6e74 7320 2868 7474 703a 2f2f omments (http:// │ │ │ │ -00001fd0: 7372 6669 2e73 6368 656d 6572 732e 6f72 srfi.schemers.or │ │ │ │ -00001fe0: 672f 7372 6669 2d33 302f 7372 6669 2d33 g/srfi-30/srfi-3 │ │ │ │ -00001ff0: 302e 6874 6d6c 292c 0a65 7463 2e0a 0a20 0.html),.etc... │ │ │ │ -00002000: 2020 5468 6520 666f 6c6c 6f77 696e 6720 The following │ │ │ │ -00002010: 6578 616d 706c 6520 6269 6e64 7320 746f example binds to │ │ │ │ -00002020: 204d 592d 5245 4144 4552 2061 2053 6368 MY-READER a Sch │ │ │ │ -00002030: 656d 6520 7265 6164 6572 2074 6861 740a eme reader that. │ │ │ │ -00002040: 7375 7070 6f72 7473 2044 5353 534c 2d73 supports DSSSL-s │ │ │ │ -00002050: 7479 6c65 206b 6579 776f 7264 7320 616e tyle keywords an │ │ │ │ -00002060: 6420 5352 4649 2d36 3220 636f 6d6d 656e d SRFI-62 commen │ │ │ │ -00002070: 7473 2c20 616e 6420 7468 6174 2069 7320 ts, and that is │ │ │ │ -00002080: 6361 7365 0a69 6e73 656e 7369 7469 7665 case.insensitive │ │ │ │ -00002090: 3a0a 0a20 2020 2020 2875 7365 2d6d 6f64 :.. (use-mod │ │ │ │ -000020a0: 756c 6573 2028 7379 7374 656d 2072 6561 ules (system rea │ │ │ │ -000020b0: 6465 7220 6c69 6272 6172 7929 290a 0a20 der library)).. │ │ │ │ -000020c0: 2020 2020 2864 6566 696e 6520 6d79 2d72 (define my-r │ │ │ │ -000020d0: 6561 6465 720a 2020 2020 2020 2028 6d61 eader. (ma │ │ │ │ -000020e0: 6b65 2d61 6c74 6572 6e61 7465 2d67 7569 ke-alternate-gui │ │ │ │ -000020f0: 6c65 2d72 6561 6465 7220 2728 6473 7373 le-reader '(dsss │ │ │ │ -00002100: 6c2d 6b65 7977 6f72 6473 0a20 2020 2020 l-keywords. │ │ │ │ +00000640: 486f 7720 6974 2077 6f72 6b73 2e0a 2a20 How it works..* │ │ │ │ +00000650: 5175 6963 6b20 5374 6172 743a 3a20 2020 Quick Start:: │ │ │ │ +00000660: 2020 2020 2020 2020 2020 2020 2020 466f Fo │ │ │ │ +00000670: 7220 7468 6520 696d 7061 7469 656e 742e r the impatient. │ │ │ │ +00000680: 0a2a 2041 5049 2052 6566 6572 656e 6365 .* API Reference │ │ │ │ +00000690: 3a3a 2020 2020 2020 2020 2020 2020 2020 :: │ │ │ │ +000006a0: 2055 7369 6e67 2047 7569 6c65 2d52 6561 Using Guile-Rea │ │ │ │ +000006b0: 6465 722e 0a2a 2049 6e74 6572 6e61 6c73 der..* Internals │ │ │ │ +000006c0: 3a3a 2020 2020 2020 2020 2020 2020 2020 :: │ │ │ │ +000006d0: 2020 2020 2050 6572 666f 726d 616e 6365 Performance │ │ │ │ +000006e0: 2063 6f6e 7369 6465 7261 7469 6f6e 732e considerations. │ │ │ │ +000006f0: 0a0a 2a20 436f 6e63 6570 7420 496e 6465 ..* Concept Inde │ │ │ │ +00000700: 783a 3a20 2020 2020 2020 2020 2020 2020 x:: │ │ │ │ +00000710: 2020 436f 6e63 6570 7473 2e0a 2a20 4675 Concepts..* Fu │ │ │ │ +00000720: 6e63 7469 6f6e 2049 6e64 6578 3a3a 2020 nction Index:: │ │ │ │ +00000730: 2020 2020 2020 2020 2020 2020 5363 6865 Sche │ │ │ │ +00000740: 6d65 2070 726f 6365 6475 7265 7320 616e me procedures an │ │ │ │ +00000750: 6420 4320 6675 6e63 7469 6f6e 732e 0a0a d C functions... │ │ │ │ +00000760: 1f0a 4669 6c65 3a20 6775 696c 652d 7265 ..File: guile-re │ │ │ │ +00000770: 6164 6572 2e69 6e66 6f2c 2020 4e6f 6465 ader.info, Node │ │ │ │ +00000780: 3a20 496e 7472 6f64 7563 7469 6f6e 2c20 : Introduction, │ │ │ │ +00000790: 204e 6578 743a 204f 7665 7276 6965 772c Next: Overview, │ │ │ │ +000007a0: 2020 5072 6576 3a20 546f 702c 2020 5570 Prev: Top, Up │ │ │ │ +000007b0: 3a20 546f 700a 0a31 2049 6e74 726f 6475 : Top..1 Introdu │ │ │ │ +000007c0: 6374 696f 6e0a 2a2a 2a2a 2a2a 2a2a 2a2a ction.********** │ │ │ │ +000007d0: 2a2a 2a2a 0a0a 4775 696c 6520 6375 7272 ****..Guile curr │ │ │ │ +000007e0: 656e 746c 7920 7072 6f76 6964 6573 206c ently provides l │ │ │ │ +000007f0: 696d 6974 6564 2065 7874 656e 7369 6269 imited extensibi │ │ │ │ +00000800: 6c69 7479 206f 6620 6974 7320 7265 6164 lity of its read │ │ │ │ +00000810: 6572 2c20 6279 206d 6561 6e73 0a6f 6620 er, by means.of │ │ │ │ +00000820: e280 9872 6561 642d 6861 7368 2d65 7874 ...read-hash-ext │ │ │ │ +00000830: 656e 64e2 8099 2028 2a6e 6f74 6520 e280 end... (*note .. │ │ │ │ +00000840: 9872 6561 642d 6861 7368 2d65 7874 656e .read-hash-exten │ │ │ │ +00000850: 64e2 8099 3a20 2867 7569 6c65 2952 6561 d...: (guile)Rea │ │ │ │ +00000860: 6465 720a 4578 7465 6e73 696f 6e73 2e29 der.Extensions.) │ │ │ │ +00000870: 2c20 666f 7220 696e 7374 616e 6365 2c20 , for instance, │ │ │ │ +00000880: 6f72 20e2 8098 7265 6164 2d65 6e61 626c or ...read-enabl │ │ │ │ +00000890: 65e2 8099 2028 2a6e 6f74 6520 e280 9872 e... (*note ...r │ │ │ │ +000008a0: 6561 642d 656e 6162 6c65 e280 993a 0a28 ead-enable...:.( │ │ │ │ +000008b0: 6775 696c 6529 5363 6865 6d65 2052 6561 guile)Scheme Rea │ │ │ │ +000008c0: 642e 292e 2020 5352 4649 2d31 300a 2868 d.). SRFI-10.(h │ │ │ │ +000008d0: 7474 703a 2f2f 7372 6669 2e73 6368 656d ttp://srfi.schem │ │ │ │ +000008e0: 6572 732e 6f72 672f 7372 6669 2d31 302f ers.org/srfi-10/ │ │ │ │ +000008f0: 7372 6669 2d31 302e 6874 6d6c 2920 7472 srfi-10.html) tr │ │ │ │ +00000900: 6965 7320 746f 2070 726f 706f 7365 2061 ies to propose a │ │ │ │ +00000910: 0a67 656e 6572 6963 2c20 706f 7274 6162 .generic, portab │ │ │ │ +00000920: 6c65 2c20 6578 7465 6e73 696f 6e20 6d65 le, extension me │ │ │ │ +00000930: 6368 616e 6973 6d20 7369 6d69 6c61 7220 chanism similar │ │ │ │ +00000940: 746f 20e2 8098 7265 6164 2d68 6173 682d to ...read-hash- │ │ │ │ +00000950: 6578 7465 6e64 e280 9920 6275 740a 6c69 extend... but.li │ │ │ │ +00000960: 6d69 7465 6420 746f 20e2 8098 232c e280 mited to ...#,.. │ │ │ │ +00000970: 9920 7365 7175 656e 6365 732e 2020 4d6f . sequences. Mo │ │ │ │ +00000980: 7265 6f76 6572 2c20 7768 696c 6520 7468 reover, while th │ │ │ │ +00000990: 6973 206d 6179 206e 6f74 2061 6c77 6179 is may not alway │ │ │ │ +000009a0: 7320 6265 0a64 6573 6972 6162 6c65 2c20 s be.desirable, │ │ │ │ +000009b0: 616c 6c20 7468 6573 6520 6578 7465 6e73 all these extens │ │ │ │ +000009c0: 696f 6e20 6661 6369 6c69 7469 6573 2068 ion facilities h │ │ │ │ +000009d0: 6176 6520 6120 676c 6f62 616c 2065 6666 ave a global eff │ │ │ │ +000009e0: 6563 742c 2063 6861 6e67 696e 670a 7468 ect, changing.th │ │ │ │ +000009f0: 6520 6265 6861 7669 6f72 206f 6620 7468 e behavior of th │ │ │ │ +00000a00: 6520 736f 6c65 2072 6561 6465 7220 696d e sole reader im │ │ │ │ +00000a10: 706c 656d 656e 7461 7469 6f6e 2061 7661 plementation ava │ │ │ │ +00000a20: 696c 6162 6c65 2061 7420 7275 6e2d 7469 ilable at run-ti │ │ │ │ +00000a30: 6d65 2e0a 5468 6973 206d 616b 6573 2069 me..This makes i │ │ │ │ +00000a40: 7420 696d 706f 7373 6962 6c65 2074 6f20 t impossible to │ │ │ │ +00000a50: 6861 7665 2c20 666f 7220 696e 7374 616e have, for instan │ │ │ │ +00000a60: 6365 2c20 6f6e 6520 6d6f 6475 6c65 2063 ce, one module c │ │ │ │ +00000a70: 6f6e 7369 6465 720a 6e61 6d65 7320 7374 onsider.names st │ │ │ │ +00000a80: 6172 7469 6e67 2077 6974 6820 e280 983a arting with ...: │ │ │ │ +00000a90: e280 9920 6173 2073 796d 626f 6c73 2c20 ... as symbols, │ │ │ │ +00000aa0: 7768 696c 6520 616e 6f74 6865 7220 636f while another co │ │ │ │ +00000ab0: 6e73 6964 6572 7320 7468 656d 2061 730a nsiders them as. │ │ │ │ +00000ac0: 6b65 7977 6f72 6473 2e0a 0a20 2020 4578 keywords... Ex │ │ │ │ +00000ad0: 7465 6e73 696f 6e73 2073 7563 6820 6173 tensions such as │ │ │ │ +00000ae0: 2074 6865 2072 6561 6420 7379 6e74 6178 the read syntax │ │ │ │ +00000af0: 2066 6f72 2053 5246 492d 3420 6e75 6d65 for SRFI-4 nume │ │ │ │ +00000b00: 7269 6320 7665 6374 6f72 7320 282a 6e6f ric vectors (*no │ │ │ │ +00000b10: 7465 0a53 5246 492d 3420 7665 6374 6f72 te.SRFI-4 vector │ │ │ │ +00000b20: 733a 2028 6775 696c 6529 556e 6966 6f72 s: (guile)Unifor │ │ │ │ +00000b30: 6d20 4e75 6d65 7269 6320 5665 6374 6f72 m Numeric Vector │ │ │ │ +00000b40: 732e 2920 6861 6420 746f 2062 6520 6164 s.) had to be ad │ │ │ │ +00000b50: 6465 6420 746f 0a47 7569 6c65 2773 2062 ded to.Guile's b │ │ │ │ +00000b60: 7569 6c74 2d69 6e20 4320 7265 6164 6572 uilt-in C reader │ │ │ │ +00000b70: 2e20 2053 796e 7461 6374 6963 2065 7874 . Syntactic ext │ │ │ │ +00000b80: 656e 7369 6f6e 7320 7468 6174 2064 6964 ensions that did │ │ │ │ +00000b90: 206e 6f74 2061 7070 6561 6c20 7468 650a not appeal the. │ │ │ │ +00000ba0: 6d61 6a6f 7269 7479 206f 6620 7573 6572 majority of user │ │ │ │ +00000bb0: 732c 206c 696b 6520 456d 6163 732d 4c69 s, like Emacs-Li │ │ │ │ +00000bc0: 7370 2076 6563 746f 7273 2c20 6172 6520 sp vectors, are │ │ │ │ +00000bd0: e280 9823 6966 6465 66e2 8099 2764 2077 ...#ifdef...'d w │ │ │ │ +00000be0: 6974 6869 6e20 7468 650a 7265 6164 6572 ithin the.reader │ │ │ │ +00000bf0: 2063 6f64 6520 616e 6420 6172 6520 6e6f code and are no │ │ │ │ +00000c00: 7420 6176 6169 6c61 626c 6520 6279 2064 t available by d │ │ │ │ +00000c10: 6566 6175 6c74 2e20 204d 6f72 656f 7665 efault. Moreove │ │ │ │ +00000c20: 722c 2073 6f6d 6520 6578 7465 6e73 696f r, some extensio │ │ │ │ +00000c30: 6e73 0a61 7265 2069 6e63 6f6d 7061 7469 ns.are incompati │ │ │ │ +00000c40: 626c 6520 7769 7468 2065 6163 6820 6f74 ble with each ot │ │ │ │ +00000c50: 6865 722c 2073 7563 6820 6173 2074 6865 her, such as the │ │ │ │ +00000c60: 2044 5353 534c 206b 6579 776f 7264 2073 DSSSL keyword s │ │ │ │ +00000c70: 796e 7461 7820 616e 640a 5343 5348 2062 yntax and.SCSH b │ │ │ │ +00000c80: 6c6f 636b 2063 6f6d 6d65 6e74 7320 282a lock comments (* │ │ │ │ +00000c90: 6e6f 7465 2053 4353 4820 626c 6f63 6b20 note SCSH block │ │ │ │ +00000ca0: 636f 6d6d 656e 7473 3a20 2867 7569 6c65 comments: (guile │ │ │ │ +00000cb0: 2942 6c6f 636b 2043 6f6d 6d65 6e74 732e )Block Comments. │ │ │ │ +00000cc0: 292e 0a49 6e20 7368 6f72 7420 7468 6520 )..In short the │ │ │ │ +00000cd0: 6375 7272 656e 7420 7265 6164 6572 2073 current reader s │ │ │ │ +00000ce0: 796e 7461 7820 6973 2068 6172 646c 7920 yntax is hardly │ │ │ │ +00000cf0: 6578 7465 6e73 6962 6c65 2e0a 0a20 2020 extensible... │ │ │ │ +00000d00: 5468 6520 6964 6561 206f 6620 4775 696c The idea of Guil │ │ │ │ +00000d10: 652d 5265 6164 6572 2069 7320 746f 2070 e-Reader is to p │ │ │ │ +00000d20: 726f 7669 6465 2061 2066 7261 6d65 776f rovide a framewo │ │ │ │ +00000d30: 726b 2061 6c6c 6f77 696e 6720 7573 6572 rk allowing user │ │ │ │ +00000d40: 7320 746f 0a71 7569 636b 6c79 2064 6566 s to.quickly def │ │ │ │ +00000d50: 696e 6520 7265 6164 6572 7320 666f 7220 ine readers for │ │ │ │ +00000d60: 7768 6174 6576 6572 2073 796e 7461 7820 whatever syntax │ │ │ │ +00000d70: 286f 7220 7261 7468 6572 3a20 7661 7269 (or rather: vari │ │ │ │ +00000d80: 616e 7420 6f66 2074 6865 0a53 6368 656d ant of the.Schem │ │ │ │ +00000d90: 6520 7379 6e74 6178 2920 7468 6579 206c e syntax) they l │ │ │ │ +00000da0: 696b 652e 2020 5072 6f67 7261 6d73 2063 ike. Programs c │ │ │ │ +00000db0: 616e 2074 6865 6e20 7072 6f76 6964 6520 an then provide │ │ │ │ +00000dc0: 7468 6569 7220 6f77 6e20 7265 6164 6572 their own reader │ │ │ │ +00000dd0: 730a 616e 642c 2074 6861 6e6b 7320 746f s.and, thanks to │ │ │ │ +00000de0: 2047 7569 6c65 2773 20e2 8098 6375 7272 Guile's ...curr │ │ │ │ +00000df0: 656e 742d 7265 6164 6572 e280 9920 6d65 ent-reader... me │ │ │ │ +00000e00: 6368 616e 6973 6d2c 2068 6176 6520 7468 chanism, have th │ │ │ │ +00000e10: 6569 7220 636f 6465 2072 6561 640a 7769 eir code read.wi │ │ │ │ +00000e20: 7468 2074 6869 7320 7265 6164 6572 2e20 th this reader. │ │ │ │ +00000e30: 2057 6865 6e20 7573 696e 6720 4775 696c When using Guil │ │ │ │ +00000e40: 6520 322e 302c 2072 6561 6465 7273 2070 e 2.0, readers p │ │ │ │ +00000e50: 726f 6475 6365 6420 6279 0a47 7569 6c65 roduced by.Guile │ │ │ │ +00000e60: 2d52 6561 6465 7220 6172 6520 556e 6963 -Reader are Unic │ │ │ │ +00000e70: 6f64 652d 6361 7061 626c 653b 2074 6865 ode-capable; the │ │ │ │ +00000e80: 7920 6361 6e20 7265 6164 2066 726f 6d20 y can read from │ │ │ │ +00000e90: 616e 790a 4153 4349 492d 636f 6d70 6174 any.ASCII-compat │ │ │ │ +00000ea0: 6962 6c65 2065 6e63 6f64 696e 672c 2073 ible encoding, s │ │ │ │ +00000eb0: 7563 6820 6173 2055 5446 2d38 206f 7220 uch as UTF-8 or │ │ │ │ +00000ec0: 4953 4f2d 3838 3539 2d31 2e0a 0a20 2020 ISO-8859-1... │ │ │ │ +00000ed0: 5768 696c 6520 6974 2069 7320 6d75 6368 While it is much │ │ │ │ +00000ee0: 2073 696d 706c 6572 2074 6861 6e20 6120 simpler than a │ │ │ │ +00000ef0: 6675 6c6c 2d62 6c6f 776e 206c 6578 6572 full-blown lexer │ │ │ │ +00000f00: 2067 656e 6572 6174 6f72 2073 7563 6820 generator such │ │ │ │ +00000f10: 6173 0a46 6c65 7820 2868 7474 703a 2f2f as.Flex (http:// │ │ │ │ +00000f20: 7777 772e 676e 752e 6f72 672f 736f 6674 www.gnu.org/soft │ │ │ │ +00000f30: 7761 7265 2f66 6c65 782f 292c 2044 616e ware/flex/), Dan │ │ │ │ +00000f40: 6e79 2044 7562 c3a9 2773 2053 494c 6578 ny Dub..'s SILex │ │ │ │ +00000f50: 0a28 6874 7470 3a2f 2f77 7777 2e69 726f .(http://www.iro │ │ │ │ +00000f60: 2e75 6d6f 6e74 7265 616c 2e63 612f 7e64 .umontreal.ca/~d │ │ │ │ +00000f70: 7562 652f 2920 616e 6420 4269 676c 6f6f ube/) and Bigloo │ │ │ │ +00000f80: 2773 2052 4743 0a28 6874 7470 3a2f 2f77 's RGC.(http://w │ │ │ │ +00000f90: 7777 2e69 6e72 6961 2e66 722f 6d69 6d6f ww.inria.fr/mimo │ │ │ │ +00000fa0: 7361 2f66 702f 4269 676c 6f6f 292c 2069 sa/fp/Bigloo), i │ │ │ │ +00000fb0: 7473 2073 696d 706c 6520 7072 6f67 7261 ts simple progra │ │ │ │ +00000fc0: 6d6d 696e 6720 696e 7465 7266 6163 650a mming interface. │ │ │ │ +00000fd0: 7368 6f75 6c64 206d 616b 6520 6974 2076 should make it v │ │ │ │ +00000fe0: 6572 7920 7374 7261 6967 6874 666f 7277 ery straightforw │ │ │ │ +00000ff0: 6172 6420 746f 2069 6d70 6c65 6d65 6e74 ard to implement │ │ │ │ +00001000: 2072 6561 6465 7273 2c20 6573 7065 6369 readers, especi │ │ │ │ +00001010: 616c 6c79 2066 6f72 0a53 6368 656d 652d ally for.Scheme- │ │ │ │ +00001020: 6c69 6b65 2073 796e 7461 7865 732e 2020 like syntaxes. │ │ │ │ +00001030: 4265 7374 206f 6620 616c 6c2c 2047 7569 Best of all, Gui │ │ │ │ +00001040: 6c65 2052 6561 6465 7220 636f 6d65 7320 le Reader comes │ │ │ │ +00001050: 7769 7468 2061 206c 6962 7261 7279 206f with a library o │ │ │ │ +00001060: 660a 636f 6d70 6f6e 656e 7473 2074 6861 f.components tha │ │ │ │ +00001070: 7420 6361 6e20 7479 7069 6361 6c6c 7920 t can typically │ │ │ │ +00001080: 6265 2075 7365 6420 746f 2063 6f6e 7374 be used to const │ │ │ │ +00001090: 7275 6374 2061 2072 6561 6465 7220 666f ruct a reader fo │ │ │ │ +000010a0: 7220 7468 650a 5363 6865 6d65 2073 796e r the.Scheme syn │ │ │ │ +000010b0: 7461 782e 2020 416e 6420 6561 6368 206f tax. And each o │ │ │ │ +000010c0: 6e65 206f 6620 7468 6973 2063 6f6d 706f ne of this compo │ │ │ │ +000010d0: 6e65 6e74 7320 6d61 7920 6265 2072 6575 nents may be reu │ │ │ │ +000010e0: 7365 6420 6174 2077 696c 6c0a 7768 656e sed at will.when │ │ │ │ +000010f0: 2063 7265 6174 696e 6720 6f74 6865 7220 creating other │ │ │ │ +00001100: 7265 6164 6572 732e 2020 4f6e 2074 6865 readers. On the │ │ │ │ +00001110: 206f 7468 6572 2068 616e 642c 206f 6e65 other hand, one │ │ │ │ +00001120: 2073 686f 756c 6420 6265 2061 7761 7265 should be aware │ │ │ │ +00001130: 0a74 6861 7420 7468 6973 2073 696d 706c .that this simpl │ │ │ │ +00001140: 6572 2041 5049 2063 6f6d 6573 2061 7420 er API comes at │ │ │ │ +00001150: 7468 6520 636f 7374 206f 6620 6120 6c61 the cost of a la │ │ │ │ +00001160: 636b 206f 6620 636f 6e73 6973 7465 6e63 ck of consistenc │ │ │ │ +00001170: 7920 696e 2073 6f6d 650a 6361 7365 732c y in some.cases, │ │ │ │ +00001180: 2061 7320 6f75 746c 696e 6564 206c 6174 as outlined lat │ │ │ │ +00001190: 6572 2069 6e20 7468 6973 206d 616e 7561 er in this manua │ │ │ │ +000011a0: 6c20 282a 6e6f 7465 204c 696d 6974 6174 l (*note Limitat │ │ │ │ +000011b0: 696f 6e73 3a3a 292e 0a0a 2020 2043 6f6d ions::)... Com │ │ │ │ +000011c0: 6d6f 6e20 4c69 7370 2068 6173 2061 2073 mon Lisp has a s │ │ │ │ +000011d0: 696d 696c 6172 206d 6563 6861 6e69 736d imilar mechanism │ │ │ │ +000011e0: 2074 6f20 6578 7465 6e64 2069 7473 2072 to extend its r │ │ │ │ +000011f0: 6561 6465 7220 7768 6963 6820 6973 0a63 eader which is.c │ │ │ │ +00001200: 616c 6c65 6420 7468 6520 e280 9c72 6561 alled the ...rea │ │ │ │ +00001210: 6420 7461 626c 65e2 809d 2e20 2047 616d d table.... Gam │ │ │ │ +00001220: 6269 7420 5363 6865 6d65 0a28 6874 7470 bit Scheme.(http │ │ │ │ +00001230: 3a2f 2f77 7777 2e69 726f 2e75 6d6f 6e74 ://www.iro.umont │ │ │ │ +00001240: 7265 616c 2e63 612f 7e67 616d 6269 742f real.ca/~gambit/ │ │ │ │ +00001250: 292c 2066 6f72 2069 6e73 7461 6e63 652c ), for instance, │ │ │ │ +00001260: 2061 6c73 6f20 7072 6f76 6964 6573 2061 also provides a │ │ │ │ +00001270: 6e0a 696d 706c 656d 656e 7461 7469 6f6e n.implementation │ │ │ │ +00001280: 206f 6620 7265 6164 2074 6162 6c65 732e of read tables. │ │ │ │ +00001290: 2020 486f 7765 7665 722c 2069 7420 6170 However, it ap │ │ │ │ +000012a0: 7065 6172 7320 746f 2068 6176 6520 6c69 pears to have li │ │ │ │ +000012b0: 6d69 7461 7469 6f6e 730a 7369 6d69 6c61 mitations.simila │ │ │ │ +000012c0: 7220 746f 2047 7569 6c65 2773 20e2 8098 r to Guile's ... │ │ │ │ +000012d0: 7265 6164 2d65 6e61 626c 65e2 8099 2061 read-enable... a │ │ │ │ +000012e0: 6e64 20e2 8098 7265 6164 2d68 6173 682d nd ...read-hash- │ │ │ │ +000012f0: 6578 7465 6e64 e280 9920 696e 2074 6572 extend... in ter │ │ │ │ +00001300: 6d73 206f 660a 706f 7373 6962 696c 6974 ms of.possibilit │ │ │ │ +00001310: 6965 7320 666f 7220 7379 6e74 6178 2065 ies for syntax e │ │ │ │ +00001320: 7874 656e 7369 6f6e 2e20 204f 6e20 7468 xtension. On th │ │ │ │ +00001330: 6520 6f74 6865 7220 6861 6e64 2c20 6974 e other hand, it │ │ │ │ +00001340: 2061 6c6c 6f77 7320 7468 650a 7265 6164 allows the.read │ │ │ │ +00001350: 6572 2061 6e64 2077 7269 7465 7220 746f er and writer to │ │ │ │ +00001360: 2062 6520 6b65 7074 2063 6f6e 7369 7374 be kept consist │ │ │ │ +00001370: 656e 742c 2077 6869 6368 2047 7569 6c65 ent, which Guile │ │ │ │ +00001380: 2d52 6561 6465 7220 646f 6573 206e 6f74 -Reader does not │ │ │ │ +00001390: 0a61 6464 7265 7373 2e0a 0a1f 0a46 696c .address.....Fil │ │ │ │ +000013a0: 653a 2067 7569 6c65 2d72 6561 6465 722e e: guile-reader. │ │ │ │ +000013b0: 696e 666f 2c20 204e 6f64 653a 204f 7665 info, Node: Ove │ │ │ │ +000013c0: 7276 6965 772c 2020 4e65 7874 3a20 5175 rview, Next: Qu │ │ │ │ +000013d0: 6963 6b20 5374 6172 742c 2020 5072 6576 ick Start, Prev │ │ │ │ +000013e0: 3a20 496e 7472 6f64 7563 7469 6f6e 2c20 : Introduction, │ │ │ │ +000013f0: 2055 703a 2054 6f70 0a0a 3220 4f76 6572 Up: Top..2 Over │ │ │ │ +00001400: 7669 6577 0a2a 2a2a 2a2a 2a2a 2a2a 2a0a view.**********. │ │ │ │ +00001410: 0a47 7569 6c65 2d52 6561 6465 7220 616c .Guile-Reader al │ │ │ │ +00001420: 6c6f 7773 2066 6f72 2074 6865 2063 6f6e lows for the con │ │ │ │ +00001430: 7374 7275 6374 696f 6e20 6f66 2072 6561 struction of rea │ │ │ │ +00001440: 6465 7273 2063 6170 6162 6c65 206f 660a ders capable of. │ │ │ │ +00001450: 756e 6465 7273 7461 6e64 696e 6720 7661 understanding va │ │ │ │ +00001460: 7269 6f75 7320 7379 6e74 6163 7469 6320 rious syntactic │ │ │ │ +00001470: 7661 7269 616e 7473 2e20 2054 6865 2073 variants. The s │ │ │ │ +00001480: 696d 706c 6573 7420 7761 7920 746f 2075 implest way to u │ │ │ │ +00001490: 7365 2069 7420 6973 0a74 6872 6f75 6768 se it is.through │ │ │ │ +000014a0: 2069 7473 20e2 809c 7265 6164 6572 206c its ...reader l │ │ │ │ +000014b0: 6962 7261 7279 e280 9d20 7468 6174 2061 ibrary... that a │ │ │ │ +000014c0: 6c6c 6f77 7320 6f6e 6520 746f 2070 6963 llows one to pic │ │ │ │ +000014d0: 6b20 616e 6420 6368 6f6f 7365 2076 6172 k and choose var │ │ │ │ +000014e0: 696f 7573 0a63 6f6d 6d6f 6e6c 7920 7573 ious.commonly us │ │ │ │ +000014f0: 6564 2073 796e 7461 6374 6963 2065 7874 ed syntactic ext │ │ │ │ +00001500: 656e 7369 6f6e 7320 746f 2074 6865 2073 ensions to the s │ │ │ │ +00001510: 7461 6e64 6172 6420 5363 6865 6d65 2073 tandard Scheme s │ │ │ │ +00001520: 796e 7461 7820 282a 6e6f 7465 0a52 6561 yntax (*note.Rea │ │ │ │ +00001530: 6465 7220 4c69 6272 6172 793a 3a29 2e20 der Library::). │ │ │ │ +00001540: 2048 6f77 6576 6572 2c20 4775 696c 652d However, Guile- │ │ │ │ +00001550: 5265 6164 6572 2061 6c73 6f20 7072 6f76 Reader also prov │ │ │ │ +00001560: 6964 6573 2061 2066 696e 6572 2d67 7261 ides a finer-gra │ │ │ │ +00001570: 696e 0a70 726f 6772 616d 6d69 6e67 2069 in.programming i │ │ │ │ +00001580: 6e74 6572 6661 6365 2061 6c6c 6f77 696e nterface allowin │ │ │ │ +00001590: 6720 7468 6520 636f 6e73 7472 7563 7469 g the constructi │ │ │ │ +000015a0: 6f6e 206f 6620 7669 7274 7561 6c6c 7920 on of virtually │ │ │ │ +000015b0: 616e 7920 7265 6164 6572 2c0a 7769 7468 any reader,.with │ │ │ │ +000015c0: 2069 7473 206f 776e 2073 796e 7461 6374 its own syntact │ │ │ │ +000015d0: 6963 2073 7065 6369 6669 6369 7469 6573 ic specificities │ │ │ │ +000015e0: 2e20 2054 6865 2066 6f6c 6c6f 7769 6e67 . The following │ │ │ │ +000015f0: 2073 6563 7469 6f6e 7320 666f 6375 730a sections focus. │ │ │ │ +00001600: 7072 696d 6172 696c 7920 6f6e 2074 6869 primarily on thi │ │ │ │ +00001610: 7320 6361 7061 6269 6c69 7479 2e0a 0a20 s capability... │ │ │ │ +00001620: 2020 4265 666f 7265 2067 6f69 6e67 2069 Before going i │ │ │ │ +00001630: 6e74 6f20 7468 6520 6465 7461 696c 7320 nto the details │ │ │ │ +00001640: 6f66 2074 6865 2072 6561 6465 7220 6672 of the reader fr │ │ │ │ +00001650: 616d 6577 6f72 6b20 4150 492c 206c 6574 amework API, let │ │ │ │ +00001660: 2075 730a 6861 7665 2061 2071 7569 636b us.have a quick │ │ │ │ +00001670: 206f 7665 7276 6965 7720 6f66 2077 6861 overview of wha │ │ │ │ +00001680: 7420 7468 6973 2069 732e 2020 4261 7369 t this is. Basi │ │ │ │ +00001690: 6361 6c6c 792c 2047 7569 6c65 2d52 6561 cally, Guile-Rea │ │ │ │ +000016a0: 6465 720a 696e 7472 6f64 7563 6573 2074 der.introduces t │ │ │ │ +000016b0: 776f 206f 626a 6563 7473 3a20 e280 9c72 wo objects: ...r │ │ │ │ +000016c0: 6561 6465 7273 e280 9d20 616e 6420 e280 eaders... and .. │ │ │ │ +000016d0: 9c74 6f6b 656e 2072 6561 6465 7273 e280 .token readers.. │ │ │ │ +000016e0: 9d2e 2020 5265 6164 6572 7320 6361 6e20 .. Readers can │ │ │ │ +000016f0: 6265 0a74 686f 7567 6874 206f 662c 2073 be.thought of, s │ │ │ │ +00001700: 696d 706c 792c 2061 7320 7072 6f63 6564 imply, as proced │ │ │ │ +00001710: 7572 6573 206c 696b 6520 5363 6865 6d65 ures like Scheme │ │ │ │ +00001720: 2773 20e2 8098 7265 6164 e280 9920 282a 's ...read... (* │ │ │ │ +00001730: 6e6f 7465 2052 3552 533a 0a28 7235 7273 note R5RS:.(r5rs │ │ │ │ +00001740: 2949 6e70 7574 2e29 2c20 692e 652e 2c20 )Input.), i.e., │ │ │ │ +00001750: 7072 6f63 6564 7572 6573 2074 6861 7420 procedures that │ │ │ │ +00001760: 7461 6b65 206f 6e65 2028 6f70 7469 6f6e take one (option │ │ │ │ +00001770: 616c 2920 6172 6775 6d65 6e74 2c0a 6e61 al) argument,.na │ │ │ │ +00001780: 6d65 6c79 2074 6865 2070 6f72 7420 746f mely the port to │ │ │ │ +00001790: 2072 6561 6420 6672 6f6d 2e20 2057 6520 read from. We │ │ │ │ +000017a0: 7769 6c6c 2073 6565 206c 6174 6572 2074 will see later t │ │ │ │ +000017b0: 6861 7420 7265 6164 6572 7320 6173 2064 hat readers as d │ │ │ │ +000017c0: 6566 696e 6564 0a62 7920 4775 696c 652d efined.by Guile- │ │ │ │ +000017d0: 5265 6164 6572 2063 616e 2061 6374 7561 Reader can actua │ │ │ │ +000017e0: 6c6c 7920 7265 6365 6976 6520 7477 6f20 lly receive two │ │ │ │ +000017f0: 6d6f 7265 2061 7267 756d 656e 7473 2028 more arguments ( │ │ │ │ +00001800: 2a6e 6f74 6520 4465 6669 6e69 6e67 0a61 *note Defining.a │ │ │ │ +00001810: 204e 6577 2052 6561 6465 723a 3a29 2e20 New Reader::). │ │ │ │ +00001820: 2041 2072 6561 6465 722c 206c 696b 6520 A reader, like │ │ │ │ +00001830: e280 9872 6561 64e2 8099 2c20 7265 6164 ...read..., read │ │ │ │ +00001840: 7320 6120 7365 7175 656e 6365 206f 6620 s a sequence of │ │ │ │ +00001850: 6368 6172 6163 7465 7273 0a28 7468 6520 characters.(the │ │ │ │ +00001860: e280 9c65 7874 6572 6e61 6c20 7265 7072 ...external repr │ │ │ │ +00001870: 6573 656e 7461 7469 6f6e e280 9d20 6f66 esentation... of │ │ │ │ +00001880: 2073 6f6d 6520 6f62 6a65 6374 2920 616e some object) an │ │ │ │ +00001890: 6420 7265 7475 726e 7320 6120 5363 6865 d returns a Sche │ │ │ │ +000018a0: 6d65 0a6f 626a 6563 742e 0a0a 2020 2054 me.object... T │ │ │ │ +000018b0: 6f6b 656e 2072 6561 6465 7273 2028 5452 oken readers (TR │ │ │ │ +000018c0: 732c 2066 6f72 2073 686f 7274 2920 6172 s, for short) ar │ │ │ │ +000018d0: 6520 7468 6520 6275 696c 6469 6e67 2062 e the building b │ │ │ │ +000018e0: 6c6f 636b 206f 6620 6120 7265 6164 6572 lock of a reader │ │ │ │ +000018f0: 2e20 2041 0a74 6f6b 656e 2072 6561 6465 . A.token reade │ │ │ │ +00001900: 7220 6973 2062 6173 6963 616c 6c79 2061 r is basically a │ │ │ │ +00001910: 6e20 6173 736f 6369 6174 696f 6e20 6265 n association be │ │ │ │ +00001920: 7477 6565 6e20 6120 6368 6172 6163 7465 tween a characte │ │ │ │ +00001930: 7220 6f72 2073 6574 206f 660a 6368 6172 r or set of.char │ │ │ │ +00001940: 6163 7465 7273 2061 6e64 2061 2070 726f acters and a pro │ │ │ │ +00001950: 6365 6475 7265 2074 6f20 7265 6164 2061 cedure to read a │ │ │ │ +00001960: 6e64 2069 6e74 6572 7072 6574 2061 2073 nd interpret a s │ │ │ │ +00001970: 6571 7565 6e63 6520 6f66 0a63 6861 7261 equence of.chara │ │ │ │ +00001980: 6374 6572 7320 7374 6172 7469 6e67 2077 cters starting w │ │ │ │ +00001990: 6974 6820 6f6e 6520 6f66 2074 6865 2066 ith one of the f │ │ │ │ +000019a0: 6f72 6d65 722e 2020 466f 7220 696e 7374 ormer. For inst │ │ │ │ +000019b0: 616e 6365 2c20 696e 2061 2073 7461 6e64 ance, in a stand │ │ │ │ +000019c0: 6172 640a 5363 6865 6d65 2072 6561 6465 ard.Scheme reade │ │ │ │ +000019d0: 722c 2074 6865 2063 6861 7261 6374 6572 r, the character │ │ │ │ +000019e0: 20e2 8098 28e2 8099 206d 6179 2062 6520 ...(... may be │ │ │ │ +000019f0: 6173 736f 6369 6174 6564 2074 6f20 6120 associated to a │ │ │ │ +00001a00: 7072 6f63 6564 7572 6520 7468 6174 0a72 procedure that.r │ │ │ │ +00001a10: 6561 6473 2061 6e20 532d 6578 7072 6573 eads an S-expres │ │ │ │ +00001a20: 7369 6f6e 2e20 204c 696b 6577 6973 652c sion. Likewise, │ │ │ │ +00001a30: 206c 6f77 6572 2d63 6173 6520 616e 6420 lower-case and │ │ │ │ +00001a40: 7570 7065 722d 6361 7365 206c 6574 7465 upper-case lette │ │ │ │ +00001a50: 7273 0a61 7373 6f63 6961 7465 6420 7769 rs.associated wi │ │ │ │ +00001a60: 7468 2074 6865 2061 7070 726f 7072 6961 th the appropria │ │ │ │ +00001a70: 7465 2070 726f 6365 6475 7265 2066 6f72 te procedure for │ │ │ │ +00001a80: 6d20 6120 746f 6b65 6e20 7265 6164 6572 m a token reader │ │ │ │ +00001a90: 2066 6f72 0a73 796d 626f 6c73 2e0a 0a20 for.symbols... │ │ │ │ +00001aa0: 2020 496e 2047 7569 6c65 2d52 6561 6465 In Guile-Reade │ │ │ │ +00001ab0: 722c 2054 5273 206d 6179 2062 6520 7772 r, TRs may be wr │ │ │ │ +00001ac0: 6974 7465 6e20 6569 7468 6572 2069 6e20 itten either in │ │ │ │ +00001ad0: 5363 6865 6d65 206f 7220 696e 2043 2c20 Scheme or in C, │ │ │ │ +00001ae0: 616e 640a 7468 6579 2063 616e 2065 7665 and.they can eve │ │ │ │ +00001af0: 6e20 6265 2061 2072 6561 6465 7220 7072 n be a reader pr │ │ │ │ +00001b00: 6f64 7563 6564 2062 7920 4775 696c 652d oduced by Guile- │ │ │ │ +00001b10: 5265 6164 6572 2069 7473 656c 662e 2020 Reader itself. │ │ │ │ +00001b20: 556e 6c65 7373 2069 7420 6973 0a61 2072 Unless it is.a r │ │ │ │ +00001b30: 6561 6465 722c 2074 6865 2070 726f 6365 eader, the proce │ │ │ │ +00001b40: 6475 7265 2028 6f72 2043 2066 756e 6374 dure (or C funct │ │ │ │ +00001b50: 696f 6e29 2075 7365 6420 746f 2063 7265 ion) used to cre │ │ │ │ +00001b60: 6174 6520 6120 5452 2077 696c 6c20 7265 ate a TR will re │ │ │ │ +00001b70: 6365 6976 650a 666f 7572 2061 7267 756d ceive.four argum │ │ │ │ +00001b80: 656e 7473 3a0a 0a20 2020 e280 a220 7468 ents:.. ... th │ │ │ │ +00001b90: 6520 6368 6172 6163 7465 7220 7468 6174 e character that │ │ │ │ +00001ba0: 2077 6173 2072 6561 6420 616e 6420 7768 was read and wh │ │ │ │ +00001bb0: 6963 6820 7472 6967 6765 7265 6420 6974 ich triggered it │ │ │ │ +00001bc0: 7320 6361 6c6c 3b20 696e 2074 6865 0a20 s call; in the. │ │ │ │ +00001bd0: 2020 2020 532d 6578 7020 6578 616d 706c S-exp exampl │ │ │ │ +00001be0: 652c 2074 6869 7320 776f 756c 6420 6265 e, this would be │ │ │ │ +00001bf0: 20e2 8098 28e2 8099 3b0a 2020 20e2 80a2 ...(...;. ... │ │ │ │ +00001c00: 2074 6865 2070 6f72 7420 746f 2072 6561 the port to rea │ │ │ │ +00001c10: 6420 6672 6f6d 3b0a 2020 20e2 80a2 2074 d from;. ... t │ │ │ │ +00001c20: 6865 2072 6561 6465 7220 7768 6963 6820 he reader which │ │ │ │ +00001c30: 7065 7266 6f72 6d65 6420 7468 6973 2069 performed this i │ │ │ │ +00001c40: 6e76 6f63 6174 696f 6e3b 0a20 2020 e280 nvocation;. .. │ │ │ │ +00001c50: a220 7468 6520 746f 702d 6c65 7665 6c20 . the top-level │ │ │ │ +00001c60: 7265 6164 6572 2077 6869 6368 2079 6965 reader which yie │ │ │ │ +00001c70: 6c64 6564 2074 6869 7320 696e 766f 6361 lded this invoca │ │ │ │ +00001c80: 7469 6f6e 2e0a 0a20 2020 5468 6520 6e65 tion... The ne │ │ │ │ +00001c90: 7874 2073 6563 7469 6f6e 2073 686f 7773 xt section shows │ │ │ │ +00001ca0: 2068 6f77 2074 6f20 6765 7420 7374 6172 how to get star │ │ │ │ +00001cb0: 7465 6420 7769 7468 2047 7569 6c65 2d52 ted with Guile-R │ │ │ │ +00001cc0: 6561 6465 722c 2075 7369 6e67 2061 0a68 eader, using a.h │ │ │ │ +00001cd0: 6967 682d 6c65 7665 6c20 4150 492e 2044 igh-level API. D │ │ │ │ +00001ce0: 6574 6169 6c73 2061 626f 7574 206f 6620 etails about of │ │ │ │ +00001cf0: 7468 6520 7072 6f67 7261 6d6d 696e 6720 the programming │ │ │ │ +00001d00: 696e 7465 7266 6163 6520 6172 6520 6769 interface are gi │ │ │ │ +00001d10: 7665 6e20 696e 0a74 6865 2041 5049 2072 ven in.the API r │ │ │ │ +00001d20: 6566 6572 656e 6365 2028 2a6e 6f74 6520 eference (*note │ │ │ │ +00001d30: 4150 4920 5265 6665 7265 6e63 653a 3a29 API Reference::) │ │ │ │ +00001d40: 2e0a 0a1f 0a46 696c 653a 2067 7569 6c65 .....File: guile │ │ │ │ +00001d50: 2d72 6561 6465 722e 696e 666f 2c20 204e -reader.info, N │ │ │ │ +00001d60: 6f64 653a 2051 7569 636b 2053 7461 7274 ode: Quick Start │ │ │ │ +00001d70: 2c20 204e 6578 743a 2041 5049 2052 6566 , Next: API Ref │ │ │ │ +00001d80: 6572 656e 6365 2c20 2050 7265 763a 204f erence, Prev: O │ │ │ │ +00001d90: 7665 7276 6965 772c 2020 5570 3a20 546f verview, Up: To │ │ │ │ +00001da0: 700a 0a33 2051 7569 636b 2053 7461 7274 p..3 Quick Start │ │ │ │ +00001db0: 0a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 0a0a .*************.. │ │ │ │ +00001dc0: 5468 6520 7369 6d70 6c65 7374 2077 6179 The simplest way │ │ │ │ +00001dd0: 2074 6f20 6765 7420 7374 6172 7465 6420 to get started │ │ │ │ +00001de0: 616e 6420 746f 2070 726f 6475 6365 2063 and to produce c │ │ │ │ +00001df0: 7573 746f 6d69 7a65 6420 7265 6164 6572 ustomized reader │ │ │ │ +00001e00: 7320 6973 0a74 6872 6f75 6768 2074 6865 s is.through the │ │ │ │ +00001e10: 2068 6967 682d 6c65 7665 6c20 4150 4920 high-level API │ │ │ │ +00001e20: 7072 6f76 6964 6564 2062 7920 7468 6520 provided by the │ │ │ │ +00001e30: e280 9828 7379 7374 656d 2072 6561 6465 ...(system reade │ │ │ │ +00001e40: 7220 6c69 6272 6172 7929 e280 990a 6d6f r library)....mo │ │ │ │ +00001e50: 6475 6c65 2e20 2041 7320 7468 6520 6e61 dule. As the na │ │ │ │ +00001e60: 6d65 2073 7567 6765 7374 732c 2074 6869 me suggests, thi │ │ │ │ +00001e70: 7320 6d6f 6475 6c65 2070 726f 7669 6465 s module provide │ │ │ │ +00001e80: 7320 6120 6c69 6272 6172 7920 6f66 2072 s a library of r │ │ │ │ +00001e90: 6561 6469 6c79 0a75 7361 626c 6520 7265 eadily.usable re │ │ │ │ +00001ea0: 6164 6572 732e 2020 5468 6520 e280 986d aders. The ...m │ │ │ │ +00001eb0: 616b 652d 616c 7465 726e 6174 652d 6775 ake-alternate-gu │ │ │ │ +00001ec0: 696c 652d 7265 6164 6572 e280 9920 7072 ile-reader... pr │ │ │ │ +00001ed0: 6f63 6564 7572 6520 6769 7665 730a 6163 ocedure gives.ac │ │ │ │ +00001ee0: 6365 7373 2074 6f20 7468 6573 6520 7265 cess to these re │ │ │ │ +00001ef0: 6164 6572 732e 2020 4974 2063 616e 2062 aders. It can b │ │ │ │ +00001f00: 6520 7061 7373 6564 2061 206c 6973 7420 e passed a list │ │ │ │ +00001f10: 6f66 2073 796d 626f 6c73 2064 6573 6372 of symbols descr │ │ │ │ +00001f20: 6962 696e 670a 7265 6164 6572 206f 7074 ibing.reader opt │ │ │ │ +00001f30: 696f 6e73 2c20 7375 6368 2061 7320 7768 ions, such as wh │ │ │ │ +00001f40: 6574 6865 7220 796f 7520 7761 6e74 2073 ether you want s │ │ │ │ +00001f50: 7570 706f 7274 2066 6f72 2044 5353 534c upport for DSSSL │ │ │ │ +00001f60: 206b 6579 776f 7264 732c 0a53 5246 492d keywords,.SRFI- │ │ │ │ +00001f70: 3632 2063 6f6d 6d65 6e74 7320 2868 7474 62 comments (htt │ │ │ │ +00001f80: 703a 2f2f 7372 6669 2e73 6368 656d 6572 p://srfi.schemer │ │ │ │ +00001f90: 732e 6f72 672f 7372 6669 2d36 322f 7372 s.org/srfi-62/sr │ │ │ │ +00001fa0: 6669 2d36 322e 6874 6d6c 292c 0a53 5246 fi-62.html),.SRF │ │ │ │ +00001fb0: 492d 3330 2062 6c6f 636b 2063 6f6d 6d65 I-30 block comme │ │ │ │ +00001fc0: 6e74 7320 2868 7474 703a 2f2f 7372 6669 nts (http://srfi │ │ │ │ +00001fd0: 2e73 6368 656d 6572 732e 6f72 672f 7372 .schemers.org/sr │ │ │ │ +00001fe0: 6669 2d33 302f 7372 6669 2d33 302e 6874 fi-30/srfi-30.ht │ │ │ │ +00001ff0: 6d6c 292c 0a65 7463 2e0a 0a20 2020 5468 ml),.etc... Th │ │ │ │ +00002000: 6520 666f 6c6c 6f77 696e 6720 6578 616d e following exam │ │ │ │ +00002010: 706c 6520 6269 6e64 7320 746f 204d 592d ple binds to MY- │ │ │ │ +00002020: 5245 4144 4552 2061 2053 6368 656d 6520 READER a Scheme │ │ │ │ +00002030: 7265 6164 6572 2074 6861 740a 7375 7070 reader that.supp │ │ │ │ +00002040: 6f72 7473 2044 5353 534c 2d73 7479 6c65 orts DSSSL-style │ │ │ │ +00002050: 206b 6579 776f 7264 7320 616e 6420 5352 keywords and SR │ │ │ │ +00002060: 4649 2d36 3220 636f 6d6d 656e 7473 2c20 FI-62 comments, │ │ │ │ +00002070: 616e 6420 7468 6174 2069 7320 6361 7365 and that is case │ │ │ │ +00002080: 0a69 6e73 656e 7369 7469 7665 3a0a 0a20 .insensitive:.. │ │ │ │ +00002090: 2020 2020 2875 7365 2d6d 6f64 756c 6573 (use-modules │ │ │ │ +000020a0: 2028 7379 7374 656d 2072 6561 6465 7220 (system reader │ │ │ │ +000020b0: 6c69 6272 6172 7929 290a 0a20 2020 2020 library)).. │ │ │ │ +000020c0: 2864 6566 696e 6520 6d79 2d72 6561 6465 (define my-reade │ │ │ │ +000020d0: 720a 2020 2020 2020 2028 6d61 6b65 2d61 r. (make-a │ │ │ │ +000020e0: 6c74 6572 6e61 7465 2d67 7569 6c65 2d72 lternate-guile-r │ │ │ │ +000020f0: 6561 6465 7220 2728 6473 7373 6c2d 6b65 eader '(dsssl-ke │ │ │ │ +00002100: 7977 6f72 6473 0a20 2020 2020 2020 2020 ywords. │ │ │ │ 00002110: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00002120: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00002130: 2073 7266 6936 322d 7365 7870 2d63 6f6d srfi62-sexp-com │ │ │ │ -00002140: 6d65 6e74 730a 2020 2020 2020 2020 2020 ments. │ │ │ │ +00002120: 2020 2020 2020 2020 2020 2020 2073 7266 srf │ │ │ │ +00002130: 6936 322d 7365 7870 2d63 6f6d 6d65 6e74 i62-sexp-comment │ │ │ │ +00002140: 730a 2020 2020 2020 2020 2020 2020 2020 s. │ │ │ │ 00002150: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00002160: 2020 2020 2020 2020 2020 2020 6361 7365 case │ │ │ │ -00002170: 2d69 6e73 656e 7369 7469 7665 2929 290a -insensitive))). │ │ │ │ -00002180: 0a20 2020 5468 6973 2072 6561 6465 7220 . This reader │ │ │ │ -00002190: 6361 6e20 7468 656e 2062 6520 7573 6564 can then be used │ │ │ │ -000021a0: 206c 696b 6520 7468 6520 7265 6775 6c61 like the regula │ │ │ │ -000021b0: 7220 e280 9872 6561 64e2 8099 2070 726f r ...read... pro │ │ │ │ -000021c0: 6365 6475 7265 3a0a 0a20 2020 2020 2870 cedure:.. (p │ │ │ │ -000021d0: 726f 6365 6475 7265 3f20 6d79 2d72 6561 rocedure? my-rea │ │ │ │ -000021e0: 6465 7229 0a20 2020 2020 3d3e 2023 740a der). => #t. │ │ │ │ -000021f0: 0a20 2020 2020 2877 6974 682d 696e 7075 . (with-inpu │ │ │ │ -00002200: 742d 6672 6f6d 2d73 7472 696e 6720 2273 t-from-string "s │ │ │ │ -00002210: 6f6d 652d 7379 6d62 6f6c 2220 6d79 2d72 ome-symbol" my-r │ │ │ │ -00002220: 6561 6465 7229 0a20 2020 2020 3d3e 2073 eader). => s │ │ │ │ -00002230: 6f6d 652d 7379 6d62 6f6c 0a0a 2020 2020 ome-symbol.. │ │ │ │ -00002240: 2028 6d79 2d72 6561 6465 7220 286f 7065 (my-reader (ope │ │ │ │ -00002250: 6e2d 696e 7075 742d 7374 7269 6e67 2022 n-input-string " │ │ │ │ -00002260: 4d69 5865 442d 4361 5365 2229 290a 2020 MiXeD-CaSe")). │ │ │ │ -00002270: 2020 203d 3e20 6d69 7865 642d 6361 7365 => mixed-case │ │ │ │ -00002280: 0a0a 2020 2020 2028 6d79 2d72 6561 6465 .. (my-reade │ │ │ │ -00002290: 7220 286f 7065 6e2d 696e 7075 742d 7374 r (open-input-st │ │ │ │ -000022a0: 7269 6e67 2022 2861 6e20 7365 7870 2077 ring "(an sexp w │ │ │ │ -000022b0: 6974 6820 6120 233b 7372 6669 2d36 3220 ith a #;srfi-62 │ │ │ │ -000022c0: 636f 6d6d 656e 7429 2229 290a 2020 2020 comment)")). │ │ │ │ -000022d0: 203d 3e20 2861 6e20 7365 7870 2077 6974 => (an sexp wit │ │ │ │ -000022e0: 6820 6120 636f 6d6d 656e 7429 0a0a 2020 h a comment).. │ │ │ │ -000022f0: 2020 2028 6d79 2d72 6561 6465 7220 286f (my-reader (o │ │ │ │ -00002300: 7065 6e2d 696e 7075 742d 7374 7269 6e67 pen-input-string │ │ │ │ -00002310: 2022 2321 736f 6d65 2d44 5353 534c 2d6b "#!some-DSSSL-k │ │ │ │ -00002320: 6579 776f 7264 2229 290a 2020 2020 203d eyword")). = │ │ │ │ -00002330: 3e20 233a 736f 6d65 2d64 7373 736c 2d6b > #:some-dsssl-k │ │ │ │ -00002340: 6579 776f 7264 0a0a 2020 204d 6f73 7420 eyword.. Most │ │ │ │ -00002350: 6f66 2074 6865 2074 696d 652c 2079 6f75 of the time, you │ │ │ │ -00002360: 2077 696c 6c20 7761 6e74 2074 6f20 7573 will want to us │ │ │ │ -00002370: 6520 6974 2061 7320 7468 6520 6375 7272 e it as the curr │ │ │ │ -00002380: 656e 7420 7265 6164 6572 2c20 6174 0a6c ent reader, at.l │ │ │ │ -00002390: 6561 7374 2069 6e20 7468 6520 6d6f 6475 east in the modu │ │ │ │ -000023a0: 6c65 2077 6865 7265 2079 6f75 2063 7265 le where you cre │ │ │ │ -000023b0: 6174 6564 2069 742e 2020 466f 7274 756e ated it. Fortun │ │ │ │ -000023c0: 6174 656c 792c 2047 7569 6c65 2070 726f ately, Guile pro │ │ │ │ -000023d0: 7669 6465 7320 610a 6d65 6368 616e 6973 vides a.mechanis │ │ │ │ -000023e0: 6d20 666f 7220 7468 6973 2c20 7468 6520 m for this, the │ │ │ │ -000023f0: e280 9863 7572 7265 6e74 2d72 6561 6465 ...current-reade │ │ │ │ -00002400: 72e2 8099 2066 6c75 6964 2028 2a6e 6f74 r... fluid (*not │ │ │ │ -00002410: 6520 e280 9863 7572 7265 6e74 2d72 6561 e ...current-rea │ │ │ │ -00002420: 6465 72e2 8099 3a0a 2867 7569 6c65 294c der...:.(guile)L │ │ │ │ -00002430: 6f61 6469 6e67 2e29 2e20 2043 6861 6e67 oading.). Chang │ │ │ │ -00002440: 696e 6720 7468 6520 7661 6c75 6520 6f66 ing the value of │ │ │ │ -00002450: 2074 6869 7320 666c 7569 6420 6672 6f6d this fluid from │ │ │ │ -00002460: 2061 2066 696c 6520 7468 6174 2069 730a a file that is. │ │ │ │ -00002470: 6265 696e 6720 6c6f 6164 6564 2077 696c being loaded wil │ │ │ │ -00002480: 6c20 6166 6665 6374 2074 6865 2072 6561 l affect the rea │ │ │ │ -00002490: 6465 7220 7573 6520 746f 206c 6f61 6420 der use to load │ │ │ │ -000024a0: 6974 2e20 2049 6e20 6765 6e65 7261 6c2c it. In general, │ │ │ │ -000024b0: 2079 6f75 0a77 696c 6c20 7761 6e74 2074 you.will want t │ │ │ │ -000024c0: 6f20 6d6f 6469 6679 20e2 8098 6375 7272 o modify ...curr │ │ │ │ -000024d0: 656e 742d 7265 6164 6572 e280 9920 6e6f ent-reader... no │ │ │ │ -000024e0: 7420 6f6e 6c79 2061 7420 7275 6e20 7469 t only at run ti │ │ │ │ -000024f0: 6d65 2c20 6275 7420 616c 736f 2061 740a me, but also at. │ │ │ │ -00002500: 636f 6d70 696c 6520 7469 6d65 2061 6e64 compile time and │ │ │ │ -00002510: 2077 6865 6e20 7468 6520 636f 6465 2069 when the code i │ │ │ │ -00002520: 7320 6576 616c 7561 7465 642c 2077 6869 s evaluated, whi │ │ │ │ -00002530: 6368 2063 616e 2062 6520 6163 6869 6576 ch can be achiev │ │ │ │ -00002540: 6564 2075 7369 6e67 0ae2 8098 6576 616c ed using....eval │ │ │ │ -00002550: 2d77 6865 6ee2 8099 2028 2a6e 6f74 6520 -when... (*note │ │ │ │ -00002560: e280 9865 7661 6c2d 7768 656e e280 993a ...eval-when...: │ │ │ │ -00002570: 2028 6775 696c 6529 4576 616c 2057 6865 (guile)Eval Whe │ │ │ │ -00002580: 6e2e 292e 2020 466f 7220 696e 7374 616e n.). For instan │ │ │ │ -00002590: 6365 3a0a 0a20 2020 2020 3b3b 3b20 5468 ce:.. ;;; Th │ │ │ │ -000025a0: 6973 2069 7320 7468 6520 6265 6769 6e6e is is the beginn │ │ │ │ -000025b0: 696e 6720 6f66 206d 7920 5363 6865 6d65 ing of my Scheme │ │ │ │ -000025c0: 2066 696c 652e 2020 4174 2074 6869 7320 file. At this │ │ │ │ -000025d0: 706f 696e 742c 2047 7569 6c65 2773 0a20 point, Guile's. │ │ │ │ -000025e0: 2020 2020 3b3b 3b20 6465 6661 756c 7420 ;;; default │ │ │ │ -000025f0: 7265 6164 6572 2069 7320 7573 6564 2028 reader is used ( │ │ │ │ -00002600: 6f72 2c20 616c 7465 726e 6174 6976 656c or, alternativel │ │ │ │ -00002610: 792c 2074 6865 206f 6e65 2074 6861 7420 y, the one that │ │ │ │ -00002620: 7761 730a 2020 2020 203b 3b3b 2070 6173 was. ;;; pas │ │ │ │ -00002630: 7365 6420 6173 2061 2073 6563 6f6e 6420 sed as a second │ │ │ │ -00002640: 7061 7261 6d65 7465 7220 746f 2060 6c6f parameter to `lo │ │ │ │ -00002650: 6164 2729 2e20 2053 6f2c 2066 6f72 2069 ad'). So, for i │ │ │ │ -00002660: 6e73 7461 6e63 652c 2044 5353 534c 0a20 nstance, DSSSL. │ │ │ │ -00002670: 2020 2020 3b3b 3b20 6b65 7977 6f72 6473 ;;; keywords │ │ │ │ -00002680: 2061 7265 205f 6e6f 745f 2072 6563 6f67 are _not_ recog │ │ │ │ -00002690: 6e69 7a65 642e 0a0a 2020 2020 203b 3b20 nized... ;; │ │ │ │ -000026a0: 4c65 7427 7320 6372 6561 7465 206f 7572 Let's create our │ │ │ │ -000026b0: 206f 776e 2063 7573 746f 6d69 7a65 6420 own customized │ │ │ │ -000026c0: 7265 6164 6572 2e2e 2e0a 2020 2020 2028 reader.... ( │ │ │ │ -000026d0: 7573 652d 6d6f 6475 6c65 7320 2873 7973 use-modules (sys │ │ │ │ -000026e0: 7465 6d20 7265 6164 6572 206c 6962 7261 tem reader libra │ │ │ │ -000026f0: 7279 2929 0a0a 2020 2020 203b 3b20 2765 ry)).. ;; 'e │ │ │ │ -00002700: 7661 6c2d 7768 656e 2720 6865 7265 2069 val-when' here i │ │ │ │ -00002710: 7320 6e65 6564 6564 2074 6f20 6d61 6b65 s needed to make │ │ │ │ -00002720: 2027 6d79 2d72 6561 6465 7227 2061 6363 'my-reader' acc │ │ │ │ -00002730: 6573 7369 626c 6520 6174 0a20 2020 2020 essible at. │ │ │ │ -00002740: 3b3b 2063 6f6d 7069 6c65 2074 696d 652c ;; compile time, │ │ │ │ -00002750: 2061 6e64 2074 6f20 6861 7665 2074 6865 and to have the │ │ │ │ -00002760: 2027 6375 7272 656e 742d 7265 6164 6572 'current-reader │ │ │ │ -00002770: 2720 6368 616e 6765 2074 616b 650a 2020 ' change take. │ │ │ │ -00002780: 2020 203b 3b20 6566 6665 6374 2061 7420 ;; effect at │ │ │ │ -00002790: 636f 6d70 696c 6520 7469 6d65 2e0a 2020 compile time.. │ │ │ │ -000027a0: 2020 2028 6576 616c 2d77 6865 6e20 2863 (eval-when (c │ │ │ │ -000027b0: 6f6d 7069 6c65 206c 6f61 6420 6576 616c ompile load eval │ │ │ │ -000027c0: 290a 2020 2020 2020 2028 6465 6669 6e65 ). (define │ │ │ │ -000027d0: 206d 792d 7265 6164 6572 0a20 2020 2020 my-reader. │ │ │ │ -000027e0: 2020 2020 286d 616b 652d 616c 7465 726e (make-altern │ │ │ │ -000027f0: 6174 652d 6775 696c 652d 7265 6164 6572 ate-guile-reader │ │ │ │ -00002800: 2027 2864 7373 736c 2d6b 6579 776f 7264 '(dsssl-keyword │ │ │ │ -00002810: 730a 2020 2020 2020 2020 2020 2020 2020 s. │ │ │ │ +00002160: 2020 2020 2020 2020 6361 7365 2d69 6e73 case-ins │ │ │ │ +00002170: 656e 7369 7469 7665 2929 290a 0a20 2020 ensitive))).. │ │ │ │ +00002180: 5468 6973 2072 6561 6465 7220 6361 6e20 This reader can │ │ │ │ +00002190: 7468 656e 2062 6520 7573 6564 206c 696b then be used lik │ │ │ │ +000021a0: 6520 7468 6520 7265 6775 6c61 7220 e280 e the regular .. │ │ │ │ +000021b0: 9872 6561 64e2 8099 2070 726f 6365 6475 .read... procedu │ │ │ │ +000021c0: 7265 3a0a 0a20 2020 2020 2870 726f 6365 re:.. (proce │ │ │ │ +000021d0: 6475 7265 3f20 6d79 2d72 6561 6465 7229 dure? my-reader) │ │ │ │ +000021e0: 0a20 2020 2020 3d3e 2023 740a 0a20 2020 . => #t.. │ │ │ │ +000021f0: 2020 2877 6974 682d 696e 7075 742d 6672 (with-input-fr │ │ │ │ +00002200: 6f6d 2d73 7472 696e 6720 2273 6f6d 652d om-string "some- │ │ │ │ +00002210: 7379 6d62 6f6c 2220 6d79 2d72 6561 6465 symbol" my-reade │ │ │ │ +00002220: 7229 0a20 2020 2020 3d3e 2073 6f6d 652d r). => some- │ │ │ │ +00002230: 7379 6d62 6f6c 0a0a 2020 2020 2028 6d79 symbol.. (my │ │ │ │ +00002240: 2d72 6561 6465 7220 286f 7065 6e2d 696e -reader (open-in │ │ │ │ +00002250: 7075 742d 7374 7269 6e67 2022 4d69 5865 put-string "MiXe │ │ │ │ +00002260: 442d 4361 5365 2229 290a 2020 2020 203d D-CaSe")). = │ │ │ │ +00002270: 3e20 6d69 7865 642d 6361 7365 0a0a 2020 > mixed-case.. │ │ │ │ +00002280: 2020 2028 6d79 2d72 6561 6465 7220 286f (my-reader (o │ │ │ │ +00002290: 7065 6e2d 696e 7075 742d 7374 7269 6e67 pen-input-string │ │ │ │ +000022a0: 2022 2861 6e20 7365 7870 2077 6974 6820 "(an sexp with │ │ │ │ +000022b0: 6120 233b 7372 6669 2d36 3220 636f 6d6d a #;srfi-62 comm │ │ │ │ +000022c0: 656e 7429 2229 290a 2020 2020 203d 3e20 ent)")). => │ │ │ │ +000022d0: 2861 6e20 7365 7870 2077 6974 6820 6120 (an sexp with a │ │ │ │ +000022e0: 636f 6d6d 656e 7429 0a0a 2020 2020 2028 comment).. ( │ │ │ │ +000022f0: 6d79 2d72 6561 6465 7220 286f 7065 6e2d my-reader (open- │ │ │ │ +00002300: 696e 7075 742d 7374 7269 6e67 2022 2321 input-string "#! │ │ │ │ +00002310: 736f 6d65 2d44 5353 534c 2d6b 6579 776f some-DSSSL-keywo │ │ │ │ +00002320: 7264 2229 290a 2020 2020 203d 3e20 233a rd")). => #: │ │ │ │ +00002330: 736f 6d65 2d64 7373 736c 2d6b 6579 776f some-dsssl-keywo │ │ │ │ +00002340: 7264 0a0a 2020 204d 6f73 7420 6f66 2074 rd.. Most of t │ │ │ │ +00002350: 6865 2074 696d 652c 2079 6f75 2077 696c he time, you wil │ │ │ │ +00002360: 6c20 7761 6e74 2074 6f20 7573 6520 6974 l want to use it │ │ │ │ +00002370: 2061 7320 7468 6520 6375 7272 656e 7420 as the current │ │ │ │ +00002380: 7265 6164 6572 2c20 6174 0a6c 6561 7374 reader, at.least │ │ │ │ +00002390: 2069 6e20 7468 6520 6d6f 6475 6c65 2077 in the module w │ │ │ │ +000023a0: 6865 7265 2079 6f75 2063 7265 6174 6564 here you created │ │ │ │ +000023b0: 2069 742e 2020 466f 7274 756e 6174 656c it. Fortunatel │ │ │ │ +000023c0: 792c 2047 7569 6c65 2070 726f 7669 6465 y, Guile provide │ │ │ │ +000023d0: 7320 610a 6d65 6368 616e 6973 6d20 666f s a.mechanism fo │ │ │ │ +000023e0: 7220 7468 6973 2c20 7468 6520 e280 9863 r this, the ...c │ │ │ │ +000023f0: 7572 7265 6e74 2d72 6561 6465 72e2 8099 urrent-reader... │ │ │ │ +00002400: 2066 6c75 6964 2028 2a6e 6f74 6520 e280 fluid (*note .. │ │ │ │ +00002410: 9863 7572 7265 6e74 2d72 6561 6465 72e2 .current-reader. │ │ │ │ +00002420: 8099 3a0a 2867 7569 6c65 294c 6f61 6469 ..:.(guile)Loadi │ │ │ │ +00002430: 6e67 2e29 2e20 2043 6861 6e67 696e 6720 ng.). Changing │ │ │ │ +00002440: 7468 6520 7661 6c75 6520 6f66 2074 6869 the value of thi │ │ │ │ +00002450: 7320 666c 7569 6420 6672 6f6d 2061 2066 s fluid from a f │ │ │ │ +00002460: 696c 6520 7468 6174 2069 730a 6265 696e ile that is.bein │ │ │ │ +00002470: 6720 6c6f 6164 6564 2077 696c 6c20 6166 g loaded will af │ │ │ │ +00002480: 6665 6374 2074 6865 2072 6561 6465 7220 fect the reader │ │ │ │ +00002490: 7573 6520 746f 206c 6f61 6420 6974 2e20 use to load it. │ │ │ │ +000024a0: 2049 6e20 6765 6e65 7261 6c2c 2079 6f75 In general, you │ │ │ │ +000024b0: 0a77 696c 6c20 7761 6e74 2074 6f20 6d6f .will want to mo │ │ │ │ +000024c0: 6469 6679 20e2 8098 6375 7272 656e 742d dify ...current- │ │ │ │ +000024d0: 7265 6164 6572 e280 9920 6e6f 7420 6f6e reader... not on │ │ │ │ +000024e0: 6c79 2061 7420 7275 6e20 7469 6d65 2c20 ly at run time, │ │ │ │ +000024f0: 6275 7420 616c 736f 2061 740a 636f 6d70 but also at.comp │ │ │ │ +00002500: 696c 6520 7469 6d65 2061 6e64 2077 6865 ile time and whe │ │ │ │ +00002510: 6e20 7468 6520 636f 6465 2069 7320 6576 n the code is ev │ │ │ │ +00002520: 616c 7561 7465 642c 2077 6869 6368 2063 aluated, which c │ │ │ │ +00002530: 616e 2062 6520 6163 6869 6576 6564 2075 an be achieved u │ │ │ │ +00002540: 7369 6e67 0ae2 8098 6576 616c 2d77 6865 sing....eval-whe │ │ │ │ +00002550: 6ee2 8099 2028 2a6e 6f74 6520 e280 9865 n... (*note ...e │ │ │ │ +00002560: 7661 6c2d 7768 656e e280 993a 2028 6775 val-when...: (gu │ │ │ │ +00002570: 696c 6529 4576 616c 2057 6865 6e2e 292e ile)Eval When.). │ │ │ │ +00002580: 2020 466f 7220 696e 7374 616e 6365 3a0a For instance:. │ │ │ │ +00002590: 0a20 2020 2020 3b3b 3b20 5468 6973 2069 . ;;; This i │ │ │ │ +000025a0: 7320 7468 6520 6265 6769 6e6e 696e 6720 s the beginning │ │ │ │ +000025b0: 6f66 206d 7920 5363 6865 6d65 2066 696c of my Scheme fil │ │ │ │ +000025c0: 652e 2020 4174 2074 6869 7320 706f 696e e. At this poin │ │ │ │ +000025d0: 742c 2047 7569 6c65 2773 0a20 2020 2020 t, Guile's. │ │ │ │ +000025e0: 3b3b 3b20 6465 6661 756c 7420 7265 6164 ;;; default read │ │ │ │ +000025f0: 6572 2069 7320 7573 6564 2028 6f72 2c20 er is used (or, │ │ │ │ +00002600: 616c 7465 726e 6174 6976 656c 792c 2074 alternatively, t │ │ │ │ +00002610: 6865 206f 6e65 2074 6861 7420 7761 730a he one that was. │ │ │ │ +00002620: 2020 2020 203b 3b3b 2070 6173 7365 6420 ;;; passed │ │ │ │ +00002630: 6173 2061 2073 6563 6f6e 6420 7061 7261 as a second para │ │ │ │ +00002640: 6d65 7465 7220 746f 2060 6c6f 6164 2729 meter to `load') │ │ │ │ +00002650: 2e20 2053 6f2c 2066 6f72 2069 6e73 7461 . So, for insta │ │ │ │ +00002660: 6e63 652c 2044 5353 534c 0a20 2020 2020 nce, DSSSL. │ │ │ │ +00002670: 3b3b 3b20 6b65 7977 6f72 6473 2061 7265 ;;; keywords are │ │ │ │ +00002680: 205f 6e6f 745f 2072 6563 6f67 6e69 7a65 _not_ recognize │ │ │ │ +00002690: 642e 0a0a 2020 2020 203b 3b20 4c65 7427 d... ;; Let' │ │ │ │ +000026a0: 7320 6372 6561 7465 206f 7572 206f 776e s create our own │ │ │ │ +000026b0: 2063 7573 746f 6d69 7a65 6420 7265 6164 customized read │ │ │ │ +000026c0: 6572 2e2e 2e0a 2020 2020 2028 7573 652d er.... (use- │ │ │ │ +000026d0: 6d6f 6475 6c65 7320 2873 7973 7465 6d20 modules (system │ │ │ │ +000026e0: 7265 6164 6572 206c 6962 7261 7279 2929 reader library)) │ │ │ │ +000026f0: 0a0a 2020 2020 203b 3b20 2765 7661 6c2d .. ;; 'eval- │ │ │ │ +00002700: 7768 656e 2720 6865 7265 2069 7320 6e65 when' here is ne │ │ │ │ +00002710: 6564 6564 2074 6f20 6d61 6b65 2027 6d79 eded to make 'my │ │ │ │ +00002720: 2d72 6561 6465 7227 2061 6363 6573 7369 -reader' accessi │ │ │ │ +00002730: 626c 6520 6174 0a20 2020 2020 3b3b 2063 ble at. ;; c │ │ │ │ +00002740: 6f6d 7069 6c65 2074 696d 652c 2061 6e64 ompile time, and │ │ │ │ +00002750: 2074 6f20 6861 7665 2074 6865 2027 6375 to have the 'cu │ │ │ │ +00002760: 7272 656e 742d 7265 6164 6572 2720 6368 rrent-reader' ch │ │ │ │ +00002770: 616e 6765 2074 616b 650a 2020 2020 203b ange take. ; │ │ │ │ +00002780: 3b20 6566 6665 6374 2061 7420 636f 6d70 ; effect at comp │ │ │ │ +00002790: 696c 6520 7469 6d65 2e0a 2020 2020 2028 ile time.. ( │ │ │ │ +000027a0: 6576 616c 2d77 6865 6e20 2863 6f6d 7069 eval-when (compi │ │ │ │ +000027b0: 6c65 206c 6f61 6420 6576 616c 290a 2020 le load eval). │ │ │ │ +000027c0: 2020 2020 2028 6465 6669 6e65 206d 792d (define my- │ │ │ │ +000027d0: 7265 6164 6572 0a20 2020 2020 2020 2020 reader. │ │ │ │ +000027e0: 286d 616b 652d 616c 7465 726e 6174 652d (make-alternate- │ │ │ │ +000027f0: 6775 696c 652d 7265 6164 6572 2027 2864 guile-reader '(d │ │ │ │ +00002800: 7373 736c 2d6b 6579 776f 7264 730a 2020 sssl-keywords. │ │ │ │ +00002810: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00002820: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00002830: 2020 2020 2020 2020 2020 7372 6669 3632 srfi62 │ │ │ │ -00002840: 2d73 6578 702d 636f 6d6d 656e 7473 0a20 -sexp-comments. │ │ │ │ +00002830: 2020 2020 2020 7372 6669 3632 2d73 6578 srfi62-sex │ │ │ │ +00002840: 702d 636f 6d6d 656e 7473 0a20 2020 2020 p-comments. │ │ │ │ 00002850: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00002860: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00002870: 2020 2020 2020 2063 6173 652d 696e 7365 case-inse │ │ │ │ -00002880: 6e73 6974 6976 6529 2929 0a0a 2020 2020 nsitive))).. │ │ │ │ -00002890: 2020 203b 3b20 4c65 7427 7320 6d61 6b65 ;; Let's make │ │ │ │ -000028a0: 2069 7420 7468 6520 6375 7272 656e 7420 it the current │ │ │ │ -000028b0: 7265 6164 6572 2e0a 2020 2020 2020 2028 reader.. ( │ │ │ │ -000028c0: 666c 7569 642d 7365 7421 2063 7572 7265 fluid-set! curre │ │ │ │ -000028d0: 6e74 2d72 6561 6465 7220 6d79 2d72 6561 nt-reader my-rea │ │ │ │ -000028e0: 6465 7229 290a 0a20 2020 2020 3b3b 2046 der)).. ;; F │ │ │ │ -000028f0: 726f 6d20 6e6f 7720 6f6e 2c20 4d59 2d52 rom now on, MY-R │ │ │ │ -00002900: 4541 4445 5220 6973 2075 7365 6420 746f EADER is used to │ │ │ │ -00002910: 2072 6561 6420 7468 6520 7265 7374 206f read the rest o │ │ │ │ -00002920: 6620 7468 6973 2066 696c 652e 2020 5468 f this file. Th │ │ │ │ -00002930: 7573 0a20 2020 2020 3b3b 2077 6520 6361 us. ;; we ca │ │ │ │ -00002940: 6e20 6861 7070 696c 7920 7573 6520 7468 n happily use th │ │ │ │ -00002950: 6520 7379 6e74 6163 7469 6320 6578 7465 e syntactic exte │ │ │ │ -00002960: 6e73 696f 6e73 2069 7420 696d 706c 656d nsions it implem │ │ │ │ -00002970: 656e 7473 3a20 4453 5353 4c0a 2020 2020 ents: DSSSL. │ │ │ │ -00002980: 203b 3b20 6b65 7977 6f72 6473 2c20 5352 ;; keywords, SR │ │ │ │ -00002990: 4649 2d36 3220 636f 6d6d 656e 7473 2061 FI-62 comments a │ │ │ │ -000029a0: 6e64 2063 6173 652d 696e 7365 6e73 6974 nd case-insensit │ │ │ │ -000029b0: 6976 6974 792e 0a0a 2020 2020 2028 6966 ivity... (if │ │ │ │ -000029c0: 2028 6e6f 7420 286b 6579 776f 7264 3f20 (not (keyword? │ │ │ │ -000029d0: 2321 6473 7373 6c2d 6b65 7977 6f72 6429 #!dsssl-keyword) │ │ │ │ -000029e0: 290a 2020 2020 2020 2020 2028 6572 726f ). (erro │ │ │ │ -000029f0: 7220 2253 6f6d 6574 6869 6e67 2077 656e r "Something wen │ │ │ │ -00002a00: 7420 7772 6f6e 672c 2074 6869 7320 7368 t wrong, this sh │ │ │ │ -00002a10: 6f75 6c64 206e 6f74 2068 6170 7065 6e21 ould not happen! │ │ │ │ -00002a20: 2229 290a 0a20 2020 5468 6520 6e69 6365 ")).. The nice │ │ │ │ -00002a30: 2074 6869 6e67 2069 7320 7468 6174 20e2 thing is that . │ │ │ │ -00002a40: 8098 6375 7272 656e 742d 7265 6164 6572 ..current-reader │ │ │ │ -00002a50: e280 9920 6973 2072 6573 6574 2074 6f20 ... is reset to │ │ │ │ -00002a60: 6974 7320 696e 6974 6961 6c20 7661 6c75 its initial valu │ │ │ │ -00002a70: 650a 7768 656e 2074 6865 2064 796e 616d e.when the dynam │ │ │ │ -00002a80: 6963 2065 7874 656e 7420 6f66 20e2 8098 ic extent of ... │ │ │ │ -00002a90: 6c6f 6164 e280 9920 6973 206c 6566 742e load... is left. │ │ │ │ -00002aa0: 2020 496e 206f 7468 6572 2077 6f72 6473 In other words │ │ │ │ -00002ab0: 2c20 7468 6520 6c6f 6164 6572 0a6f 6620 , the loader.of │ │ │ │ -00002ac0: 7468 6520 6669 6c65 2061 626f 7665 2069 the file above i │ │ │ │ -00002ad0: 7320 5f6e 6f74 5f20 6166 6665 6374 6564 s _not_ affected │ │ │ │ -00002ae0: 2062 7920 7468 6520 e280 9866 6c75 6964 by the ...fluid │ │ │ │ -00002af0: 2d73 6574 21e2 8099 2073 7461 7465 6d65 -set!... stateme │ │ │ │ -00002b00: 6e74 2e0a 5265 6164 6572 2063 6861 6e67 nt..Reader chang │ │ │ │ -00002b10: 6573 2061 7265 205f 6879 6769 656e 6963 es are _hygienic │ │ │ │ -00002b20: 5f20 616e 6420 6d6f 6475 6c65 7320 6361 _ and modules ca │ │ │ │ -00002b30: 6e20 7573 6520 7468 6569 7220 6f77 6e20 n use their own │ │ │ │ -00002b40: 7769 7468 6f75 740a 7269 736b 696e 6720 without.risking │ │ │ │ -00002b50: 746f 2068 6172 6d20 6561 6368 206f 7468 to harm each oth │ │ │ │ -00002b60: 6572 2e0a 0a20 2020 5468 6520 6675 6c6c er... The full │ │ │ │ -00002b70: 206c 6973 7420 6f66 206f 7074 696f 6e73 list of options │ │ │ │ -00002b80: 2073 7570 706f 7274 6564 2062 7920 e280 supported by .. │ │ │ │ -00002b90: 986d 616b 652d 616c 7465 726e 6174 652d .make-alternate- │ │ │ │ -00002ba0: 6775 696c 652d 7265 6164 6572 e280 990a guile-reader.... │ │ │ │ -00002bb0: 6973 2073 686f 776e 2069 6e20 2a6e 6f74 is shown in *not │ │ │ │ -00002bc0: 6520 5265 6164 6572 204c 6962 7261 7279 e Reader Library │ │ │ │ -00002bd0: 3a3a 2e20 2048 6f77 6576 6572 2c20 7468 ::. However, th │ │ │ │ -00002be0: 6973 206f 7074 696f 6e20 7365 7420 6973 is option set is │ │ │ │ -00002bf0: 2071 7569 7465 0a6c 696d 6974 6564 2061 quite.limited a │ │ │ │ -00002c00: 6e64 2079 6f75 206d 6179 2066 696e 6420 nd you may find │ │ │ │ -00002c10: 796f 7572 7365 6c66 2077 616e 7469 6e67 yourself wanting │ │ │ │ -00002c20: 2061 2073 796e 7461 6374 6963 2065 7874 a syntactic ext │ │ │ │ -00002c30: 656e 7369 6f6e 206e 6f74 0a61 7661 696c ension not.avail │ │ │ │ -00002c40: 6162 6c65 2068 6572 652e 2020 496e 2074 able here. In t │ │ │ │ -00002c50: 6861 7420 6361 7365 2c20 796f 7520 7769 hat case, you wi │ │ │ │ -00002c60: 6c6c 2077 616e 7420 746f 2062 7569 6c64 ll want to build │ │ │ │ -00002c70: 2061 206e 6577 2072 6561 6465 722c 0a70 a new reader,.p │ │ │ │ -00002c80: 6f73 7369 626c 7920 7265 7573 696e 6720 ossibly reusing │ │ │ │ -00002c90: 6578 6973 7469 6e67 2072 6561 6465 7220 existing reader │ │ │ │ -00002ca0: 636f 6d70 6f6e 656e 7473 206b 6e6f 776e components known │ │ │ │ -00002cb0: 2061 7320 e280 9c74 6f6b 656e 2072 6561 as ...token rea │ │ │ │ -00002cc0: 6465 7273 e280 9d2c 2061 730a 6465 7363 ders..., as.desc │ │ │ │ -00002cd0: 7269 6265 6420 696e 202a 6e6f 7465 2044 ribed in *note D │ │ │ │ -00002ce0: 6566 696e 696e 6720 6120 4e65 7720 5265 efining a New Re │ │ │ │ -00002cf0: 6164 6572 3a3a 2e0a 0a1f 0a46 696c 653a ader::.....File: │ │ │ │ -00002d00: 2067 7569 6c65 2d72 6561 6465 722e 696e guile-reader.in │ │ │ │ -00002d10: 666f 2c20 204e 6f64 653a 2041 5049 2052 fo, Node: API R │ │ │ │ -00002d20: 6566 6572 656e 6365 2c20 204e 6578 743a eference, Next: │ │ │ │ -00002d30: 2049 6e74 6572 6e61 6c73 2c20 2050 7265 Internals, Pre │ │ │ │ -00002d40: 763a 2051 7569 636b 2053 7461 7274 2c20 v: Quick Start, │ │ │ │ -00002d50: 2055 703a 2054 6f70 0a0a 3420 4150 4920 Up: Top..4 API │ │ │ │ -00002d60: 5265 6665 7265 6e63 650a 2a2a 2a2a 2a2a Reference.****** │ │ │ │ -00002d70: 2a2a 2a2a 2a2a 2a2a 2a0a 0a41 6c6c 2074 *********..All t │ │ │ │ -00002d80: 6865 2053 6368 656d 6520 7072 6f63 6564 he Scheme proced │ │ │ │ -00002d90: 7572 6573 2064 6573 6372 6962 6564 2062 ures described b │ │ │ │ -00002da0: 656c 6f77 2061 7265 2065 7870 6f72 7465 elow are exporte │ │ │ │ -00002db0: 6420 6279 2074 6865 20e2 8098 2873 7973 d by the ...(sys │ │ │ │ -00002dc0: 7465 6d0a 7265 6164 6572 29e2 8099 206d tem.reader)... m │ │ │ │ -00002dd0: 6f64 756c 652e 2020 496e 206f 7264 6572 odule. In order │ │ │ │ -00002de0: 2074 6f20 6265 2061 626c 6520 746f 2075 to be able to u │ │ │ │ -00002df0: 7365 2074 6865 6d2c 2079 6f75 2077 696c se them, you wil │ │ │ │ -00002e00: 6c20 6e65 6564 2074 6f0a 696d 706f 7274 l need to.import │ │ │ │ -00002e10: 2074 6869 7320 6d6f 6475 6c65 2066 6972 this module fir │ │ │ │ -00002e20: 7374 3a0a 0a20 2020 2020 2875 7365 2d6d st:.. (use-m │ │ │ │ -00002e30: 6f64 756c 6573 2028 7379 7374 656d 2072 odules (system r │ │ │ │ -00002e40: 6561 6465 7229 290a 0a20 2020 4120 4320 eader)).. A C │ │ │ │ -00002e50: 7661 7269 616e 7420 6973 2061 6c73 6f20 variant is also │ │ │ │ -00002e60: 6176 6169 6c61 626c 6520 666f 7220 6d6f available for mo │ │ │ │ -00002e70: 7374 206f 6620 7468 656d 2062 7920 696e st of them by in │ │ │ │ -00002e80: 636c 7564 696e 6720 7468 650a 6465 636c cluding the.decl │ │ │ │ -00002e90: 6172 6174 696f 6e73 2061 7661 696c 6162 arations availab │ │ │ │ -00002ea0: 6c65 2069 6e20 7468 6520 e280 983c 6775 le in the ...... header f │ │ │ │ -00002ed0: 696c 652e 0a0a 2a20 4d65 6e75 3a0a 0a2a ile...* Menu:..* │ │ │ │ -00002ee0: 2054 6f6b 656e 2052 6561 6465 7273 3a3a Token Readers:: │ │ │ │ -00002ef0: 2020 2020 2020 2020 2020 2020 2020 2054 T │ │ │ │ -00002f00: 6865 2062 6173 6963 2063 6f6d 706f 6e65 he basic compone │ │ │ │ -00002f10: 6e74 7320 6f66 2061 2072 6561 6465 722e nts of a reader. │ │ │ │ -00002f20: 0a2a 2052 6561 6465 7273 3a3a 2020 2020 .* Readers:: │ │ │ │ -00002f30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00002f40: 2048 6f77 2074 6f20 6275 696c 6420 7265 How to build re │ │ │ │ -00002f50: 6164 6572 732e 0a0a 1f0a 4669 6c65 3a20 aders.....File: │ │ │ │ -00002f60: 6775 696c 652d 7265 6164 6572 2e69 6e66 guile-reader.inf │ │ │ │ -00002f70: 6f2c 2020 4e6f 6465 3a20 546f 6b65 6e20 o, Node: Token │ │ │ │ -00002f80: 5265 6164 6572 732c 2020 4e65 7874 3a20 Readers, Next: │ │ │ │ -00002f90: 5265 6164 6572 732c 2020 5072 6576 3a20 Readers, Prev: │ │ │ │ -00002fa0: 4150 4920 5265 6665 7265 6e63 652c 2020 API Reference, │ │ │ │ -00002fb0: 5570 3a20 4150 4920 5265 6665 7265 6e63 Up: API Referenc │ │ │ │ -00002fc0: 650a 0a34 2e31 2054 6f6b 656e 2052 6561 e..4.1 Token Rea │ │ │ │ -00002fd0: 6465 7273 0a3d 3d3d 3d3d 3d3d 3d3d 3d3d ders.=========== │ │ │ │ -00002fe0: 3d3d 3d3d 3d3d 0a0a 4261 7369 6361 6c6c ======..Basicall │ │ │ │ -00002ff0: 792c 2074 6f6b 656e 2072 6561 6465 7273 y, token readers │ │ │ │ -00003000: 2061 7265 2074 6865 2061 7373 6f63 6961 are the associa │ │ │ │ -00003010: 7469 6f6e 206f 6620 6120 6368 6172 6163 tion of a charac │ │ │ │ -00003020: 7465 7220 6f72 2073 6574 206f 660a 6368 ter or set of.ch │ │ │ │ -00003030: 6172 6163 7465 7273 2061 6e64 2061 2066 aracters and a f │ │ │ │ -00003040: 756e 6374 696f 6e20 7468 6174 2069 7320 unction that is │ │ │ │ -00003050: 6162 6c65 2074 6f20 696e 7465 7270 7265 able to interpre │ │ │ │ -00003060: 7420 6368 6172 6163 7465 7220 7365 7175 t character sequ │ │ │ │ -00003070: 656e 6365 730a 7468 6174 2073 7461 7274 ences.that start │ │ │ │ -00003080: 2062 7920 6f6e 6520 6f66 2074 6865 7365 by one of these │ │ │ │ -00003090: 2063 6861 7261 6374 6572 732e 2020 5765 characters. We │ │ │ │ -000030a0: 2077 696c 6c20 7365 6520 6265 6c6f 7720 will see below │ │ │ │ -000030b0: 686f 7720 746f 2064 6566 696e 650a 6e65 how to define.ne │ │ │ │ -000030c0: 7720 746f 6b65 6e20 7265 6164 6572 7320 w token readers │ │ │ │ -000030d0: 6669 7273 742c 2061 6e64 2074 6865 6e20 first, and then │ │ │ │ -000030e0: 686f 7720 746f 2072 652d 7573 6520 6578 how to re-use ex │ │ │ │ -000030f0: 6973 7469 6e67 206f 6e65 732e 0a0a 2a20 isting ones...* │ │ │ │ -00003100: 4d65 6e75 3a0a 0a2a 2044 6566 696e 696e Menu:..* Definin │ │ │ │ -00003110: 6720 6120 4e65 7720 546f 6b65 6e20 5265 g a New Token Re │ │ │ │ -00003120: 6164 6572 3a3a 0a2a 2054 5220 4361 6c6c ader::.* TR Call │ │ │ │ -00003130: 696e 6720 436f 6e76 656e 7469 6f6e 3a3a ing Convention:: │ │ │ │ -00003140: 0a2a 2049 6e76 6f6b 696e 6720 6120 5265 .* Invoking a Re │ │ │ │ -00003150: 6164 6572 2066 726f 6d20 6120 5452 3a3a ader from a TR:: │ │ │ │ -00003160: 0a2a 2054 6f6b 656e 2052 6561 6465 7220 .* Token Reader │ │ │ │ -00003170: 4c69 6272 6172 793a 3a0a 2a20 4c69 6d69 Library::.* Limi │ │ │ │ -00003180: 7461 7469 6f6e 733a 3a0a 0a1f 0a46 696c tations::....Fil │ │ │ │ -00003190: 653a 2067 7569 6c65 2d72 6561 6465 722e e: guile-reader. │ │ │ │ -000031a0: 696e 666f 2c20 204e 6f64 653a 2044 6566 info, Node: Def │ │ │ │ -000031b0: 696e 696e 6720 6120 4e65 7720 546f 6b65 ining a New Toke │ │ │ │ -000031c0: 6e20 5265 6164 6572 2c20 204e 6578 743a n Reader, Next: │ │ │ │ -000031d0: 2054 5220 4361 6c6c 696e 6720 436f 6e76 TR Calling Conv │ │ │ │ -000031e0: 656e 7469 6f6e 2c20 2050 7265 763a 2054 ention, Prev: T │ │ │ │ -000031f0: 6f6b 656e 2052 6561 6465 7273 2c20 2055 oken Readers, U │ │ │ │ -00003200: 703a 2054 6f6b 656e 2052 6561 6465 7273 p: Token Readers │ │ │ │ -00003210: 0a0a 342e 312e 3120 4465 6669 6e69 6e67 ..4.1.1 Defining │ │ │ │ -00003220: 2061 204e 6577 2054 6f6b 656e 2052 6561 a New Token Rea │ │ │ │ -00003230: 6465 720a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d der.------------ │ │ │ │ +00002870: 2020 2063 6173 652d 696e 7365 6e73 6974 case-insensit │ │ │ │ +00002880: 6976 6529 2929 0a0a 2020 2020 2020 203b ive))).. ; │ │ │ │ +00002890: 3b20 4c65 7427 7320 6d61 6b65 2069 7420 ; Let's make it │ │ │ │ +000028a0: 7468 6520 6375 7272 656e 7420 7265 6164 the current read │ │ │ │ +000028b0: 6572 2e0a 2020 2020 2020 2028 666c 7569 er.. (flui │ │ │ │ +000028c0: 642d 7365 7421 2063 7572 7265 6e74 2d72 d-set! current-r │ │ │ │ +000028d0: 6561 6465 7220 6d79 2d72 6561 6465 7229 eader my-reader) │ │ │ │ +000028e0: 290a 0a20 2020 2020 3b3b 2046 726f 6d20 ).. ;; From │ │ │ │ +000028f0: 6e6f 7720 6f6e 2c20 4d59 2d52 4541 4445 now on, MY-READE │ │ │ │ +00002900: 5220 6973 2075 7365 6420 746f 2072 6561 R is used to rea │ │ │ │ +00002910: 6420 7468 6520 7265 7374 206f 6620 7468 d the rest of th │ │ │ │ +00002920: 6973 2066 696c 652e 2020 5468 7573 0a20 is file. Thus. │ │ │ │ +00002930: 2020 2020 3b3b 2077 6520 6361 6e20 6861 ;; we can ha │ │ │ │ +00002940: 7070 696c 7920 7573 6520 7468 6520 7379 ppily use the sy │ │ │ │ +00002950: 6e74 6163 7469 6320 6578 7465 6e73 696f ntactic extensio │ │ │ │ +00002960: 6e73 2069 7420 696d 706c 656d 656e 7473 ns it implements │ │ │ │ +00002970: 3a20 4453 5353 4c0a 2020 2020 203b 3b20 : DSSSL. ;; │ │ │ │ +00002980: 6b65 7977 6f72 6473 2c20 5352 4649 2d36 keywords, SRFI-6 │ │ │ │ +00002990: 3220 636f 6d6d 656e 7473 2061 6e64 2063 2 comments and c │ │ │ │ +000029a0: 6173 652d 696e 7365 6e73 6974 6976 6974 ase-insensitivit │ │ │ │ +000029b0: 792e 0a0a 2020 2020 2028 6966 2028 6e6f y... (if (no │ │ │ │ +000029c0: 7420 286b 6579 776f 7264 3f20 2321 6473 t (keyword? #!ds │ │ │ │ +000029d0: 7373 6c2d 6b65 7977 6f72 6429 290a 2020 ssl-keyword)). │ │ │ │ +000029e0: 2020 2020 2020 2028 6572 726f 7220 2253 (error "S │ │ │ │ +000029f0: 6f6d 6574 6869 6e67 2077 656e 7420 7772 omething went wr │ │ │ │ +00002a00: 6f6e 672c 2074 6869 7320 7368 6f75 6c64 ong, this should │ │ │ │ +00002a10: 206e 6f74 2068 6170 7065 6e21 2229 290a not happen!")). │ │ │ │ +00002a20: 0a20 2020 5468 6520 6e69 6365 2074 6869 . The nice thi │ │ │ │ +00002a30: 6e67 2069 7320 7468 6174 20e2 8098 6375 ng is that ...cu │ │ │ │ +00002a40: 7272 656e 742d 7265 6164 6572 e280 9920 rrent-reader... │ │ │ │ +00002a50: 6973 2072 6573 6574 2074 6f20 6974 7320 is reset to its │ │ │ │ +00002a60: 696e 6974 6961 6c20 7661 6c75 650a 7768 initial value.wh │ │ │ │ +00002a70: 656e 2074 6865 2064 796e 616d 6963 2065 en the dynamic e │ │ │ │ +00002a80: 7874 656e 7420 6f66 20e2 8098 6c6f 6164 xtent of ...load │ │ │ │ +00002a90: e280 9920 6973 206c 6566 742e 2020 496e ... is left. In │ │ │ │ +00002aa0: 206f 7468 6572 2077 6f72 6473 2c20 7468 other words, th │ │ │ │ +00002ab0: 6520 6c6f 6164 6572 0a6f 6620 7468 6520 e loader.of the │ │ │ │ +00002ac0: 6669 6c65 2061 626f 7665 2069 7320 5f6e file above is _n │ │ │ │ +00002ad0: 6f74 5f20 6166 6665 6374 6564 2062 7920 ot_ affected by │ │ │ │ +00002ae0: 7468 6520 e280 9866 6c75 6964 2d73 6574 the ...fluid-set │ │ │ │ +00002af0: 21e2 8099 2073 7461 7465 6d65 6e74 2e0a !... statement.. │ │ │ │ +00002b00: 5265 6164 6572 2063 6861 6e67 6573 2061 Reader changes a │ │ │ │ +00002b10: 7265 205f 6879 6769 656e 6963 5f20 616e re _hygienic_ an │ │ │ │ +00002b20: 6420 6d6f 6475 6c65 7320 6361 6e20 7573 d modules can us │ │ │ │ +00002b30: 6520 7468 6569 7220 6f77 6e20 7769 7468 e their own with │ │ │ │ +00002b40: 6f75 740a 7269 736b 696e 6720 746f 2068 out.risking to h │ │ │ │ +00002b50: 6172 6d20 6561 6368 206f 7468 6572 2e0a arm each other.. │ │ │ │ +00002b60: 0a20 2020 5468 6520 6675 6c6c 206c 6973 . The full lis │ │ │ │ +00002b70: 7420 6f66 206f 7074 696f 6e73 2073 7570 t of options sup │ │ │ │ +00002b80: 706f 7274 6564 2062 7920 e280 986d 616b ported by ...mak │ │ │ │ +00002b90: 652d 616c 7465 726e 6174 652d 6775 696c e-alternate-guil │ │ │ │ +00002ba0: 652d 7265 6164 6572 e280 990a 6973 2073 e-reader....is s │ │ │ │ +00002bb0: 686f 776e 2069 6e20 2a6e 6f74 6520 5265 hown in *note Re │ │ │ │ +00002bc0: 6164 6572 204c 6962 7261 7279 3a3a 2e20 ader Library::. │ │ │ │ +00002bd0: 2048 6f77 6576 6572 2c20 7468 6973 206f However, this o │ │ │ │ +00002be0: 7074 696f 6e20 7365 7420 6973 2071 7569 ption set is qui │ │ │ │ +00002bf0: 7465 0a6c 696d 6974 6564 2061 6e64 2079 te.limited and y │ │ │ │ +00002c00: 6f75 206d 6179 2066 696e 6420 796f 7572 ou may find your │ │ │ │ +00002c10: 7365 6c66 2077 616e 7469 6e67 2061 2073 self wanting a s │ │ │ │ +00002c20: 796e 7461 6374 6963 2065 7874 656e 7369 yntactic extensi │ │ │ │ +00002c30: 6f6e 206e 6f74 0a61 7661 696c 6162 6c65 on not.available │ │ │ │ +00002c40: 2068 6572 652e 2020 496e 2074 6861 7420 here. In that │ │ │ │ +00002c50: 6361 7365 2c20 796f 7520 7769 6c6c 2077 case, you will w │ │ │ │ +00002c60: 616e 7420 746f 2062 7569 6c64 2061 206e ant to build a n │ │ │ │ +00002c70: 6577 2072 6561 6465 722c 0a70 6f73 7369 ew reader,.possi │ │ │ │ +00002c80: 626c 7920 7265 7573 696e 6720 6578 6973 bly reusing exis │ │ │ │ +00002c90: 7469 6e67 2072 6561 6465 7220 636f 6d70 ting reader comp │ │ │ │ +00002ca0: 6f6e 656e 7473 206b 6e6f 776e 2061 7320 onents known as │ │ │ │ +00002cb0: e280 9c74 6f6b 656e 2072 6561 6465 7273 ...token readers │ │ │ │ +00002cc0: e280 9d2c 2061 730a 6465 7363 7269 6265 ..., as.describe │ │ │ │ +00002cd0: 6420 696e 202a 6e6f 7465 2044 6566 696e d in *note Defin │ │ │ │ +00002ce0: 696e 6720 6120 4e65 7720 5265 6164 6572 ing a New Reader │ │ │ │ +00002cf0: 3a3a 2e0a 0a1f 0a46 696c 653a 2067 7569 ::.....File: gui │ │ │ │ +00002d00: 6c65 2d72 6561 6465 722e 696e 666f 2c20 le-reader.info, │ │ │ │ +00002d10: 204e 6f64 653a 2041 5049 2052 6566 6572 Node: API Refer │ │ │ │ +00002d20: 656e 6365 2c20 204e 6578 743a 2049 6e74 ence, Next: Int │ │ │ │ +00002d30: 6572 6e61 6c73 2c20 2050 7265 763a 2051 ernals, Prev: Q │ │ │ │ +00002d40: 7569 636b 2053 7461 7274 2c20 2055 703a uick Start, Up: │ │ │ │ +00002d50: 2054 6f70 0a0a 3420 4150 4920 5265 6665 Top..4 API Refe │ │ │ │ +00002d60: 7265 6e63 650a 2a2a 2a2a 2a2a 2a2a 2a2a rence.********** │ │ │ │ +00002d70: 2a2a 2a2a 2a0a 0a41 6c6c 2074 6865 2053 *****..All the S │ │ │ │ +00002d80: 6368 656d 6520 7072 6f63 6564 7572 6573 cheme procedures │ │ │ │ +00002d90: 2064 6573 6372 6962 6564 2062 656c 6f77 described below │ │ │ │ +00002da0: 2061 7265 2065 7870 6f72 7465 6420 6279 are exported by │ │ │ │ +00002db0: 2074 6865 20e2 8098 2873 7973 7465 6d0a the ...(system. │ │ │ │ +00002dc0: 7265 6164 6572 29e2 8099 206d 6f64 756c reader)... modul │ │ │ │ +00002dd0: 652e 2020 496e 206f 7264 6572 2074 6f20 e. In order to │ │ │ │ +00002de0: 6265 2061 626c 6520 746f 2075 7365 2074 be able to use t │ │ │ │ +00002df0: 6865 6d2c 2079 6f75 2077 696c 6c20 6e65 hem, you will ne │ │ │ │ +00002e00: 6564 2074 6f0a 696d 706f 7274 2074 6869 ed to.import thi │ │ │ │ +00002e10: 7320 6d6f 6475 6c65 2066 6972 7374 3a0a s module first:. │ │ │ │ +00002e20: 0a20 2020 2020 2875 7365 2d6d 6f64 756c . (use-modul │ │ │ │ +00002e30: 6573 2028 7379 7374 656d 2072 6561 6465 es (system reade │ │ │ │ +00002e40: 7229 290a 0a20 2020 4120 4320 7661 7269 r)).. A C vari │ │ │ │ +00002e50: 616e 7420 6973 2061 6c73 6f20 6176 6169 ant is also avai │ │ │ │ +00002e60: 6c61 626c 6520 666f 7220 6d6f 7374 206f lable for most o │ │ │ │ +00002e70: 6620 7468 656d 2062 7920 696e 636c 7564 f them by includ │ │ │ │ +00002e80: 696e 6720 7468 650a 6465 636c 6172 6174 ing the.declarat │ │ │ │ +00002e90: 696f 6e73 2061 7661 696c 6162 6c65 2069 ions available i │ │ │ │ +00002ea0: 6e20 7468 6520 e280 983c 6775 696c 652d n the ... │ │ │ │ +00002ec0: e280 9920 6865 6164 6572 2066 696c 652e ... header file. │ │ │ │ +00002ed0: 0a0a 2a20 4d65 6e75 3a0a 0a2a 2054 6f6b ..* Menu:..* Tok │ │ │ │ +00002ee0: 656e 2052 6561 6465 7273 3a3a 2020 2020 en Readers:: │ │ │ │ +00002ef0: 2020 2020 2020 2020 2020 2054 6865 2062 The b │ │ │ │ +00002f00: 6173 6963 2063 6f6d 706f 6e65 6e74 7320 asic components │ │ │ │ +00002f10: 6f66 2061 2072 6561 6465 722e 0a2a 2052 of a reader..* R │ │ │ │ +00002f20: 6561 6465 7273 3a3a 2020 2020 2020 2020 eaders:: │ │ │ │ +00002f30: 2020 2020 2020 2020 2020 2020 2048 6f77 How │ │ │ │ +00002f40: 2074 6f20 6275 696c 6420 7265 6164 6572 to build reader │ │ │ │ +00002f50: 732e 0a0a 1f0a 4669 6c65 3a20 6775 696c s.....File: guil │ │ │ │ +00002f60: 652d 7265 6164 6572 2e69 6e66 6f2c 2020 e-reader.info, │ │ │ │ +00002f70: 4e6f 6465 3a20 546f 6b65 6e20 5265 6164 Node: Token Read │ │ │ │ +00002f80: 6572 732c 2020 4e65 7874 3a20 5265 6164 ers, Next: Read │ │ │ │ +00002f90: 6572 732c 2020 5072 6576 3a20 4150 4920 ers, Prev: API │ │ │ │ +00002fa0: 5265 6665 7265 6e63 652c 2020 5570 3a20 Reference, Up: │ │ │ │ +00002fb0: 4150 4920 5265 6665 7265 6e63 650a 0a34 API Reference..4 │ │ │ │ +00002fc0: 2e31 2054 6f6b 656e 2052 6561 6465 7273 .1 Token Readers │ │ │ │ +00002fd0: 0a3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d .=============== │ │ │ │ +00002fe0: 3d3d 0a0a 4261 7369 6361 6c6c 792c 2074 ==..Basically, t │ │ │ │ +00002ff0: 6f6b 656e 2072 6561 6465 7273 2061 7265 oken readers are │ │ │ │ +00003000: 2074 6865 2061 7373 6f63 6961 7469 6f6e the association │ │ │ │ +00003010: 206f 6620 6120 6368 6172 6163 7465 7220 of a character │ │ │ │ +00003020: 6f72 2073 6574 206f 660a 6368 6172 6163 or set of.charac │ │ │ │ +00003030: 7465 7273 2061 6e64 2061 2066 756e 6374 ters and a funct │ │ │ │ +00003040: 696f 6e20 7468 6174 2069 7320 6162 6c65 ion that is able │ │ │ │ +00003050: 2074 6f20 696e 7465 7270 7265 7420 6368 to interpret ch │ │ │ │ +00003060: 6172 6163 7465 7220 7365 7175 656e 6365 aracter sequence │ │ │ │ +00003070: 730a 7468 6174 2073 7461 7274 2062 7920 s.that start by │ │ │ │ +00003080: 6f6e 6520 6f66 2074 6865 7365 2063 6861 one of these cha │ │ │ │ +00003090: 7261 6374 6572 732e 2020 5765 2077 696c racters. We wil │ │ │ │ +000030a0: 6c20 7365 6520 6265 6c6f 7720 686f 7720 l see below how │ │ │ │ +000030b0: 746f 2064 6566 696e 650a 6e65 7720 746f to define.new to │ │ │ │ +000030c0: 6b65 6e20 7265 6164 6572 7320 6669 7273 ken readers firs │ │ │ │ +000030d0: 742c 2061 6e64 2074 6865 6e20 686f 7720 t, and then how │ │ │ │ +000030e0: 746f 2072 652d 7573 6520 6578 6973 7469 to re-use existi │ │ │ │ +000030f0: 6e67 206f 6e65 732e 0a0a 2a20 4d65 6e75 ng ones...* Menu │ │ │ │ +00003100: 3a0a 0a2a 2044 6566 696e 696e 6720 6120 :..* Defining a │ │ │ │ +00003110: 4e65 7720 546f 6b65 6e20 5265 6164 6572 New Token Reader │ │ │ │ +00003120: 3a3a 0a2a 2054 5220 4361 6c6c 696e 6720 ::.* TR Calling │ │ │ │ +00003130: 436f 6e76 656e 7469 6f6e 3a3a 0a2a 2049 Convention::.* I │ │ │ │ +00003140: 6e76 6f6b 696e 6720 6120 5265 6164 6572 nvoking a Reader │ │ │ │ +00003150: 2066 726f 6d20 6120 5452 3a3a 0a2a 2054 from a TR::.* T │ │ │ │ +00003160: 6f6b 656e 2052 6561 6465 7220 4c69 6272 oken Reader Libr │ │ │ │ +00003170: 6172 793a 3a0a 2a20 4c69 6d69 7461 7469 ary::.* Limitati │ │ │ │ +00003180: 6f6e 733a 3a0a 0a1f 0a46 696c 653a 2067 ons::....File: g │ │ │ │ +00003190: 7569 6c65 2d72 6561 6465 722e 696e 666f uile-reader.info │ │ │ │ +000031a0: 2c20 204e 6f64 653a 2044 6566 696e 696e , Node: Definin │ │ │ │ +000031b0: 6720 6120 4e65 7720 546f 6b65 6e20 5265 g a New Token Re │ │ │ │ +000031c0: 6164 6572 2c20 204e 6578 743a 2054 5220 ader, Next: TR │ │ │ │ +000031d0: 4361 6c6c 696e 6720 436f 6e76 656e 7469 Calling Conventi │ │ │ │ +000031e0: 6f6e 2c20 2050 7265 763a 2054 6f6b 656e on, Prev: Token │ │ │ │ +000031f0: 2052 6561 6465 7273 2c20 2055 703a 2054 Readers, Up: T │ │ │ │ +00003200: 6f6b 656e 2052 6561 6465 7273 0a0a 342e oken Readers..4. │ │ │ │ +00003210: 312e 3120 4465 6669 6e69 6e67 2061 204e 1.1 Defining a N │ │ │ │ +00003220: 6577 2054 6f6b 656e 2052 6561 6465 720a ew Token Reader. │ │ │ │ +00003230: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ 00003240: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -00003250: 2d2d 2d2d 2d0a 0a41 206e 6577 2074 6f6b -----..A new tok │ │ │ │ -00003260: 656e 2072 6561 6465 7220 6f62 6a65 6374 en reader object │ │ │ │ -00003270: 2063 616e 2062 6520 6372 6561 7465 6420 can be created │ │ │ │ -00003280: 6279 2063 616c 6c69 6e67 2074 6865 0ae2 by calling the.. │ │ │ │ -00003290: 8098 6d61 6b65 2d74 6f6b 656e 2d72 6561 ..make-token-rea │ │ │ │ -000032a0: 6465 72e2 8099 2070 726f 6365 6475 7265 der... procedure │ │ │ │ -000032b0: 2077 6974 6820 6120 e280 9c63 6861 7261 with a ...chara │ │ │ │ -000032c0: 6374 6572 2073 7065 6369 6669 6361 7469 cter specificati │ │ │ │ -000032d0: 6f6e e280 9d20 616e 6420 610a 7072 6f63 on... and a.proc │ │ │ │ -000032e0: 6564 7572 652e 2020 4120 6368 6172 6163 edure. A charac │ │ │ │ -000032f0: 7465 7220 7370 6563 6966 6963 6174 696f ter specificatio │ │ │ │ -00003300: 6e20 6465 6669 6e65 7320 7468 6520 7365 n defines the se │ │ │ │ -00003310: 7420 6f66 2063 6861 7261 6374 6572 730a t of characters. │ │ │ │ -00003320: 7768 6963 6820 7368 6f75 6c64 2074 7269 which should tri │ │ │ │ -00003330: 6767 6572 2061 6e20 696e 766f 6361 7469 gger an invocati │ │ │ │ -00003340: 6f6e 206f 6620 7468 6520 636f 7272 6573 on of the corres │ │ │ │ -00003350: 706f 6e64 696e 6720 7072 6f63 6564 7572 ponding procedur │ │ │ │ -00003360: 652e 2020 5468 650a 6368 6172 6163 7465 e. The.characte │ │ │ │ -00003370: 7220 7370 6563 6966 6963 6174 696f 6e20 r specification │ │ │ │ -00003380: 6d61 7920 6265 2065 6974 6865 723a 0a0a may be either:.. │ │ │ │ -00003390: 2020 20e2 80a2 2061 2073 696e 676c 6520 ... a single │ │ │ │ -000033a0: 6368 6172 6163 7465 723b 0a20 2020 e280 character;. .. │ │ │ │ -000033b0: a220 6120 7061 6972 206f 6620 6368 6172 . a pair of char │ │ │ │ -000033c0: 6163 7465 7273 2c20 7768 6963 6820 6973 acters, which is │ │ │ │ -000033d0: 2069 6e74 6572 7072 6574 6564 2061 7320 interpreted as │ │ │ │ -000033e0: 6120 6368 6172 6163 7465 7220 7261 6e67 a character rang │ │ │ │ -000033f0: 653b 0a20 2020 e280 a220 6120 6c69 7374 e;. ... a list │ │ │ │ -00003400: 206f 6620 6368 6172 6163 7465 7273 2c20 of characters, │ │ │ │ -00003410: 7768 6963 6820 6973 2069 6e74 6572 7072 which is interpr │ │ │ │ -00003420: 6574 6564 2061 7320 6120 7365 7420 6f66 eted as a set of │ │ │ │ -00003430: 2063 6861 7261 6374 6572 732e 0a0a 2020 characters... │ │ │ │ -00003440: 2054 6865 2070 726f 6365 6475 7265 2070 The procedure p │ │ │ │ -00003450: 6173 7365 6420 746f 20e2 8098 6d61 6b65 assed to ...make │ │ │ │ -00003460: 2d74 6f6b 656e 2d72 6561 6465 72e2 8099 -token-reader... │ │ │ │ -00003470: 206d 6179 2061 6374 7561 6c6c 7920 6265 may actually be │ │ │ │ -00003480: 2065 6974 6865 7220 610a 4320 6675 6e63 either a.C func │ │ │ │ -00003490: 7469 6f6e 206f 7220 5363 6865 6d65 2070 tion or Scheme p │ │ │ │ -000034a0: 726f 6365 6475 7265 2074 6861 7420 7461 rocedure that ta │ │ │ │ -000034b0: 6b65 7320 666f 7572 2061 7267 756d 656e kes four argumen │ │ │ │ -000034c0: 7473 2028 2a6e 6f74 6520 5452 0a43 616c ts (*note TR.Cal │ │ │ │ -000034d0: 6c69 6e67 2043 6f6e 7665 6e74 696f 6e3a ling Convention: │ │ │ │ -000034e0: 3a29 2c20 616e 7920 226f 626a 6563 7422 :), any "object" │ │ │ │ -000034f0: 2072 6574 7572 6e65 6420 6279 0ae2 8098 returned by.... │ │ │ │ -00003500: 746f 6b65 6e2d 7265 6164 6572 2d70 726f token-reader-pro │ │ │ │ -00003510: 6365 6475 7265 e280 992c 206f 7220 6120 cedure..., or a │ │ │ │ -00003520: 7265 6164 6572 2e20 2054 6869 7320 6c61 reader. This la │ │ │ │ -00003530: 7374 206f 7074 696f 6e20 7475 726e 7320 st option turns │ │ │ │ -00003540: 6f75 7420 746f 2062 650a 7175 6974 6520 out to be.quite │ │ │ │ -00003550: 6865 6c70 6675 6c2e 2020 466f 7220 6578 helpful. For ex │ │ │ │ -00003560: 616d 706c 652c 2074 6869 7320 6973 2076 ample, this is v │ │ │ │ -00003570: 6572 7920 636f 6e76 656e 6965 6e74 2077 ery convenient w │ │ │ │ -00003580: 6865 6e20 696d 706c 656d 656e 7469 6e67 hen implementing │ │ │ │ -00003590: 0a74 6865 2076 6172 696f 7573 2053 6368 .the various Sch │ │ │ │ -000035a0: 656d 6520 7265 6164 2073 796e 7461 7865 eme read syntaxe │ │ │ │ -000035b0: 7320 7072 6566 6978 6564 2062 7920 7468 s prefixed by th │ │ │ │ -000035c0: 6520 e280 9823 e280 9920 6368 6172 6163 e ...#... charac │ │ │ │ -000035d0: 7465 723a 206f 6e65 2063 616e 0a63 7265 ter: one can.cre │ │ │ │ -000035e0: 6174 6520 6120 7265 6164 6572 2066 6f72 ate a reader for │ │ │ │ -000035f0: 20e2 8098 23e2 8099 2c20 616e 6420 7468 ...#..., and th │ │ │ │ -00003600: 656e 2074 7572 6e20 6974 2069 6e74 6f20 en turn it into │ │ │ │ -00003610: 6120 746f 6b65 6e20 7265 6164 6572 2074 a token reader t │ │ │ │ -00003620: 6861 7420 6973 0a70 6172 7420 6f66 2074 hat is.part of t │ │ │ │ -00003630: 6865 2074 6f70 2d6c 6576 656c 2072 6561 he top-level rea │ │ │ │ -00003640: 6465 722e 0a0a 2020 2054 6865 2072 6566 der... The ref │ │ │ │ -00003650: 6572 656e 6365 2066 6f72 20e2 8098 6d61 erence for ...ma │ │ │ │ -00003660: 6b65 2d74 6f6b 656e 2d72 6561 6465 72e2 ke-token-reader. │ │ │ │ -00003670: 8099 2069 7320 6769 7665 6e20 6265 6c6f .. is given belo │ │ │ │ -00003680: 773a 0a0a 202d 2d20 5363 6865 6d65 2050 w:.. -- Scheme P │ │ │ │ -00003690: 726f 6365 6475 7265 3a20 6d61 6b65 2d74 rocedure: make-t │ │ │ │ -000036a0: 6f6b 656e 2d72 6561 6465 7220 7370 6563 oken-reader spec │ │ │ │ -000036b0: 2070 726f 6320 5b65 7363 6170 653f 5d0a proc [escape?]. │ │ │ │ -000036c0: 202d 2d20 4320 4675 6e63 7469 6f6e 3a20 -- C Function: │ │ │ │ -000036d0: 7363 6d5f 6d61 6b65 5f74 6f6b 656e 5f72 scm_make_token_r │ │ │ │ -000036e0: 6561 6465 7220 2853 434d 2073 7065 632c eader (SCM spec, │ │ │ │ -000036f0: 2053 434d 2070 726f 632c 2053 434d 2065 SCM proc, SCM e │ │ │ │ -00003700: 7363 6170 655f 7029 0a20 2020 2020 5573 scape_p). Us │ │ │ │ -00003710: 6520 7072 6f63 6564 7572 6520 286f 7220 e procedure (or │ │ │ │ -00003720: 7265 6164 6572 2920 5052 4f43 2061 7320 reader) PROC as │ │ │ │ -00003730: 6120 746f 6b65 6e20 7265 6164 6572 2066 a token reader f │ │ │ │ -00003740: 6f72 2074 6865 2063 6861 7261 6374 6572 or the character │ │ │ │ -00003750: 730a 2020 2020 2064 6566 696e 6564 2062 s. defined b │ │ │ │ -00003760: 7920 5350 4543 2e20 2049 6620 4553 4341 y SPEC. If ESCA │ │ │ │ -00003770: 5045 5f50 2069 7320 7472 7565 2c20 7468 PE_P is true, th │ │ │ │ -00003780: 656e 2074 6865 2072 6561 6465 7220 7468 en the reader th │ │ │ │ -00003790: 6973 2074 6f6b 656e 0a20 2020 2020 7265 is token. re │ │ │ │ -000037a0: 6164 6572 2062 656c 6f6e 6773 2074 6f20 ader belongs to │ │ │ │ -000037b0: 7368 6f75 6c64 2072 6574 7572 6e20 6576 should return ev │ │ │ │ -000037c0: 656e 2069 6620 6974 7320 7265 7375 6c74 en if its result │ │ │ │ -000037d0: 2069 7320 756e 6465 6669 6e65 642e 0a0a is undefined... │ │ │ │ -000037e0: 2020 2054 6865 206e 6578 7420 7365 6374 The next sect │ │ │ │ -000037f0: 696f 6e20 6578 706c 6169 6e73 2074 6865 ion explains the │ │ │ │ -00003800: 2074 6f6b 656e 2072 6561 6465 7220 6361 token reader ca │ │ │ │ -00003810: 6c6c 696e 6720 636f 6e76 656e 7469 6f6e lling convention │ │ │ │ -00003820: 2c20 692e 652e 2c0a 686f 7720 7468 6520 , i.e.,.how the │ │ │ │ -00003830: 5052 4f43 2061 7267 756d 656e 7420 746f PROC argument to │ │ │ │ -00003840: 20e2 8098 6d61 6b65 2d74 6f6b 656e 2d72 ...make-token-r │ │ │ │ -00003850: 6561 6465 72e2 8099 2069 7320 696e 766f eader... is invo │ │ │ │ -00003860: 6b65 642e 0a0a 1f0a 4669 6c65 3a20 6775 ked.....File: gu │ │ │ │ -00003870: 696c 652d 7265 6164 6572 2e69 6e66 6f2c ile-reader.info, │ │ │ │ -00003880: 2020 4e6f 6465 3a20 5452 2043 616c 6c69 Node: TR Calli │ │ │ │ -00003890: 6e67 2043 6f6e 7665 6e74 696f 6e2c 2020 ng Convention, │ │ │ │ -000038a0: 4e65 7874 3a20 496e 766f 6b69 6e67 2061 Next: Invoking a │ │ │ │ -000038b0: 2052 6561 6465 7220 6672 6f6d 2061 2054 Reader from a T │ │ │ │ -000038c0: 522c 2020 5072 6576 3a20 4465 6669 6e69 R, Prev: Defini │ │ │ │ -000038d0: 6e67 2061 204e 6577 2054 6f6b 656e 2052 ng a New Token R │ │ │ │ -000038e0: 6561 6465 722c 2020 5570 3a20 546f 6b65 eader, Up: Toke │ │ │ │ -000038f0: 6e20 5265 6164 6572 730a 0a34 2e31 2e32 n Readers..4.1.2 │ │ │ │ -00003900: 2054 6f6b 656e 2052 6561 6465 7220 4361 Token Reader Ca │ │ │ │ -00003910: 6c6c 696e 6720 436f 6e76 656e 7469 6f6e lling Convention │ │ │ │ -00003920: 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d .--------------- │ │ │ │ +00003250: 2d0a 0a41 206e 6577 2074 6f6b 656e 2072 -..A new token r │ │ │ │ +00003260: 6561 6465 7220 6f62 6a65 6374 2063 616e eader object can │ │ │ │ +00003270: 2062 6520 6372 6561 7465 6420 6279 2063 be created by c │ │ │ │ +00003280: 616c 6c69 6e67 2074 6865 0ae2 8098 6d61 alling the....ma │ │ │ │ +00003290: 6b65 2d74 6f6b 656e 2d72 6561 6465 72e2 ke-token-reader. │ │ │ │ +000032a0: 8099 2070 726f 6365 6475 7265 2077 6974 .. procedure wit │ │ │ │ +000032b0: 6820 6120 e280 9c63 6861 7261 6374 6572 h a ...character │ │ │ │ +000032c0: 2073 7065 6369 6669 6361 7469 6f6e e280 specification.. │ │ │ │ +000032d0: 9d20 616e 6420 610a 7072 6f63 6564 7572 . and a.procedur │ │ │ │ +000032e0: 652e 2020 4120 6368 6172 6163 7465 7220 e. A character │ │ │ │ +000032f0: 7370 6563 6966 6963 6174 696f 6e20 6465 specification de │ │ │ │ +00003300: 6669 6e65 7320 7468 6520 7365 7420 6f66 fines the set of │ │ │ │ +00003310: 2063 6861 7261 6374 6572 730a 7768 6963 characters.whic │ │ │ │ +00003320: 6820 7368 6f75 6c64 2074 7269 6767 6572 h should trigger │ │ │ │ +00003330: 2061 6e20 696e 766f 6361 7469 6f6e 206f an invocation o │ │ │ │ +00003340: 6620 7468 6520 636f 7272 6573 706f 6e64 f the correspond │ │ │ │ +00003350: 696e 6720 7072 6f63 6564 7572 652e 2020 ing procedure. │ │ │ │ +00003360: 5468 650a 6368 6172 6163 7465 7220 7370 The.character sp │ │ │ │ +00003370: 6563 6966 6963 6174 696f 6e20 6d61 7920 ecification may │ │ │ │ +00003380: 6265 2065 6974 6865 723a 0a0a 2020 20e2 be either:.. . │ │ │ │ +00003390: 80a2 2061 2073 696e 676c 6520 6368 6172 .. a single char │ │ │ │ +000033a0: 6163 7465 723b 0a20 2020 e280 a220 6120 acter;. ... a │ │ │ │ +000033b0: 7061 6972 206f 6620 6368 6172 6163 7465 pair of characte │ │ │ │ +000033c0: 7273 2c20 7768 6963 6820 6973 2069 6e74 rs, which is int │ │ │ │ +000033d0: 6572 7072 6574 6564 2061 7320 6120 6368 erpreted as a ch │ │ │ │ +000033e0: 6172 6163 7465 7220 7261 6e67 653b 0a20 aracter range;. │ │ │ │ +000033f0: 2020 e280 a220 6120 6c69 7374 206f 6620 ... a list of │ │ │ │ +00003400: 6368 6172 6163 7465 7273 2c20 7768 6963 characters, whic │ │ │ │ +00003410: 6820 6973 2069 6e74 6572 7072 6574 6564 h is interpreted │ │ │ │ +00003420: 2061 7320 6120 7365 7420 6f66 2063 6861 as a set of cha │ │ │ │ +00003430: 7261 6374 6572 732e 0a0a 2020 2054 6865 racters... The │ │ │ │ +00003440: 2070 726f 6365 6475 7265 2070 6173 7365 procedure passe │ │ │ │ +00003450: 6420 746f 20e2 8098 6d61 6b65 2d74 6f6b d to ...make-tok │ │ │ │ +00003460: 656e 2d72 6561 6465 72e2 8099 206d 6179 en-reader... may │ │ │ │ +00003470: 2061 6374 7561 6c6c 7920 6265 2065 6974 actually be eit │ │ │ │ +00003480: 6865 7220 610a 4320 6675 6e63 7469 6f6e her a.C function │ │ │ │ +00003490: 206f 7220 5363 6865 6d65 2070 726f 6365 or Scheme proce │ │ │ │ +000034a0: 6475 7265 2074 6861 7420 7461 6b65 7320 dure that takes │ │ │ │ +000034b0: 666f 7572 2061 7267 756d 656e 7473 2028 four arguments ( │ │ │ │ +000034c0: 2a6e 6f74 6520 5452 0a43 616c 6c69 6e67 *note TR.Calling │ │ │ │ +000034d0: 2043 6f6e 7665 6e74 696f 6e3a 3a29 2c20 Convention::), │ │ │ │ +000034e0: 616e 7920 226f 626a 6563 7422 2072 6574 any "object" ret │ │ │ │ +000034f0: 7572 6e65 6420 6279 0ae2 8098 746f 6b65 urned by....toke │ │ │ │ +00003500: 6e2d 7265 6164 6572 2d70 726f 6365 6475 n-reader-procedu │ │ │ │ +00003510: 7265 e280 992c 206f 7220 6120 7265 6164 re..., or a read │ │ │ │ +00003520: 6572 2e20 2054 6869 7320 6c61 7374 206f er. This last o │ │ │ │ +00003530: 7074 696f 6e20 7475 726e 7320 6f75 7420 ption turns out │ │ │ │ +00003540: 746f 2062 650a 7175 6974 6520 6865 6c70 to be.quite help │ │ │ │ +00003550: 6675 6c2e 2020 466f 7220 6578 616d 706c ful. For exampl │ │ │ │ +00003560: 652c 2074 6869 7320 6973 2076 6572 7920 e, this is very │ │ │ │ +00003570: 636f 6e76 656e 6965 6e74 2077 6865 6e20 convenient when │ │ │ │ +00003580: 696d 706c 656d 656e 7469 6e67 0a74 6865 implementing.the │ │ │ │ +00003590: 2076 6172 696f 7573 2053 6368 656d 6520 various Scheme │ │ │ │ +000035a0: 7265 6164 2073 796e 7461 7865 7320 7072 read syntaxes pr │ │ │ │ +000035b0: 6566 6978 6564 2062 7920 7468 6520 e280 efixed by the .. │ │ │ │ +000035c0: 9823 e280 9920 6368 6172 6163 7465 723a .#... character: │ │ │ │ +000035d0: 206f 6e65 2063 616e 0a63 7265 6174 6520 one can.create │ │ │ │ +000035e0: 6120 7265 6164 6572 2066 6f72 20e2 8098 a reader for ... │ │ │ │ +000035f0: 23e2 8099 2c20 616e 6420 7468 656e 2074 #..., and then t │ │ │ │ +00003600: 7572 6e20 6974 2069 6e74 6f20 6120 746f urn it into a to │ │ │ │ +00003610: 6b65 6e20 7265 6164 6572 2074 6861 7420 ken reader that │ │ │ │ +00003620: 6973 0a70 6172 7420 6f66 2074 6865 2074 is.part of the t │ │ │ │ +00003630: 6f70 2d6c 6576 656c 2072 6561 6465 722e op-level reader. │ │ │ │ +00003640: 0a0a 2020 2054 6865 2072 6566 6572 656e .. The referen │ │ │ │ +00003650: 6365 2066 6f72 20e2 8098 6d61 6b65 2d74 ce for ...make-t │ │ │ │ +00003660: 6f6b 656e 2d72 6561 6465 72e2 8099 2069 oken-reader... i │ │ │ │ +00003670: 7320 6769 7665 6e20 6265 6c6f 773a 0a0a s given below:.. │ │ │ │ +00003680: 202d 2d20 5363 6865 6d65 2050 726f 6365 -- Scheme Proce │ │ │ │ +00003690: 6475 7265 3a20 6d61 6b65 2d74 6f6b 656e dure: make-token │ │ │ │ +000036a0: 2d72 6561 6465 7220 7370 6563 2070 726f -reader spec pro │ │ │ │ +000036b0: 6320 5b65 7363 6170 653f 5d0a 202d 2d20 c [escape?]. -- │ │ │ │ +000036c0: 4320 4675 6e63 7469 6f6e 3a20 7363 6d5f C Function: scm_ │ │ │ │ +000036d0: 6d61 6b65 5f74 6f6b 656e 5f72 6561 6465 make_token_reade │ │ │ │ +000036e0: 7220 2853 434d 2073 7065 632c 2053 434d r (SCM spec, SCM │ │ │ │ +000036f0: 2070 726f 632c 2053 434d 2065 7363 6170 proc, SCM escap │ │ │ │ +00003700: 655f 7029 0a20 2020 2020 5573 6520 7072 e_p). Use pr │ │ │ │ +00003710: 6f63 6564 7572 6520 286f 7220 7265 6164 ocedure (or read │ │ │ │ +00003720: 6572 2920 5052 4f43 2061 7320 6120 746f er) PROC as a to │ │ │ │ +00003730: 6b65 6e20 7265 6164 6572 2066 6f72 2074 ken reader for t │ │ │ │ +00003740: 6865 2063 6861 7261 6374 6572 730a 2020 he characters. │ │ │ │ +00003750: 2020 2064 6566 696e 6564 2062 7920 5350 defined by SP │ │ │ │ +00003760: 4543 2e20 2049 6620 4553 4341 5045 5f50 EC. If ESCAPE_P │ │ │ │ +00003770: 2069 7320 7472 7565 2c20 7468 656e 2074 is true, then t │ │ │ │ +00003780: 6865 2072 6561 6465 7220 7468 6973 2074 he reader this t │ │ │ │ +00003790: 6f6b 656e 0a20 2020 2020 7265 6164 6572 oken. reader │ │ │ │ +000037a0: 2062 656c 6f6e 6773 2074 6f20 7368 6f75 belongs to shou │ │ │ │ +000037b0: 6c64 2072 6574 7572 6e20 6576 656e 2069 ld return even i │ │ │ │ +000037c0: 6620 6974 7320 7265 7375 6c74 2069 7320 f its result is │ │ │ │ +000037d0: 756e 6465 6669 6e65 642e 0a0a 2020 2054 undefined... T │ │ │ │ +000037e0: 6865 206e 6578 7420 7365 6374 696f 6e20 he next section │ │ │ │ +000037f0: 6578 706c 6169 6e73 2074 6865 2074 6f6b explains the tok │ │ │ │ +00003800: 656e 2072 6561 6465 7220 6361 6c6c 696e en reader callin │ │ │ │ +00003810: 6720 636f 6e76 656e 7469 6f6e 2c20 692e g convention, i. │ │ │ │ +00003820: 652e 2c0a 686f 7720 7468 6520 5052 4f43 e.,.how the PROC │ │ │ │ +00003830: 2061 7267 756d 656e 7420 746f 20e2 8098 argument to ... │ │ │ │ +00003840: 6d61 6b65 2d74 6f6b 656e 2d72 6561 6465 make-token-reade │ │ │ │ +00003850: 72e2 8099 2069 7320 696e 766f 6b65 642e r... is invoked. │ │ │ │ +00003860: 0a0a 1f0a 4669 6c65 3a20 6775 696c 652d ....File: guile- │ │ │ │ +00003870: 7265 6164 6572 2e69 6e66 6f2c 2020 4e6f reader.info, No │ │ │ │ +00003880: 6465 3a20 5452 2043 616c 6c69 6e67 2043 de: TR Calling C │ │ │ │ +00003890: 6f6e 7665 6e74 696f 6e2c 2020 4e65 7874 onvention, Next │ │ │ │ +000038a0: 3a20 496e 766f 6b69 6e67 2061 2052 6561 : Invoking a Rea │ │ │ │ +000038b0: 6465 7220 6672 6f6d 2061 2054 522c 2020 der from a TR, │ │ │ │ +000038c0: 5072 6576 3a20 4465 6669 6e69 6e67 2061 Prev: Defining a │ │ │ │ +000038d0: 204e 6577 2054 6f6b 656e 2052 6561 6465 New Token Reade │ │ │ │ +000038e0: 722c 2020 5570 3a20 546f 6b65 6e20 5265 r, Up: Token Re │ │ │ │ +000038f0: 6164 6572 730a 0a34 2e31 2e32 2054 6f6b aders..4.1.2 Tok │ │ │ │ +00003900: 656e 2052 6561 6465 7220 4361 6c6c 696e en Reader Callin │ │ │ │ +00003910: 6720 436f 6e76 656e 7469 6f6e 0a2d 2d2d g Convention.--- │ │ │ │ +00003920: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ 00003930: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -00003940: 2d2d 2d2d 2d2d 0a0a 4120 746f 6b65 6e20 ------..A token │ │ │ │ -00003950: 7265 6164 6572 2773 2070 726f 6365 6475 reader's procedu │ │ │ │ -00003960: 7265 2069 7320 7061 7373 6564 2066 6f75 re is passed fou │ │ │ │ -00003970: 7220 6172 6775 6d65 6e74 733a 0a0a 2020 r arguments:.. │ │ │ │ -00003980: 20e2 80a2 2074 6865 2063 6861 7261 6374 ... the charact │ │ │ │ -00003990: 6572 2074 6861 7420 7761 7320 7265 6164 er that was read │ │ │ │ -000039a0: 2061 6e64 2077 6869 6368 2074 7269 6767 and which trigg │ │ │ │ -000039b0: 6572 6564 2069 7473 2063 616c 6c3b 2069 ered its call; i │ │ │ │ -000039c0: 6e20 7468 650a 2020 2020 2053 2d65 7870 n the. S-exp │ │ │ │ -000039d0: 2065 7861 6d70 6c65 2c20 7468 6973 2077 example, this w │ │ │ │ -000039e0: 6f75 6c64 2062 6520 e280 9828 e280 993b ould be ...(...; │ │ │ │ -000039f0: 0a20 2020 e280 a220 7468 6520 706f 7274 . ... the port │ │ │ │ -00003a00: 2074 6f20 7265 6164 2066 726f 6d3b 0a20 to read from;. │ │ │ │ -00003a10: 2020 e280 a220 7468 6520 7265 6164 6572 ... the reader │ │ │ │ -00003a20: 2077 6869 6368 2070 6572 666f 726d 6564 which performed │ │ │ │ -00003a30: 2074 6869 7320 696e 766f 6361 7469 6f6e this invocation │ │ │ │ -00003a40: 2c20 692e 652e 2c20 6569 7468 6572 2061 , i.e., either a │ │ │ │ -00003a50: 6e0a 2020 2020 20e2 8098 7363 6d5f 7265 n. ...scm_re │ │ │ │ -00003a60: 6164 6572 5f74 e280 9920 6f62 6a65 6374 ader_t... object │ │ │ │ -00003a70: 2028 6966 2074 6865 2074 6f6b 656e 2072 (if the token r │ │ │ │ -00003a80: 6561 6465 7220 6973 2077 7269 7474 656e eader is written │ │ │ │ -00003a90: 2069 6e20 4329 206f 7220 610a 2020 2020 in C) or a. │ │ │ │ -00003aa0: 2066 6f75 722d 6172 6775 6d65 6e74 2053 four-argument S │ │ │ │ -00003ab0: 6368 656d 6520 7072 6f63 6564 7572 6520 cheme procedure │ │ │ │ -00003ac0: 2869 6620 7468 6520 746f 6b65 6e20 7265 (if the token re │ │ │ │ -00003ad0: 6164 6572 2069 7320 7772 6974 7465 6e20 ader is written │ │ │ │ -00003ae0: 696e 0a20 2020 2020 5363 6865 6d65 293b in. Scheme); │ │ │ │ -00003af0: 0a20 2020 e280 a220 7468 6520 746f 702d . ... the top- │ │ │ │ -00003b00: 6c65 7665 6c20 7265 6164 6572 2077 6869 level reader whi │ │ │ │ -00003b10: 6368 2079 6965 6c64 6564 2074 6869 7320 ch yielded this │ │ │ │ -00003b20: 696e 766f 6361 7469 6f6e 2061 6e64 2077 invocation and w │ │ │ │ -00003b30: 6869 6368 206d 6179 2062 650a 2020 2020 hich may be. │ │ │ │ -00003b40: 2064 6966 6665 7265 6e74 2066 726f 6d20 different from │ │ │ │ -00003b50: 7468 6520 7072 6576 696f 7573 2061 7267 the previous arg │ │ │ │ -00003b60: 756d 656e 7420 696e 2074 6865 2063 6173 ument in the cas │ │ │ │ -00003b70: 6520 6120 746f 6b65 6e20 7265 6164 6572 e a token reader │ │ │ │ -00003b80: 2077 6173 0a20 2020 2020 6d61 6465 2066 was. made f │ │ │ │ -00003b90: 726f 6d20 6120 7265 6164 6572 3b20 7468 rom a reader; th │ │ │ │ -00003ba0: 6520 7573 6520 6f66 2074 6865 7365 2074 e use of these t │ │ │ │ -00003bb0: 776f 2061 7267 756d 656e 7473 2077 696c wo arguments wil │ │ │ │ -00003bc0: 6c20 6265 2064 6574 6169 6c65 640a 2020 l be detailed. │ │ │ │ -00003bd0: 2020 2069 6e20 7468 6520 6e65 7874 2073 in the next s │ │ │ │ -00003be0: 6563 7469 6f6e 2c20 2a6e 6f74 6520 496e ection, *note In │ │ │ │ -00003bf0: 766f 6b69 6e67 2061 2052 6561 6465 7220 voking a Reader │ │ │ │ -00003c00: 6672 6f6d 2061 2054 523a 3a2e 0a0a 2020 from a TR::... │ │ │ │ -00003c10: 2049 7420 6d75 7374 2072 6574 7572 6e20 It must return │ │ │ │ -00003c20: 6120 5363 6865 6d65 206f 626a 6563 7420 a Scheme object │ │ │ │ -00003c30: 7265 7375 6c74 696e 6720 6672 6f6d 2074 resulting from t │ │ │ │ -00003c40: 6865 2069 6e74 6572 7072 6574 6174 696f he interpretatio │ │ │ │ -00003c50: 6e20 6f66 0a74 6865 2063 6861 7261 6374 n of.the charact │ │ │ │ -00003c60: 6572 7320 7265 6164 2e20 2049 7420 6d61 ers read. It ma │ │ │ │ -00003c70: 7920 6173 2077 656c 6c20 7261 6973 6520 y as well raise │ │ │ │ -00003c80: 616e 2065 7272 6f72 2069 6620 7468 6520 an error if the │ │ │ │ -00003c90: 696e 7075 740a 7365 7175 656e 6365 2069 input.sequence i │ │ │ │ -00003ca0: 7320 636f 7272 7570 742e 2020 4669 6e61 s corrupt. Fina │ │ │ │ -00003cb0: 6c6c 792c 2069 7420 6d61 7920 7265 7475 lly, it may retu │ │ │ │ -00003cc0: 726e 20e2 8098 2a75 6e73 7065 6369 6669 rn ...*unspecifi │ │ │ │ -00003cd0: 6564 2ae2 8099 2c20 696e 2077 6869 6368 ed*..., in which │ │ │ │ -00003ce0: 0a63 6173 6520 7468 6520 6361 6c6c 696e .case the callin │ │ │ │ -00003cf0: 6720 7265 6164 6572 2077 696c 6c20 6e6f g reader will no │ │ │ │ -00003d00: 7420 7265 7475 726e 2061 6e64 2069 6e73 t return and ins │ │ │ │ -00003d10: 7465 6164 2063 6f6e 7469 6e75 6520 7265 tead continue re │ │ │ │ -00003d20: 6164 696e 672e 0a54 6869 7320 6973 2070 ading..This is p │ │ │ │ -00003d30: 6172 7469 6375 6c61 726c 7920 7573 6566 articularly usef │ │ │ │ -00003d40: 756c 2074 6f20 6465 6669 6e65 2063 6f6d ul to define com │ │ │ │ -00003d50: 6d65 6e74 2074 6f6b 656e 2072 6561 6465 ment token reade │ │ │ │ -00003d60: 7273 3a20 6120 5452 2074 6861 740a 6861 rs: a TR that.ha │ │ │ │ -00003d70: 7320 6a75 7374 2072 6561 6420 6120 636f s just read a co │ │ │ │ -00003d80: 6d6d 656e 7420 7769 6c6c 206f 6276 696f mment will obvio │ │ │ │ -00003d90: 7573 6c79 206e 6f74 2068 6176 6520 616e usly not have an │ │ │ │ -00003da0: 7920 7365 6e73 6962 6c65 2053 6368 656d y sensible Schem │ │ │ │ -00003db0: 650a 6f62 6a65 6374 2074 6f20 7265 7475 e.object to retu │ │ │ │ -00003dc0: 726e 2c20 616e 6420 6120 7265 6164 6572 rn, and a reader │ │ │ │ -00003dd0: 2069 7320 6e6f 7420 6578 7065 6374 6564 is not expected │ │ │ │ -00003de0: 2074 6f20 7265 7475 726e 2061 6e79 7468 to return anyth │ │ │ │ -00003df0: 696e 6720 6275 7420 610a 2272 6561 6c22 ing but a."real" │ │ │ │ -00003e00: 2053 6368 656d 6520 6f62 6a65 6374 2e20 Scheme object. │ │ │ │ -00003e10: 2041 2074 6f6b 656e 2072 6561 6465 7220 A token reader │ │ │ │ -00003e20: 666f 7220 5363 6865 6d65 2773 20e2 8098 for Scheme's ... │ │ │ │ -00003e30: 3be2 8099 206c 696e 6520 636f 6d6d 656e ;... line commen │ │ │ │ -00003e40: 7473 206d 6179 0a62 6520 6465 6669 6e65 ts may.be define │ │ │ │ -00003e50: 6420 6173 2066 6f6c 6c6f 7773 3a0a 0a20 d as follows:.. │ │ │ │ -00003e60: 2020 2020 286d 616b 652d 746f 6b65 6e2d (make-token- │ │ │ │ -00003e70: 7265 6164 6572 2023 5c3b 2072 6561 642d reader #\; read- │ │ │ │ -00003e80: 612d 6c69 6e65 2d61 6e64 2d72 6574 7572 a-line-and-retur │ │ │ │ -00003e90: 6e2d 756e 7370 6563 6966 6965 6429 0a0a n-unspecified).. │ │ │ │ -00003ea0: 2020 2054 6869 7320 6265 6861 7669 6f72 This behavior │ │ │ │ -00003eb0: 206d 6179 2c20 686f 7765 7665 722c 2062 may, however, b │ │ │ │ -00003ec0: 6520 6f76 6572 7269 6464 656e 2062 7920 e overridden by │ │ │ │ -00003ed0: 7061 7373 696e 670a e280 986d 616b 652d passing....make- │ │ │ │ -00003ee0: 746f 6b65 6e2d 7265 6164 6572 e280 9920 token-reader... │ │ │ │ -00003ef0: 6120 7468 6972 6420 6172 6775 6d65 6e74 a third argument │ │ │ │ -00003f00: 2028 6361 6c6c 6564 2045 5343 4150 453f (called ESCAPE? │ │ │ │ -00003f10: 293a 0a0a 2020 2020 2028 6d61 6b65 2d74 ):.. (make-t │ │ │ │ -00003f20: 6f6b 656e 2d72 6561 6465 7220 235c 3b20 oken-reader #\; │ │ │ │ -00003f30: 7265 6164 2d61 2d6c 696e 652d 616e 642d read-a-line-and- │ │ │ │ -00003f40: 7265 7475 726e 2d75 6e73 7065 6369 6669 return-unspecifi │ │ │ │ -00003f50: 6564 2023 7429 0a0a 2020 2041 2072 6561 ed #t).. A rea │ │ │ │ -00003f60: 6465 7220 7468 6174 2069 6e63 6c75 6465 der that include │ │ │ │ -00003f70: 7320 7468 6973 2054 5220 7769 6c6c 2072 s this TR will r │ │ │ │ -00003f80: 6574 7572 6e20 e280 982a 756e 7370 6563 eturn ...*unspec │ │ │ │ -00003f90: 6966 6965 642a e280 9920 6f6e 6365 2061 ified*... once a │ │ │ │ -00003fa0: 0a6c 696e 6520 636f 6d6d 656e 7420 6861 .line comment ha │ │ │ │ -00003fb0: 7320 6265 656e 2072 6561 642e 2020 5468 s been read. Th │ │ │ │ -00003fc0: 6973 2069 7320 7061 7274 6963 756c 6172 is is particular │ │ │ │ -00003fd0: 6c79 2075 7365 6675 6c2c 2066 6f72 2069 ly useful, for i │ │ │ │ -00003fe0: 6e73 7461 6e63 652c 0a77 6865 6e20 696d nstance,.when im │ │ │ │ -00003ff0: 706c 656d 656e 7469 6e67 20e2 8098 2321 plementing ...#! │ │ │ │ -00004000: e280 9920 626c 6f63 6b20 636f 6d6d 656e ... block commen │ │ │ │ -00004010: 7473 2028 2a6e 6f74 6520 5343 5348 2062 ts (*note SCSH b │ │ │ │ -00004020: 6c6f 636b 2063 6f6d 6d65 6e74 733a 0a28 lock comments:.( │ │ │ │ -00004030: 6775 696c 6529 426c 6f63 6b20 436f 6d6d guile)Block Comm │ │ │ │ -00004040: 656e 7473 2c20 666f 7220 6d6f 7265 2069 ents, for more i │ │ │ │ -00004050: 6e66 6f72 6d61 7469 6f6e 2920 6173 2061 nformation) as a │ │ │ │ -00004060: 2054 5220 6174 7461 6368 6564 2074 6f20 TR attached to │ │ │ │ -00004070: e280 9823 5c21 e280 990a 7769 7468 696e ...#\!....within │ │ │ │ -00004080: 2074 6865 20e2 8098 235c 23e2 8099 2073 the ...#\#... s │ │ │ │ -00004090: 7562 2d72 6561 6465 7220 282a 6e6f 7465 ub-reader (*note │ │ │ │ -000040a0: 2044 6566 696e 696e 6720 6120 4e65 7720 Defining a New │ │ │ │ -000040b0: 546f 6b65 6e20 5265 6164 6572 3a3a 292e Token Reader::). │ │ │ │ -000040c0: 0a0a 2020 2046 696e 616c 6c79 2c20 7468 .. Finally, th │ │ │ │ -000040d0: 6520 7072 6f63 6564 7572 6520 7061 7373 e procedure pass │ │ │ │ -000040e0: 6564 2074 6f20 e280 986d 616b 652d 746f ed to ...make-to │ │ │ │ -000040f0: 6b65 6e2d 7265 6164 6572 e280 9920 6d61 ken-reader... ma │ │ │ │ -00004100: 7920 6265 20e2 8098 2366 e280 992c 2069 y be ...#f..., i │ │ │ │ -00004110: 6e0a 7768 6963 6820 6361 7365 2074 6865 n.which case the │ │ │ │ -00004120: 2072 6573 756c 7469 6e67 2054 5220 7769 resulting TR wi │ │ │ │ -00004130: 6c6c 206a 7573 7420 6861 7665 2074 6865 ll just have the │ │ │ │ -00004140: 2065 6666 6563 7420 6f66 2069 676e 6f72 effect of ignor │ │ │ │ -00004150: 696e 6720 7468 650a 6368 6172 6163 7465 ing the.characte │ │ │ │ -00004160: 7273 2069 7420 6973 2061 7373 6f63 6961 rs it is associa │ │ │ │ -00004170: 7465 6420 746f 2e20 2046 6f72 2069 6e73 ted to. For ins │ │ │ │ -00004180: 7461 6e63 652c 2068 616e 646c 696e 6720 tance, handling │ │ │ │ -00004190: 7768 6974 6520 7370 6163 6573 206d 6179 white spaces may │ │ │ │ -000041a0: 0a62 6520 646f 6e65 2062 7920 6465 6669 .be done by defi │ │ │ │ -000041b0: 6e69 6e67 2061 2054 5220 6c69 6b65 2074 ning a TR like t │ │ │ │ -000041c0: 6869 733a 0a0a 2020 2020 2028 6d61 6b65 his:.. (make │ │ │ │ -000041d0: 2d74 6f6b 656e 2d72 6561 6465 7220 2728 -token-reader '( │ │ │ │ -000041e0: 235c 7370 6163 6520 235c 6e65 776c 696e #\space #\newlin │ │ │ │ -000041f0: 6520 235c 7461 6229 2023 6629 0a0a 1f0a e #\tab) #f).... │ │ │ │ -00004200: 4669 6c65 3a20 6775 696c 652d 7265 6164 File: guile-read │ │ │ │ -00004210: 6572 2e69 6e66 6f2c 2020 4e6f 6465 3a20 er.info, Node: │ │ │ │ -00004220: 496e 766f 6b69 6e67 2061 2052 6561 6465 Invoking a Reade │ │ │ │ -00004230: 7220 6672 6f6d 2061 2054 522c 2020 4e65 r from a TR, Ne │ │ │ │ -00004240: 7874 3a20 546f 6b65 6e20 5265 6164 6572 xt: Token Reader │ │ │ │ -00004250: 204c 6962 7261 7279 2c20 2050 7265 763a Library, Prev: │ │ │ │ -00004260: 2054 5220 4361 6c6c 696e 6720 436f 6e76 TR Calling Conv │ │ │ │ -00004270: 656e 7469 6f6e 2c20 2055 703a 2054 6f6b ention, Up: Tok │ │ │ │ -00004280: 656e 2052 6561 6465 7273 0a0a 342e 312e en Readers..4.1. │ │ │ │ -00004290: 3320 496e 766f 6b69 6e67 2061 2052 6561 3 Invoking a Rea │ │ │ │ -000042a0: 6465 7220 6672 6f6d 2061 2054 6f6b 656e der from a Token │ │ │ │ -000042b0: 2052 6561 6465 720a 2d2d 2d2d 2d2d 2d2d Reader.-------- │ │ │ │ +00003940: 2d2d 0a0a 4120 746f 6b65 6e20 7265 6164 --..A token read │ │ │ │ +00003950: 6572 2773 2070 726f 6365 6475 7265 2069 er's procedure i │ │ │ │ +00003960: 7320 7061 7373 6564 2066 6f75 7220 6172 s passed four ar │ │ │ │ +00003970: 6775 6d65 6e74 733a 0a0a 2020 20e2 80a2 guments:.. ... │ │ │ │ +00003980: 2074 6865 2063 6861 7261 6374 6572 2074 the character t │ │ │ │ +00003990: 6861 7420 7761 7320 7265 6164 2061 6e64 hat was read and │ │ │ │ +000039a0: 2077 6869 6368 2074 7269 6767 6572 6564 which triggered │ │ │ │ +000039b0: 2069 7473 2063 616c 6c3b 2069 6e20 7468 its call; in th │ │ │ │ +000039c0: 650a 2020 2020 2053 2d65 7870 2065 7861 e. S-exp exa │ │ │ │ +000039d0: 6d70 6c65 2c20 7468 6973 2077 6f75 6c64 mple, this would │ │ │ │ +000039e0: 2062 6520 e280 9828 e280 993b 0a20 2020 be ...(...;. │ │ │ │ +000039f0: e280 a220 7468 6520 706f 7274 2074 6f20 ... the port to │ │ │ │ +00003a00: 7265 6164 2066 726f 6d3b 0a20 2020 e280 read from;. .. │ │ │ │ +00003a10: a220 7468 6520 7265 6164 6572 2077 6869 . the reader whi │ │ │ │ +00003a20: 6368 2070 6572 666f 726d 6564 2074 6869 ch performed thi │ │ │ │ +00003a30: 7320 696e 766f 6361 7469 6f6e 2c20 692e s invocation, i. │ │ │ │ +00003a40: 652e 2c20 6569 7468 6572 2061 6e0a 2020 e., either an. │ │ │ │ +00003a50: 2020 20e2 8098 7363 6d5f 7265 6164 6572 ...scm_reader │ │ │ │ +00003a60: 5f74 e280 9920 6f62 6a65 6374 2028 6966 _t... object (if │ │ │ │ +00003a70: 2074 6865 2074 6f6b 656e 2072 6561 6465 the token reade │ │ │ │ +00003a80: 7220 6973 2077 7269 7474 656e 2069 6e20 r is written in │ │ │ │ +00003a90: 4329 206f 7220 610a 2020 2020 2066 6f75 C) or a. fou │ │ │ │ +00003aa0: 722d 6172 6775 6d65 6e74 2053 6368 656d r-argument Schem │ │ │ │ +00003ab0: 6520 7072 6f63 6564 7572 6520 2869 6620 e procedure (if │ │ │ │ +00003ac0: 7468 6520 746f 6b65 6e20 7265 6164 6572 the token reader │ │ │ │ +00003ad0: 2069 7320 7772 6974 7465 6e20 696e 0a20 is written in. │ │ │ │ +00003ae0: 2020 2020 5363 6865 6d65 293b 0a20 2020 Scheme);. │ │ │ │ +00003af0: e280 a220 7468 6520 746f 702d 6c65 7665 ... the top-leve │ │ │ │ +00003b00: 6c20 7265 6164 6572 2077 6869 6368 2079 l reader which y │ │ │ │ +00003b10: 6965 6c64 6564 2074 6869 7320 696e 766f ielded this invo │ │ │ │ +00003b20: 6361 7469 6f6e 2061 6e64 2077 6869 6368 cation and which │ │ │ │ +00003b30: 206d 6179 2062 650a 2020 2020 2064 6966 may be. dif │ │ │ │ +00003b40: 6665 7265 6e74 2066 726f 6d20 7468 6520 ferent from the │ │ │ │ +00003b50: 7072 6576 696f 7573 2061 7267 756d 656e previous argumen │ │ │ │ +00003b60: 7420 696e 2074 6865 2063 6173 6520 6120 t in the case a │ │ │ │ +00003b70: 746f 6b65 6e20 7265 6164 6572 2077 6173 token reader was │ │ │ │ +00003b80: 0a20 2020 2020 6d61 6465 2066 726f 6d20 . made from │ │ │ │ +00003b90: 6120 7265 6164 6572 3b20 7468 6520 7573 a reader; the us │ │ │ │ +00003ba0: 6520 6f66 2074 6865 7365 2074 776f 2061 e of these two a │ │ │ │ +00003bb0: 7267 756d 656e 7473 2077 696c 6c20 6265 rguments will be │ │ │ │ +00003bc0: 2064 6574 6169 6c65 640a 2020 2020 2069 detailed. i │ │ │ │ +00003bd0: 6e20 7468 6520 6e65 7874 2073 6563 7469 n the next secti │ │ │ │ +00003be0: 6f6e 2c20 2a6e 6f74 6520 496e 766f 6b69 on, *note Invoki │ │ │ │ +00003bf0: 6e67 2061 2052 6561 6465 7220 6672 6f6d ng a Reader from │ │ │ │ +00003c00: 2061 2054 523a 3a2e 0a0a 2020 2049 7420 a TR::... It │ │ │ │ +00003c10: 6d75 7374 2072 6574 7572 6e20 6120 5363 must return a Sc │ │ │ │ +00003c20: 6865 6d65 206f 626a 6563 7420 7265 7375 heme object resu │ │ │ │ +00003c30: 6c74 696e 6720 6672 6f6d 2074 6865 2069 lting from the i │ │ │ │ +00003c40: 6e74 6572 7072 6574 6174 696f 6e20 6f66 nterpretation of │ │ │ │ +00003c50: 0a74 6865 2063 6861 7261 6374 6572 7320 .the characters │ │ │ │ +00003c60: 7265 6164 2e20 2049 7420 6d61 7920 6173 read. It may as │ │ │ │ +00003c70: 2077 656c 6c20 7261 6973 6520 616e 2065 well raise an e │ │ │ │ +00003c80: 7272 6f72 2069 6620 7468 6520 696e 7075 rror if the inpu │ │ │ │ +00003c90: 740a 7365 7175 656e 6365 2069 7320 636f t.sequence is co │ │ │ │ +00003ca0: 7272 7570 742e 2020 4669 6e61 6c6c 792c rrupt. Finally, │ │ │ │ +00003cb0: 2069 7420 6d61 7920 7265 7475 726e 20e2 it may return . │ │ │ │ +00003cc0: 8098 2a75 6e73 7065 6369 6669 6564 2ae2 ..*unspecified*. │ │ │ │ +00003cd0: 8099 2c20 696e 2077 6869 6368 0a63 6173 .., in which.cas │ │ │ │ +00003ce0: 6520 7468 6520 6361 6c6c 696e 6720 7265 e the calling re │ │ │ │ +00003cf0: 6164 6572 2077 696c 6c20 6e6f 7420 7265 ader will not re │ │ │ │ +00003d00: 7475 726e 2061 6e64 2069 6e73 7465 6164 turn and instead │ │ │ │ +00003d10: 2063 6f6e 7469 6e75 6520 7265 6164 696e continue readin │ │ │ │ +00003d20: 672e 0a54 6869 7320 6973 2070 6172 7469 g..This is parti │ │ │ │ +00003d30: 6375 6c61 726c 7920 7573 6566 756c 2074 cularly useful t │ │ │ │ +00003d40: 6f20 6465 6669 6e65 2063 6f6d 6d65 6e74 o define comment │ │ │ │ +00003d50: 2074 6f6b 656e 2072 6561 6465 7273 3a20 token readers: │ │ │ │ +00003d60: 6120 5452 2074 6861 740a 6861 7320 6a75 a TR that.has ju │ │ │ │ +00003d70: 7374 2072 6561 6420 6120 636f 6d6d 656e st read a commen │ │ │ │ +00003d80: 7420 7769 6c6c 206f 6276 696f 7573 6c79 t will obviously │ │ │ │ +00003d90: 206e 6f74 2068 6176 6520 616e 7920 7365 not have any se │ │ │ │ +00003da0: 6e73 6962 6c65 2053 6368 656d 650a 6f62 nsible Scheme.ob │ │ │ │ +00003db0: 6a65 6374 2074 6f20 7265 7475 726e 2c20 ject to return, │ │ │ │ +00003dc0: 616e 6420 6120 7265 6164 6572 2069 7320 and a reader is │ │ │ │ +00003dd0: 6e6f 7420 6578 7065 6374 6564 2074 6f20 not expected to │ │ │ │ +00003de0: 7265 7475 726e 2061 6e79 7468 696e 6720 return anything │ │ │ │ +00003df0: 6275 7420 610a 2272 6561 6c22 2053 6368 but a."real" Sch │ │ │ │ +00003e00: 656d 6520 6f62 6a65 6374 2e20 2041 2074 eme object. A t │ │ │ │ +00003e10: 6f6b 656e 2072 6561 6465 7220 666f 7220 oken reader for │ │ │ │ +00003e20: 5363 6865 6d65 2773 20e2 8098 3be2 8099 Scheme's ...;... │ │ │ │ +00003e30: 206c 696e 6520 636f 6d6d 656e 7473 206d line comments m │ │ │ │ +00003e40: 6179 0a62 6520 6465 6669 6e65 6420 6173 ay.be defined as │ │ │ │ +00003e50: 2066 6f6c 6c6f 7773 3a0a 0a20 2020 2020 follows:.. │ │ │ │ +00003e60: 286d 616b 652d 746f 6b65 6e2d 7265 6164 (make-token-read │ │ │ │ +00003e70: 6572 2023 5c3b 2072 6561 642d 612d 6c69 er #\; read-a-li │ │ │ │ +00003e80: 6e65 2d61 6e64 2d72 6574 7572 6e2d 756e ne-and-return-un │ │ │ │ +00003e90: 7370 6563 6966 6965 6429 0a0a 2020 2054 specified).. T │ │ │ │ +00003ea0: 6869 7320 6265 6861 7669 6f72 206d 6179 his behavior may │ │ │ │ +00003eb0: 2c20 686f 7765 7665 722c 2062 6520 6f76 , however, be ov │ │ │ │ +00003ec0: 6572 7269 6464 656e 2062 7920 7061 7373 erridden by pass │ │ │ │ +00003ed0: 696e 670a e280 986d 616b 652d 746f 6b65 ing....make-toke │ │ │ │ +00003ee0: 6e2d 7265 6164 6572 e280 9920 6120 7468 n-reader... a th │ │ │ │ +00003ef0: 6972 6420 6172 6775 6d65 6e74 2028 6361 ird argument (ca │ │ │ │ +00003f00: 6c6c 6564 2045 5343 4150 453f 293a 0a0a lled ESCAPE?):.. │ │ │ │ +00003f10: 2020 2020 2028 6d61 6b65 2d74 6f6b 656e (make-token │ │ │ │ +00003f20: 2d72 6561 6465 7220 235c 3b20 7265 6164 -reader #\; read │ │ │ │ +00003f30: 2d61 2d6c 696e 652d 616e 642d 7265 7475 -a-line-and-retu │ │ │ │ +00003f40: 726e 2d75 6e73 7065 6369 6669 6564 2023 rn-unspecified # │ │ │ │ +00003f50: 7429 0a0a 2020 2041 2072 6561 6465 7220 t).. A reader │ │ │ │ +00003f60: 7468 6174 2069 6e63 6c75 6465 7320 7468 that includes th │ │ │ │ +00003f70: 6973 2054 5220 7769 6c6c 2072 6574 7572 is TR will retur │ │ │ │ +00003f80: 6e20 e280 982a 756e 7370 6563 6966 6965 n ...*unspecifie │ │ │ │ +00003f90: 642a e280 9920 6f6e 6365 2061 0a6c 696e d*... once a.lin │ │ │ │ +00003fa0: 6520 636f 6d6d 656e 7420 6861 7320 6265 e comment has be │ │ │ │ +00003fb0: 656e 2072 6561 642e 2020 5468 6973 2069 en read. This i │ │ │ │ +00003fc0: 7320 7061 7274 6963 756c 6172 6c79 2075 s particularly u │ │ │ │ +00003fd0: 7365 6675 6c2c 2066 6f72 2069 6e73 7461 seful, for insta │ │ │ │ +00003fe0: 6e63 652c 0a77 6865 6e20 696d 706c 656d nce,.when implem │ │ │ │ +00003ff0: 656e 7469 6e67 20e2 8098 2321 e280 9920 enting ...#!... │ │ │ │ +00004000: 626c 6f63 6b20 636f 6d6d 656e 7473 2028 block comments ( │ │ │ │ +00004010: 2a6e 6f74 6520 5343 5348 2062 6c6f 636b *note SCSH block │ │ │ │ +00004020: 2063 6f6d 6d65 6e74 733a 0a28 6775 696c comments:.(guil │ │ │ │ +00004030: 6529 426c 6f63 6b20 436f 6d6d 656e 7473 e)Block Comments │ │ │ │ +00004040: 2c20 666f 7220 6d6f 7265 2069 6e66 6f72 , for more infor │ │ │ │ +00004050: 6d61 7469 6f6e 2920 6173 2061 2054 5220 mation) as a TR │ │ │ │ +00004060: 6174 7461 6368 6564 2074 6f20 e280 9823 attached to ...# │ │ │ │ +00004070: 5c21 e280 990a 7769 7468 696e 2074 6865 \!....within the │ │ │ │ +00004080: 20e2 8098 235c 23e2 8099 2073 7562 2d72 ...#\#... sub-r │ │ │ │ +00004090: 6561 6465 7220 282a 6e6f 7465 2044 6566 eader (*note Def │ │ │ │ +000040a0: 696e 696e 6720 6120 4e65 7720 546f 6b65 ining a New Toke │ │ │ │ +000040b0: 6e20 5265 6164 6572 3a3a 292e 0a0a 2020 n Reader::)... │ │ │ │ +000040c0: 2046 696e 616c 6c79 2c20 7468 6520 7072 Finally, the pr │ │ │ │ +000040d0: 6f63 6564 7572 6520 7061 7373 6564 2074 ocedure passed t │ │ │ │ +000040e0: 6f20 e280 986d 616b 652d 746f 6b65 6e2d o ...make-token- │ │ │ │ +000040f0: 7265 6164 6572 e280 9920 6d61 7920 6265 reader... may be │ │ │ │ +00004100: 20e2 8098 2366 e280 992c 2069 6e0a 7768 ...#f..., in.wh │ │ │ │ +00004110: 6963 6820 6361 7365 2074 6865 2072 6573 ich case the res │ │ │ │ +00004120: 756c 7469 6e67 2054 5220 7769 6c6c 206a ulting TR will j │ │ │ │ +00004130: 7573 7420 6861 7665 2074 6865 2065 6666 ust have the eff │ │ │ │ +00004140: 6563 7420 6f66 2069 676e 6f72 696e 6720 ect of ignoring │ │ │ │ +00004150: 7468 650a 6368 6172 6163 7465 7273 2069 the.characters i │ │ │ │ +00004160: 7420 6973 2061 7373 6f63 6961 7465 6420 t is associated │ │ │ │ +00004170: 746f 2e20 2046 6f72 2069 6e73 7461 6e63 to. For instanc │ │ │ │ +00004180: 652c 2068 616e 646c 696e 6720 7768 6974 e, handling whit │ │ │ │ +00004190: 6520 7370 6163 6573 206d 6179 0a62 6520 e spaces may.be │ │ │ │ +000041a0: 646f 6e65 2062 7920 6465 6669 6e69 6e67 done by defining │ │ │ │ +000041b0: 2061 2054 5220 6c69 6b65 2074 6869 733a a TR like this: │ │ │ │ +000041c0: 0a0a 2020 2020 2028 6d61 6b65 2d74 6f6b .. (make-tok │ │ │ │ +000041d0: 656e 2d72 6561 6465 7220 2728 235c 7370 en-reader '(#\sp │ │ │ │ +000041e0: 6163 6520 235c 6e65 776c 696e 6520 235c ace #\newline #\ │ │ │ │ +000041f0: 7461 6229 2023 6629 0a0a 1f0a 4669 6c65 tab) #f)....File │ │ │ │ +00004200: 3a20 6775 696c 652d 7265 6164 6572 2e69 : guile-reader.i │ │ │ │ +00004210: 6e66 6f2c 2020 4e6f 6465 3a20 496e 766f nfo, Node: Invo │ │ │ │ +00004220: 6b69 6e67 2061 2052 6561 6465 7220 6672 king a Reader fr │ │ │ │ +00004230: 6f6d 2061 2054 522c 2020 4e65 7874 3a20 om a TR, Next: │ │ │ │ +00004240: 546f 6b65 6e20 5265 6164 6572 204c 6962 Token Reader Lib │ │ │ │ +00004250: 7261 7279 2c20 2050 7265 763a 2054 5220 rary, Prev: TR │ │ │ │ +00004260: 4361 6c6c 696e 6720 436f 6e76 656e 7469 Calling Conventi │ │ │ │ +00004270: 6f6e 2c20 2055 703a 2054 6f6b 656e 2052 on, Up: Token R │ │ │ │ +00004280: 6561 6465 7273 0a0a 342e 312e 3320 496e eaders..4.1.3 In │ │ │ │ +00004290: 766f 6b69 6e67 2061 2052 6561 6465 7220 voking a Reader │ │ │ │ +000042a0: 6672 6f6d 2061 2054 6f6b 656e 2052 6561 from a Token Rea │ │ │ │ +000042b0: 6465 720a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d der.------------ │ │ │ │ 000042c0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -000042d0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -000042e0: 2d2d 2d0a 0a41 7320 7365 656e 2069 6e20 ---..As seen in │ │ │ │ -000042f0: 7365 6374 696f 6e20 2a4e 6f74 6520 4465 section *Note De │ │ │ │ -00004300: 6669 6e69 6e67 2061 204e 6577 2054 6f6b fining a New Tok │ │ │ │ -00004310: 656e 2052 6561 6465 723a 3a2c 2074 6f6b en Reader::, tok │ │ │ │ -00004320: 656e 2072 6561 6465 7273 0a61 7265 2073 en readers.are s │ │ │ │ -00004330: 7973 7465 6d61 7469 6361 6c6c 7920 7061 ystematically pa │ │ │ │ -00004340: 7373 6564 2074 6f20 7265 6164 6572 7320 ssed to readers │ │ │ │ -00004350: 7768 656e 2069 6e76 6f6b 6564 2e20 2054 when invoked. T │ │ │ │ -00004360: 6865 2072 6561 736f 6e20 7768 7920 7468 he reason why th │ │ │ │ -00004370: 6973 0a6d 6179 2062 6520 7573 6566 756c is.may be useful │ │ │ │ -00004380: 206d 6179 206e 6f74 2062 6520 6f62 7669 may not be obvi │ │ │ │ -00004390: 6f75 7320 6174 2066 6972 7374 2073 6967 ous at first sig │ │ │ │ -000043a0: 6874 2e0a 0a20 2020 436f 6e73 6964 6572 ht... Consider │ │ │ │ -000043b0: 2061 6e20 532d 6578 7020 746f 6b65 6e20 an S-exp token │ │ │ │ -000043c0: 7265 6164 6572 2e20 2054 6865 2054 5220 reader. The TR │ │ │ │ -000043d0: 6974 7365 6c66 2064 6f65 736e 2774 2068 itself doesn't h │ │ │ │ -000043e0: 6176 650a 7375 6666 6963 6965 6e74 206b ave.sufficient k │ │ │ │ -000043f0: 6e6f 776c 6564 6765 2074 6f20 7265 6164 nowledge to read │ │ │ │ -00004400: 2074 6865 206f 626a 6563 7473 2074 6861 the objects tha │ │ │ │ -00004410: 7420 636f 6d70 7269 7365 2061 6e20 532d t comprise an S- │ │ │ │ -00004420: 6578 702e 2020 536f 2069 740a 6e65 6564 exp. So it.need │ │ │ │ -00004430: 7320 746f 2062 6520 6162 6c65 2074 6f20 s to be able to │ │ │ │ -00004440: 6361 6c6c 2074 6865 2072 6561 6465 7220 call the reader │ │ │ │ -00004450: 7468 6174 2069 7320 6265 696e 6720 7573 that is being us │ │ │ │ -00004460: 6564 2074 6f20 6163 7475 616c 6c79 2072 ed to actually r │ │ │ │ -00004470: 6561 640a 7468 6f73 6520 6f62 6a65 6374 ead.those object │ │ │ │ -00004480: 732e 0a0a 2020 2054 6865 206e 6565 6420 s... The need │ │ │ │ -00004490: 666f 7220 7468 6520 544f 502d 4c45 5645 for the TOP-LEVE │ │ │ │ -000044a0: 4c2d 5245 4144 4552 2061 7267 756d 656e L-READER argumen │ │ │ │ -000044b0: 7420 7061 7373 6564 2074 6f20 746f 6b65 t passed to toke │ │ │ │ -000044c0: 6e20 7265 6164 6572 730a 6d61 7920 6265 n readers.may be │ │ │ │ -000044d0: 2069 6c6c 7573 7472 6174 6564 206c 6f6f illustrated loo │ │ │ │ -000044e0: 6b69 6e67 2061 7420 7468 6520 696d 706c king at the impl │ │ │ │ -000044f0: 656d 656e 7461 7469 6f6e 206f 6620 7468 ementation of th │ │ │ │ -00004500: 6520 7665 6374 6f72 2072 6561 640a 7379 e vector read.sy │ │ │ │ -00004510: 6e74 6178 2028 2a6e 6f74 6520 2867 7569 ntax (*note (gui │ │ │ │ -00004520: 6c65 2956 6563 746f 7220 5379 6e74 6178 le)Vector Syntax │ │ │ │ -00004530: 3a3a 292e 2020 4f6e 6520 6d61 7920 696d ::). One may im │ │ │ │ -00004540: 706c 656d 656e 7420 7468 6520 7665 6374 plement the vect │ │ │ │ -00004550: 6f72 0a72 6561 6465 7220 6173 2061 2074 or.reader as a t │ │ │ │ -00004560: 6f6b 656e 2072 6561 6465 7220 6f66 2074 oken reader of t │ │ │ │ -00004570: 6865 20e2 8098 23e2 8099 2073 7562 2d72 he ...#... sub-r │ │ │ │ -00004580: 6561 6465 7220 282a 6e6f 7465 2044 6566 eader (*note Def │ │ │ │ -00004590: 696e 696e 6720 6120 4e65 770a 546f 6b65 ining a New.Toke │ │ │ │ -000045a0: 6e20 5265 6164 6572 3a3a 292e 2020 5468 n Reader::). Th │ │ │ │ -000045b0: 6520 7665 6374 6f72 2074 6f6b 656e 2072 e vector token r │ │ │ │ -000045c0: 6561 6465 7220 6d61 7920 6265 2069 6d70 eader may be imp │ │ │ │ -000045d0: 6c65 6d65 6e74 6564 206c 696b 6520 7468 lemented like th │ │ │ │ -000045e0: 6973 3a0a 0a20 2020 2020 286c 616d 6264 is:.. (lambd │ │ │ │ -000045f0: 6120 2863 6872 2070 6f72 7420 7265 6164 a (chr port read │ │ │ │ -00004600: 6572 2074 6f70 2d6c 6576 656c 2d72 6561 er top-level-rea │ │ │ │ -00004610: 6465 7229 0a20 2020 2020 2020 3b3b 2041 der). ;; A │ │ │ │ -00004620: 7420 7468 6973 2070 6f69 6e74 2c20 6023 t this point, `# │ │ │ │ -00004630: 2720 6173 2061 6c72 6561 6479 2062 6565 ' as already bee │ │ │ │ -00004640: 6e20 7265 6164 2061 6e64 2043 4852 2069 n read and CHR i │ │ │ │ -00004650: 7320 6028 272c 0a20 2020 2020 2020 3b3b s `(',. ;; │ │ │ │ -00004660: 2073 6f20 7765 2063 616e 2064 6972 6563 so we can direc │ │ │ │ -00004670: 746c 7920 6361 6c6c 2074 6865 2072 6567 tly call the reg │ │ │ │ -00004680: 756c 6172 2053 2d65 7870 7265 7373 696f ular S-expressio │ │ │ │ -00004690: 6e20 7265 6164 6572 0a20 2020 2020 2020 n reader. │ │ │ │ -000046a0: 3b3b 2061 6e64 2063 6f6e 7665 7274 2069 ;; and convert i │ │ │ │ -000046b0: 7473 2072 6573 756c 7420 696e 746f 2061 ts result into a │ │ │ │ -000046c0: 2076 6563 746f 722e 0a20 2020 2020 2020 vector.. │ │ │ │ -000046d0: 286c 6574 2028 2873 6578 702d 7265 6164 (let ((sexp-read │ │ │ │ -000046e0: 2028 746f 6b65 6e2d 7265 6164 6572 2d70 (token-reader-p │ │ │ │ -000046f0: 726f 6365 6475 7265 0a20 2020 2020 2020 rocedure. │ │ │ │ -00004700: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004710: 2020 2873 7461 6e64 6172 642d 746f 6b65 (standard-toke │ │ │ │ -00004720: 6e2d 7265 6164 6572 2027 7365 7870 2929 n-reader 'sexp)) │ │ │ │ -00004730: 2929 0a20 2020 2020 2020 2020 2861 7070 )). (app │ │ │ │ -00004740: 6c79 2076 6563 746f 720a 2020 2020 2020 ly vector. │ │ │ │ -00004750: 2020 2020 2020 2020 2020 2873 6578 702d (sexp- │ │ │ │ -00004760: 7265 6164 2063 6872 2070 6f72 7420 7265 read chr port re │ │ │ │ -00004770: 6164 6572 2929 2929 0a0a 2020 2057 6865 ader)))).. Whe │ │ │ │ -00004780: 6e20 7468 6973 2070 726f 6365 6475 7265 n this procedure │ │ │ │ -00004790: 2069 7320 696e 766f 6b65 642c 2052 4541 is invoked, REA │ │ │ │ -000047a0: 4445 5220 706f 696e 7473 2074 6f20 7468 DER points to th │ │ │ │ -000047b0: 6520 e280 9823 e280 9920 7375 622d 7265 e ...#... sub-re │ │ │ │ -000047c0: 6164 6572 2e0a 0a1f 0a46 696c 653a 2067 ader.....File: g │ │ │ │ -000047d0: 7569 6c65 2d72 6561 6465 722e 696e 666f uile-reader.info │ │ │ │ -000047e0: 2c20 204e 6f64 653a 2054 6f6b 656e 2052 , Node: Token R │ │ │ │ -000047f0: 6561 6465 7220 4c69 6272 6172 792c 2020 eader Library, │ │ │ │ -00004800: 4e65 7874 3a20 4c69 6d69 7461 7469 6f6e Next: Limitation │ │ │ │ -00004810: 732c 2020 5072 6576 3a20 496e 766f 6b69 s, Prev: Invoki │ │ │ │ -00004820: 6e67 2061 2052 6561 6465 7220 6672 6f6d ng a Reader from │ │ │ │ -00004830: 2061 2054 522c 2020 5570 3a20 546f 6b65 a TR, Up: Toke │ │ │ │ -00004840: 6e20 5265 6164 6572 730a 0a34 2e31 2e34 n Readers..4.1.4 │ │ │ │ -00004850: 2054 6f6b 656e 2052 6561 6465 7220 4c69 Token Reader Li │ │ │ │ -00004860: 6272 6172 790a 2d2d 2d2d 2d2d 2d2d 2d2d brary.---------- │ │ │ │ -00004870: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -00004880: 0a0a 4775 696c 652d 5265 6164 6572 2063 ..Guile-Reader c │ │ │ │ -00004890: 6f6d 6573 2077 6974 6820 6120 6e75 6d62 omes with a numb │ │ │ │ -000048a0: 6572 206f 6620 7265 2d75 7361 626c 6520 er of re-usable │ │ │ │ -000048b0: 746f 6b65 6e20 7265 6164 6572 732e 2020 token readers. │ │ │ │ -000048c0: 546f 6765 7468 6572 2c0a 7468 6579 206d Together,.they m │ │ │ │ -000048d0: 6967 6874 2062 6520 6173 7365 6d62 6c65 ight be assemble │ │ │ │ -000048e0: 6420 746f 2066 6f72 6d20 6120 636f 6d70 d to form a comp │ │ │ │ -000048f0: 6c65 7465 2053 6368 656d 6520 7265 6164 lete Scheme read │ │ │ │ -00004900: 6572 2065 7175 6976 616c 656e 7420 746f er equivalent to │ │ │ │ -00004910: 0a74 6861 7420 6f66 2047 7569 6c65 2028 .that of Guile ( │ │ │ │ -00004920: 2a6e 6f74 6520 5265 6164 6572 204c 6962 *note Reader Lib │ │ │ │ -00004930: 7261 7279 3a3a 292e 2020 4f72 2074 6865 rary::). Or the │ │ │ │ -00004940: 7920 6361 6e20 6265 2075 7365 640a 696e y can be used.in │ │ │ │ -00004950: 6469 7669 6475 616c 6c79 2069 6e20 616e dividually in an │ │ │ │ -00004960: 7920 7265 6164 6572 2e0a 0a20 2020 5468 y reader... Th │ │ │ │ -00004970: 6520 e280 9873 7461 6e64 6172 642d 746f e ...standard-to │ │ │ │ -00004980: 6b65 6e2d 7265 6164 6572 e280 9920 7072 ken-reader... pr │ │ │ │ -00004990: 6f63 6564 7572 6520 7461 6b65 7320 6120 ocedure takes a │ │ │ │ -000049a0: 7379 6d62 6f6c 2074 6861 7420 6e61 6d65 symbol that name │ │ │ │ -000049b0: 7320 610a 7374 616e 6461 7264 2054 5220 s a.standard TR │ │ │ │ -000049c0: 6672 6f6d 2074 6865 206c 6962 7261 7279 from the library │ │ │ │ -000049d0: 2061 6e64 2072 6574 7572 6e73 2069 7420 and returns it │ │ │ │ -000049e0: 286f 7220 e280 9823 66e2 8099 2069 6620 (or ...#f... if │ │ │ │ -000049f0: 6e6f 7420 666f 756e 6429 2e0a 4375 7272 not found)..Curr │ │ │ │ -00004a00: 656e 746c 792c 2074 6865 2061 7661 696c ently, the avail │ │ │ │ -00004a10: 6162 6c65 2054 5273 2061 7265 3a0a 0a54 able TRs are:..T │ │ │ │ -00004a20: 6f6b 656e 2052 6561 6465 7220 2020 2020 oken Reader │ │ │ │ -00004a30: 2020 4368 6172 6163 7465 7220 5370 6563 Character Spec │ │ │ │ -00004a40: 2e20 2020 2044 6573 6372 6970 7469 6f6e . Description │ │ │ │ -00004a50: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +000042d0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a ---------------. │ │ │ │ +000042e0: 0a41 7320 7365 656e 2069 6e20 7365 6374 .As seen in sect │ │ │ │ +000042f0: 696f 6e20 2a4e 6f74 6520 4465 6669 6e69 ion *Note Defini │ │ │ │ +00004300: 6e67 2061 204e 6577 2054 6f6b 656e 2052 ng a New Token R │ │ │ │ +00004310: 6561 6465 723a 3a2c 2074 6f6b 656e 2072 eader::, token r │ │ │ │ +00004320: 6561 6465 7273 0a61 7265 2073 7973 7465 eaders.are syste │ │ │ │ +00004330: 6d61 7469 6361 6c6c 7920 7061 7373 6564 matically passed │ │ │ │ +00004340: 2074 6f20 7265 6164 6572 7320 7768 656e to readers when │ │ │ │ +00004350: 2069 6e76 6f6b 6564 2e20 2054 6865 2072 invoked. The r │ │ │ │ +00004360: 6561 736f 6e20 7768 7920 7468 6973 0a6d eason why this.m │ │ │ │ +00004370: 6179 2062 6520 7573 6566 756c 206d 6179 ay be useful may │ │ │ │ +00004380: 206e 6f74 2062 6520 6f62 7669 6f75 7320 not be obvious │ │ │ │ +00004390: 6174 2066 6972 7374 2073 6967 6874 2e0a at first sight.. │ │ │ │ +000043a0: 0a20 2020 436f 6e73 6964 6572 2061 6e20 . Consider an │ │ │ │ +000043b0: 532d 6578 7020 746f 6b65 6e20 7265 6164 S-exp token read │ │ │ │ +000043c0: 6572 2e20 2054 6865 2054 5220 6974 7365 er. The TR itse │ │ │ │ +000043d0: 6c66 2064 6f65 736e 2774 2068 6176 650a lf doesn't have. │ │ │ │ +000043e0: 7375 6666 6963 6965 6e74 206b 6e6f 776c sufficient knowl │ │ │ │ +000043f0: 6564 6765 2074 6f20 7265 6164 2074 6865 edge to read the │ │ │ │ +00004400: 206f 626a 6563 7473 2074 6861 7420 636f objects that co │ │ │ │ +00004410: 6d70 7269 7365 2061 6e20 532d 6578 702e mprise an S-exp. │ │ │ │ +00004420: 2020 536f 2069 740a 6e65 6564 7320 746f So it.needs to │ │ │ │ +00004430: 2062 6520 6162 6c65 2074 6f20 6361 6c6c be able to call │ │ │ │ +00004440: 2074 6865 2072 6561 6465 7220 7468 6174 the reader that │ │ │ │ +00004450: 2069 7320 6265 696e 6720 7573 6564 2074 is being used t │ │ │ │ +00004460: 6f20 6163 7475 616c 6c79 2072 6561 640a o actually read. │ │ │ │ +00004470: 7468 6f73 6520 6f62 6a65 6374 732e 0a0a those objects... │ │ │ │ +00004480: 2020 2054 6865 206e 6565 6420 666f 7220 The need for │ │ │ │ +00004490: 7468 6520 544f 502d 4c45 5645 4c2d 5245 the TOP-LEVEL-RE │ │ │ │ +000044a0: 4144 4552 2061 7267 756d 656e 7420 7061 ADER argument pa │ │ │ │ +000044b0: 7373 6564 2074 6f20 746f 6b65 6e20 7265 ssed to token re │ │ │ │ +000044c0: 6164 6572 730a 6d61 7920 6265 2069 6c6c aders.may be ill │ │ │ │ +000044d0: 7573 7472 6174 6564 206c 6f6f 6b69 6e67 ustrated looking │ │ │ │ +000044e0: 2061 7420 7468 6520 696d 706c 656d 656e at the implemen │ │ │ │ +000044f0: 7461 7469 6f6e 206f 6620 7468 6520 7665 tation of the ve │ │ │ │ +00004500: 6374 6f72 2072 6561 640a 7379 6e74 6178 ctor read.syntax │ │ │ │ +00004510: 2028 2a6e 6f74 6520 2867 7569 6c65 2956 (*note (guile)V │ │ │ │ +00004520: 6563 746f 7220 5379 6e74 6178 3a3a 292e ector Syntax::). │ │ │ │ +00004530: 2020 4f6e 6520 6d61 7920 696d 706c 656d One may implem │ │ │ │ +00004540: 656e 7420 7468 6520 7665 6374 6f72 0a72 ent the vector.r │ │ │ │ +00004550: 6561 6465 7220 6173 2061 2074 6f6b 656e eader as a token │ │ │ │ +00004560: 2072 6561 6465 7220 6f66 2074 6865 20e2 reader of the . │ │ │ │ +00004570: 8098 23e2 8099 2073 7562 2d72 6561 6465 ..#... sub-reade │ │ │ │ +00004580: 7220 282a 6e6f 7465 2044 6566 696e 696e r (*note Definin │ │ │ │ +00004590: 6720 6120 4e65 770a 546f 6b65 6e20 5265 g a New.Token Re │ │ │ │ +000045a0: 6164 6572 3a3a 292e 2020 5468 6520 7665 ader::). The ve │ │ │ │ +000045b0: 6374 6f72 2074 6f6b 656e 2072 6561 6465 ctor token reade │ │ │ │ +000045c0: 7220 6d61 7920 6265 2069 6d70 6c65 6d65 r may be impleme │ │ │ │ +000045d0: 6e74 6564 206c 696b 6520 7468 6973 3a0a nted like this:. │ │ │ │ +000045e0: 0a20 2020 2020 286c 616d 6264 6120 2863 . (lambda (c │ │ │ │ +000045f0: 6872 2070 6f72 7420 7265 6164 6572 2074 hr port reader t │ │ │ │ +00004600: 6f70 2d6c 6576 656c 2d72 6561 6465 7229 op-level-reader) │ │ │ │ +00004610: 0a20 2020 2020 2020 3b3b 2041 7420 7468 . ;; At th │ │ │ │ +00004620: 6973 2070 6f69 6e74 2c20 6023 2720 6173 is point, `#' as │ │ │ │ +00004630: 2061 6c72 6561 6479 2062 6565 6e20 7265 already been re │ │ │ │ +00004640: 6164 2061 6e64 2043 4852 2069 7320 6028 ad and CHR is `( │ │ │ │ +00004650: 272c 0a20 2020 2020 2020 3b3b 2073 6f20 ',. ;; so │ │ │ │ +00004660: 7765 2063 616e 2064 6972 6563 746c 7920 we can directly │ │ │ │ +00004670: 6361 6c6c 2074 6865 2072 6567 756c 6172 call the regular │ │ │ │ +00004680: 2053 2d65 7870 7265 7373 696f 6e20 7265 S-expression re │ │ │ │ +00004690: 6164 6572 0a20 2020 2020 2020 3b3b 2061 ader. ;; a │ │ │ │ +000046a0: 6e64 2063 6f6e 7665 7274 2069 7473 2072 nd convert its r │ │ │ │ +000046b0: 6573 756c 7420 696e 746f 2061 2076 6563 esult into a vec │ │ │ │ +000046c0: 746f 722e 0a20 2020 2020 2020 286c 6574 tor.. (let │ │ │ │ +000046d0: 2028 2873 6578 702d 7265 6164 2028 746f ((sexp-read (to │ │ │ │ +000046e0: 6b65 6e2d 7265 6164 6572 2d70 726f 6365 ken-reader-proce │ │ │ │ +000046f0: 6475 7265 0a20 2020 2020 2020 2020 2020 dure. │ │ │ │ +00004700: 2020 2020 2020 2020 2020 2020 2020 2873 (s │ │ │ │ +00004710: 7461 6e64 6172 642d 746f 6b65 6e2d 7265 tandard-token-re │ │ │ │ +00004720: 6164 6572 2027 7365 7870 2929 2929 0a20 ader 'sexp)))). │ │ │ │ +00004730: 2020 2020 2020 2020 2861 7070 6c79 2076 (apply v │ │ │ │ +00004740: 6563 746f 720a 2020 2020 2020 2020 2020 ector. │ │ │ │ +00004750: 2020 2020 2020 2873 6578 702d 7265 6164 (sexp-read │ │ │ │ +00004760: 2063 6872 2070 6f72 7420 7265 6164 6572 chr port reader │ │ │ │ +00004770: 2929 2929 0a0a 2020 2057 6865 6e20 7468 )))).. When th │ │ │ │ +00004780: 6973 2070 726f 6365 6475 7265 2069 7320 is procedure is │ │ │ │ +00004790: 696e 766f 6b65 642c 2052 4541 4445 5220 invoked, READER │ │ │ │ +000047a0: 706f 696e 7473 2074 6f20 7468 6520 e280 points to the .. │ │ │ │ +000047b0: 9823 e280 9920 7375 622d 7265 6164 6572 .#... sub-reader │ │ │ │ +000047c0: 2e0a 0a1f 0a46 696c 653a 2067 7569 6c65 .....File: guile │ │ │ │ +000047d0: 2d72 6561 6465 722e 696e 666f 2c20 204e -reader.info, N │ │ │ │ +000047e0: 6f64 653a 2054 6f6b 656e 2052 6561 6465 ode: Token Reade │ │ │ │ +000047f0: 7220 4c69 6272 6172 792c 2020 4e65 7874 r Library, Next │ │ │ │ +00004800: 3a20 4c69 6d69 7461 7469 6f6e 732c 2020 : Limitations, │ │ │ │ +00004810: 5072 6576 3a20 496e 766f 6b69 6e67 2061 Prev: Invoking a │ │ │ │ +00004820: 2052 6561 6465 7220 6672 6f6d 2061 2054 Reader from a T │ │ │ │ +00004830: 522c 2020 5570 3a20 546f 6b65 6e20 5265 R, Up: Token Re │ │ │ │ +00004840: 6164 6572 730a 0a34 2e31 2e34 2054 6f6b aders..4.1.4 Tok │ │ │ │ +00004850: 656e 2052 6561 6465 7220 4c69 6272 6172 en Reader Librar │ │ │ │ +00004860: 790a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d y.-------------- │ │ │ │ +00004870: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 4775 ------------..Gu │ │ │ │ +00004880: 696c 652d 5265 6164 6572 2063 6f6d 6573 ile-Reader comes │ │ │ │ +00004890: 2077 6974 6820 6120 6e75 6d62 6572 206f with a number o │ │ │ │ +000048a0: 6620 7265 2d75 7361 626c 6520 746f 6b65 f re-usable toke │ │ │ │ +000048b0: 6e20 7265 6164 6572 732e 2020 546f 6765 n readers. Toge │ │ │ │ +000048c0: 7468 6572 2c0a 7468 6579 206d 6967 6874 ther,.they might │ │ │ │ +000048d0: 2062 6520 6173 7365 6d62 6c65 6420 746f be assembled to │ │ │ │ +000048e0: 2066 6f72 6d20 6120 636f 6d70 6c65 7465 form a complete │ │ │ │ +000048f0: 2053 6368 656d 6520 7265 6164 6572 2065 Scheme reader e │ │ │ │ +00004900: 7175 6976 616c 656e 7420 746f 0a74 6861 quivalent to.tha │ │ │ │ +00004910: 7420 6f66 2047 7569 6c65 2028 2a6e 6f74 t of Guile (*not │ │ │ │ +00004920: 6520 5265 6164 6572 204c 6962 7261 7279 e Reader Library │ │ │ │ +00004930: 3a3a 292e 2020 4f72 2074 6865 7920 6361 ::). Or they ca │ │ │ │ +00004940: 6e20 6265 2075 7365 640a 696e 6469 7669 n be used.indivi │ │ │ │ +00004950: 6475 616c 6c79 2069 6e20 616e 7920 7265 dually in any re │ │ │ │ +00004960: 6164 6572 2e0a 0a20 2020 5468 6520 e280 ader... The .. │ │ │ │ +00004970: 9873 7461 6e64 6172 642d 746f 6b65 6e2d .standard-token- │ │ │ │ +00004980: 7265 6164 6572 e280 9920 7072 6f63 6564 reader... proced │ │ │ │ +00004990: 7572 6520 7461 6b65 7320 6120 7379 6d62 ure takes a symb │ │ │ │ +000049a0: 6f6c 2074 6861 7420 6e61 6d65 7320 610a ol that names a. │ │ │ │ +000049b0: 7374 616e 6461 7264 2054 5220 6672 6f6d standard TR from │ │ │ │ +000049c0: 2074 6865 206c 6962 7261 7279 2061 6e64 the library and │ │ │ │ +000049d0: 2072 6574 7572 6e73 2069 7420 286f 7220 returns it (or │ │ │ │ +000049e0: e280 9823 66e2 8099 2069 6620 6e6f 7420 ...#f... if not │ │ │ │ +000049f0: 666f 756e 6429 2e0a 4375 7272 656e 746c found)..Currentl │ │ │ │ +00004a00: 792c 2074 6865 2061 7661 696c 6162 6c65 y, the available │ │ │ │ +00004a10: 2054 5273 2061 7265 3a0a 0a54 6f6b 656e TRs are:..Token │ │ │ │ +00004a20: 2052 6561 6465 7220 2020 2020 2020 4368 Reader Ch │ │ │ │ +00004a30: 6172 6163 7465 7220 5370 6563 2e20 2020 aracter Spec. │ │ │ │ +00004a40: 2044 6573 6372 6970 7469 6f6e 0a20 2020 Description. │ │ │ │ +00004a50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00004a60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004a70: 2020 2020 2020 200a 2d2d 2d2d 2d2d 2d2d .-------- │ │ │ │ +00004a70: 2020 200a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d .------------ │ │ │ │ 00004a80: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ 00004a90: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ 00004aa0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -00004ab0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -00004ac0: 2d2d 2d0a e280 9862 6f6f 6c65 616e e280 ---....boolean.. │ │ │ │ -00004ad0: 9920 2020 2020 2020 2020 2034 2063 6861 . 4 cha │ │ │ │ -00004ae0: 7261 6374 6572 732c 2020 2020 2020 5468 racters, Th │ │ │ │ -00004af0: 6973 2069 7320 6120 7368 6172 7020 746f is is a sharp to │ │ │ │ -00004b00: 6b65 6e20 7265 6164 6572 2c20 692e 652e ken reader, i.e. │ │ │ │ -00004b10: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ -00004b20: 2020 2020 e280 9823 5c66 e280 992e 2e2e ...#\f...... │ │ │ │ -00004b30: 2020 e280 9823 5c46 e280 9920 2020 2069 ...#\F... i │ │ │ │ -00004b40: 7420 7265 6164 7320 616e 2052 3552 5320 t reads an R5RS │ │ │ │ -00004b50: 626f 6f6c 6561 6e20 28e2 8098 2366 e280 boolean (...#f.. │ │ │ │ -00004b60: 9920 6f72 0a20 2020 2020 2020 2020 2020 . or. │ │ │ │ +00004ab0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a ---------------. │ │ │ │ +00004ac0: e280 9862 6f6f 6c65 616e e280 9920 2020 ...boolean... │ │ │ │ +00004ad0: 2020 2020 2020 2034 2063 6861 7261 6374 4 charact │ │ │ │ +00004ae0: 6572 732c 2020 2020 2020 5468 6973 2069 ers, This i │ │ │ │ +00004af0: 7320 6120 7368 6172 7020 746f 6b65 6e20 s a sharp token │ │ │ │ +00004b00: 7265 6164 6572 2c20 692e 652e 0a20 2020 reader, i.e.. │ │ │ │ +00004b10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +00004b20: e280 9823 5c66 e280 992e 2e2e 2020 e280 ...#\f...... .. │ │ │ │ +00004b30: 9823 5c46 e280 9920 2020 2069 7420 7265 .#\F... it re │ │ │ │ +00004b40: 6164 7320 616e 2052 3552 5320 626f 6f6c ads an R5RS bool │ │ │ │ +00004b50: 6561 6e20 28e2 8098 2366 e280 9920 6f72 ean (...#f... or │ │ │ │ +00004b60: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00004b70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004b80: 2020 2020 2020 2020 2020 20e2 8098 2346 ...#F │ │ │ │ -00004b90: e280 992c 20e2 8098 2374 e280 9920 6f72 ..., ...#t... or │ │ │ │ -00004ba0: 20e2 8098 2354 e280 9929 206f 6e63 6520 ...#T...) once │ │ │ │ -00004bb0: 6120 e280 9823 e280 990a 2020 2020 2020 a ...#.... │ │ │ │ +00004b80: 2020 2020 2020 20e2 8098 2346 e280 992c ...#F..., │ │ │ │ +00004b90: 20e2 8098 2374 e280 9920 6f72 20e2 8098 ...#t... or ... │ │ │ │ +00004ba0: 2354 e280 9929 206f 6e63 6520 6120 e280 #T...) once a .. │ │ │ │ +00004bb0: 9823 e280 990a 2020 2020 2020 2020 2020 .#.... │ │ │ │ 00004bc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004bd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004be0: 6368 6172 6163 7465 7220 6861 7320 6265 character has be │ │ │ │ -00004bf0: 656e 2072 6561 642e 0a20 2020 2020 2020 en read.. │ │ │ │ +00004bd0: 2020 2020 2020 2020 2020 2020 6368 6172 char │ │ │ │ +00004be0: 6163 7465 7220 6861 7320 6265 656e 2072 acter has been r │ │ │ │ +00004bf0: 6561 642e 0a20 2020 2020 2020 2020 2020 ead.. │ │ │ │ 00004c00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004c10: 2020 2020 2020 2020 2020 2020 2020 200a . │ │ │ │ -00004c20: e280 9862 6f6f 6c65 616e 2d73 7266 692d ...boolean-srfi- │ │ │ │ -00004c30: 34e2 8099 2020 2033 2063 6861 7261 6374 4... 3 charact │ │ │ │ -00004c40: 6572 732c 2020 2020 2020 5468 6973 2069 ers, This i │ │ │ │ -00004c50: 7320 6120 7368 6172 7020 746f 6b65 6e20 s a sharp token │ │ │ │ -00004c60: 7265 6164 6572 2c20 692e 652e 0a20 2020 reader, i.e.. │ │ │ │ -00004c70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004c80: e280 9823 5c74 e280 992e 2e2e 2020 e280 ...#\t...... .. │ │ │ │ -00004c90: 9823 5c46 e280 9920 2020 2069 7420 7265 .#\F... it re │ │ │ │ -00004ca0: 6164 7320 616e 2052 3552 5320 626f 6f6c ads an R5RS bool │ │ │ │ -00004cb0: 6561 6e20 28e2 8098 2374 e280 992c 0a20 ean (...#t...,. │ │ │ │ +00004c10: 2020 2020 2020 2020 2020 200a e280 9862 ....b │ │ │ │ +00004c20: 6f6f 6c65 616e 2d73 7266 692d 34e2 8099 oolean-srfi-4... │ │ │ │ +00004c30: 2020 2033 2063 6861 7261 6374 6572 732c 3 characters, │ │ │ │ +00004c40: 2020 2020 2020 5468 6973 2069 7320 6120 This is a │ │ │ │ +00004c50: 7368 6172 7020 746f 6b65 6e20 7265 6164 sharp token read │ │ │ │ +00004c60: 6572 2c20 692e 652e 0a20 2020 2020 2020 er, i.e.. │ │ │ │ +00004c70: 2020 2020 2020 2020 2020 2020 e280 9823 ...# │ │ │ │ +00004c80: 5c74 e280 992e 2e2e 2020 e280 9823 5c46 \t...... ...#\F │ │ │ │ +00004c90: e280 9920 2020 2069 7420 7265 6164 7320 ... it reads │ │ │ │ +00004ca0: 616e 2052 3552 5320 626f 6f6c 6561 6e20 an R5RS boolean │ │ │ │ +00004cb0: 28e2 8098 2374 e280 992c 0a20 2020 2020 (...#t...,. │ │ │ │ 00004cc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00004cd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004ce0: 2020 2020 20e2 8098 2354 e280 992c 20e2 ...#T..., . │ │ │ │ -00004cf0: 8098 2346 e280 992c 2062 7574 205f 6e6f ..#F..., but _no │ │ │ │ -00004d00: 745f 20e2 8098 2366 e280 9929 206f 6e63 t_ ...#f...) onc │ │ │ │ -00004d10: 6520 610a 2020 2020 2020 2020 2020 2020 e a. │ │ │ │ +00004ce0: 20e2 8098 2354 e280 992c 20e2 8098 2346 ...#T..., ...#F │ │ │ │ +00004cf0: e280 992c 2062 7574 205f 6e6f 745f 20e2 ..., but _not_ . │ │ │ │ +00004d00: 8098 2366 e280 9929 206f 6e63 6520 610a ..#f...) once a. │ │ │ │ +00004d10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00004d20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004d30: 2020 2020 2020 2020 2020 e280 9823 e280 ...#.. │ │ │ │ -00004d40: 9920 6368 6172 6163 7465 7220 6861 7320 . character has │ │ │ │ -00004d50: 6265 656e 2072 6561 642e 0a20 2020 2020 been read.. │ │ │ │ +00004d30: 2020 2020 2020 e280 9823 e280 9920 6368 ...#... ch │ │ │ │ +00004d40: 6172 6163 7465 7220 6861 7320 6265 656e aracter has been │ │ │ │ +00004d50: 2072 6561 642e 0a20 2020 2020 2020 2020 read.. │ │ │ │ 00004d60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004d70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004d80: 2043 6f6d 7061 7265 6420 746f 2074 6865 Compared to the │ │ │ │ -00004d90: 20e2 8098 626f 6f6c 6561 6ee2 8099 2074 ...boolean... t │ │ │ │ -00004da0: 6f6b 656e 0a20 2020 2020 2020 2020 2020 oken. │ │ │ │ +00004d70: 2020 2020 2020 2020 2020 2020 2043 6f6d Com │ │ │ │ +00004d80: 7061 7265 6420 746f 2074 6865 20e2 8098 pared to the ... │ │ │ │ +00004d90: 626f 6f6c 6561 6ee2 8099 2074 6f6b 656e boolean... token │ │ │ │ +00004da0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00004db0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004dc0: 2020 2020 2020 2020 2020 2072 6561 6465 reade │ │ │ │ -00004dd0: 722c 2074 6869 7320 6f6e 6520 6973 2075 r, this one is u │ │ │ │ -00004de0: 7365 6675 6c20 7768 656e 0a20 2020 2020 seful when. │ │ │ │ +00004dc0: 2020 2020 2020 2072 6561 6465 722c 2074 reader, t │ │ │ │ +00004dd0: 6869 7320 6f6e 6520 6973 2075 7365 6675 his one is usefu │ │ │ │ +00004de0: 6c20 7768 656e 0a20 2020 2020 2020 2020 l when. │ │ │ │ 00004df0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004e00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004e10: 2053 5246 492d 3420 666c 6f61 7469 6e67 SRFI-4 floating │ │ │ │ -00004e20: 2d70 6f69 6e74 2068 6f6d 6f67 656e 656f -point homogeneo │ │ │ │ -00004e30: 7573 0a20 2020 2020 2020 2020 2020 2020 us. │ │ │ │ +00004e00: 2020 2020 2020 2020 2020 2020 2053 5246 SRF │ │ │ │ +00004e10: 492d 3420 666c 6f61 7469 6e67 2d70 6f69 I-4 floating-poi │ │ │ │ +00004e20: 6e74 2068 6f6d 6f67 656e 656f 7573 0a20 nt homogeneous. │ │ │ │ +00004e30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00004e40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004e50: 2020 2020 2020 2020 2076 6563 746f 7273 vectors │ │ │ │ -00004e60: 2061 7265 2074 6f20 6265 2075 7365 6420 are to be used │ │ │ │ -00004e70: 6174 2074 6865 2073 616d 650a 2020 2020 at the same. │ │ │ │ +00004e50: 2020 2020 2076 6563 746f 7273 2061 7265 vectors are │ │ │ │ +00004e60: 2074 6f20 6265 2075 7365 6420 6174 2074 to be used at t │ │ │ │ +00004e70: 6865 2073 616d 650a 2020 2020 2020 2020 he same. │ │ │ │ 00004e80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004e90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004ea0: 2020 7469 6d65 3a20 7468 6520 5352 4649 time: the SRFI │ │ │ │ -00004eb0: 2d34 2054 5220 7769 6c6c 2068 616e 646c -4 TR will handl │ │ │ │ -00004ec0: 650a 2020 2020 2020 2020 2020 2020 2020 e. │ │ │ │ +00004e90: 2020 2020 2020 2020 2020 2020 2020 7469 ti │ │ │ │ +00004ea0: 6d65 3a20 7468 6520 5352 4649 2d34 2054 me: the SRFI-4 T │ │ │ │ +00004eb0: 5220 7769 6c6c 2068 616e 646c 650a 2020 R will handle. │ │ │ │ +00004ec0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00004ed0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004ee0: 2020 2020 2020 2020 e280 9823 66e2 8099 ...#f... │ │ │ │ -00004ef0: 206f 6e20 6974 7320 6f77 6e0a 2020 2020 on its own. │ │ │ │ +00004ee0: 2020 2020 e280 9823 66e2 8099 206f 6e20 ...#f... on │ │ │ │ +00004ef0: 6974 7320 6f77 6e0a 2020 2020 2020 2020 its own. │ │ │ │ 00004f00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004f10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004f20: 2020 282a 6e6f 7465 204f 7665 726c 6170 (*note Overlap │ │ │ │ -00004f30: 7069 6e67 2054 6f6b 656e 2052 6561 6465 ping Token Reade │ │ │ │ -00004f40: 7273 3a3a 292e 0a20 2020 2020 2020 2020 rs::).. │ │ │ │ +00004f10: 2020 2020 2020 2020 2020 2020 2020 282a (* │ │ │ │ +00004f20: 6e6f 7465 204f 7665 726c 6170 7069 6e67 note Overlapping │ │ │ │ +00004f30: 2054 6f6b 656e 2052 6561 6465 7273 3a3a Token Readers:: │ │ │ │ +00004f40: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. │ │ │ │ 00004f50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00004f60: 2020 2020 2020 2020 2020 2020 200a e280 ... │ │ │ │ -00004f70: 9862 7261 6365 2d66 7265 652d 6e75 6d62 .brace-free-numb │ │ │ │ -00004f80: 6572 e280 9931 3320 6368 6172 6163 7465 er...13 characte │ │ │ │ -00004f90: 7273 2c20 2020 2020 5265 7475 726e 2061 rs, Return a │ │ │ │ -00004fa0: 206e 756d 6265 7220 6f72 2061 2073 796d number or a sym │ │ │ │ -00004fb0: 626f 6c2c 0a20 2020 2020 2020 2020 2020 bol,. │ │ │ │ -00004fc0: 2020 2020 2020 2020 e280 9823 5c2d e280 ...#\-.. │ │ │ │ -00004fd0: 992e 2e2e 2020 e280 9823 5c39 e280 9920 .... ...#\9... │ │ │ │ -00004fe0: 2020 2063 6f6e 7369 6465 7269 6e67 2063 considering c │ │ │ │ -00004ff0: 7572 6c79 2062 7261 6365 7320 6173 0a20 urly braces as. │ │ │ │ +00004f60: 2020 2020 2020 2020 200a e280 9862 7261 ....bra │ │ │ │ +00004f70: 6365 2d66 7265 652d 6e75 6d62 6572 e280 ce-free-number.. │ │ │ │ +00004f80: 9931 3320 6368 6172 6163 7465 7273 2c20 .13 characters, │ │ │ │ +00004f90: 2020 2020 5265 7475 726e 2061 206e 756d Return a num │ │ │ │ +00004fa0: 6265 7220 6f72 2061 2073 796d 626f 6c2c ber or a symbol, │ │ │ │ +00004fb0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00004fc0: 2020 2020 e280 9823 5c2d e280 992e 2e2e ...#\-...... │ │ │ │ +00004fd0: 2020 e280 9823 5c39 e280 9920 2020 2063 ...#\9... c │ │ │ │ +00004fe0: 6f6e 7369 6465 7269 6e67 2063 7572 6c79 onsidering curly │ │ │ │ +00004ff0: 2062 7261 6365 7320 6173 0a20 2020 2020 braces as. │ │ │ │ 00005000: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005010: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005020: 2020 2020 2064 656c 696d 6974 6572 732e delimiters. │ │ │ │ -00005030: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00005020: 2064 656c 696d 6974 6572 732e 0a20 2020 delimiters.. │ │ │ │ +00005030: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005040: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005050: 2020 2020 2020 200a e280 9862 7261 6365 ....brace │ │ │ │ -00005060: 2d66 7265 652d 7379 6d62 6f6c 2d6c 6f77 -free-symbol-low │ │ │ │ -00005070: 6572 2d63 6173 65e2 8099 6672 6f6d 20e2 er-case...from . │ │ │ │ -00005080: 8098 235c 61e2 8099 2074 6f52 6561 6420 ..#\a... toRead │ │ │ │ -00005090: 6120 7379 6d62 6f6c 2074 6861 7420 7374 a symbol that st │ │ │ │ -000050a0: 6172 7473 2077 6974 6820 610a 2020 2020 arts with a. │ │ │ │ -000050b0: 2020 2020 2020 2020 2020 2020 2020 20e2 . │ │ │ │ -000050c0: 8098 235c 7ae2 8099 2020 2020 2020 2020 ..#\z... │ │ │ │ -000050d0: 2020 2020 2020 6c6f 7765 722d 6361 7365 lower-case │ │ │ │ -000050e0: 206c 6574 7465 7220 616e 6420 7265 7475 letter and retu │ │ │ │ -000050f0: 726e 2061 0a20 2020 2020 2020 2020 2020 rn a. │ │ │ │ +00005050: 2020 200a e280 9862 7261 6365 2d66 7265 ....brace-fre │ │ │ │ +00005060: 652d 7379 6d62 6f6c 2d6c 6f77 6572 2d63 e-symbol-lower-c │ │ │ │ +00005070: 6173 65e2 8099 6672 6f6d 20e2 8098 235c ase...from ...#\ │ │ │ │ +00005080: 61e2 8099 2074 6f52 6561 6420 6120 7379 a... toRead a sy │ │ │ │ +00005090: 6d62 6f6c 2074 6861 7420 7374 6172 7473 mbol that starts │ │ │ │ +000050a0: 2077 6974 6820 610a 2020 2020 2020 2020 with a. │ │ │ │ +000050b0: 2020 2020 2020 2020 2020 20e2 8098 235c ...#\ │ │ │ │ +000050c0: 7ae2 8099 2020 2020 2020 2020 2020 2020 z... │ │ │ │ +000050d0: 2020 6c6f 7765 722d 6361 7365 206c 6574 lower-case let │ │ │ │ +000050e0: 7465 7220 616e 6420 7265 7475 726e 2061 ter and return a │ │ │ │ +000050f0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00005100: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005110: 2020 2020 2020 2020 2020 2073 796d 626f symbo │ │ │ │ -00005120: 6c2e 2020 5468 6973 2074 6f6b 656e 2072 l. This token r │ │ │ │ -00005130: 6561 6465 720a 2020 2020 2020 2020 2020 eader. │ │ │ │ +00005110: 2020 2020 2020 2073 796d 626f 6c2e 2020 symbol. │ │ │ │ +00005120: 5468 6973 2074 6f6b 656e 2072 6561 6465 This token reade │ │ │ │ +00005130: 720a 2020 2020 2020 2020 2020 2020 2020 r. │ │ │ │ 00005140: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005150: 2020 2020 2020 2020 2020 2020 7265 636f reco │ │ │ │ -00005160: 676e 697a 6573 2062 7261 6365 7320 6173 gnizes braces as │ │ │ │ -00005170: 2064 656c 696d 6974 6572 732c 0a20 2020 delimiters,. │ │ │ │ +00005150: 2020 2020 2020 2020 7265 636f 676e 697a recogniz │ │ │ │ +00005160: 6573 2062 7261 6365 7320 6173 2064 656c es braces as del │ │ │ │ +00005170: 696d 6974 6572 732c 0a20 2020 2020 2020 imiters,. │ │ │ │ 00005180: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005190: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000051a0: 2020 2075 6e6c 696b 6520 5235 5253 2f52 unlike R5RS/R │ │ │ │ -000051b0: 3652 532e 0a20 2020 2020 2020 2020 2020 6RS.. │ │ │ │ +00005190: 2020 2020 2020 2020 2020 2020 2020 2075 u │ │ │ │ +000051a0: 6e6c 696b 6520 5235 5253 2f52 3652 532e nlike R5RS/R6RS. │ │ │ │ +000051b0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 000051c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000051d0: 2020 2020 2020 2020 2020 200a e280 9862 ....b │ │ │ │ -000051e0: 7261 6365 2d66 7265 652d 7379 6d62 6f6c race-free-symbol │ │ │ │ -000051f0: 2d6d 6973 632d 6368 6172 73e2 8099 3137 -misc-chars...17 │ │ │ │ -00005200: 2063 6861 7261 6374 6572 732c 5265 6164 characters,Read │ │ │ │ -00005210: 2061 2073 796d 626f 6c20 7468 6174 2073 a symbol that s │ │ │ │ -00005220: 7461 7274 7320 7769 7468 2061 0a20 2020 tarts with a. │ │ │ │ -00005230: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005240: e280 9823 5c5b e280 992e 2e2e 2020 e280 ...#\[...... .. │ │ │ │ -00005250: 9823 5c24 e280 9920 2020 206e 6f6e 2d61 .#\$... non-a │ │ │ │ -00005260: 6c70 6861 6e75 6d65 7269 6320 6368 6172 lphanumeric char │ │ │ │ -00005270: 6163 7465 7220 616e 640a 2020 2020 2020 acter and. │ │ │ │ +000051d0: 2020 2020 2020 200a e280 9862 7261 6365 ....brace │ │ │ │ +000051e0: 2d66 7265 652d 7379 6d62 6f6c 2d6d 6973 -free-symbol-mis │ │ │ │ +000051f0: 632d 6368 6172 73e2 8099 3137 2063 6861 c-chars...17 cha │ │ │ │ +00005200: 7261 6374 6572 732c 5265 6164 2061 2073 racters,Read a s │ │ │ │ +00005210: 796d 626f 6c20 7468 6174 2073 7461 7274 ymbol that start │ │ │ │ +00005220: 7320 7769 7468 2061 0a20 2020 2020 2020 s with a. │ │ │ │ +00005230: 2020 2020 2020 2020 2020 2020 e280 9823 ...# │ │ │ │ +00005240: 5c5b e280 992e 2e2e 2020 e280 9823 5c24 \[...... ...#\$ │ │ │ │ +00005250: e280 9920 2020 206e 6f6e 2d61 6c70 6861 ... non-alpha │ │ │ │ +00005260: 6e75 6d65 7269 6320 6368 6172 6163 7465 numeric characte │ │ │ │ +00005270: 7220 616e 640a 2020 2020 2020 2020 2020 r and. │ │ │ │ 00005280: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005290: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000052a0: 7265 7475 726e 2061 2073 796d 626f 6c2e return a symbol. │ │ │ │ -000052b0: 2020 5468 6973 2074 6f6b 656e 0a20 2020 This token. │ │ │ │ +00005290: 2020 2020 2020 2020 2020 2020 7265 7475 retu │ │ │ │ +000052a0: 726e 2061 2073 796d 626f 6c2e 2020 5468 rn a symbol. Th │ │ │ │ +000052b0: 6973 2074 6f6b 656e 0a20 2020 2020 2020 is token. │ │ │ │ 000052c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000052d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000052e0: 2020 2072 6561 6465 7220 7265 636f 676e reader recogn │ │ │ │ -000052f0: 697a 6573 2062 7261 6365 7320 6173 0a20 izes braces as. │ │ │ │ +000052d0: 2020 2020 2020 2020 2020 2020 2020 2072 r │ │ │ │ +000052e0: 6561 6465 7220 7265 636f 676e 697a 6573 eader recognizes │ │ │ │ +000052f0: 2062 7261 6365 7320 6173 0a20 2020 2020 braces as. │ │ │ │ 00005300: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005310: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005320: 2020 2020 2064 656c 696d 6974 6572 732c delimiters, │ │ │ │ -00005330: 2075 6e6c 696b 6520 5235 5253 2f52 3652 unlike R5RS/R6R │ │ │ │ -00005340: 532e 0a20 2020 2020 2020 2020 2020 2020 S.. │ │ │ │ +00005320: 2064 656c 696d 6974 6572 732c 2075 6e6c delimiters, unl │ │ │ │ +00005330: 696b 6520 5235 5253 2f52 3652 532e 0a20 ike R5RS/R6RS.. │ │ │ │ +00005340: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005350: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005360: 2020 2020 2020 2020 200a e280 9862 7261 ....bra │ │ │ │ -00005370: 6365 2d66 7265 652d 7379 6d62 6f6c 2d75 ce-free-symbol-u │ │ │ │ -00005380: 7070 6572 2d63 6173 65e2 8099 6672 6f6d pper-case...from │ │ │ │ -00005390: 20e2 8098 235c 41e2 8099 2074 6f52 6561 ...#\A... toRea │ │ │ │ -000053a0: 6420 6120 7379 6d62 6f6c 2074 6861 7420 d a symbol that │ │ │ │ -000053b0: 7374 6172 7473 2077 6974 6820 616e 0a20 starts with an. │ │ │ │ -000053c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000053d0: 2020 e280 9823 5c5a e280 9920 2020 2020 ...#\Z... │ │ │ │ -000053e0: 2020 2020 2020 2020 2075 7070 6572 2d63 upper-c │ │ │ │ -000053f0: 6173 6520 6c65 7474 6572 2061 6e64 2072 ase letter and r │ │ │ │ -00005400: 6574 7572 6e20 610a 2020 2020 2020 2020 eturn a. │ │ │ │ +00005360: 2020 2020 200a e280 9862 7261 6365 2d66 ....brace-f │ │ │ │ +00005370: 7265 652d 7379 6d62 6f6c 2d75 7070 6572 ree-symbol-upper │ │ │ │ +00005380: 2d63 6173 65e2 8099 6672 6f6d 20e2 8098 -case...from ... │ │ │ │ +00005390: 235c 41e2 8099 2074 6f52 6561 6420 6120 #\A... toRead a │ │ │ │ +000053a0: 7379 6d62 6f6c 2074 6861 7420 7374 6172 symbol that star │ │ │ │ +000053b0: 7473 2077 6974 6820 616e 0a20 2020 2020 ts with an. │ │ │ │ +000053c0: 2020 2020 2020 2020 2020 2020 2020 e280 .. │ │ │ │ +000053d0: 9823 5c5a e280 9920 2020 2020 2020 2020 .#\Z... │ │ │ │ +000053e0: 2020 2020 2075 7070 6572 2d63 6173 6520 upper-case │ │ │ │ +000053f0: 6c65 7474 6572 2061 6e64 2072 6574 7572 letter and retur │ │ │ │ +00005400: 6e20 610a 2020 2020 2020 2020 2020 2020 n a. │ │ │ │ 00005410: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005420: 2020 2020 2020 2020 2020 2020 2020 7379 sy │ │ │ │ -00005430: 6d62 6f6c 2e20 2054 6869 7320 746f 6b65 mbol. This toke │ │ │ │ -00005440: 6e20 7265 6164 6572 0a20 2020 2020 2020 n reader. │ │ │ │ +00005420: 2020 2020 2020 2020 2020 7379 6d62 6f6c symbol │ │ │ │ +00005430: 2e20 2054 6869 7320 746f 6b65 6e20 7265 . This token re │ │ │ │ +00005440: 6164 6572 0a20 2020 2020 2020 2020 2020 ader. │ │ │ │ 00005450: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005460: 2020 2020 2020 2020 2020 2020 2020 2072 r │ │ │ │ -00005470: 6563 6f67 6e69 7a65 7320 6272 6163 6573 ecognizes braces │ │ │ │ -00005480: 2061 7320 6465 6c69 6d69 7465 7273 2c0a as delimiters,. │ │ │ │ +00005460: 2020 2020 2020 2020 2020 2072 6563 6f67 recog │ │ │ │ +00005470: 6e69 7a65 7320 6272 6163 6573 2061 7320 nizes braces as │ │ │ │ +00005480: 6465 6c69 6d69 7465 7273 2c0a 2020 2020 delimiters,. │ │ │ │ 00005490: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000054a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000054b0: 2020 2020 2020 756e 6c69 6b65 2052 3552 unlike R5R │ │ │ │ -000054c0: 532f 5236 5253 2e0a 2020 2020 2020 2020 S/R6RS.. │ │ │ │ +000054b0: 2020 756e 6c69 6b65 2052 3552 532f 5236 unlike R5RS/R6 │ │ │ │ +000054c0: 5253 2e0a 2020 2020 2020 2020 2020 2020 RS.. │ │ │ │ 000054d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000054e0: 2020 2020 2020 2020 2020 2020 2020 0ae2 .. │ │ │ │ -000054f0: 8098 6368 6172 6163 7465 72e2 8099 2020 ..character... │ │ │ │ -00005500: 2020 2020 2020 e280 9823 5c5c e280 9920 ...#\\... │ │ │ │ -00005510: 2020 2020 2020 2020 2020 2020 2054 6869 Thi │ │ │ │ -00005520: 7320 6973 2061 2073 6861 7270 2074 6f6b s is a sharp tok │ │ │ │ -00005530: 656e 2072 6561 6465 722c 2069 2e65 2e0a en reader, i.e.. │ │ │ │ +000054e0: 2020 2020 2020 2020 2020 0ae2 8098 6368 ....ch │ │ │ │ +000054f0: 6172 6163 7465 72e2 8099 2020 2020 2020 aracter... │ │ │ │ +00005500: 2020 e280 9823 5c5c e280 9920 2020 2020 ...#\\... │ │ │ │ +00005510: 2020 2020 2020 2020 2054 6869 7320 6973 This is │ │ │ │ +00005520: 2061 2073 6861 7270 2074 6f6b 656e 2072 a sharp token r │ │ │ │ +00005530: 6561 6465 722c 2069 2e65 2e0a 2020 2020 eader, i.e.. │ │ │ │ 00005540: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005550: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005560: 2020 2020 2020 6974 2072 6561 6473 2061 it reads a │ │ │ │ -00005570: 6e20 5235 5253 2063 6861 7261 6374 6572 n R5RS character │ │ │ │ -00005580: 206f 6e63 6520 610a 2020 2020 2020 2020 once a. │ │ │ │ +00005560: 2020 6974 2072 6561 6473 2061 6e20 5235 it reads an R5 │ │ │ │ +00005570: 5253 2063 6861 7261 6374 6572 206f 6e63 RS character onc │ │ │ │ +00005580: 6520 610a 2020 2020 2020 2020 2020 2020 e a. │ │ │ │ 00005590: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000055a0: 2020 2020 2020 2020 2020 2020 2020 e280 .. │ │ │ │ -000055b0: 9823 e280 9920 6368 6172 6163 7465 7220 .#... character │ │ │ │ -000055c0: 6861 7320 6265 656e 2072 6561 642e 0a20 has been read.. │ │ │ │ +000055a0: 2020 2020 2020 2020 2020 e280 9823 e280 ...#.. │ │ │ │ +000055b0: 9920 6368 6172 6163 7465 7220 6861 7320 . character has │ │ │ │ +000055c0: 6265 656e 2072 6561 642e 0a20 2020 2020 been read.. │ │ │ │ 000055d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000055e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000055f0: 2020 2020 200a e280 9863 7572 6c79 2d62 ....curly-b │ │ │ │ -00005600: 7261 6365 2d73 6578 70e2 8099 20e2 8098 race-sexp... ... │ │ │ │ -00005610: 235c 7be2 8099 2020 2020 2020 2020 2020 #\{... │ │ │ │ -00005620: 2020 2020 5265 6164 2061 6e20 532d 6578 Read an S-ex │ │ │ │ -00005630: 7072 6573 7369 6f6e 2065 6e63 6c6f 7365 pression enclose │ │ │ │ -00005640: 6420 696e 0a20 2020 2020 2020 2020 2020 d in. │ │ │ │ +000055f0: 200a e280 9863 7572 6c79 2d62 7261 6365 ....curly-brace │ │ │ │ +00005600: 2d73 6578 70e2 8099 20e2 8098 235c 7be2 -sexp... ...#\{. │ │ │ │ +00005610: 8099 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +00005620: 5265 6164 2061 6e20 532d 6578 7072 6573 Read an S-expres │ │ │ │ +00005630: 7369 6f6e 2065 6e63 6c6f 7365 6420 696e sion enclosed in │ │ │ │ +00005640: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00005650: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005660: 2020 2020 2020 2020 2020 2073 7175 6172 squar │ │ │ │ -00005670: 6520 6272 6163 6b65 7473 2e20 2054 6869 e brackets. Thi │ │ │ │ -00005680: 7320 6973 2061 6c72 6561 6479 0a20 2020 s is already. │ │ │ │ +00005660: 2020 2020 2020 2073 7175 6172 6520 6272 square br │ │ │ │ +00005670: 6163 6b65 7473 2e20 2054 6869 7320 6973 ackets. This is │ │ │ │ +00005680: 2061 6c72 6561 6479 0a20 2020 2020 2020 already. │ │ │ │ 00005690: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000056a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000056b0: 2020 2070 6572 6d69 7474 6564 2062 7920 permitted by │ │ │ │ -000056c0: 6120 6e75 6d62 6572 206f 6620 5363 6865 a number of Sche │ │ │ │ -000056d0: 6d65 0a20 2020 2020 2020 2020 2020 2020 me. │ │ │ │ +000056a0: 2020 2020 2020 2020 2020 2020 2020 2070 p │ │ │ │ +000056b0: 6572 6d69 7474 6564 2062 7920 6120 6e75 ermitted by a nu │ │ │ │ +000056c0: 6d62 6572 206f 6620 5363 6865 6d65 0a20 mber of Scheme. │ │ │ │ +000056d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000056e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000056f0: 2020 2020 2020 2020 2069 6d70 6c65 6d65 impleme │ │ │ │ -00005700: 6e74 6174 696f 6e73 2061 6e64 2077 696c ntations and wil │ │ │ │ -00005710: 6c20 736f 6f6e 2062 650a 2020 2020 2020 l soon be. │ │ │ │ +000056f0: 2020 2020 2069 6d70 6c65 6d65 6e74 6174 implementat │ │ │ │ +00005700: 696f 6e73 2061 6e64 2077 696c 6c20 736f ions and will so │ │ │ │ +00005710: 6f6e 2062 650a 2020 2020 2020 2020 2020 on be. │ │ │ │ 00005720: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005730: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005740: 6d61 6465 2063 6f6d 7075 6c73 6f72 7920 made compulsory │ │ │ │ -00005750: 6279 2052 3652 532e 0a20 2020 2020 2020 by R6RS.. │ │ │ │ +00005730: 2020 2020 2020 2020 2020 2020 6d61 6465 made │ │ │ │ +00005740: 2063 6f6d 7075 6c73 6f72 7920 6279 2052 compulsory by R │ │ │ │ +00005750: 3652 532e 0a20 2020 2020 2020 2020 2020 6RS.. │ │ │ │ 00005760: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005770: 2020 2020 2020 2020 2020 2020 2020 200a . │ │ │ │ -00005780: e280 9867 7569 6c65 2d62 6974 2d76 6563 ...guile-bit-vec │ │ │ │ -00005790: 746f 72e2 8099 20e2 8098 235c 2ae2 8099 tor... ...#\*... │ │ │ │ -000057a0: 2020 2020 2020 2020 2020 2020 2020 5468 Th │ │ │ │ -000057b0: 6973 2069 7320 6120 7368 6172 7020 746f is is a sharp to │ │ │ │ -000057c0: 6b65 6e20 7265 6164 6572 2c20 692e 652e ken reader, i.e. │ │ │ │ -000057d0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00005770: 2020 2020 2020 2020 2020 200a e280 9867 ....g │ │ │ │ +00005780: 7569 6c65 2d62 6974 2d76 6563 746f 72e2 uile-bit-vector. │ │ │ │ +00005790: 8099 20e2 8098 235c 2ae2 8099 2020 2020 .. ...#\*... │ │ │ │ +000057a0: 2020 2020 2020 2020 2020 5468 6973 2069 This i │ │ │ │ +000057b0: 7320 6120 7368 6172 7020 746f 6b65 6e20 s a sharp token │ │ │ │ +000057c0: 7265 6164 6572 2c20 692e 652e 0a20 2020 reader, i.e.. │ │ │ │ +000057d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000057e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000057f0: 2020 2020 2020 2069 7420 7265 6164 7320 it reads │ │ │ │ -00005800: 6120 6269 7420 7665 6374 6f72 2066 6f6c a bit vector fol │ │ │ │ -00005810: 6c6f 7769 6e67 0a20 2020 2020 2020 2020 lowing. │ │ │ │ +000057f0: 2020 2069 7420 7265 6164 7320 6120 6269 it reads a bi │ │ │ │ +00005800: 7420 7665 6374 6f72 2066 6f6c 6c6f 7769 t vector followi │ │ │ │ +00005810: 6e67 0a20 2020 2020 2020 2020 2020 2020 ng. │ │ │ │ 00005820: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005830: 2020 2020 2020 2020 2020 2020 2047 7569 Gui │ │ │ │ -00005840: 6c65 2773 2072 6561 6420 7379 6e74 6178 le's read syntax │ │ │ │ -00005850: 2066 6f72 2062 6974 0a20 2020 2020 2020 for bit. │ │ │ │ +00005830: 2020 2020 2020 2020 2047 7569 6c65 2773 Guile's │ │ │ │ +00005840: 2072 6561 6420 7379 6e74 6178 2066 6f72 read syntax for │ │ │ │ +00005850: 2062 6974 0a20 2020 2020 2020 2020 2020 bit. │ │ │ │ 00005860: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005870: 2020 2020 2020 2020 2020 2020 2020 2076 v │ │ │ │ -00005880: 6563 746f 7273 2e20 2053 6565 0a20 2020 ectors. See. │ │ │ │ +00005870: 2020 2020 2020 2020 2020 2076 6563 746f vecto │ │ │ │ +00005880: 7273 2e20 2053 6565 0a20 2020 2020 2020 rs. See. │ │ │ │ 00005890: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000058a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000058b0: 2020 202a 6e6f 7465 2047 7569 6c65 2773 *note Guile's │ │ │ │ -000058c0: 2062 6974 2076 6563 746f 7273 3a20 2867 bit vectors: (g │ │ │ │ -000058d0: 7569 6c65 2942 6974 2056 6563 746f 7273 uile)Bit Vectors │ │ │ │ -000058e0: 2c0a 2020 2020 2020 2020 2020 2020 2020 ,. │ │ │ │ +000058a0: 2020 2020 2020 2020 2020 2020 2020 202a * │ │ │ │ +000058b0: 6e6f 7465 2047 7569 6c65 2773 2062 6974 note Guile's bit │ │ │ │ +000058c0: 2076 6563 746f 7273 3a20 2867 7569 6c65 vectors: (guile │ │ │ │ +000058d0: 2942 6974 2056 6563 746f 7273 2c0a 2020 )Bit Vectors,. │ │ │ │ +000058e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000058f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005900: 2020 2020 2020 2020 666f 7220 6465 7461 for deta │ │ │ │ -00005910: 696c 732e 0a20 2020 2020 2020 2020 2020 ils.. │ │ │ │ +00005900: 2020 2020 666f 7220 6465 7461 696c 732e for details. │ │ │ │ +00005910: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00005920: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005930: 2020 2020 2020 2020 2020 200a e280 9867 ....g │ │ │ │ -00005940: 7569 6c65 2d65 7874 656e 6465 642d 7379 uile-extended-sy │ │ │ │ -00005950: 6d62 6f6c e280 99e2 8098 235c 7be2 8099 mbol......#\{... │ │ │ │ -00005960: 2020 2020 2020 2020 2020 5468 6973 2069 This i │ │ │ │ -00005970: 7320 6120 7368 6172 7020 746f 6b65 6e20 s a sharp token │ │ │ │ -00005980: 7265 6164 6572 2c20 692e 652e 0a20 2020 reader, i.e.. │ │ │ │ +00005930: 2020 2020 2020 200a e280 9867 7569 6c65 ....guile │ │ │ │ +00005940: 2d65 7874 656e 6465 642d 7379 6d62 6f6c -extended-symbol │ │ │ │ +00005950: e280 99e2 8098 235c 7be2 8099 2020 2020 ......#\{... │ │ │ │ +00005960: 2020 2020 2020 5468 6973 2069 7320 6120 This is a │ │ │ │ +00005970: 7368 6172 7020 746f 6b65 6e20 7265 6164 sharp token read │ │ │ │ +00005980: 6572 2c20 692e 652e 0a20 2020 2020 2020 er, i.e.. │ │ │ │ 00005990: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000059a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000059b0: 2020 2069 7420 7265 6164 7320 6120 7379 it reads a sy │ │ │ │ -000059c0: 6d62 6f6c 2075 7369 6e67 2047 7569 6c65 mbol using Guile │ │ │ │ -000059d0: 2773 0a20 2020 2020 2020 2020 2020 2020 's. │ │ │ │ +000059a0: 2020 2020 2020 2020 2020 2020 2020 2069 i │ │ │ │ +000059b0: 7420 7265 6164 7320 6120 7379 6d62 6f6c t reads a symbol │ │ │ │ +000059c0: 2075 7369 6e67 2047 7569 6c65 2773 0a20 using Guile's. │ │ │ │ +000059d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000059e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000059f0: 2020 2020 2020 2020 2065 7874 656e 6465 extende │ │ │ │ -00005a00: 6420 7379 6d62 6f6c 2073 796e 7461 7820 d symbol syntax │ │ │ │ -00005a10: 6173 7375 6d69 6e67 2061 0a20 2020 2020 assuming a. │ │ │ │ +000059f0: 2020 2020 2065 7874 656e 6465 6420 7379 extended sy │ │ │ │ +00005a00: 6d62 6f6c 2073 796e 7461 7820 6173 7375 mbol syntax assu │ │ │ │ +00005a10: 6d69 6e67 2061 0a20 2020 2020 2020 2020 ming a. │ │ │ │ 00005a20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005a30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005a40: 20e2 8098 23e2 8099 2063 6861 7261 6374 ...#... charact │ │ │ │ -00005a50: 6572 2077 6173 2072 6561 642e 2020 5365 er was read. Se │ │ │ │ -00005a60: 650a 2020 2020 2020 2020 2020 2020 2020 e. │ │ │ │ +00005a30: 2020 2020 2020 2020 2020 2020 20e2 8098 ... │ │ │ │ +00005a40: 23e2 8099 2063 6861 7261 6374 6572 2077 #... character w │ │ │ │ +00005a50: 6173 2072 6561 642e 2020 5365 650a 2020 as read. See. │ │ │ │ +00005a60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005a70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005a80: 2020 2020 2020 2020 2a6e 6f74 6520 4775 *note Gu │ │ │ │ -00005a90: 696c 6527 7320 6578 7465 6e64 6564 2072 ile's extended r │ │ │ │ -00005aa0: 6561 6420 7379 6e74 6178 2066 6f72 2073 ead syntax for s │ │ │ │ -00005ab0: 796d 626f 6c73 3a20 2867 7569 6c65 2953 ymbols: (guile)S │ │ │ │ -00005ac0: 796d 626f 6c20 5265 6164 2053 796e 7461 ymbol Read Synta │ │ │ │ -00005ad0: 782c 0a20 2020 2020 2020 2020 2020 2020 x,. │ │ │ │ +00005a80: 2020 2020 2a6e 6f74 6520 4775 696c 6527 *note Guile' │ │ │ │ +00005a90: 7320 6578 7465 6e64 6564 2072 6561 6420 s extended read │ │ │ │ +00005aa0: 7379 6e74 6178 2066 6f72 2073 796d 626f syntax for symbo │ │ │ │ +00005ab0: 6c73 3a20 2867 7569 6c65 2953 796d 626f ls: (guile)Symbo │ │ │ │ +00005ac0: 6c20 5265 6164 2053 796e 7461 782c 0a20 l Read Syntax,. │ │ │ │ +00005ad0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005ae0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005af0: 2020 2020 2020 2020 2066 6f72 2064 6574 for det │ │ │ │ -00005b00: 6169 6c73 2e0a 2020 2020 2020 2020 2020 ails.. │ │ │ │ +00005af0: 2020 2020 2066 6f72 2064 6574 6169 6c73 for details │ │ │ │ +00005b00: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ 00005b10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005b20: 2020 2020 2020 2020 2020 2020 0ae2 8098 .... │ │ │ │ -00005b30: 6775 696c 652d 6e75 6d62 6572 e280 9920 guile-number... │ │ │ │ -00005b40: 2020 2020 3133 2063 6861 7261 6374 6572 13 character │ │ │ │ -00005b50: 732c 2020 2020 2052 6561 6420 6120 6e75 s, Read a nu │ │ │ │ -00005b60: 6d62 6572 2066 6f6c 6c6f 7769 6e67 2047 mber following G │ │ │ │ -00005b70: 7569 6c65 2773 0a20 2020 2020 2020 2020 uile's. │ │ │ │ -00005b80: 2020 2020 2020 2020 2020 e280 9823 5c2d ...#\- │ │ │ │ -00005b90: e280 992e 2e2e 2020 e280 9823 5c39 e280 ...... ...#\9.. │ │ │ │ -00005ba0: 9920 2020 2066 6173 6869 6f6e 2c20 7468 . fashion, th │ │ │ │ -00005bb0: 6174 2069 732c 2061 7320 696e 2052 3552 at is, as in R5R │ │ │ │ -00005bc0: 530a 2020 2020 2020 2020 2020 2020 2020 S. │ │ │ │ +00005b20: 2020 2020 2020 2020 0ae2 8098 6775 696c ....guil │ │ │ │ +00005b30: 652d 6e75 6d62 6572 e280 9920 2020 2020 e-number... │ │ │ │ +00005b40: 3133 2063 6861 7261 6374 6572 732c 2020 13 characters, │ │ │ │ +00005b50: 2020 2052 6561 6420 6120 6e75 6d62 6572 Read a number │ │ │ │ +00005b60: 2066 6f6c 6c6f 7769 6e67 2047 7569 6c65 following Guile │ │ │ │ +00005b70: 2773 0a20 2020 2020 2020 2020 2020 2020 's. │ │ │ │ +00005b80: 2020 2020 2020 e280 9823 5c2d e280 992e ...#\-.... │ │ │ │ +00005b90: 2e2e 2020 e280 9823 5c39 e280 9920 2020 .. ...#\9... │ │ │ │ +00005ba0: 2066 6173 6869 6f6e 2c20 7468 6174 2069 fashion, that i │ │ │ │ +00005bb0: 732c 2061 7320 696e 2052 3552 530a 2020 s, as in R5RS. │ │ │ │ +00005bc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005bd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005be0: 2020 2020 2020 2020 282a 6e6f 7465 2052 (*note R │ │ │ │ -00005bf0: 3552 5327 206c 6578 6963 616c 2073 7472 5RS' lexical str │ │ │ │ -00005c00: 7563 7475 7265 3a20 2872 3572 7329 4c65 ucture: (r5rs)Le │ │ │ │ -00005c10: 7869 6361 6c20 7374 7275 6374 7572 652c xical structure, │ │ │ │ -00005c20: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00005be0: 2020 2020 282a 6e6f 7465 2052 3552 5327 (*note R5RS' │ │ │ │ +00005bf0: 206c 6578 6963 616c 2073 7472 7563 7475 lexical structu │ │ │ │ +00005c00: 7265 3a20 2872 3572 7329 4c65 7869 6361 re: (r5rs)Lexica │ │ │ │ +00005c10: 6c20 7374 7275 6374 7572 652c 0a20 2020 l structure,. │ │ │ │ +00005c20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005c30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005c40: 2020 2020 2020 2066 6f72 2073 796e 7461 for synta │ │ │ │ -00005c50: 6374 6963 2064 6574 6169 6c73 292e 2020 ctic details). │ │ │ │ -00005c60: 4265 6361 7573 650a 2020 2020 2020 2020 Because. │ │ │ │ +00005c40: 2020 2066 6f72 2073 796e 7461 6374 6963 for syntactic │ │ │ │ +00005c50: 2064 6574 6169 6c73 292e 2020 4265 6361 details). Beca │ │ │ │ +00005c60: 7573 650a 2020 2020 2020 2020 2020 2020 use. │ │ │ │ 00005c70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005c80: 2020 2020 2020 2020 2020 2020 2020 7468 th │ │ │ │ -00005c90: 6520 7379 6e74 6178 6573 2066 6f72 206e e syntaxes for n │ │ │ │ -00005ca0: 756d 6265 7273 2061 6e64 0a20 2020 2020 umbers and. │ │ │ │ +00005c80: 2020 2020 2020 2020 2020 7468 6520 7379 the sy │ │ │ │ +00005c90: 6e74 6178 6573 2066 6f72 206e 756d 6265 ntaxes for numbe │ │ │ │ +00005ca0: 7273 2061 6e64 0a20 2020 2020 2020 2020 rs and. │ │ │ │ 00005cb0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005cc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005cd0: 2073 796d 626f 6c73 2061 7265 2063 6c6f symbols are clo │ │ │ │ -00005ce0: 7365 6c79 2074 6967 6874 2069 6e20 5235 sely tight in R5 │ │ │ │ -00005cf0: 5253 0a20 2020 2020 2020 2020 2020 2020 RS. │ │ │ │ +00005cc0: 2020 2020 2020 2020 2020 2020 2073 796d sym │ │ │ │ +00005cd0: 626f 6c73 2061 7265 2063 6c6f 7365 6c79 bols are closely │ │ │ │ +00005ce0: 2074 6967 6874 2069 6e20 5235 5253 0a20 tight in R5RS. │ │ │ │ +00005cf0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005d00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005d10: 2020 2020 2020 2020 2061 6e64 2047 7569 and Gui │ │ │ │ -00005d20: 6c65 2c20 7468 6973 2074 6f6b 656e 2072 le, this token r │ │ │ │ -00005d30: 6561 6465 7220 6d61 790a 2020 2020 2020 eader may. │ │ │ │ +00005d10: 2020 2020 2061 6e64 2047 7569 6c65 2c20 and Guile, │ │ │ │ +00005d20: 7468 6973 2074 6f6b 656e 2072 6561 6465 this token reade │ │ │ │ +00005d30: 7220 6d61 790a 2020 2020 2020 2020 2020 r may. │ │ │ │ 00005d40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005d50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005d60: 7265 7475 726e 2065 6974 6865 7220 6120 return either a │ │ │ │ -00005d70: 6e75 6d62 6572 206f 7220 610a 2020 2020 number or a. │ │ │ │ +00005d50: 2020 2020 2020 2020 2020 2020 7265 7475 retu │ │ │ │ +00005d60: 726e 2065 6974 6865 7220 6120 6e75 6d62 rn either a numb │ │ │ │ +00005d70: 6572 206f 7220 610a 2020 2020 2020 2020 er or a. │ │ │ │ 00005d80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005d90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005da0: 2020 7379 6d62 6f6c 2e20 2046 6f72 2069 symbol. For i │ │ │ │ -00005db0: 6e73 7461 6e63 652c 2069 7420 7769 6c6c nstance, it will │ │ │ │ -00005dc0: 2062 650a 2020 2020 2020 2020 2020 2020 be. │ │ │ │ +00005d90: 2020 2020 2020 2020 2020 2020 2020 7379 sy │ │ │ │ +00005da0: 6d62 6f6c 2e20 2046 6f72 2069 6e73 7461 mbol. For insta │ │ │ │ +00005db0: 6e63 652c 2069 7420 7769 6c6c 2062 650a nce, it will be. │ │ │ │ +00005dc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005dd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005de0: 2020 2020 2020 2020 2020 696e 766f 6b65 invoke │ │ │ │ -00005df0: 6420 6966 2074 6865 2073 7472 696e 670a d if the string. │ │ │ │ +00005de0: 2020 2020 2020 696e 766f 6b65 6420 6966 invoked if │ │ │ │ +00005df0: 2074 6865 2073 7472 696e 670a 2020 2020 the string. │ │ │ │ 00005e00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005e10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005e20: 2020 2020 2020 e280 9831 3233 2e31 3233 ...123.123 │ │ │ │ -00005e30: 2e31 3233 e280 9920 6973 2070 6173 7365 .123... is passe │ │ │ │ -00005e40: 6420 746f 2074 6865 0a20 2020 2020 2020 d to the. │ │ │ │ +00005e20: 2020 e280 9831 3233 2e31 3233 2e31 3233 ...123.123.123 │ │ │ │ +00005e30: e280 9920 6973 2070 6173 7365 6420 746f ... is passed to │ │ │ │ +00005e40: 2074 6865 0a20 2020 2020 2020 2020 2020 the. │ │ │ │ 00005e50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005e60: 2020 2020 2020 2020 2020 2020 2020 2072 r │ │ │ │ -00005e70: 6561 6465 7220 6275 7420 7468 6973 2077 eader but this w │ │ │ │ -00005e80: 696c 6c20 6163 7475 616c 6c79 0a20 2020 ill actually. │ │ │ │ +00005e60: 2020 2020 2020 2020 2020 2072 6561 6465 reade │ │ │ │ +00005e70: 7220 6275 7420 7468 6973 2077 696c 6c20 r but this will │ │ │ │ +00005e80: 6163 7475 616c 6c79 0a20 2020 2020 2020 actually. │ │ │ │ 00005e90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005ea0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005eb0: 2020 2079 6965 6c64 2061 2073 796d 626f yield a symbo │ │ │ │ -00005ec0: 6c20 696e 7374 6561 6420 6f66 2061 206e l instead of a n │ │ │ │ -00005ed0: 756d 6265 720a 2020 2020 2020 2020 2020 umber. │ │ │ │ +00005ea0: 2020 2020 2020 2020 2020 2020 2020 2079 y │ │ │ │ +00005eb0: 6965 6c64 2061 2073 796d 626f 6c20 696e ield a symbol in │ │ │ │ +00005ec0: 7374 6561 6420 6f66 2061 206e 756d 6265 stead of a numbe │ │ │ │ +00005ed0: 720a 2020 2020 2020 2020 2020 2020 2020 r. │ │ │ │ 00005ee0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005ef0: 2020 2020 2020 2020 2020 2020 282a 6e6f (*no │ │ │ │ -00005f00: 7465 204f 7665 726c 6170 7069 6e67 2054 te Overlapping T │ │ │ │ -00005f10: 6f6b 656e 2052 6561 6465 7273 3a3a 292e oken Readers::). │ │ │ │ -00005f20: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00005ef0: 2020 2020 2020 2020 282a 6e6f 7465 204f (*note O │ │ │ │ +00005f00: 7665 726c 6170 7069 6e67 2054 6f6b 656e verlapping Token │ │ │ │ +00005f10: 2052 6561 6465 7273 3a3a 292e 0a20 2020 Readers::).. │ │ │ │ +00005f20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00005f30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005f40: 2020 2020 2020 200a e280 9867 7569 6c65 ....guile │ │ │ │ -00005f50: 2d73 796d 626f 6c2d 6c6f 7765 722d 6361 -symbol-lower-ca │ │ │ │ -00005f60: 7365 e280 9966 726f 6d20 e280 9823 5c61 se...from ...#\a │ │ │ │ -00005f70: e280 9920 746f 5265 6164 2061 2073 796d ... toRead a sym │ │ │ │ -00005f80: 626f 6c20 7468 6174 2073 7461 7274 7320 bol that starts │ │ │ │ -00005f90: 7769 7468 2061 0a20 2020 2020 2020 2020 with a. │ │ │ │ -00005fa0: 2020 2020 2020 2020 2020 e280 9823 5c7a ...#\z │ │ │ │ -00005fb0: e280 9920 2020 2020 2020 2020 2020 2020 ... │ │ │ │ -00005fc0: 206c 6f77 6572 2d63 6173 6520 6c65 7474 lower-case lett │ │ │ │ -00005fd0: 6572 2069 6e20 610a 2020 2020 2020 2020 er in a. │ │ │ │ +00005f40: 2020 200a e280 9867 7569 6c65 2d73 796d ....guile-sym │ │ │ │ +00005f50: 626f 6c2d 6c6f 7765 722d 6361 7365 e280 bol-lower-case.. │ │ │ │ +00005f60: 9966 726f 6d20 e280 9823 5c61 e280 9920 .from ...#\a... │ │ │ │ +00005f70: 746f 5265 6164 2061 2073 796d 626f 6c20 toRead a symbol │ │ │ │ +00005f80: 7468 6174 2073 7461 7274 7320 7769 7468 that starts with │ │ │ │ +00005f90: 2061 0a20 2020 2020 2020 2020 2020 2020 a. │ │ │ │ +00005fa0: 2020 2020 2020 e280 9823 5c7a e280 9920 ...#\z... │ │ │ │ +00005fb0: 2020 2020 2020 2020 2020 2020 206c 6f77 low │ │ │ │ +00005fc0: 6572 2d63 6173 6520 6c65 7474 6572 2069 er-case letter i │ │ │ │ +00005fd0: 6e20 610a 2020 2020 2020 2020 2020 2020 n a. │ │ │ │ 00005fe0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00005ff0: 2020 2020 2020 2020 2020 2020 2020 6361 ca │ │ │ │ -00006000: 7365 2d73 656e 7369 7469 7665 2066 6173 se-sensitive fas │ │ │ │ -00006010: 6869 6f6e 2e0a 2020 2020 2020 2020 2020 hion.. │ │ │ │ +00005ff0: 2020 2020 2020 2020 2020 6361 7365 2d73 case-s │ │ │ │ +00006000: 656e 7369 7469 7665 2066 6173 6869 6f6e ensitive fashion │ │ │ │ +00006010: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ 00006020: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006030: 2020 2020 2020 2020 2020 2020 0ae2 8098 .... │ │ │ │ -00006040: 6775 696c 652d 7379 6d62 6f6c 2d6d 6973 guile-symbol-mis │ │ │ │ -00006050: 632d 6368 6172 73e2 8099 3139 2063 6861 c-chars...19 cha │ │ │ │ -00006060: 7261 6374 6572 732c 5265 6164 2061 2073 racters,Read a s │ │ │ │ -00006070: 796d 626f 6c20 7468 6174 2073 7461 7274 ymbol that start │ │ │ │ -00006080: 7320 7769 7468 2061 0a20 2020 2020 2020 s with a. │ │ │ │ -00006090: 2020 2020 2020 2020 2020 2020 e280 9823 ...# │ │ │ │ -000060a0: 5c5b e280 992e 2e2e 2020 e280 9823 5c24 \[...... ...#\$ │ │ │ │ -000060b0: e280 9920 2020 206e 6f6e 2d61 6c70 6861 ... non-alpha │ │ │ │ -000060c0: 6e75 6d65 7269 6320 6368 6172 6163 7465 numeric characte │ │ │ │ -000060d0: 7220 696e 2061 0a20 2020 2020 2020 2020 r in a. │ │ │ │ +00006030: 2020 2020 2020 2020 0ae2 8098 6775 696c ....guil │ │ │ │ +00006040: 652d 7379 6d62 6f6c 2d6d 6973 632d 6368 e-symbol-misc-ch │ │ │ │ +00006050: 6172 73e2 8099 3139 2063 6861 7261 6374 ars...19 charact │ │ │ │ +00006060: 6572 732c 5265 6164 2061 2073 796d 626f ers,Read a symbo │ │ │ │ +00006070: 6c20 7468 6174 2073 7461 7274 7320 7769 l that starts wi │ │ │ │ +00006080: 7468 2061 0a20 2020 2020 2020 2020 2020 th a. │ │ │ │ +00006090: 2020 2020 2020 2020 e280 9823 5c5b e280 ...#\[.. │ │ │ │ +000060a0: 992e 2e2e 2020 e280 9823 5c24 e280 9920 .... ...#\$... │ │ │ │ +000060b0: 2020 206e 6f6e 2d61 6c70 6861 6e75 6d65 non-alphanume │ │ │ │ +000060c0: 7269 6320 6368 6172 6163 7465 7220 696e ric character in │ │ │ │ +000060d0: 2061 0a20 2020 2020 2020 2020 2020 2020 a. │ │ │ │ 000060e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000060f0: 2020 2020 2020 2020 2020 2020 2063 6173 cas │ │ │ │ -00006100: 652d 7365 6e73 6974 6976 6520 6661 7368 e-sensitive fash │ │ │ │ -00006110: 696f 6e2e 2020 4e6f 7465 2074 6861 740a ion. Note that. │ │ │ │ +000060f0: 2020 2020 2020 2020 2063 6173 652d 7365 case-se │ │ │ │ +00006100: 6e73 6974 6976 6520 6661 7368 696f 6e2e nsitive fashion. │ │ │ │ +00006110: 2020 4e6f 7465 2074 6861 740a 2020 2020 Note that. │ │ │ │ 00006120: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006130: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006140: 2020 2020 2020 7468 6973 2074 6f6b 656e this token │ │ │ │ -00006150: 2072 6561 6465 7220 646f 6573 205f 6e6f reader does _no │ │ │ │ -00006160: 745f 0a20 2020 2020 2020 2020 2020 2020 t_. │ │ │ │ +00006140: 2020 7468 6973 2074 6f6b 656e 2072 6561 this token rea │ │ │ │ +00006150: 6465 7220 646f 6573 205f 6e6f 745f 0a20 der does _not_. │ │ │ │ +00006160: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006170: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006180: 2020 2020 2020 2020 2063 6f6e 7369 6465 conside │ │ │ │ -00006190: 7220 7371 7561 7265 2062 7261 636b 6574 r square bracket │ │ │ │ -000061a0: 7320 6173 0a20 2020 2020 2020 2020 2020 s as. │ │ │ │ +00006180: 2020 2020 2063 6f6e 7369 6465 7220 7371 consider sq │ │ │ │ +00006190: 7561 7265 2062 7261 636b 6574 7320 6173 uare brackets as │ │ │ │ +000061a0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 000061b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000061c0: 2020 2020 2020 2020 2020 2064 656c 696d delim │ │ │ │ -000061d0: 6974 6572 732c 2061 7320 7761 7320 7468 iters, as was th │ │ │ │ -000061e0: 6520 6361 7365 2077 6974 680a 2020 2020 e case with. │ │ │ │ +000061c0: 2020 2020 2020 2064 656c 696d 6974 6572 delimiter │ │ │ │ +000061d0: 732c 2061 7320 7761 7320 7468 6520 6361 s, as was the ca │ │ │ │ +000061e0: 7365 2077 6974 680a 2020 2020 2020 2020 se with. │ │ │ │ 000061f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006200: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006210: 2020 4775 696c 6520 312e 3820 616e 6420 Guile 1.8 and │ │ │ │ -00006220: 6561 726c 6965 722e 0a20 2020 2020 2020 earlier.. │ │ │ │ +00006200: 2020 2020 2020 2020 2020 2020 2020 4775 Gu │ │ │ │ +00006210: 696c 6520 312e 3820 616e 6420 6561 726c ile 1.8 and earl │ │ │ │ +00006220: 6965 722e 0a20 2020 2020 2020 2020 2020 ier.. │ │ │ │ 00006230: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006240: 2020 2020 2020 2020 2020 2020 2020 200a . │ │ │ │ -00006250: e280 9867 7569 6c65 2d73 796d 626f 6c2d ...guile-symbol- │ │ │ │ -00006260: 7570 7065 722d 6361 7365 e280 9966 726f upper-case...fro │ │ │ │ -00006270: 6d20 e280 9823 5c41 e280 9920 746f 5265 m ...#\A... toRe │ │ │ │ -00006280: 6164 2061 2073 796d 626f 6c20 7468 6174 ad a symbol that │ │ │ │ -00006290: 2073 7461 7274 7320 7769 7468 2061 6e0a starts with an. │ │ │ │ -000062a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000062b0: 2020 20e2 8098 235c 5ae2 8099 2020 2020 ...#\Z... │ │ │ │ -000062c0: 2020 2020 2020 2020 2020 7570 7065 722d upper- │ │ │ │ -000062d0: 6361 7365 206c 6574 7465 7220 696e 2061 case letter in a │ │ │ │ -000062e0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00006240: 2020 2020 2020 2020 2020 200a e280 9867 ....g │ │ │ │ +00006250: 7569 6c65 2d73 796d 626f 6c2d 7570 7065 uile-symbol-uppe │ │ │ │ +00006260: 722d 6361 7365 e280 9966 726f 6d20 e280 r-case...from .. │ │ │ │ +00006270: 9823 5c41 e280 9920 746f 5265 6164 2061 .#\A... toRead a │ │ │ │ +00006280: 2073 796d 626f 6c20 7468 6174 2073 7461 symbol that sta │ │ │ │ +00006290: 7274 7320 7769 7468 2061 6e0a 2020 2020 rts with an. │ │ │ │ +000062a0: 2020 2020 2020 2020 2020 2020 2020 20e2 . │ │ │ │ +000062b0: 8098 235c 5ae2 8099 2020 2020 2020 2020 ..#\Z... │ │ │ │ +000062c0: 2020 2020 2020 7570 7065 722d 6361 7365 upper-case │ │ │ │ +000062d0: 206c 6574 7465 7220 696e 2061 0a20 2020 letter in a. │ │ │ │ +000062e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000062f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006300: 2020 2020 2020 2063 6173 652d 7365 6e73 case-sens │ │ │ │ -00006310: 6974 6976 6520 6661 7368 696f 6e2e 0a20 itive fashion.. │ │ │ │ +00006300: 2020 2063 6173 652d 7365 6e73 6974 6976 case-sensitiv │ │ │ │ +00006310: 6520 6661 7368 696f 6e2e 0a20 2020 2020 e fashion.. │ │ │ │ 00006320: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006330: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006340: 2020 2020 200a e280 986b 6579 776f 7264 ....keyword │ │ │ │ -00006350: e280 9920 2020 2020 2020 2020 20e2 8098 ... ... │ │ │ │ -00006360: 235c 3ae2 8099 2020 2020 2020 2020 2020 #\:... │ │ │ │ -00006370: 2020 2020 5468 6973 2074 6f6b 656e 2072 This token r │ │ │ │ -00006380: 6561 6465 7220 7265 7475 726e 7320 610a eader returns a. │ │ │ │ +00006340: 200a e280 986b 6579 776f 7264 e280 9920 ....keyword... │ │ │ │ +00006350: 2020 2020 2020 2020 20e2 8098 235c 3ae2 ...#\:. │ │ │ │ +00006360: 8099 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +00006370: 5468 6973 2074 6f6b 656e 2072 6561 6465 This token reade │ │ │ │ +00006380: 7220 7265 7475 726e 7320 610a 2020 2020 r returns a. │ │ │ │ 00006390: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000063a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000063b0: 2020 2020 2020 6b65 7977 6f72 6420 6173 keyword as │ │ │ │ -000063c0: 2066 6f75 6e64 2069 6e20 4775 696c 652e found in Guile. │ │ │ │ -000063d0: 2020 4974 206d 6179 0a20 2020 2020 2020 It may. │ │ │ │ +000063b0: 2020 6b65 7977 6f72 6420 6173 2066 6f75 keyword as fou │ │ │ │ +000063c0: 6e64 2069 6e20 4775 696c 652e 2020 4974 nd in Guile. It │ │ │ │ +000063d0: 206d 6179 0a20 2020 2020 2020 2020 2020 may. │ │ │ │ 000063e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000063f0: 2020 2020 2020 2020 2020 2020 2020 2062 b │ │ │ │ -00006400: 6520 7573 6564 2065 6974 6865 7220 6166 e used either af │ │ │ │ -00006410: 7465 7220 6120 e280 9823 e280 990a 2020 ter a ...#.... │ │ │ │ +000063f0: 2020 2020 2020 2020 2020 2062 6520 7573 be us │ │ │ │ +00006400: 6564 2065 6974 6865 7220 6166 7465 7220 ed either after │ │ │ │ +00006410: 6120 e280 9823 e280 990a 2020 2020 2020 a ...#.... │ │ │ │ 00006420: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006430: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006440: 2020 2020 6368 6172 6163 7465 7220 2874 character (t │ │ │ │ -00006450: 6f20 696d 706c 656d 656e 7420 4775 696c o implement Guil │ │ │ │ -00006460: 6527 730a 2020 2020 2020 2020 2020 2020 e's. │ │ │ │ +00006440: 6368 6172 6163 7465 7220 2874 6f20 696d character (to im │ │ │ │ +00006450: 706c 656d 656e 7420 4775 696c 6527 730a plement Guile's. │ │ │ │ +00006460: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006470: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006480: 2020 2020 2020 2020 2020 6465 6661 756c defaul │ │ │ │ -00006490: 7420 6b65 7977 6f72 6420 7379 6e74 6178 t keyword syntax │ │ │ │ -000064a0: 2c20 e280 9823 3a6b 77e2 8099 2920 6f72 , ...#:kw...) or │ │ │ │ -000064b0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00006480: 2020 2020 2020 6465 6661 756c 7420 6b65 default ke │ │ │ │ +00006490: 7977 6f72 6420 7379 6e74 6178 2c20 e280 yword syntax, .. │ │ │ │ +000064a0: 9823 3a6b 77e2 8099 2920 6f72 0a20 2020 .#:kw...) or. │ │ │ │ +000064b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000064c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000064d0: 2020 2020 2020 2077 6974 6869 6e20 7468 within th │ │ │ │ -000064e0: 6520 746f 702d 6c65 7665 6c20 7265 6164 e top-level read │ │ │ │ -000064f0: 6572 2028 746f 0a20 2020 2020 2020 2020 er (to. │ │ │ │ +000064d0: 2020 2077 6974 6869 6e20 7468 6520 746f within the to │ │ │ │ +000064e0: 702d 6c65 7665 6c20 7265 6164 6572 2028 p-level reader ( │ │ │ │ +000064f0: 746f 0a20 2020 2020 2020 2020 2020 2020 to. │ │ │ │ 00006500: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006510: 2020 2020 2020 2020 2020 2020 2069 6d70 imp │ │ │ │ -00006520: 6c65 6d65 6e74 20e2 8098 3a6b 77e2 8099 lement ...:kw... │ │ │ │ -00006530: 2d73 7479 6c65 206b 6579 776f 7264 7329 -style keywords) │ │ │ │ -00006540: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +00006510: 2020 2020 2020 2020 2069 6d70 6c65 6d65 impleme │ │ │ │ +00006520: 6e74 20e2 8098 3a6b 77e2 8099 2d73 7479 nt ...:kw...-sty │ │ │ │ +00006530: 6c65 206b 6579 776f 7264 7329 2e0a 2020 le keywords).. │ │ │ │ +00006540: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006550: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006560: 2020 2020 2020 2020 0a20 2020 2020 2020 . │ │ │ │ +00006560: 2020 2020 0a20 2020 2020 2020 2020 2020 . │ │ │ │ 00006570: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006580: 2020 2020 2020 2020 2020 2020 2020 2049 I │ │ │ │ -00006590: 7420 6973 2077 6f72 7468 206e 6f74 696e t is worth notin │ │ │ │ -000065a0: 6720 7468 6174 2074 6869 7320 746f 6b65 g that this toke │ │ │ │ -000065b0: 6e0a 2020 2020 2020 2020 2020 2020 2020 n. │ │ │ │ +00006580: 2020 2020 2020 2020 2020 2049 7420 6973 It is │ │ │ │ +00006590: 2077 6f72 7468 206e 6f74 696e 6720 7468 worth noting th │ │ │ │ +000065a0: 6174 2074 6869 7320 746f 6b65 6e0a 2020 at this token. │ │ │ │ +000065b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000065c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000065d0: 2020 2020 2020 2020 7265 6164 6572 2069 reader i │ │ │ │ -000065e0: 6e76 6f6b 6573 2069 7473 2074 6f70 2d6c nvokes its top-l │ │ │ │ -000065f0: 6576 656c 2069 6e0a 2020 2020 2020 2020 evel in. │ │ │ │ +000065d0: 2020 2020 7265 6164 6572 2069 6e76 6f6b reader invok │ │ │ │ +000065e0: 6573 2069 7473 2074 6f70 2d6c 6576 656c es its top-level │ │ │ │ +000065f0: 2069 6e0a 2020 2020 2020 2020 2020 2020 in. │ │ │ │ 00006600: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006610: 2020 2020 2020 2020 2020 2020 2020 6f72 or │ │ │ │ -00006620: 6465 7220 746f 2072 6561 6420 7468 6520 der to read the │ │ │ │ -00006630: 7379 6d62 6f6c 0a20 2020 2020 2020 2020 symbol. │ │ │ │ +00006610: 2020 2020 2020 2020 2020 6f72 6465 7220 order │ │ │ │ +00006620: 746f 2072 6561 6420 7468 6520 7379 6d62 to read the symb │ │ │ │ +00006630: 6f6c 0a20 2020 2020 2020 2020 2020 2020 ol. │ │ │ │ 00006640: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006650: 2020 2020 2020 2020 2020 2020 2073 7562 sub │ │ │ │ -00006660: 7365 7175 656e 7420 746f 2074 6865 20e2 sequent to the . │ │ │ │ -00006670: 8098 3ae2 8099 2063 6861 7261 6374 6572 ..:... character │ │ │ │ -00006680: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +00006650: 2020 2020 2020 2020 2073 7562 7365 7175 subsequ │ │ │ │ +00006660: 656e 7420 746f 2074 6865 20e2 8098 3ae2 ent to the ...:. │ │ │ │ +00006670: 8099 2063 6861 7261 6374 6572 2e0a 2020 .. character.. │ │ │ │ +00006680: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006690: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000066a0: 2020 2020 2020 2020 5468 6572 6566 6f72 Therefor │ │ │ │ -000066b0: 652c 2069 7420 7769 6c6c 2061 6461 7074 e, it will adapt │ │ │ │ -000066c0: 2074 6f20 7468 650a 2020 2020 2020 2020 to the. │ │ │ │ +000066a0: 2020 2020 5468 6572 6566 6f72 652c 2069 Therefore, i │ │ │ │ +000066b0: 7420 7769 6c6c 2061 6461 7074 2074 6f20 t will adapt to │ │ │ │ +000066c0: 7468 650a 2020 2020 2020 2020 2020 2020 the. │ │ │ │ 000066d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000066e0: 2020 2020 2020 2020 2020 2020 2020 7379 sy │ │ │ │ -000066f0: 6d62 6f6c 2064 656c 696d 6974 6572 7320 mbol delimiters │ │ │ │ -00006700: 6375 7272 656e 746c 7920 696e 2075 7365 currently in use │ │ │ │ -00006710: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +000066e0: 2020 2020 2020 2020 2020 7379 6d62 6f6c symbol │ │ │ │ +000066f0: 2064 656c 696d 6974 6572 7320 6375 7272 delimiters curr │ │ │ │ +00006700: 656e 746c 7920 696e 2075 7365 0a20 2020 ently in use. │ │ │ │ +00006710: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006720: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006730: 2020 2020 2020 2028 2a6e 6f74 6520 546f (*note To │ │ │ │ -00006740: 6b65 6e20 4465 6c69 6d69 7465 7273 3a3a ken Delimiters:: │ │ │ │ -00006750: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. │ │ │ │ +00006730: 2020 2028 2a6e 6f74 6520 546f 6b65 6e20 (*note Token │ │ │ │ +00006740: 4465 6c69 6d69 7465 7273 3a3a 292e 0a20 Delimiters::).. │ │ │ │ +00006750: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006760: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006770: 2020 2020 2020 2020 200a e280 986e 756d ....num │ │ │ │ -00006780: 6265 722b 7261 6469 78e2 8099 2020 2020 ber+radix... │ │ │ │ -00006790: 2031 3220 6368 6172 6163 7465 7273 2c20 12 characters, │ │ │ │ -000067a0: 2020 2020 5468 6973 2069 7320 6120 7368 This is a sh │ │ │ │ -000067b0: 6172 7020 746f 6b65 6e20 7265 6164 6572 arp token reader │ │ │ │ -000067c0: 2c20 692e 652e 0a20 2020 2020 2020 2020 , i.e.. │ │ │ │ -000067d0: 2020 2020 2020 2020 2020 e280 9823 5c62 ...#\b │ │ │ │ -000067e0: e280 992e 2e2e 2020 e280 9823 5c45 e280 ...... ...#\E.. │ │ │ │ -000067f0: 9920 2020 2069 7420 7265 6164 7320 6120 . it reads a │ │ │ │ -00006800: 6e75 6d62 6572 2075 7369 6e67 2074 6865 number using the │ │ │ │ -00006810: 2072 6164 6978 0a20 2020 2020 2020 2020 radix. │ │ │ │ +00006770: 2020 2020 200a e280 986e 756d 6265 722b ....number+ │ │ │ │ +00006780: 7261 6469 78e2 8099 2020 2020 2031 3220 radix... 12 │ │ │ │ +00006790: 6368 6172 6163 7465 7273 2c20 2020 2020 characters, │ │ │ │ +000067a0: 5468 6973 2069 7320 6120 7368 6172 7020 This is a sharp │ │ │ │ +000067b0: 746f 6b65 6e20 7265 6164 6572 2c20 692e token reader, i. │ │ │ │ +000067c0: 652e 0a20 2020 2020 2020 2020 2020 2020 e.. │ │ │ │ +000067d0: 2020 2020 2020 e280 9823 5c62 e280 992e ...#\b.... │ │ │ │ +000067e0: 2e2e 2020 e280 9823 5c45 e280 9920 2020 .. ...#\E... │ │ │ │ +000067f0: 2069 7420 7265 6164 7320 6120 6e75 6d62 it reads a numb │ │ │ │ +00006800: 6572 2075 7369 6e67 2074 6865 2072 6164 er using the rad │ │ │ │ +00006810: 6978 0a20 2020 2020 2020 2020 2020 2020 ix. │ │ │ │ 00006820: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006830: 2020 2020 2020 2020 2020 2020 206e 6f74 not │ │ │ │ -00006840: 6174 696f 6e2c 206c 696b 6520 e280 9823 ation, like ...# │ │ │ │ -00006850: 6230 31e2 8099 2066 6f72 2074 6865 0a20 b01... for the. │ │ │ │ +00006830: 2020 2020 2020 2020 206e 6f74 6174 696f notatio │ │ │ │ +00006840: 6e2c 206c 696b 6520 e280 9823 6230 31e2 n, like ...#b01. │ │ │ │ +00006850: 8099 2066 6f72 2074 6865 0a20 2020 2020 .. for the. │ │ │ │ 00006860: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006870: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006880: 2020 2020 2062 696e 6172 7920 6e6f 7461 binary nota │ │ │ │ -00006890: 7469 6f6e 2c20 e280 9823 7831 64e2 8099 tion, ...#x1d... │ │ │ │ -000068a0: 2066 6f72 2074 6865 0a20 2020 2020 2020 for the. │ │ │ │ +00006880: 2062 696e 6172 7920 6e6f 7461 7469 6f6e binary notation │ │ │ │ +00006890: 2c20 e280 9823 7831 64e2 8099 2066 6f72 , ...#x1d... for │ │ │ │ +000068a0: 2074 6865 0a20 2020 2020 2020 2020 2020 the. │ │ │ │ 000068b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000068c0: 2020 2020 2020 2020 2020 2020 2020 2068 h │ │ │ │ -000068d0: 6578 6164 6563 696d 616c 206e 6f74 6174 exadecimal notat │ │ │ │ -000068e0: 696f 6e2c 2065 7463 2e2c 2073 6565 0a20 ion, etc., see. │ │ │ │ +000068c0: 2020 2020 2020 2020 2020 2068 6578 6164 hexad │ │ │ │ +000068d0: 6563 696d 616c 206e 6f74 6174 696f 6e2c ecimal notation, │ │ │ │ +000068e0: 2065 7463 2e2c 2073 6565 0a20 2020 2020 etc., see. │ │ │ │ 000068f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006900: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006910: 2020 2020 202a 6e6f 7465 2047 7569 6c65 *note Guile │ │ │ │ -00006920: 2773 206e 756d 6265 7220 7379 6e74 6178 's number syntax │ │ │ │ -00006930: 3a20 2867 7569 6c65 294e 756d 6265 7220 : (guile)Number │ │ │ │ -00006940: 5379 6e74 6178 2c0a 2020 2020 2020 2020 Syntax,. │ │ │ │ +00006910: 202a 6e6f 7465 2047 7569 6c65 2773 206e *note Guile's n │ │ │ │ +00006920: 756d 6265 7220 7379 6e74 6178 3a20 2867 umber syntax: (g │ │ │ │ +00006930: 7569 6c65 294e 756d 6265 7220 5379 6e74 uile)Number Synt │ │ │ │ +00006940: 6178 2c0a 2020 2020 2020 2020 2020 2020 ax,. │ │ │ │ 00006950: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006960: 2020 2020 2020 2020 2020 2020 2020 666f fo │ │ │ │ -00006970: 7220 6465 7461 696c 732e 0a20 2020 2020 r details.. │ │ │ │ +00006960: 2020 2020 2020 2020 2020 666f 7220 6465 for de │ │ │ │ +00006970: 7461 696c 732e 0a20 2020 2020 2020 2020 tails.. │ │ │ │ 00006980: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006990: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000069a0: 200a e280 9871 756f 7465 2d71 7561 7369 ....quote-quasi │ │ │ │ -000069b0: 7175 6f74 652d 756e 7175 6f74 65e2 8099 quote-unquote... │ │ │ │ -000069c0: 3320 6368 6172 6163 7465 7273 2c52 6561 3 characters,Rea │ │ │ │ -000069d0: 6420 6120 7175 6f74 652c 2071 7561 7369 d a quote, quasi │ │ │ │ -000069e0: 7175 6f74 652c 206f 720a 2020 2020 2020 quote, or. │ │ │ │ -000069f0: 2020 2020 2020 2020 2020 2020 20e2 8098 ... │ │ │ │ -00006a00: 235c 27e2 8099 2e2e 2e20 20e2 8098 235c #\'...... ...#\ │ │ │ │ -00006a10: 2ce2 8099 2020 2020 756e 7175 6f74 6520 ,... unquote │ │ │ │ -00006a20: 532d 6578 7072 6573 7369 6f6e 2e0a 2020 S-expression.. │ │ │ │ +00006990: 2020 2020 2020 2020 2020 2020 200a e280 ... │ │ │ │ +000069a0: 9871 756f 7465 2d71 7561 7369 7175 6f74 .quote-quasiquot │ │ │ │ +000069b0: 652d 756e 7175 6f74 65e2 8099 3320 6368 e-unquote...3 ch │ │ │ │ +000069c0: 6172 6163 7465 7273 2c52 6561 6420 6120 aracters,Read a │ │ │ │ +000069d0: 7175 6f74 652c 2071 7561 7369 7175 6f74 quote, quasiquot │ │ │ │ +000069e0: 652c 206f 720a 2020 2020 2020 2020 2020 e, or. │ │ │ │ +000069f0: 2020 2020 2020 2020 20e2 8098 235c 27e2 ...#\'. │ │ │ │ +00006a00: 8099 2e2e 2e20 20e2 8098 235c 2ce2 8099 ..... ...#\,... │ │ │ │ +00006a10: 2020 2020 756e 7175 6f74 6520 532d 6578 unquote S-ex │ │ │ │ +00006a20: 7072 6573 7369 6f6e 2e0a 2020 2020 2020 pression.. │ │ │ │ 00006a30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006a40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006a50: 2020 2020 0ae2 8098 7235 7273 2d6c 6f77 ....r5rs-low │ │ │ │ -00006a60: 6572 2d63 6173 652d 6e75 6d62 6572 e280 er-case-number.. │ │ │ │ -00006a70: 9931 3320 6368 6172 6163 7465 7273 2c52 .13 characters,R │ │ │ │ -00006a80: 6574 7572 6e20 6120 6e75 6d62 6572 206f eturn a number o │ │ │ │ -00006a90: 7220 6120 6c6f 7765 722d 6361 7365 0a20 r a lower-case. │ │ │ │ -00006aa0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006ab0: 2020 e280 9823 5c2d e280 992e 2e2e 2020 ...#\-...... │ │ │ │ -00006ac0: e280 9823 5c39 e280 9920 2020 2073 796d ...#\9... sym │ │ │ │ -00006ad0: 626f 6c2e 0a20 2020 2020 2020 2020 2020 bol.. │ │ │ │ +00006a50: 0ae2 8098 7235 7273 2d6c 6f77 6572 2d63 ....r5rs-lower-c │ │ │ │ +00006a60: 6173 652d 6e75 6d62 6572 e280 9931 3320 ase-number...13 │ │ │ │ +00006a70: 6368 6172 6163 7465 7273 2c52 6574 7572 characters,Retur │ │ │ │ +00006a80: 6e20 6120 6e75 6d62 6572 206f 7220 6120 n a number or a │ │ │ │ +00006a90: 6c6f 7765 722d 6361 7365 0a20 2020 2020 lower-case. │ │ │ │ +00006aa0: 2020 2020 2020 2020 2020 2020 2020 e280 .. │ │ │ │ +00006ab0: 9823 5c2d e280 992e 2e2e 2020 e280 9823 .#\-...... ...# │ │ │ │ +00006ac0: 5c39 e280 9920 2020 2073 796d 626f 6c2e \9... symbol. │ │ │ │ +00006ad0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00006ae0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006af0: 2020 2020 2020 2020 2020 200a e280 9872 ....r │ │ │ │ -00006b00: 3572 732d 6c6f 7765 722d 6361 7365 2d73 5rs-lower-case-s │ │ │ │ -00006b10: 796d 626f 6c2d 6c6f 7765 722d 6361 7365 ymbol-lower-case │ │ │ │ -00006b20: e280 9966 726f 6d20 e280 9823 5c61 e280 ...from ...#\a.. │ │ │ │ -00006b30: 9920 746f 5265 6164 2061 2073 796d 626f . toRead a symbo │ │ │ │ -00006b40: 6c20 7468 6174 2073 7461 7274 7320 7769 l that starts wi │ │ │ │ -00006b50: 7468 2061 0a20 2020 2020 2020 2020 2020 th a. │ │ │ │ -00006b60: 2020 2020 2020 2020 e280 9823 5c7a e280 ...#\z.. │ │ │ │ -00006b70: 9920 2020 2020 2020 2020 2020 2020 206c . l │ │ │ │ -00006b80: 6f77 6572 2d63 6173 6520 6c65 7474 6572 ower-case letter │ │ │ │ -00006b90: 2061 6e64 2072 6574 7572 6e20 610a 2020 and return a. │ │ │ │ +00006af0: 2020 2020 2020 200a e280 9872 3572 732d ....r5rs- │ │ │ │ +00006b00: 6c6f 7765 722d 6361 7365 2d73 796d 626f lower-case-symbo │ │ │ │ +00006b10: 6c2d 6c6f 7765 722d 6361 7365 e280 9966 l-lower-case...f │ │ │ │ +00006b20: 726f 6d20 e280 9823 5c61 e280 9920 746f rom ...#\a... to │ │ │ │ +00006b30: 5265 6164 2061 2073 796d 626f 6c20 7468 Read a symbol th │ │ │ │ +00006b40: 6174 2073 7461 7274 7320 7769 7468 2061 at starts with a │ │ │ │ +00006b50: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00006b60: 2020 2020 e280 9823 5c7a e280 9920 2020 ...#\z... │ │ │ │ +00006b70: 2020 2020 2020 2020 2020 206c 6f77 6572 lower │ │ │ │ +00006b80: 2d63 6173 6520 6c65 7474 6572 2061 6e64 -case letter and │ │ │ │ +00006b90: 2072 6574 7572 6e20 610a 2020 2020 2020 return a. │ │ │ │ 00006ba0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006bb0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006bc0: 2020 2020 6c6f 7765 722d 6361 7365 2073 lower-case s │ │ │ │ -00006bd0: 796d 626f 6c2c 2072 6567 6172 646c 6573 ymbol, regardles │ │ │ │ -00006be0: 7320 6f66 0a20 2020 2020 2020 2020 2020 s of. │ │ │ │ +00006bc0: 6c6f 7765 722d 6361 7365 2073 796d 626f lower-case symbo │ │ │ │ +00006bd0: 6c2c 2072 6567 6172 646c 6573 7320 6f66 l, regardless of │ │ │ │ +00006be0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00006bf0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006c00: 2020 2020 2020 2020 2020 2074 6865 2063 the c │ │ │ │ -00006c10: 6173 6520 6f66 2074 6865 2069 6e70 7574 ase of the input │ │ │ │ -00006c20: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +00006c00: 2020 2020 2020 2074 6865 2063 6173 6520 the case │ │ │ │ +00006c10: 6f66 2074 6865 2069 6e70 7574 2e0a 2020 of the input.. │ │ │ │ +00006c20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006c30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006c40: 2020 2020 2020 2020 0ae2 8098 7235 7273 ....r5rs │ │ │ │ -00006c50: 2d6c 6f77 6572 2d63 6173 652d 7379 6d62 -lower-case-symb │ │ │ │ -00006c60: 6f6c 2d6d 6973 632d 6368 6172 73e2 8099 ol-misc-chars... │ │ │ │ -00006c70: 3139 2063 6861 7261 6374 6572 732c 5265 19 characters,Re │ │ │ │ -00006c80: 6164 2061 2073 796d 626f 6c20 7468 6174 ad a symbol that │ │ │ │ -00006c90: 2073 7461 7274 7320 7769 7468 2061 0a20 starts with a. │ │ │ │ -00006ca0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006cb0: 2020 e280 9823 5c5b e280 992e 2e2e 2020 ...#\[...... │ │ │ │ -00006cc0: e280 9823 5c24 e280 9920 2020 206e 6f6e ...#\$... non │ │ │ │ -00006cd0: 2d61 6c70 6861 6e75 6d65 7269 6320 6368 -alphanumeric ch │ │ │ │ -00006ce0: 6172 6163 7465 7220 616e 640a 2020 2020 aracter and. │ │ │ │ +00006c40: 2020 2020 0ae2 8098 7235 7273 2d6c 6f77 ....r5rs-low │ │ │ │ +00006c50: 6572 2d63 6173 652d 7379 6d62 6f6c 2d6d er-case-symbol-m │ │ │ │ +00006c60: 6973 632d 6368 6172 73e2 8099 3139 2063 isc-chars...19 c │ │ │ │ +00006c70: 6861 7261 6374 6572 732c 5265 6164 2061 haracters,Read a │ │ │ │ +00006c80: 2073 796d 626f 6c20 7468 6174 2073 7461 symbol that sta │ │ │ │ +00006c90: 7274 7320 7769 7468 2061 0a20 2020 2020 rts with a. │ │ │ │ +00006ca0: 2020 2020 2020 2020 2020 2020 2020 e280 .. │ │ │ │ +00006cb0: 9823 5c5b e280 992e 2e2e 2020 e280 9823 .#\[...... ...# │ │ │ │ +00006cc0: 5c24 e280 9920 2020 206e 6f6e 2d61 6c70 \$... non-alp │ │ │ │ +00006cd0: 6861 6e75 6d65 7269 6320 6368 6172 6163 hanumeric charac │ │ │ │ +00006ce0: 7465 7220 616e 640a 2020 2020 2020 2020 ter and. │ │ │ │ 00006cf0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006d00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006d10: 2020 7265 7475 726e 2061 206c 6f77 6572 return a lower │ │ │ │ -00006d20: 2d63 6173 6520 7379 6d62 6f6c 2c0a 2020 -case symbol,. │ │ │ │ +00006d00: 2020 2020 2020 2020 2020 2020 2020 7265 re │ │ │ │ +00006d10: 7475 726e 2061 206c 6f77 6572 2d63 6173 turn a lower-cas │ │ │ │ +00006d20: 6520 7379 6d62 6f6c 2c0a 2020 2020 2020 e symbol,. │ │ │ │ 00006d30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006d40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006d50: 2020 2020 7265 6761 7264 6c65 7373 206f regardless o │ │ │ │ -00006d60: 6620 7468 6520 6361 7365 206f 6620 7468 f the case of th │ │ │ │ -00006d70: 650a 2020 2020 2020 2020 2020 2020 2020 e. │ │ │ │ +00006d50: 7265 6761 7264 6c65 7373 206f 6620 7468 regardless of th │ │ │ │ +00006d60: 6520 6361 7365 206f 6620 7468 650a 2020 e case of the. │ │ │ │ +00006d70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006d80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006d90: 2020 2020 2020 2020 696e 7075 742e 0a20 input.. │ │ │ │ +00006d90: 2020 2020 696e 7075 742e 0a20 2020 2020 input.. │ │ │ │ 00006da0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006db0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006dc0: 2020 2020 200a e280 9872 3572 732d 6c6f ....r5rs-lo │ │ │ │ -00006dd0: 7765 722d 6361 7365 2d73 796d 626f 6c2d wer-case-symbol- │ │ │ │ -00006de0: 7570 7065 722d 6361 7365 e280 9966 726f upper-case...fro │ │ │ │ -00006df0: 6d20 e280 9823 5c41 e280 9920 746f 5265 m ...#\A... toRe │ │ │ │ -00006e00: 6164 2061 2073 796d 626f 6c20 7468 6174 ad a symbol that │ │ │ │ -00006e10: 2073 7461 7274 7320 7769 7468 2061 6e0a starts with an. │ │ │ │ -00006e20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006e30: 2020 20e2 8098 235c 5ae2 8099 2020 2020 ...#\Z... │ │ │ │ -00006e40: 2020 2020 2020 2020 2020 7570 7065 722d upper- │ │ │ │ -00006e50: 6361 7365 206c 6574 7465 7220 616e 6420 case letter and │ │ │ │ -00006e60: 7265 7475 726e 2061 0a20 2020 2020 2020 return a. │ │ │ │ +00006dc0: 200a e280 9872 3572 732d 6c6f 7765 722d ....r5rs-lower- │ │ │ │ +00006dd0: 6361 7365 2d73 796d 626f 6c2d 7570 7065 case-symbol-uppe │ │ │ │ +00006de0: 722d 6361 7365 e280 9966 726f 6d20 e280 r-case...from .. │ │ │ │ +00006df0: 9823 5c41 e280 9920 746f 5265 6164 2061 .#\A... toRead a │ │ │ │ +00006e00: 2073 796d 626f 6c20 7468 6174 2073 7461 symbol that sta │ │ │ │ +00006e10: 7274 7320 7769 7468 2061 6e0a 2020 2020 rts with an. │ │ │ │ +00006e20: 2020 2020 2020 2020 2020 2020 2020 20e2 . │ │ │ │ +00006e30: 8098 235c 5ae2 8099 2020 2020 2020 2020 ..#\Z... │ │ │ │ +00006e40: 2020 2020 2020 7570 7065 722d 6361 7365 upper-case │ │ │ │ +00006e50: 206c 6574 7465 7220 616e 6420 7265 7475 letter and retu │ │ │ │ +00006e60: 726e 2061 0a20 2020 2020 2020 2020 2020 rn a. │ │ │ │ 00006e70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006e80: 2020 2020 2020 2020 2020 2020 2020 206c l │ │ │ │ -00006e90: 6f77 6572 2d63 6173 6520 7379 6d62 6f6c ower-case symbol │ │ │ │ -00006ea0: 2c20 7265 6761 7264 6c65 7373 206f 660a , regardless of. │ │ │ │ +00006e80: 2020 2020 2020 2020 2020 206c 6f77 6572 lower │ │ │ │ +00006e90: 2d63 6173 6520 7379 6d62 6f6c 2c20 7265 -case symbol, re │ │ │ │ +00006ea0: 6761 7264 6c65 7373 206f 660a 2020 2020 gardless of. │ │ │ │ 00006eb0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00006ec0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006ed0: 2020 2020 2020 7468 6520 6361 7365 206f the case o │ │ │ │ -00006ee0: 6620 7468 6520 696e 7075 742e 0a20 2020 f the input.. │ │ │ │ +00006ed0: 2020 7468 6520 6361 7365 206f 6620 7468 the case of th │ │ │ │ +00006ee0: 6520 696e 7075 742e 0a20 2020 2020 2020 e input.. │ │ │ │ 00006ef0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006f00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006f10: 2020 200a e280 9872 3572 732d 7570 7065 ....r5rs-uppe │ │ │ │ -00006f20: 722d 6361 7365 2d6e 756d 6265 72e2 8099 r-case-number... │ │ │ │ -00006f30: 3133 2063 6861 7261 6374 6572 732c 5265 13 characters,Re │ │ │ │ -00006f40: 7475 726e 2061 206e 756d 6265 7220 6f72 turn a number or │ │ │ │ -00006f50: 2061 6e20 7570 7065 722d 6361 7365 0a20 an upper-case. │ │ │ │ -00006f60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006f70: 2020 e280 9823 5c2d e280 992e 2e2e 2020 ...#\-...... │ │ │ │ -00006f80: e280 9823 5c39 e280 9920 2020 2073 796d ...#\9... sym │ │ │ │ -00006f90: 626f 6c2e 0a20 2020 2020 2020 2020 2020 bol.. │ │ │ │ +00006f00: 2020 2020 2020 2020 2020 2020 2020 200a . │ │ │ │ +00006f10: e280 9872 3572 732d 7570 7065 722d 6361 ...r5rs-upper-ca │ │ │ │ +00006f20: 7365 2d6e 756d 6265 72e2 8099 3133 2063 se-number...13 c │ │ │ │ +00006f30: 6861 7261 6374 6572 732c 5265 7475 726e haracters,Return │ │ │ │ +00006f40: 2061 206e 756d 6265 7220 6f72 2061 6e20 a number or an │ │ │ │ +00006f50: 7570 7065 722d 6361 7365 0a20 2020 2020 upper-case. │ │ │ │ +00006f60: 2020 2020 2020 2020 2020 2020 2020 e280 .. │ │ │ │ +00006f70: 9823 5c2d e280 992e 2e2e 2020 e280 9823 .#\-...... ...# │ │ │ │ +00006f80: 5c39 e280 9920 2020 2073 796d 626f 6c2e \9... symbol. │ │ │ │ +00006f90: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00006fa0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00006fb0: 2020 2020 2020 2020 2020 200a e280 9872 ....r │ │ │ │ -00006fc0: 3672 732d 6e75 6d62 6572 e280 9920 2020 6rs-number... │ │ │ │ -00006fd0: 2020 2031 3320 6368 6172 6163 7465 7273 13 characters │ │ │ │ -00006fe0: 2c20 2020 2020 5265 7475 726e 2061 206e , Return a n │ │ │ │ -00006ff0: 756d 6265 7220 6f72 2061 2073 796d 626f umber or a symbo │ │ │ │ -00007000: 6c2e 2020 5468 6973 0a20 2020 2020 2020 l. This. │ │ │ │ -00007010: 2020 2020 2020 2020 2020 2020 e280 9823 ...# │ │ │ │ -00007020: 5c2d e280 992e 2e2e 2020 e280 9823 5c39 \-...... ...#\9 │ │ │ │ -00007030: e280 9920 2020 2074 6f6b 656e 2072 6561 ... token rea │ │ │ │ -00007040: 6465 7220 636f 6e66 6f72 6d73 2074 6f20 der conforms to │ │ │ │ -00007050: 5236 5253 2c0a 2020 2020 2020 2020 2020 R6RS,. │ │ │ │ +00006fb0: 2020 2020 2020 200a e280 9872 3672 732d ....r6rs- │ │ │ │ +00006fc0: 6e75 6d62 6572 e280 9920 2020 2020 2031 number... 1 │ │ │ │ +00006fd0: 3320 6368 6172 6163 7465 7273 2c20 2020 3 characters, │ │ │ │ +00006fe0: 2020 5265 7475 726e 2061 206e 756d 6265 Return a numbe │ │ │ │ +00006ff0: 7220 6f72 2061 2073 796d 626f 6c2e 2020 r or a symbol. │ │ │ │ +00007000: 5468 6973 0a20 2020 2020 2020 2020 2020 This. │ │ │ │ +00007010: 2020 2020 2020 2020 e280 9823 5c2d e280 ...#\-.. │ │ │ │ +00007020: 992e 2e2e 2020 e280 9823 5c39 e280 9920 .... ...#\9... │ │ │ │ +00007030: 2020 2074 6f6b 656e 2072 6561 6465 7220 token reader │ │ │ │ +00007040: 636f 6e66 6f72 6d73 2074 6f20 5236 5253 conforms to R6RS │ │ │ │ +00007050: 2c0a 2020 2020 2020 2020 2020 2020 2020 ,. │ │ │ │ 00007060: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007070: 2020 2020 2020 2020 2020 2020 692e 652e i.e. │ │ │ │ -00007080: 2020 6974 2063 6f6e 7369 6465 7273 2073 it considers s │ │ │ │ -00007090: 7175 6172 6520 6272 6163 6b65 7473 0a20 quare brackets. │ │ │ │ +00007070: 2020 2020 2020 2020 692e 652e 2020 6974 i.e. it │ │ │ │ +00007080: 2063 6f6e 7369 6465 7273 2073 7175 6172 considers squar │ │ │ │ +00007090: 6520 6272 6163 6b65 7473 0a20 2020 2020 e brackets. │ │ │ │ 000070a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000070b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000070c0: 2020 2020 2061 7320 6465 6c69 6d69 7465 as delimite │ │ │ │ -000070d0: 7273 2e0a 2020 2020 2020 2020 2020 2020 rs.. │ │ │ │ +000070c0: 2061 7320 6465 6c69 6d69 7465 7273 2e0a as delimiters.. │ │ │ │ +000070d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000070e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000070f0: 2020 2020 2020 2020 2020 0ae2 8098 7236 ....r6 │ │ │ │ -00007100: 7273 2d73 796d 626f 6c2d 6c6f 7765 722d rs-symbol-lower- │ │ │ │ -00007110: 6361 7365 e280 9966 726f 6d20 e280 9823 case...from ...# │ │ │ │ -00007120: 5c61 e280 9920 746f 2052 6561 6420 6120 \a... to Read a │ │ │ │ -00007130: 7379 6d62 6f6c 2074 6861 7420 7374 6172 symbol that star │ │ │ │ -00007140: 7473 2077 6974 6820 610a 2020 2020 2020 ts with a. │ │ │ │ -00007150: 2020 2020 2020 2020 2020 2020 20e2 8098 ... │ │ │ │ -00007160: 235c 7ae2 8099 2020 2020 2020 2020 2020 #\z... │ │ │ │ -00007170: 2020 2020 6c6f 7765 722d 6361 7365 206c lower-case l │ │ │ │ -00007180: 6574 7465 7220 616e 6420 7265 7475 726e etter and return │ │ │ │ -00007190: 2061 0a20 2020 2020 2020 2020 2020 2020 a. │ │ │ │ +000070f0: 2020 2020 2020 0ae2 8098 7236 7273 2d73 ....r6rs-s │ │ │ │ +00007100: 796d 626f 6c2d 6c6f 7765 722d 6361 7365 ymbol-lower-case │ │ │ │ +00007110: e280 9966 726f 6d20 e280 9823 5c61 e280 ...from ...#\a.. │ │ │ │ +00007120: 9920 746f 2052 6561 6420 6120 7379 6d62 . to Read a symb │ │ │ │ +00007130: 6f6c 2074 6861 7420 7374 6172 7473 2077 ol that starts w │ │ │ │ +00007140: 6974 6820 610a 2020 2020 2020 2020 2020 ith a. │ │ │ │ +00007150: 2020 2020 2020 2020 20e2 8098 235c 7ae2 ...#\z. │ │ │ │ +00007160: 8099 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +00007170: 6c6f 7765 722d 6361 7365 206c 6574 7465 lower-case lette │ │ │ │ +00007180: 7220 616e 6420 7265 7475 726e 2061 0a20 r and return a. │ │ │ │ +00007190: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000071a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000071b0: 2020 2020 2020 2020 2073 796d 626f 6c2e symbol. │ │ │ │ -000071c0: 2020 5468 6973 2074 6f6b 656e 2072 6561 This token rea │ │ │ │ -000071d0: 6465 720a 2020 2020 2020 2020 2020 2020 der. │ │ │ │ +000071b0: 2020 2020 2073 796d 626f 6c2e 2020 5468 symbol. Th │ │ │ │ +000071c0: 6973 2074 6f6b 656e 2072 6561 6465 720a is token reader. │ │ │ │ +000071d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000071e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000071f0: 2020 2020 2020 2020 2020 636f 6e66 6f72 confor │ │ │ │ -00007200: 6d73 2077 6974 6820 5236 5253 2069 6e20 ms with R6RS in │ │ │ │ -00007210: 7468 6174 2069 7420 6973 0a20 2020 2020 that it is. │ │ │ │ +000071f0: 2020 2020 2020 636f 6e66 6f72 6d73 2077 conforms w │ │ │ │ +00007200: 6974 6820 5236 5253 2069 6e20 7468 6174 ith R6RS in that │ │ │ │ +00007210: 2069 7420 6973 0a20 2020 2020 2020 2020 it is. │ │ │ │ 00007220: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007230: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007240: 2063 6173 652d 7365 6e73 6974 6976 6520 case-sensitive │ │ │ │ -00007250: 616e 6420 7265 636f 676e 697a 6573 0a20 and recognizes. │ │ │ │ +00007230: 2020 2020 2020 2020 2020 2020 2063 6173 cas │ │ │ │ +00007240: 652d 7365 6e73 6974 6976 6520 616e 6420 e-sensitive and │ │ │ │ +00007250: 7265 636f 676e 697a 6573 0a20 2020 2020 recognizes. │ │ │ │ 00007260: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007270: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007280: 2020 2020 2073 7175 6172 6520 6272 6163 square brac │ │ │ │ -00007290: 6b65 7473 2061 7320 6465 6c69 6d69 7465 kets as delimite │ │ │ │ -000072a0: 7273 0a20 2020 2020 2020 2020 2020 2020 rs. │ │ │ │ +00007280: 2073 7175 6172 6520 6272 6163 6b65 7473 square brackets │ │ │ │ +00007290: 2061 7320 6465 6c69 6d69 7465 7273 0a20 as delimiters. │ │ │ │ +000072a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000072b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000072c0: 2020 2020 2020 2020 2028 2a6e 6f74 6520 (*note │ │ │ │ -000072d0: 546f 6b65 6e20 4465 6c69 6d69 7465 7273 Token Delimiters │ │ │ │ -000072e0: 3a3a 292e 0a20 2020 2020 2020 2020 2020 ::).. │ │ │ │ +000072c0: 2020 2020 2028 2a6e 6f74 6520 546f 6b65 (*note Toke │ │ │ │ +000072d0: 6e20 4465 6c69 6d69 7465 7273 3a3a 292e n Delimiters::). │ │ │ │ +000072e0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 000072f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007300: 2020 2020 2020 2020 2020 200a e280 9872 ....r │ │ │ │ -00007310: 3672 732d 7379 6d62 6f6c 2d6d 6973 632d 6rs-symbol-misc- │ │ │ │ -00007320: 6368 6172 73e2 8099 3137 2063 6861 7261 chars...17 chara │ │ │ │ -00007330: 6374 6572 732c 5265 6164 2061 2073 796d cters,Read a sym │ │ │ │ -00007340: 626f 6c20 7468 6174 2073 7461 7274 7320 bol that starts │ │ │ │ -00007350: 7769 7468 2061 0a20 2020 2020 2020 2020 with a. │ │ │ │ -00007360: 2020 2020 2020 2020 2020 e280 9823 5c7b ...#\{ │ │ │ │ -00007370: e280 992e 2e2e 2020 e280 9823 5c24 e280 ...... ...#\$.. │ │ │ │ -00007380: 9920 2020 206e 6f6e 2d61 6c70 6861 6e75 . non-alphanu │ │ │ │ -00007390: 6d65 7269 6320 6368 6172 6163 7465 7220 meric character │ │ │ │ -000073a0: 616e 640a 2020 2020 2020 2020 2020 2020 and. │ │ │ │ +00007300: 2020 2020 2020 200a e280 9872 3672 732d ....r6rs- │ │ │ │ +00007310: 7379 6d62 6f6c 2d6d 6973 632d 6368 6172 symbol-misc-char │ │ │ │ +00007320: 73e2 8099 3137 2063 6861 7261 6374 6572 s...17 character │ │ │ │ +00007330: 732c 5265 6164 2061 2073 796d 626f 6c20 s,Read a symbol │ │ │ │ +00007340: 7468 6174 2073 7461 7274 7320 7769 7468 that starts with │ │ │ │ +00007350: 2061 0a20 2020 2020 2020 2020 2020 2020 a. │ │ │ │ +00007360: 2020 2020 2020 e280 9823 5c7b e280 992e ...#\{.... │ │ │ │ +00007370: 2e2e 2020 e280 9823 5c24 e280 9920 2020 .. ...#\$... │ │ │ │ +00007380: 206e 6f6e 2d61 6c70 6861 6e75 6d65 7269 non-alphanumeri │ │ │ │ +00007390: 6320 6368 6172 6163 7465 7220 616e 640a c character and. │ │ │ │ +000073a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000073b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000073c0: 2020 2020 2020 2020 2020 7265 7475 726e return │ │ │ │ -000073d0: 2061 2073 796d 626f 6c2e 2020 5468 6973 a symbol. This │ │ │ │ -000073e0: 2074 6f6b 656e 0a20 2020 2020 2020 2020 token. │ │ │ │ +000073c0: 2020 2020 2020 7265 7475 726e 2061 2073 return a s │ │ │ │ +000073d0: 796d 626f 6c2e 2020 5468 6973 2074 6f6b ymbol. This tok │ │ │ │ +000073e0: 656e 0a20 2020 2020 2020 2020 2020 2020 en. │ │ │ │ 000073f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007400: 2020 2020 2020 2020 2020 2020 2072 6561 rea │ │ │ │ -00007410: 6465 7220 636f 6e66 6f72 6d73 2077 6974 der conforms wit │ │ │ │ -00007420: 6820 5236 5253 2069 6e20 7468 6174 0a20 h R6RS in that. │ │ │ │ +00007400: 2020 2020 2020 2020 2072 6561 6465 7220 reader │ │ │ │ +00007410: 636f 6e66 6f72 6d73 2077 6974 6820 5236 conforms with R6 │ │ │ │ +00007420: 5253 2069 6e20 7468 6174 0a20 2020 2020 RS in that. │ │ │ │ 00007430: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007440: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007450: 2020 2020 2069 7420 6973 2063 6173 652d it is case- │ │ │ │ -00007460: 7365 6e73 6974 6976 6520 616e 640a 2020 sensitive and. │ │ │ │ +00007450: 2069 7420 6973 2063 6173 652d 7365 6e73 it is case-sens │ │ │ │ +00007460: 6974 6976 6520 616e 640a 2020 2020 2020 itive and. │ │ │ │ 00007470: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007480: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007490: 2020 2020 7265 636f 676e 697a 6573 2073 recognizes s │ │ │ │ -000074a0: 7175 6172 6520 6272 6163 6b65 7473 2061 quare brackets a │ │ │ │ -000074b0: 730a 2020 2020 2020 2020 2020 2020 2020 s. │ │ │ │ +00007490: 7265 636f 676e 697a 6573 2073 7175 6172 recognizes squar │ │ │ │ +000074a0: 6520 6272 6163 6b65 7473 2061 730a 2020 e brackets as. │ │ │ │ +000074b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000074c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000074d0: 2020 2020 2020 2020 6465 6c69 6d69 7465 delimite │ │ │ │ -000074e0: 7273 0a20 2020 2020 2020 2020 2020 2020 rs. │ │ │ │ +000074d0: 2020 2020 6465 6c69 6d69 7465 7273 0a20 delimiters. │ │ │ │ +000074e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000074f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007500: 2020 2020 2020 2020 2028 2a6e 6f74 6520 (*note │ │ │ │ -00007510: 546f 6b65 6e20 4465 6c69 6d69 7465 7273 Token Delimiters │ │ │ │ -00007520: 3a3a 292e 0a20 2020 2020 2020 2020 2020 ::).. │ │ │ │ +00007500: 2020 2020 2028 2a6e 6f74 6520 546f 6b65 (*note Toke │ │ │ │ +00007510: 6e20 4465 6c69 6d69 7465 7273 3a3a 292e n Delimiters::). │ │ │ │ +00007520: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00007530: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007540: 2020 2020 2020 2020 2020 200a e280 9872 ....r │ │ │ │ -00007550: 3672 732d 7379 6d62 6f6c 2d75 7070 6572 6rs-symbol-upper │ │ │ │ -00007560: 2d63 6173 65e2 8099 6672 6f6d 20e2 8098 -case...from ... │ │ │ │ -00007570: 235c 41e2 8099 2074 6f20 5265 6164 2061 #\A... to Read a │ │ │ │ -00007580: 2073 796d 626f 6c20 7468 6174 2073 7461 symbol that sta │ │ │ │ -00007590: 7274 7320 7769 7468 2061 6e0a 2020 2020 rts with an. │ │ │ │ -000075a0: 2020 2020 2020 2020 2020 2020 2020 20e2 . │ │ │ │ -000075b0: 8098 235c 5ae2 8099 2020 2020 2020 2020 ..#\Z... │ │ │ │ -000075c0: 2020 2020 2020 7570 7065 722d 6361 7365 upper-case │ │ │ │ -000075d0: 206c 6574 7465 7220 616e 6420 7265 7475 letter and retu │ │ │ │ -000075e0: 726e 2061 0a20 2020 2020 2020 2020 2020 rn a. │ │ │ │ +00007540: 2020 2020 2020 200a e280 9872 3672 732d ....r6rs- │ │ │ │ +00007550: 7379 6d62 6f6c 2d75 7070 6572 2d63 6173 symbol-upper-cas │ │ │ │ +00007560: 65e2 8099 6672 6f6d 20e2 8098 235c 41e2 e...from ...#\A. │ │ │ │ +00007570: 8099 2074 6f20 5265 6164 2061 2073 796d .. to Read a sym │ │ │ │ +00007580: 626f 6c20 7468 6174 2073 7461 7274 7320 bol that starts │ │ │ │ +00007590: 7769 7468 2061 6e0a 2020 2020 2020 2020 with an. │ │ │ │ +000075a0: 2020 2020 2020 2020 2020 20e2 8098 235c ...#\ │ │ │ │ +000075b0: 5ae2 8099 2020 2020 2020 2020 2020 2020 Z... │ │ │ │ +000075c0: 2020 7570 7065 722d 6361 7365 206c 6574 upper-case let │ │ │ │ +000075d0: 7465 7220 616e 6420 7265 7475 726e 2061 ter and return a │ │ │ │ +000075e0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 000075f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007600: 2020 2020 2020 2020 2020 2073 796d 626f symbo │ │ │ │ -00007610: 6c2e 2020 5468 6973 2074 6f6b 656e 2072 l. This token r │ │ │ │ -00007620: 6561 6465 720a 2020 2020 2020 2020 2020 eader. │ │ │ │ +00007600: 2020 2020 2020 2073 796d 626f 6c2e 2020 symbol. │ │ │ │ +00007610: 5468 6973 2074 6f6b 656e 2072 6561 6465 This token reade │ │ │ │ +00007620: 720a 2020 2020 2020 2020 2020 2020 2020 r. │ │ │ │ 00007630: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007640: 2020 2020 2020 2020 2020 2020 636f 6e66 conf │ │ │ │ -00007650: 6f72 6d73 2077 6974 6820 5236 5253 2069 orms with R6RS i │ │ │ │ -00007660: 6e20 7468 6174 2069 7420 6973 0a20 2020 n that it is. │ │ │ │ +00007640: 2020 2020 2020 2020 636f 6e66 6f72 6d73 conforms │ │ │ │ +00007650: 2077 6974 6820 5236 5253 2069 6e20 7468 with R6RS in th │ │ │ │ +00007660: 6174 2069 7420 6973 0a20 2020 2020 2020 at it is. │ │ │ │ 00007670: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007680: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007690: 2020 2063 6173 652d 7365 6e73 6974 6976 case-sensitiv │ │ │ │ -000076a0: 6520 616e 6420 7265 636f 676e 697a 6573 e and recognizes │ │ │ │ -000076b0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00007680: 2020 2020 2020 2020 2020 2020 2020 2063 c │ │ │ │ +00007690: 6173 652d 7365 6e73 6974 6976 6520 616e ase-sensitive an │ │ │ │ +000076a0: 6420 7265 636f 676e 697a 6573 0a20 2020 d recognizes. │ │ │ │ +000076b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000076c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000076d0: 2020 2020 2020 2073 7175 6172 6520 6272 square br │ │ │ │ -000076e0: 6163 6b65 7473 2061 7320 6465 6c69 6d69 ackets as delimi │ │ │ │ -000076f0: 7465 7273 0a20 2020 2020 2020 2020 2020 ters. │ │ │ │ +000076d0: 2020 2073 7175 6172 6520 6272 6163 6b65 square bracke │ │ │ │ +000076e0: 7473 2061 7320 6465 6c69 6d69 7465 7273 ts as delimiters │ │ │ │ +000076f0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00007700: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007710: 2020 2020 2020 2020 2020 2028 2a6e 6f74 (*not │ │ │ │ -00007720: 6520 546f 6b65 6e20 4465 6c69 6d69 7465 e Token Delimite │ │ │ │ -00007730: 7273 3a3a 292e 0a20 2020 2020 2020 2020 rs::).. │ │ │ │ +00007710: 2020 2020 2020 2028 2a6e 6f74 6520 546f (*note To │ │ │ │ +00007720: 6b65 6e20 4465 6c69 6d69 7465 7273 3a3a ken Delimiters:: │ │ │ │ +00007730: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. │ │ │ │ 00007740: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007750: 2020 2020 2020 2020 2020 2020 200a e280 ... │ │ │ │ -00007760: 9872 3672 732d 7379 6e74 6178 2d71 756f .r6rs-syntax-quo │ │ │ │ -00007770: 7465 2d71 7561 7369 7175 6f74 652d 756e te-quasiquote-un │ │ │ │ -00007780: 7175 6f74 65e2 8099 3320 6368 6172 6163 quote...3 charac │ │ │ │ -00007790: 7465 7273 2c52 6561 6420 616e 2052 3652 ters,Read an R6R │ │ │ │ -000077a0: 532d 7374 796c 6520 7379 6e74 6178 2c0a S-style syntax,. │ │ │ │ -000077b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000077c0: 2020 20e2 8098 235c 27e2 8099 2e2e 2e20 ...#\'...... │ │ │ │ -000077d0: 20e2 8098 235c 2ce2 8099 2020 2020 7175 ...#\,... qu │ │ │ │ -000077e0: 6173 6973 796e 7461 782c 206f 7220 756e asisyntax, or un │ │ │ │ -000077f0: 7379 6e74 6178 0a20 2020 2020 2020 2020 syntax. │ │ │ │ +00007750: 2020 2020 2020 2020 200a e280 9872 3672 ....r6r │ │ │ │ +00007760: 732d 7379 6e74 6178 2d71 756f 7465 2d71 s-syntax-quote-q │ │ │ │ +00007770: 7561 7369 7175 6f74 652d 756e 7175 6f74 uasiquote-unquot │ │ │ │ +00007780: 65e2 8099 3320 6368 6172 6163 7465 7273 e...3 characters │ │ │ │ +00007790: 2c52 6561 6420 616e 2052 3652 532d 7374 ,Read an R6RS-st │ │ │ │ +000077a0: 796c 6520 7379 6e74 6178 2c0a 2020 2020 yle syntax,. │ │ │ │ +000077b0: 2020 2020 2020 2020 2020 2020 2020 20e2 . │ │ │ │ +000077c0: 8098 235c 27e2 8099 2e2e 2e20 20e2 8098 ..#\'...... ... │ │ │ │ +000077d0: 235c 2ce2 8099 2020 2020 7175 6173 6973 #\,... quasis │ │ │ │ +000077e0: 796e 7461 782c 206f 7220 756e 7379 6e74 yntax, or unsynt │ │ │ │ +000077f0: 6178 0a20 2020 2020 2020 2020 2020 2020 ax. │ │ │ │ 00007800: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007810: 2020 2020 2020 2020 2020 2020 2053 2d65 S-e │ │ │ │ -00007820: 7870 7265 7373 696f 6e2e 0a20 2020 2020 xpression.. │ │ │ │ +00007810: 2020 2020 2020 2020 2053 2d65 7870 7265 S-expre │ │ │ │ +00007820: 7373 696f 6e2e 0a20 2020 2020 2020 2020 ssion.. │ │ │ │ 00007830: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007840: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007850: 200a e280 9873 6373 682d 626c 6f63 6b2d ....scsh-block- │ │ │ │ -00007860: 636f 6d6d 656e 74e2 8099 e280 9823 5c21 comment......#\! │ │ │ │ -00007870: e280 9920 2020 2020 2020 2020 2020 2020 ... │ │ │ │ -00007880: 5468 6973 2069 7320 6120 7368 6172 7020 This is a sharp │ │ │ │ -00007890: 746f 6b65 6e20 7265 6164 6572 2c20 692e token reader, i. │ │ │ │ -000078a0: 652e 0a20 2020 2020 2020 2020 2020 2020 e.. │ │ │ │ +00007840: 2020 2020 2020 2020 2020 2020 200a e280 ... │ │ │ │ +00007850: 9873 6373 682d 626c 6f63 6b2d 636f 6d6d .scsh-block-comm │ │ │ │ +00007860: 656e 74e2 8099 e280 9823 5c21 e280 9920 ent......#\!... │ │ │ │ +00007870: 2020 2020 2020 2020 2020 2020 5468 6973 This │ │ │ │ +00007880: 2069 7320 6120 7368 6172 7020 746f 6b65 is a sharp toke │ │ │ │ +00007890: 6e20 7265 6164 6572 2c20 692e 652e 0a20 n reader, i.e.. │ │ │ │ +000078a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000078b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000078c0: 2020 2020 2020 2020 2069 7420 7265 6164 it read │ │ │ │ -000078d0: 7320 6120 5343 5348 2d73 7479 6c65 2062 s a SCSH-style b │ │ │ │ -000078e0: 6c6f 636b 0a20 2020 2020 2020 2020 2020 lock. │ │ │ │ +000078c0: 2020 2020 2069 7420 7265 6164 7320 6120 it reads a │ │ │ │ +000078d0: 5343 5348 2d73 7479 6c65 2062 6c6f 636b SCSH-style block │ │ │ │ +000078e0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 000078f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007900: 2020 2020 2020 2020 2020 2063 6f6d 6d65 comme │ │ │ │ -00007910: 6e74 2028 6c69 6b65 20e2 8098 2321 206d nt (like ...#! m │ │ │ │ -00007920: 756c 7469 2d6c 696e 650a 2020 2020 2020 ulti-line. │ │ │ │ +00007900: 2020 2020 2020 2063 6f6d 6d65 6e74 2028 comment ( │ │ │ │ +00007910: 6c69 6b65 20e2 8098 2321 206d 756c 7469 like ...#! multi │ │ │ │ +00007920: 2d6c 696e 650a 2020 2020 2020 2020 2020 -line. │ │ │ │ 00007930: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007940: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007950: 636f 6d6d 656e 7420 2123 e280 9929 2061 comment !#...) a │ │ │ │ -00007960: 6e64 2072 6574 7572 6e73 0a20 2020 2020 nd returns. │ │ │ │ +00007940: 2020 2020 2020 2020 2020 2020 636f 6d6d comm │ │ │ │ +00007950: 656e 7420 2123 e280 9929 2061 6e64 2072 ent !#...) and r │ │ │ │ +00007960: 6574 7572 6e73 0a20 2020 2020 2020 2020 eturns. │ │ │ │ 00007970: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007980: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007990: 20e2 8098 2a75 6e73 7065 6369 6669 6564 ...*unspecified │ │ │ │ -000079a0: 2ae2 8099 2c20 6173 7375 6d69 6e67 2061 *..., assuming a │ │ │ │ -000079b0: 20e2 8098 23e2 8099 0a20 2020 2020 2020 ...#.... │ │ │ │ +00007980: 2020 2020 2020 2020 2020 2020 20e2 8098 ... │ │ │ │ +00007990: 2a75 6e73 7065 6369 6669 6564 2ae2 8099 *unspecified*... │ │ │ │ +000079a0: 2c20 6173 7375 6d69 6e67 2061 20e2 8098 , assuming a ... │ │ │ │ +000079b0: 23e2 8099 0a20 2020 2020 2020 2020 2020 #.... │ │ │ │ 000079c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000079d0: 2020 2020 2020 2020 2020 2020 2020 2063 c │ │ │ │ -000079e0: 6861 7261 6374 6572 2077 6173 2072 6561 haracter was rea │ │ │ │ -000079f0: 6420 6265 666f 7265 2e20 2054 6869 730a d before. This. │ │ │ │ +000079d0: 2020 2020 2020 2020 2020 2063 6861 7261 chara │ │ │ │ +000079e0: 6374 6572 2077 6173 2072 6561 6420 6265 cter was read be │ │ │ │ +000079f0: 666f 7265 2e20 2054 6869 730a 2020 2020 fore. This. │ │ │ │ 00007a00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007a10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007a20: 2020 2020 2020 746f 6b65 6e20 7265 6164 token read │ │ │ │ -00007a30: 6572 2068 6173 2069 7473 2022 6573 6361 er has its "esca │ │ │ │ -00007a40: 7065 2220 6269 740a 2020 2020 2020 2020 pe" bit. │ │ │ │ +00007a20: 2020 746f 6b65 6e20 7265 6164 6572 2068 token reader h │ │ │ │ +00007a30: 6173 2069 7473 2022 6573 6361 7065 2220 as its "escape" │ │ │ │ +00007a40: 6269 740a 2020 2020 2020 2020 2020 2020 bit. │ │ │ │ 00007a50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007a60: 2020 2020 2020 2020 2020 2020 2020 7365 se │ │ │ │ -00007a70: 742c 206d 6561 6e69 6e67 2074 6861 7420 t, meaning that │ │ │ │ -00007a80: 7468 6520 7265 6164 6572 2074 6861 740a the reader that. │ │ │ │ +00007a60: 2020 2020 2020 2020 2020 7365 742c 206d set, m │ │ │ │ +00007a70: 6561 6e69 6e67 2074 6861 7420 7468 6520 eaning that the │ │ │ │ +00007a80: 7265 6164 6572 2074 6861 740a 2020 2020 reader that. │ │ │ │ 00007a90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007aa0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007ab0: 2020 2020 2020 6361 6c6c 7320 6974 2077 calls it w │ │ │ │ -00007ac0: 696c 6c20 7265 7475 726e 0a20 2020 2020 ill return. │ │ │ │ +00007ab0: 2020 6361 6c6c 7320 6974 2077 696c 6c20 calls it will │ │ │ │ +00007ac0: 7265 7475 726e 0a20 2020 2020 2020 2020 return. │ │ │ │ 00007ad0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007ae0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007af0: 20e2 8098 2a75 6e73 7065 6369 6669 6564 ...*unspecified │ │ │ │ -00007b00: 2ae2 8099 2074 6f20 6974 7320 7061 7265 *... to its pare │ │ │ │ -00007b10: 6e74 0a20 2020 2020 2020 2020 2020 2020 nt. │ │ │ │ +00007ae0: 2020 2020 2020 2020 2020 2020 20e2 8098 ... │ │ │ │ +00007af0: 2a75 6e73 7065 6369 6669 6564 2ae2 8099 *unspecified*... │ │ │ │ +00007b00: 2074 6f20 6974 7320 7061 7265 6e74 0a20 to its parent. │ │ │ │ +00007b10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007b20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007b30: 2020 2020 2020 2020 2072 6561 6465 722e reader. │ │ │ │ -00007b40: 2020 5365 6520 616c 736f 0a20 2020 2020 See also. │ │ │ │ +00007b30: 2020 2020 2072 6561 6465 722e 2020 5365 reader. Se │ │ │ │ +00007b40: 6520 616c 736f 0a20 2020 2020 2020 2020 e also. │ │ │ │ 00007b50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007b60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007b70: 202a 6e6f 7465 2062 6c6f 636b 2063 6f6d *note block com │ │ │ │ -00007b80: 6d65 6e74 733a 2028 6775 696c 6529 426c ments: (guile)Bl │ │ │ │ -00007b90: 6f63 6b20 436f 6d6d 656e 7473 2c0a 2020 ock Comments,. │ │ │ │ +00007b60: 2020 2020 2020 2020 2020 2020 202a 6e6f *no │ │ │ │ +00007b70: 7465 2062 6c6f 636b 2063 6f6d 6d65 6e74 te block comment │ │ │ │ +00007b80: 733a 2028 6775 696c 6529 426c 6f63 6b20 s: (guile)Block │ │ │ │ +00007b90: 436f 6d6d 656e 7473 2c0a 2020 2020 2020 Comments,. │ │ │ │ 00007ba0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007bb0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007bc0: 2020 2020 666f 7220 6465 7461 696c 7320 for details │ │ │ │ -00007bd0: 6162 6f75 7420 5343 5348 2062 6c6f 636b about SCSH block │ │ │ │ -00007be0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00007bc0: 666f 7220 6465 7461 696c 7320 6162 6f75 for details abou │ │ │ │ +00007bd0: 7420 5343 5348 2062 6c6f 636b 0a20 2020 t SCSH block. │ │ │ │ +00007be0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007bf0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007c00: 2020 2020 2020 2063 6f6d 6d65 6e74 732e comments. │ │ │ │ -00007c10: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00007c00: 2020 2063 6f6d 6d65 6e74 732e 0a20 2020 comments.. │ │ │ │ +00007c10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007c20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007c30: 2020 2020 2020 200a e280 9873 656d 6963 ....semic │ │ │ │ -00007c40: 6f6c 6f6e 2d63 6f6d 6d65 6e74 e280 99e2 olon-comment.... │ │ │ │ -00007c50: 8098 235c 3be2 8099 2020 2020 2020 2020 ..#\;... │ │ │ │ -00007c60: 2020 2020 2020 5265 6164 2061 6e20 5235 Read an R5 │ │ │ │ -00007c70: 5253 2073 656d 6963 6f6c 6f6e 0a20 2020 RS semicolon. │ │ │ │ +00007c30: 2020 200a e280 9873 656d 6963 6f6c 6f6e ....semicolon │ │ │ │ +00007c40: 2d63 6f6d 6d65 6e74 e280 99e2 8098 235c -comment......#\ │ │ │ │ +00007c50: 3be2 8099 2020 2020 2020 2020 2020 2020 ;... │ │ │ │ +00007c60: 2020 5265 6164 2061 6e20 5235 5253 2073 Read an R5RS s │ │ │ │ +00007c70: 656d 6963 6f6c 6f6e 0a20 2020 2020 2020 emicolon. │ │ │ │ 00007c80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007c90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007ca0: 2020 206c 696e 652d 636f 6d6d 656e 7420 line-comment │ │ │ │ -00007cb0: 616e 6420 7265 7475 726e 0a20 2020 2020 and return. │ │ │ │ +00007c90: 2020 2020 2020 2020 2020 2020 2020 206c l │ │ │ │ +00007ca0: 696e 652d 636f 6d6d 656e 7420 616e 6420 ine-comment and │ │ │ │ +00007cb0: 7265 7475 726e 0a20 2020 2020 2020 2020 return. │ │ │ │ 00007cc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007cd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007ce0: 20e2 8098 2a75 6e73 7065 6369 6669 6564 ...*unspecified │ │ │ │ -00007cf0: 2ae2 8099 2e20 2043 6f6e 7365 7175 656e *.... Consequen │ │ │ │ -00007d00: 746c 792c 0a20 2020 2020 2020 2020 2020 tly,. │ │ │ │ +00007cd0: 2020 2020 2020 2020 2020 2020 20e2 8098 ... │ │ │ │ +00007ce0: 2a75 6e73 7065 6369 6669 6564 2ae2 8099 *unspecified*... │ │ │ │ +00007cf0: 2e20 2043 6f6e 7365 7175 656e 746c 792c . Consequently, │ │ │ │ +00007d00: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00007d10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007d20: 2020 2020 2020 2020 2020 2074 6865 2063 the c │ │ │ │ -00007d30: 616c 6c69 6e67 2072 6561 6465 7220 7769 alling reader wi │ │ │ │ -00007d40: 6c6c 206c 6f6f 7020 616e 640a 2020 2020 ll loop and. │ │ │ │ +00007d20: 2020 2020 2020 2074 6865 2063 616c 6c69 the calli │ │ │ │ +00007d30: 6e67 2072 6561 6465 7220 7769 6c6c 206c ng reader will l │ │ │ │ +00007d40: 6f6f 7020 616e 640a 2020 2020 2020 2020 oop and. │ │ │ │ 00007d50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007d60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007d70: 2020 6967 6e6f 7265 2074 6865 2063 6f6d ignore the com │ │ │ │ -00007d80: 6d65 6e74 2e0a 2020 2020 2020 2020 2020 ment.. │ │ │ │ +00007d60: 2020 2020 2020 2020 2020 2020 2020 6967 ig │ │ │ │ +00007d70: 6e6f 7265 2074 6865 2063 6f6d 6d65 6e74 nore the comment │ │ │ │ +00007d80: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ 00007d90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007da0: 2020 2020 2020 2020 2020 2020 0ae2 8098 .... │ │ │ │ -00007db0: 7365 7870 e280 9920 2020 2020 2020 2020 sexp... │ │ │ │ -00007dc0: 2020 2020 e280 9823 5c28 e280 9920 2020 ...#\(... │ │ │ │ -00007dd0: 2020 2020 2020 2020 2020 2052 6561 6420 Read │ │ │ │ -00007de0: 6120 7265 6775 6c61 7220 532d 6578 7072 a regular S-expr │ │ │ │ -00007df0: 6573 7369 6f6e 0a20 2020 2020 2020 2020 ession. │ │ │ │ +00007da0: 2020 2020 2020 2020 0ae2 8098 7365 7870 ....sexp │ │ │ │ +00007db0: e280 9920 2020 2020 2020 2020 2020 2020 ... │ │ │ │ +00007dc0: e280 9823 5c28 e280 9920 2020 2020 2020 ...#\(... │ │ │ │ +00007dd0: 2020 2020 2020 2052 6561 6420 6120 7265 Read a re │ │ │ │ +00007de0: 6775 6c61 7220 532d 6578 7072 6573 7369 gular S-expressi │ │ │ │ +00007df0: 6f6e 0a20 2020 2020 2020 2020 2020 2020 on. │ │ │ │ 00007e00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007e10: 2020 2020 2020 2020 2020 2020 2065 6e63 enc │ │ │ │ -00007e20: 6c6f 7365 6420 696e 2070 6172 656e 7468 losed in parenth │ │ │ │ -00007e30: 6573 6573 2e0a 2020 2020 2020 2020 2020 eses.. │ │ │ │ +00007e10: 2020 2020 2020 2020 2065 6e63 6c6f 7365 enclose │ │ │ │ +00007e20: 6420 696e 2070 6172 656e 7468 6573 6573 d in parentheses │ │ │ │ +00007e30: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ 00007e40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007e50: 2020 2020 2020 2020 2020 2020 0ae2 8098 .... │ │ │ │ -00007e60: 736b 7269 6265 2d65 7870 e280 9920 2020 skribe-exp... │ │ │ │ -00007e70: 2020 2020 e280 9823 5c5b e280 9920 2020 ...#\[... │ │ │ │ -00007e80: 2020 2020 2020 2020 2020 2052 6561 6420 Read │ │ │ │ -00007e90: 6120 536b 7269 6265 206d 6172 6b75 7020 a Skribe markup │ │ │ │ -00007ea0: 6578 7072 6573 7369 6f6e 2e0a 2020 2020 expression.. │ │ │ │ +00007e50: 2020 2020 2020 2020 0ae2 8098 736b 7269 ....skri │ │ │ │ +00007e60: 6265 2d65 7870 e280 9920 2020 2020 2020 be-exp... │ │ │ │ +00007e70: e280 9823 5c5b e280 9920 2020 2020 2020 ...#\[... │ │ │ │ +00007e80: 2020 2020 2020 2052 6561 6420 6120 536b Read a Sk │ │ │ │ +00007e90: 7269 6265 206d 6172 6b75 7020 6578 7072 ribe markup expr │ │ │ │ +00007ea0: 6573 7369 6f6e 2e0a 2020 2020 2020 2020 ession.. │ │ │ │ 00007eb0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007ec0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007ed0: 2020 536b 7269 6265 2773 2065 7870 7265 Skribe's expre │ │ │ │ -00007ee0: 7373 696f 6e73 206c 6f6f 6b20 6c69 6b65 ssions look like │ │ │ │ -00007ef0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00007ec0: 2020 2020 2020 2020 2020 2020 2020 536b Sk │ │ │ │ +00007ed0: 7269 6265 2773 2065 7870 7265 7373 696f ribe's expressio │ │ │ │ +00007ee0: 6e73 206c 6f6f 6b20 6c69 6b65 0a20 2020 ns look like. │ │ │ │ +00007ef0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007f00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007f10: 2020 2020 2020 2074 6869 733a 0a20 2020 this:. │ │ │ │ +00007f10: 2020 2074 6869 733a 0a20 2020 2020 2020 this:. │ │ │ │ 00007f20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007f30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007f40: 2020 200a 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00007f30: 2020 2020 2020 2020 2020 2020 2020 200a . │ │ │ │ +00007f40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007f50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007f60: 2020 2020 2020 2020 2020 2020 2020 205b [ │ │ │ │ -00007f70: 4865 6c6c 6f20 2c28 626f 6c64 205b 576f Hello ,(bold [Wo │ │ │ │ -00007f80: 726c 645d 2921 5d0a 2020 2020 2020 2020 rld])!]. │ │ │ │ +00007f60: 2020 2020 2020 2020 2020 205b 4865 6c6c [Hell │ │ │ │ +00007f70: 6f20 2c28 626f 6c64 205b 576f 726c 645d o ,(bold [World] │ │ │ │ +00007f80: 2921 5d0a 2020 2020 2020 2020 2020 2020 )!]. │ │ │ │ 00007f90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007fa0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007fb0: 2020 203d 3e20 2822 4865 6c6c 6f20 2220 => ("Hello " │ │ │ │ -00007fc0: 2862 6f6c 6420 2257 6f72 6c64 2229 2022 (bold "World") " │ │ │ │ -00007fd0: 2122 290a 2020 2020 2020 2020 2020 2020 !"). │ │ │ │ +00007fa0: 2020 2020 2020 2020 2020 2020 2020 203d = │ │ │ │ +00007fb0: 3e20 2822 4865 6c6c 6f20 2220 2862 6f6c > ("Hello " (bol │ │ │ │ +00007fc0: 6420 2257 6f72 6c64 2229 2022 2122 290a d "World") "!"). │ │ │ │ +00007fd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00007fe0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00007ff0: 2020 2020 2020 2020 2020 0a20 2020 2020 . │ │ │ │ +00007ff0: 2020 2020 2020 0a20 2020 2020 2020 2020 . │ │ │ │ 00008000: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008010: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008020: 2053 6565 2074 6865 2053 6b72 6962 6520 See the Skribe │ │ │ │ -00008030: 7765 6220 7369 7465 0a20 2020 2020 2020 web site. │ │ │ │ +00008010: 2020 2020 2020 2020 2020 2020 2053 6565 See │ │ │ │ +00008020: 2074 6865 2053 6b72 6962 6520 7765 6220 the Skribe web │ │ │ │ +00008030: 7369 7465 0a20 2020 2020 2020 2020 2020 site. │ │ │ │ 00008040: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008050: 2020 2020 2020 2020 2020 2020 2020 2028 ( │ │ │ │ -00008060: 6874 7470 3a2f 2f77 7777 2e69 6e72 6961 http://www.inria │ │ │ │ -00008070: 2e66 722f 6d69 6d6f 7361 2f66 702f 536b .fr/mimosa/fp/Sk │ │ │ │ -00008080: 7269 6265 290a 2020 2020 2020 2020 2020 ribe). │ │ │ │ +00008050: 2020 2020 2020 2020 2020 2028 6874 7470 (http │ │ │ │ +00008060: 3a2f 2f77 7777 2e69 6e72 6961 2e66 722f ://www.inria.fr/ │ │ │ │ +00008070: 6d69 6d6f 7361 2f66 702f 536b 7269 6265 mimosa/fp/Skribe │ │ │ │ +00008080: 290a 2020 2020 2020 2020 2020 2020 2020 ). │ │ │ │ 00008090: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000080a0: 2020 2020 2020 2020 2020 2020 6f72 2074 or t │ │ │ │ -000080b0: 6865 2053 6b72 6962 696c 6f20 7765 6220 he Skribilo web │ │ │ │ -000080c0: 7369 7465 0a20 2020 2020 2020 2020 2020 site. │ │ │ │ +000080a0: 2020 2020 2020 2020 6f72 2074 6865 2053 or the S │ │ │ │ +000080b0: 6b72 6962 696c 6f20 7765 6220 7369 7465 kribilo web site │ │ │ │ +000080c0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 000080d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000080e0: 2020 2020 2020 2020 2020 2028 6874 7470 (http │ │ │ │ -000080f0: 3a2f 2f77 7777 2e6e 6f6e 676e 752e 6f72 ://www.nongnu.or │ │ │ │ -00008100: 672f 736b 7269 6269 6c6f 2f29 0a20 2020 g/skribilo/). │ │ │ │ +000080e0: 2020 2020 2020 2028 6874 7470 3a2f 2f77 (http://w │ │ │ │ +000080f0: 7777 2e6e 6f6e 676e 752e 6f72 672f 736b ww.nongnu.org/sk │ │ │ │ +00008100: 7269 6269 6c6f 2f29 0a20 2020 2020 2020 ribilo/). │ │ │ │ 00008110: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008120: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008130: 2020 2066 6f72 206d 6f72 6520 6465 7461 for more deta │ │ │ │ -00008140: 696c 732e 0a20 2020 2020 2020 2020 2020 ils.. │ │ │ │ +00008120: 2020 2020 2020 2020 2020 2020 2020 2066 f │ │ │ │ +00008130: 6f72 206d 6f72 6520 6465 7461 696c 732e or more details. │ │ │ │ +00008140: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 00008150: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008160: 2020 2020 2020 2020 2020 200a e280 9873 ....s │ │ │ │ -00008170: 7175 6172 652d 6272 6163 6b65 742d 7365 quare-bracket-se │ │ │ │ -00008180: 7870 e280 99e2 8098 235c 5be2 8099 2020 xp......#\[... │ │ │ │ -00008190: 2020 2020 2020 2020 2020 5265 6164 2061 Read a │ │ │ │ -000081a0: 6e20 532d 6578 7072 6573 7369 6f6e 2065 n S-expression e │ │ │ │ -000081b0: 6e63 6c6f 7365 6420 696e 0a20 2020 2020 nclosed in. │ │ │ │ +00008160: 2020 2020 2020 200a e280 9873 7175 6172 ....squar │ │ │ │ +00008170: 652d 6272 6163 6b65 742d 7365 7870 e280 e-bracket-sexp.. │ │ │ │ +00008180: 99e2 8098 235c 5be2 8099 2020 2020 2020 ....#\[... │ │ │ │ +00008190: 2020 2020 2020 5265 6164 2061 6e20 532d Read an S- │ │ │ │ +000081a0: 6578 7072 6573 7369 6f6e 2065 6e63 6c6f expression enclo │ │ │ │ +000081b0: 7365 6420 696e 0a20 2020 2020 2020 2020 sed in. │ │ │ │ 000081c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000081d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000081e0: 2073 7175 6172 6520 6272 6163 6b65 7473 square brackets │ │ │ │ -000081f0: 2e20 2054 6869 7320 6973 2061 6c72 6561 . This is alrea │ │ │ │ -00008200: 6479 0a20 2020 2020 2020 2020 2020 2020 dy. │ │ │ │ +000081d0: 2020 2020 2020 2020 2020 2020 2073 7175 squ │ │ │ │ +000081e0: 6172 6520 6272 6163 6b65 7473 2e20 2054 are brackets. T │ │ │ │ +000081f0: 6869 7320 6973 2061 6c72 6561 6479 0a20 his is already. │ │ │ │ +00008200: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008210: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008220: 2020 2020 2020 2020 2070 6572 6d69 7474 permitt │ │ │ │ -00008230: 6564 2062 7920 6120 6e75 6d62 6572 206f ed by a number o │ │ │ │ -00008240: 6620 5363 6865 6d65 0a20 2020 2020 2020 f Scheme. │ │ │ │ +00008220: 2020 2020 2070 6572 6d69 7474 6564 2062 permitted b │ │ │ │ +00008230: 7920 6120 6e75 6d62 6572 206f 6620 5363 y a number of Sc │ │ │ │ +00008240: 6865 6d65 0a20 2020 2020 2020 2020 2020 heme. │ │ │ │ 00008250: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008260: 2020 2020 2020 2020 2020 2020 2020 2069 i │ │ │ │ -00008270: 6d70 6c65 6d65 6e74 6174 696f 6e73 2061 mplementations a │ │ │ │ -00008280: 6e64 2077 696c 6c20 736f 6f6e 2062 650a nd will soon be. │ │ │ │ +00008260: 2020 2020 2020 2020 2020 2069 6d70 6c65 imple │ │ │ │ +00008270: 6d65 6e74 6174 696f 6e73 2061 6e64 2077 mentations and w │ │ │ │ +00008280: 696c 6c20 736f 6f6e 2062 650a 2020 2020 ill soon be. │ │ │ │ 00008290: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000082a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000082b0: 2020 2020 2020 6d61 6465 2063 6f6d 7075 made compu │ │ │ │ -000082c0: 6c73 6f72 7920 6279 2052 3652 532e 0a20 lsory by R6RS.. │ │ │ │ +000082b0: 2020 6d61 6465 2063 6f6d 7075 6c73 6f72 made compulsor │ │ │ │ +000082c0: 7920 6279 2052 3652 532e 0a20 2020 2020 y by R6RS.. │ │ │ │ 000082d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000082e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000082f0: 2020 2020 200a e280 9873 7266 692d 34e2 ....srfi-4. │ │ │ │ -00008300: 8099 2020 2020 2020 2020 2020 2033 2063 .. 3 c │ │ │ │ -00008310: 6861 7261 6374 6572 732c 2020 2020 2020 haracters, │ │ │ │ -00008320: 5468 6973 2069 7320 6120 7368 6172 7020 This is a sharp │ │ │ │ -00008330: 746f 6b65 6e20 7265 6164 6572 2c20 692e token reader, i. │ │ │ │ -00008340: 652e 0a20 2020 2020 2020 2020 2020 2020 e.. │ │ │ │ -00008350: 2020 2020 2020 e280 9823 5c73 e280 992e ...#\s.... │ │ │ │ -00008360: 2e2e 2020 e280 9823 5c66 e280 9920 2020 .. ...#\f... │ │ │ │ -00008370: 2069 7420 7265 6164 7320 616e 2053 5246 it reads an SRF │ │ │ │ -00008380: 492d 3420 686f 6d6f 6765 6e6f 7573 0a20 I-4 homogenous. │ │ │ │ +000082f0: 200a e280 9873 7266 692d 34e2 8099 2020 ....srfi-4... │ │ │ │ +00008300: 2020 2020 2020 2020 2033 2063 6861 7261 3 chara │ │ │ │ +00008310: 6374 6572 732c 2020 2020 2020 5468 6973 cters, This │ │ │ │ +00008320: 2069 7320 6120 7368 6172 7020 746f 6b65 is a sharp toke │ │ │ │ +00008330: 6e20 7265 6164 6572 2c20 692e 652e 0a20 n reader, i.e.. │ │ │ │ +00008340: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +00008350: 2020 e280 9823 5c73 e280 992e 2e2e 2020 ...#\s...... │ │ │ │ +00008360: e280 9823 5c66 e280 9920 2020 2069 7420 ...#\f... it │ │ │ │ +00008370: 7265 6164 7320 616e 2053 5246 492d 3420 reads an SRFI-4 │ │ │ │ +00008380: 686f 6d6f 6765 6e6f 7573 0a20 2020 2020 homogenous. │ │ │ │ 00008390: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000083a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000083b0: 2020 2020 206e 756d 6572 6963 2076 6563 numeric vec │ │ │ │ -000083c0: 746f 7220 6f6e 6365 2061 20e2 8098 23e2 tor once a ...#. │ │ │ │ -000083d0: 8099 0a20 2020 2020 2020 2020 2020 2020 ... │ │ │ │ +000083b0: 206e 756d 6572 6963 2076 6563 746f 7220 numeric vector │ │ │ │ +000083c0: 6f6e 6365 2061 20e2 8098 23e2 8099 0a20 once a ...#.... │ │ │ │ +000083d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000083e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000083f0: 2020 2020 2020 2020 2063 6861 7261 6374 charact │ │ │ │ -00008400: 6572 2068 6173 2062 6565 6e20 7265 6164 er has been read │ │ │ │ -00008410: 2e20 2054 6869 730a 2020 2020 2020 2020 . This. │ │ │ │ +000083f0: 2020 2020 2063 6861 7261 6374 6572 2068 character h │ │ │ │ +00008400: 6173 2062 6565 6e20 7265 6164 2e20 2054 as been read. T │ │ │ │ +00008410: 6869 730a 2020 2020 2020 2020 2020 2020 his. │ │ │ │ 00008420: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008430: 2020 2020 2020 2020 2020 2020 2020 746f to │ │ │ │ -00008440: 6b65 6e20 7265 6164 6572 2061 6c73 6f20 ken reader also │ │ │ │ -00008450: 6861 6e64 6c65 7320 7468 650a 2020 2020 handles the. │ │ │ │ +00008430: 2020 2020 2020 2020 2020 746f 6b65 6e20 token │ │ │ │ +00008440: 7265 6164 6572 2061 6c73 6f20 6861 6e64 reader also hand │ │ │ │ +00008450: 6c65 7320 7468 650a 2020 2020 2020 2020 les the. │ │ │ │ 00008460: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008470: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008480: 2020 626f 6f6c 6561 6e20 7661 6c75 6573 boolean values │ │ │ │ -00008490: 20e2 8098 2366 e280 992e 0a20 2020 2020 ...#f..... │ │ │ │ +00008470: 2020 2020 2020 2020 2020 2020 2020 626f bo │ │ │ │ +00008480: 6f6c 6561 6e20 7661 6c75 6573 20e2 8098 olean values ... │ │ │ │ +00008490: 2366 e280 992e 0a20 2020 2020 2020 2020 #f..... │ │ │ │ 000084a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000084b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000084c0: 200a e280 9873 7266 6933 302d 626c 6f63 ....srfi30-bloc │ │ │ │ -000084d0: 6b2d 636f 6d6d 656e 74e2 8099 e280 9823 k-comment......# │ │ │ │ -000084e0: 5c7c e280 9920 2020 2020 2020 2020 2020 \|... │ │ │ │ -000084f0: 5468 6973 2069 7320 6120 7368 6172 7020 This is a sharp │ │ │ │ -00008500: 746f 6b65 6e20 7265 6164 6572 2c20 692e token reader, i. │ │ │ │ -00008510: 652e 0a20 2020 2020 2020 2020 2020 2020 e.. │ │ │ │ +000084b0: 2020 2020 2020 2020 2020 2020 200a e280 ... │ │ │ │ +000084c0: 9873 7266 6933 302d 626c 6f63 6b2d 636f .srfi30-block-co │ │ │ │ +000084d0: 6d6d 656e 74e2 8099 e280 9823 5c7c e280 mment......#\|.. │ │ │ │ +000084e0: 9920 2020 2020 2020 2020 2020 5468 6973 . This │ │ │ │ +000084f0: 2069 7320 6120 7368 6172 7020 746f 6b65 is a sharp toke │ │ │ │ +00008500: 6e20 7265 6164 6572 2c20 692e 652e 0a20 n reader, i.e.. │ │ │ │ +00008510: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008520: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008530: 2020 2020 2020 2020 2069 7420 7265 6164 it read │ │ │ │ -00008540: 7320 616e 2053 5246 492d 3330 2062 6c6f s an SRFI-30 blo │ │ │ │ -00008550: 636b 2063 6f6d 6d65 6e74 0a20 2020 2020 ck comment. │ │ │ │ +00008530: 2020 2020 2069 7420 7265 6164 7320 616e it reads an │ │ │ │ +00008540: 2053 5246 492d 3330 2062 6c6f 636b 2063 SRFI-30 block c │ │ │ │ +00008550: 6f6d 6d65 6e74 0a20 2020 2020 2020 2020 omment. │ │ │ │ 00008560: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008570: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008580: 2028 6c69 6b65 20e2 8098 237c 206d 756c (like ...#| mul │ │ │ │ -00008590: 7469 2d6c 696e 6520 636f 6d6d 656e 7420 ti-line comment │ │ │ │ -000085a0: 7c23 e280 9929 0a20 2020 2020 2020 2020 |#...). │ │ │ │ +00008570: 2020 2020 2020 2020 2020 2020 2028 6c69 (li │ │ │ │ +00008580: 6b65 20e2 8098 237c 206d 756c 7469 2d6c ke ...#| multi-l │ │ │ │ +00008590: 696e 6520 636f 6d6d 656e 7420 7c23 e280 ine comment |#.. │ │ │ │ +000085a0: 9929 0a20 2020 2020 2020 2020 2020 2020 .). │ │ │ │ 000085b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000085c0: 2020 2020 2020 2020 2020 2020 2061 6e64 and │ │ │ │ -000085d0: 2072 6574 7572 6e73 20e2 8098 2a75 6e73 returns ...*uns │ │ │ │ -000085e0: 7065 6369 6669 6564 2ae2 8099 2c0a 2020 pecified*...,. │ │ │ │ +000085c0: 2020 2020 2020 2020 2061 6e64 2072 6574 and ret │ │ │ │ +000085d0: 7572 6e73 20e2 8098 2a75 6e73 7065 6369 urns ...*unspeci │ │ │ │ +000085e0: 6669 6564 2ae2 8099 2c0a 2020 2020 2020 fied*...,. │ │ │ │ 000085f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008600: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008610: 2020 2020 6173 7375 6d69 6e67 2061 20e2 assuming a . │ │ │ │ -00008620: 8098 23e2 8099 2063 6861 7261 6374 6572 ..#... character │ │ │ │ -00008630: 2077 6173 2072 6561 640a 2020 2020 2020 was read. │ │ │ │ +00008610: 6173 7375 6d69 6e67 2061 20e2 8098 23e2 assuming a ...#. │ │ │ │ +00008620: 8099 2063 6861 7261 6374 6572 2077 6173 .. character was │ │ │ │ +00008630: 2072 6561 640a 2020 2020 2020 2020 2020 read. │ │ │ │ 00008640: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008650: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008660: 6265 666f 7265 2e20 2054 6869 7320 746f before. This to │ │ │ │ -00008670: 6b65 6e20 7265 6164 6572 2068 6173 2069 ken reader has i │ │ │ │ -00008680: 7473 0a20 2020 2020 2020 2020 2020 2020 ts. │ │ │ │ +00008650: 2020 2020 2020 2020 2020 2020 6265 666f befo │ │ │ │ +00008660: 7265 2e20 2054 6869 7320 746f 6b65 6e20 re. This token │ │ │ │ +00008670: 7265 6164 6572 2068 6173 2069 7473 0a20 reader has its. │ │ │ │ +00008680: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008690: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000086a0: 2020 2020 2020 2020 2022 6573 6361 7065 "escape │ │ │ │ -000086b0: 2220 6269 7420 7365 742e 2020 466f 7220 " bit set. For │ │ │ │ -000086c0: 6d6f 7265 0a20 2020 2020 2020 2020 2020 more. │ │ │ │ +000086a0: 2020 2020 2022 6573 6361 7065 2220 6269 "escape" bi │ │ │ │ +000086b0: 7420 7365 742e 2020 466f 7220 6d6f 7265 t set. For more │ │ │ │ +000086c0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 000086d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000086e0: 2020 2020 2020 2020 2020 2064 6574 6169 detai │ │ │ │ -000086f0: 6c73 2061 626f 7574 2053 5246 492d 3330 ls about SRFI-30 │ │ │ │ -00008700: 2c20 7365 6520 4e65 7374 6564 0a20 2020 , see Nested. │ │ │ │ +000086e0: 2020 2020 2020 2064 6574 6169 6c73 2061 details a │ │ │ │ +000086f0: 626f 7574 2053 5246 492d 3330 2c20 7365 bout SRFI-30, se │ │ │ │ +00008700: 6520 4e65 7374 6564 0a20 2020 2020 2020 e Nested. │ │ │ │ 00008710: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008720: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008730: 2020 204d 756c 7469 2d6c 696e 6520 436f Multi-line Co │ │ │ │ -00008740: 6d6d 656e 7473 0a20 2020 2020 2020 2020 mments. │ │ │ │ +00008720: 2020 2020 2020 2020 2020 2020 2020 204d M │ │ │ │ +00008730: 756c 7469 2d6c 696e 6520 436f 6d6d 656e ulti-line Commen │ │ │ │ +00008740: 7473 0a20 2020 2020 2020 2020 2020 2020 ts. │ │ │ │ 00008750: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008760: 2020 2020 2020 2020 2020 2020 2028 6874 (ht │ │ │ │ -00008770: 7470 3a2f 2f73 7266 692e 7363 6865 6d65 tp://srfi.scheme │ │ │ │ -00008780: 7273 2e6f 7267 2f73 7266 692d 3330 2f73 rs.org/srfi-30/s │ │ │ │ -00008790: 7266 692d 3330 2e68 746d 6c29 2e0a 2020 rfi-30.html).. │ │ │ │ +00008760: 2020 2020 2020 2020 2028 6874 7470 3a2f (http:/ │ │ │ │ +00008770: 2f73 7266 692e 7363 6865 6d65 7273 2e6f /srfi.schemers.o │ │ │ │ +00008780: 7267 2f73 7266 692d 3330 2f73 7266 692d rg/srfi-30/srfi- │ │ │ │ +00008790: 3330 2e68 746d 6c29 2e0a 2020 2020 2020 30.html).. │ │ │ │ 000087a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000087b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000087c0: 2020 2020 0ae2 8098 7372 6669 3632 2d73 ....srfi62-s │ │ │ │ -000087d0: 6578 702d 636f 6d6d 656e 74e2 8099 e280 exp-comment..... │ │ │ │ -000087e0: 9823 5c3b e280 9920 2020 2020 2020 2020 .#\;... │ │ │ │ -000087f0: 2020 2054 6869 7320 6973 2061 2073 6861 This is a sha │ │ │ │ -00008800: 7270 2074 6f6b 656e 2072 6561 6465 722c rp token reader, │ │ │ │ -00008810: 2069 2e65 2e0a 2020 2020 2020 2020 2020 i.e.. │ │ │ │ +000087c0: 0ae2 8098 7372 6669 3632 2d73 6578 702d ....srfi62-sexp- │ │ │ │ +000087d0: 636f 6d6d 656e 74e2 8099 e280 9823 5c3b comment......#\; │ │ │ │ +000087e0: e280 9920 2020 2020 2020 2020 2020 2054 ... T │ │ │ │ +000087f0: 6869 7320 6973 2061 2073 6861 7270 2074 his is a sharp t │ │ │ │ +00008800: 6f6b 656e 2072 6561 6465 722c 2069 2e65 oken reader, i.e │ │ │ │ +00008810: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ 00008820: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008830: 2020 2020 2020 2020 2020 2020 6974 2072 it r │ │ │ │ -00008840: 6561 6473 2061 6e20 5352 4649 2d36 3220 eads an SRFI-62 │ │ │ │ -00008850: 636f 6d6d 656e 740a 2020 2020 2020 2020 comment. │ │ │ │ +00008830: 2020 2020 2020 2020 6974 2072 6561 6473 it reads │ │ │ │ +00008840: 2061 6e20 5352 4649 2d36 3220 636f 6d6d an SRFI-62 comm │ │ │ │ +00008850: 656e 740a 2020 2020 2020 2020 2020 2020 ent. │ │ │ │ 00008860: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008870: 2020 2020 2020 2020 2020 2020 2020 532d S- │ │ │ │ -00008880: 6578 7072 6573 7369 6f6e 2028 6173 2069 expression (as i │ │ │ │ -00008890: 6e20 e280 9828 2b20 320a 2020 2020 2020 n ...(+ 2. │ │ │ │ +00008870: 2020 2020 2020 2020 2020 532d 6578 7072 S-expr │ │ │ │ +00008880: 6573 7369 6f6e 2028 6173 2069 6e20 e280 ession (as in .. │ │ │ │ +00008890: 9828 2b20 320a 2020 2020 2020 2020 2020 .(+ 2. │ │ │ │ 000088a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000088b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000088c0: 233b 2863 6f6d 6d65 6e74 2068 6572 6529 #;(comment here) │ │ │ │ -000088d0: 2032 29e2 8099 2920 616e 6420 7265 7475 2)...) and retu │ │ │ │ -000088e0: 726e 730a 2020 2020 2020 2020 2020 2020 rns. │ │ │ │ +000088b0: 2020 2020 2020 2020 2020 2020 233b 2863 #;(c │ │ │ │ +000088c0: 6f6d 6d65 6e74 2068 6572 6529 2032 29e2 omment here) 2). │ │ │ │ +000088d0: 8099 2920 616e 6420 7265 7475 726e 730a ..) and returns. │ │ │ │ +000088e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000088f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008900: 2020 2020 2020 2020 2020 e280 982a 756e ...*un │ │ │ │ -00008910: 7370 6563 6966 6965 642a e280 992c 2061 specified*..., a │ │ │ │ -00008920: 7373 756d 696e 6720 6120 e280 9823 e280 ssuming a ...#.. │ │ │ │ -00008930: 990a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +00008900: 2020 2020 2020 e280 982a 756e 7370 6563 ...*unspec │ │ │ │ +00008910: 6966 6965 642a e280 992c 2061 7373 756d ified*..., assum │ │ │ │ +00008920: 696e 6720 6120 e280 9823 e280 990a 2020 ing a ...#.... │ │ │ │ +00008930: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008940: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008950: 2020 2020 2020 2020 6368 6172 6163 7465 characte │ │ │ │ -00008960: 7220 7761 7320 7265 6164 2062 6566 6f72 r was read befor │ │ │ │ -00008970: 652e 2020 5468 6973 0a20 2020 2020 2020 e. This. │ │ │ │ +00008950: 2020 2020 6368 6172 6163 7465 7220 7761 character wa │ │ │ │ +00008960: 7320 7265 6164 2062 6566 6f72 652e 2020 s read before. │ │ │ │ +00008970: 5468 6973 0a20 2020 2020 2020 2020 2020 This. │ │ │ │ 00008980: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008990: 2020 2020 2020 2020 2020 2020 2020 2074 t │ │ │ │ -000089a0: 6f6b 656e 2072 6561 6465 7220 6861 7320 oken reader has │ │ │ │ -000089b0: 6974 7320 2265 7363 6170 6522 2062 6974 its "escape" bit │ │ │ │ -000089c0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +00008990: 2020 2020 2020 2020 2020 2074 6f6b 656e token │ │ │ │ +000089a0: 2072 6561 6465 7220 6861 7320 6974 7320 reader has its │ │ │ │ +000089b0: 2265 7363 6170 6522 2062 6974 0a20 2020 "escape" bit. │ │ │ │ +000089c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 000089d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -000089e0: 2020 2020 2020 2073 6574 2e20 2046 6f72 set. For │ │ │ │ -000089f0: 206d 6f72 6520 6465 7461 696c 7320 6162 more details ab │ │ │ │ -00008a00: 6f75 740a 2020 2020 2020 2020 2020 2020 out. │ │ │ │ +000089e0: 2020 2073 6574 2e20 2046 6f72 206d 6f72 set. For mor │ │ │ │ +000089f0: 6520 6465 7461 696c 7320 6162 6f75 740a e details about. │ │ │ │ +00008a00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008a10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008a20: 2020 2020 2020 2020 2020 5352 4649 2d36 SRFI-6 │ │ │ │ -00008a30: 322c 2070 6c65 6173 6520 7365 6520 532d 2, please see S- │ │ │ │ -00008a40: 6578 7072 6573 7369 6f6e 0a20 2020 2020 expression. │ │ │ │ +00008a20: 2020 2020 2020 5352 4649 2d36 322c 2070 SRFI-62, p │ │ │ │ +00008a30: 6c65 6173 6520 7365 6520 532d 6578 7072 lease see S-expr │ │ │ │ +00008a40: 6573 7369 6f6e 0a20 2020 2020 2020 2020 ession. │ │ │ │ 00008a50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008a60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008a70: 2063 6f6d 6d65 6e74 7320 7370 6563 6966 comments specif │ │ │ │ -00008a80: 6963 6174 696f 6e73 0a20 2020 2020 2020 ications. │ │ │ │ +00008a60: 2020 2020 2020 2020 2020 2020 2063 6f6d com │ │ │ │ +00008a70: 6d65 6e74 7320 7370 6563 6966 6963 6174 ments specificat │ │ │ │ +00008a80: 696f 6e73 0a20 2020 2020 2020 2020 2020 ions. │ │ │ │ 00008a90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008aa0: 2020 2020 2020 2020 2020 2020 2020 2028 ( │ │ │ │ -00008ab0: 6874 7470 3a2f 2f73 7266 692e 7363 6865 http://srfi.sche │ │ │ │ -00008ac0: 6d65 7273 2e6f 7267 2f73 7266 692d 3632 mers.org/srfi-62 │ │ │ │ -00008ad0: 2f73 7266 692d 3632 2e68 746d 6c29 2e0a /srfi-62.html).. │ │ │ │ +00008aa0: 2020 2020 2020 2020 2020 2028 6874 7470 (http │ │ │ │ +00008ab0: 3a2f 2f73 7266 692e 7363 6865 6d65 7273 ://srfi.schemers │ │ │ │ +00008ac0: 2e6f 7267 2f73 7266 692d 3632 2f73 7266 .org/srfi-62/srf │ │ │ │ +00008ad0: 692d 3632 2e68 746d 6c29 2e0a 2020 2020 i-62.html).. │ │ │ │ 00008ae0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008af0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008b00: 2020 2020 2020 0ae2 8098 7374 7269 6e67 ....string │ │ │ │ -00008b10: e280 9920 2020 2020 2020 2020 2020 e280 ... .. │ │ │ │ -00008b20: 9823 5c22 e280 9920 2020 2020 2020 2020 .#\"... │ │ │ │ -00008b30: 2020 2020 2052 6561 6420 616e 2052 3552 Read an R5R │ │ │ │ -00008b40: 5320 7374 7269 6e67 2e0a 2020 2020 2020 S string.. │ │ │ │ +00008b00: 2020 0ae2 8098 7374 7269 6e67 e280 9920 ....string... │ │ │ │ +00008b10: 2020 2020 2020 2020 2020 e280 9823 5c22 ...#\" │ │ │ │ +00008b20: e280 9920 2020 2020 2020 2020 2020 2020 ... │ │ │ │ +00008b30: 2052 6561 6420 616e 2052 3552 5320 7374 Read an R5RS st │ │ │ │ +00008b40: 7269 6e67 2e0a 2020 2020 2020 2020 2020 ring.. │ │ │ │ 00008b50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008b60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008b70: 0ae2 8098 7665 6374 6f72 e280 9920 2020 ....vector... │ │ │ │ -00008b80: 2020 2020 2020 2020 e280 9823 5c28 e280 ...#\(.. │ │ │ │ -00008b90: 9920 2020 2020 2020 2020 2020 2020 2054 . T │ │ │ │ -00008ba0: 6869 7320 6973 2061 2073 6861 7270 2074 his is a sharp t │ │ │ │ -00008bb0: 6f6b 656e 2072 6561 6465 722c 2069 2e65 oken reader, i.e │ │ │ │ -00008bc0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +00008b60: 2020 2020 2020 2020 2020 2020 0ae2 8098 .... │ │ │ │ +00008b70: 7665 6374 6f72 e280 9920 2020 2020 2020 vector... │ │ │ │ +00008b80: 2020 2020 e280 9823 5c28 e280 9920 2020 ...#\(... │ │ │ │ +00008b90: 2020 2020 2020 2020 2020 2054 6869 7320 This │ │ │ │ +00008ba0: 6973 2061 2073 6861 7270 2074 6f6b 656e is a sharp token │ │ │ │ +00008bb0: 2072 6561 6465 722c 2069 2e65 2e0a 2020 reader, i.e.. │ │ │ │ +00008bc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008bd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008be0: 2020 2020 2020 2020 6974 2072 6561 6473 it reads │ │ │ │ -00008bf0: 2061 6e20 5235 5253 2076 6563 746f 7220 an R5RS vector │ │ │ │ -00008c00: 6f6e 6365 2061 20e2 8098 23e2 8099 0a20 once a ...#.... │ │ │ │ +00008be0: 2020 2020 6974 2072 6561 6473 2061 6e20 it reads an │ │ │ │ +00008bf0: 5235 5253 2076 6563 746f 7220 6f6e 6365 R5RS vector once │ │ │ │ +00008c00: 2061 20e2 8098 23e2 8099 0a20 2020 2020 a ...#.... │ │ │ │ 00008c10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008c20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008c30: 2020 2020 2063 6861 7261 6374 6572 2068 character h │ │ │ │ -00008c40: 6173 2062 6565 6e20 7265 6164 2e0a 2020 as been read.. │ │ │ │ +00008c30: 2063 6861 7261 6374 6572 2068 6173 2062 character has b │ │ │ │ +00008c40: 6565 6e20 7265 6164 2e0a 2020 2020 2020 een read.. │ │ │ │ 00008c50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008c60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008c70: 2020 2020 0ae2 8098 7768 6974 6573 7061 ....whitespa │ │ │ │ -00008c80: 6365 e280 9920 2020 2020 2020 6672 6f6d ce... from │ │ │ │ -00008c90: 20e2 8098 235c 736f 68e2 8099 2074 6f20 ...#\soh... to │ │ │ │ -00008ca0: 2020 2054 6869 7320 6973 2061 2076 6f69 This is a voi │ │ │ │ -00008cb0: 6420 746f 6b65 6e20 7265 6164 6572 2074 d token reader t │ │ │ │ -00008cc0: 6861 740a 2020 2020 2020 2020 2020 2020 hat. │ │ │ │ -00008cd0: 2020 2020 2020 20e2 8098 235c 7370 6163 ...#\spac │ │ │ │ -00008ce0: 65e2 8099 2020 2020 2020 2020 2020 6361 e... ca │ │ │ │ -00008cf0: 7573 6573 2069 7473 2063 616c 6c69 6e67 uses its calling │ │ │ │ -00008d00: 2072 6561 6465 7220 746f 0a20 2020 2020 reader to. │ │ │ │ +00008c70: 0ae2 8098 7768 6974 6573 7061 6365 e280 ....whitespace.. │ │ │ │ +00008c80: 9920 2020 2020 2020 6672 6f6d 20e2 8098 . from ... │ │ │ │ +00008c90: 235c 736f 68e2 8099 2074 6f20 2020 2054 #\soh... to T │ │ │ │ +00008ca0: 6869 7320 6973 2061 2076 6f69 6420 746f his is a void to │ │ │ │ +00008cb0: 6b65 6e20 7265 6164 6572 2074 6861 740a ken reader that. │ │ │ │ +00008cc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +00008cd0: 2020 20e2 8098 235c 7370 6163 65e2 8099 ...#\space... │ │ │ │ +00008ce0: 2020 2020 2020 2020 2020 6361 7573 6573 causes │ │ │ │ +00008cf0: 2069 7473 2063 616c 6c69 6e67 2072 6561 its calling rea │ │ │ │ +00008d00: 6465 7220 746f 0a20 2020 2020 2020 2020 der to. │ │ │ │ 00008d10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008d20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008d30: 2069 676e 6f72 6520 2869 2e65 2e20 2074 ignore (i.e. t │ │ │ │ -00008d40: 7265 6174 2061 7320 7768 6974 6573 7061 reat as whitespa │ │ │ │ -00008d50: 6365 290a 2020 2020 2020 2020 2020 2020 ce). │ │ │ │ +00008d20: 2020 2020 2020 2020 2020 2020 2069 676e ign │ │ │ │ +00008d30: 6f72 6520 2869 2e65 2e20 2074 7265 6174 ore (i.e. treat │ │ │ │ +00008d40: 2061 7320 7768 6974 6573 7061 6365 290a as whitespace). │ │ │ │ +00008d50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 00008d60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008d70: 2020 2020 2020 2020 2020 616c 6c20 4153 all AS │ │ │ │ -00008d80: 4349 4920 6368 6172 6163 7465 7273 2072 CII characters r │ │ │ │ -00008d90: 616e 6769 6e67 2066 726f 6d0a 2020 2020 anging from. │ │ │ │ +00008d70: 2020 2020 2020 616c 6c20 4153 4349 4920 all ASCII │ │ │ │ +00008d80: 6368 6172 6163 7465 7273 2072 616e 6769 characters rangi │ │ │ │ +00008d90: 6e67 2066 726f 6d0a 2020 2020 2020 2020 ng from. │ │ │ │ 00008da0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008db0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008dc0: 2020 3120 746f 2033 322e 0a20 2020 2020 1 to 32.. │ │ │ │ +00008db0: 2020 2020 2020 2020 2020 2020 2020 3120 1 │ │ │ │ +00008dc0: 746f 2033 322e 0a20 2020 2020 2020 2020 to 32.. │ │ │ │ 00008dd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008de0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008df0: 200a 0a20 2020 4173 2063 616e 2062 6520 .. As can be │ │ │ │ -00008e00: 696e 6665 7272 6564 2066 726f 6d20 7468 inferred from th │ │ │ │ -00008e10: 6520 6162 6f76 6520 7477 6f20 6c69 7374 e above two list │ │ │ │ -00008e20: 732c 2072 6561 6469 6e67 2063 6861 7261 s, reading chara │ │ │ │ -00008e30: 6374 6572 0a73 6571 7565 6e63 6573 2073 cter.sequences s │ │ │ │ -00008e40: 7461 7274 696e 6720 7769 7468 2074 6865 tarting with the │ │ │ │ -00008e50: 20e2 8098 23e2 8099 2063 6861 7261 6374 ...#... charact │ │ │ │ -00008e60: 6572 7320 6361 6e20 6561 7369 6c79 2062 ers can easily b │ │ │ │ -00008e70: 6520 646f 6e65 2062 790a 6465 6669 6e69 e done by.defini │ │ │ │ -00008e80: 6e67 2061 2073 7562 2d72 6561 6465 7220 ng a sub-reader │ │ │ │ -00008e90: 666f 7220 7468 6174 2063 6861 7261 6374 for that charact │ │ │ │ -00008ea0: 6572 2e20 2054 6861 7420 7265 6164 6572 er. That reader │ │ │ │ -00008eb0: 2063 616e 2074 6865 6e20 6265 0a70 6173 can then be.pas │ │ │ │ -00008ec0: 7365 6420 746f 20e2 8098 6d61 6b65 2d74 sed to ...make-t │ │ │ │ -00008ed0: 6f6b 656e 2d72 6561 6465 72e2 8099 2061 oken-reader... a │ │ │ │ -00008ee0: 7320 7468 6520 7072 6f63 6564 7572 6520 s the procedure │ │ │ │ -00008ef0: 6174 7461 6368 6564 2074 6f20 e280 9823 attached to ...# │ │ │ │ -00008f00: e280 993a 0a0a 2020 2020 2028 6465 6669 ...:.. (defi │ │ │ │ -00008f10: 6e65 2073 6861 7270 2d72 6561 6465 720a ne sharp-reader. │ │ │ │ -00008f20: 2020 2020 2020 2028 6d61 6b65 2d72 6561 (make-rea │ │ │ │ -00008f30: 6465 7220 286d 6170 2073 7461 6e64 6172 der (map standar │ │ │ │ -00008f40: 642d 746f 6b65 6e2d 7265 6164 6572 0a20 d-token-reader. │ │ │ │ +00008de0: 2020 2020 2020 2020 2020 2020 200a 0a20 .. │ │ │ │ +00008df0: 2020 4173 2063 616e 2062 6520 696e 6665 As can be infe │ │ │ │ +00008e00: 7272 6564 2066 726f 6d20 7468 6520 6162 rred from the ab │ │ │ │ +00008e10: 6f76 6520 7477 6f20 6c69 7374 732c 2072 ove two lists, r │ │ │ │ +00008e20: 6561 6469 6e67 2063 6861 7261 6374 6572 eading character │ │ │ │ +00008e30: 0a73 6571 7565 6e63 6573 2073 7461 7274 .sequences start │ │ │ │ +00008e40: 696e 6720 7769 7468 2074 6865 20e2 8098 ing with the ... │ │ │ │ +00008e50: 23e2 8099 2063 6861 7261 6374 6572 7320 #... characters │ │ │ │ +00008e60: 6361 6e20 6561 7369 6c79 2062 6520 646f can easily be do │ │ │ │ +00008e70: 6e65 2062 790a 6465 6669 6e69 6e67 2061 ne by.defining a │ │ │ │ +00008e80: 2073 7562 2d72 6561 6465 7220 666f 7220 sub-reader for │ │ │ │ +00008e90: 7468 6174 2063 6861 7261 6374 6572 2e20 that character. │ │ │ │ +00008ea0: 2054 6861 7420 7265 6164 6572 2063 616e That reader can │ │ │ │ +00008eb0: 2074 6865 6e20 6265 0a70 6173 7365 6420 then be.passed │ │ │ │ +00008ec0: 746f 20e2 8098 6d61 6b65 2d74 6f6b 656e to ...make-token │ │ │ │ +00008ed0: 2d72 6561 6465 72e2 8099 2061 7320 7468 -reader... as th │ │ │ │ +00008ee0: 6520 7072 6f63 6564 7572 6520 6174 7461 e procedure atta │ │ │ │ +00008ef0: 6368 6564 2074 6f20 e280 9823 e280 993a ched to ...#...: │ │ │ │ +00008f00: 0a0a 2020 2020 2028 6465 6669 6e65 2073 .. (define s │ │ │ │ +00008f10: 6861 7270 2d72 6561 6465 720a 2020 2020 harp-reader. │ │ │ │ +00008f20: 2020 2028 6d61 6b65 2d72 6561 6465 7220 (make-reader │ │ │ │ +00008f30: 286d 6170 2073 7461 6e64 6172 642d 746f (map standard-to │ │ │ │ +00008f40: 6b65 6e2d 7265 6164 6572 0a20 2020 2020 ken-reader. │ │ │ │ 00008f50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008f60: 2020 2020 2020 2020 2728 626f 6f6c 6561 '(boolea │ │ │ │ -00008f70: 6e20 6368 6172 6163 7465 720a 2020 2020 n character. │ │ │ │ +00008f60: 2020 2020 2728 626f 6f6c 6561 6e20 6368 '(boolean ch │ │ │ │ +00008f70: 6172 6163 7465 720a 2020 2020 2020 2020 aracter. │ │ │ │ 00008f80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008f90: 2020 2020 2020 206e 756d 6265 722b 7261 number+ra │ │ │ │ -00008fa0: 6469 7820 6b65 7977 6f72 640a 2020 2020 dix keyword. │ │ │ │ +00008f90: 2020 206e 756d 6265 722b 7261 6469 7820 number+radix │ │ │ │ +00008fa0: 6b65 7977 6f72 640a 2020 2020 2020 2020 keyword. │ │ │ │ 00008fb0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008fc0: 2020 2020 2020 2073 7266 692d 340a 2020 srfi-4. │ │ │ │ +00008fc0: 2020 2073 7266 692d 340a 2020 2020 2020 srfi-4. │ │ │ │ 00008fd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00008fe0: 2020 2020 2020 2020 2062 6c6f 636b 2d63 block-c │ │ │ │ -00008ff0: 6f6d 6d65 6e74 2929 2929 0a0a 2020 2020 omment)))).. │ │ │ │ -00009000: 2028 6465 6669 6e65 2074 6f70 2d6c 6576 (define top-lev │ │ │ │ -00009010: 656c 2d72 6561 6465 720a 2020 2020 2020 el-reader. │ │ │ │ -00009020: 2028 6d61 6b65 2d72 6561 6465 7220 286c (make-reader (l │ │ │ │ -00009030: 6973 7420 286d 616b 652d 746f 6b65 6e2d ist (make-token- │ │ │ │ -00009040: 7265 6164 6572 2023 5c23 2073 6861 7270 reader #\# sharp │ │ │ │ -00009050: 2d72 6561 6465 7229 0a20 2020 2020 2020 -reader). │ │ │ │ -00009060: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00009070: 2020 202e 2e2e 0a20 2020 2020 2020 2020 .... │ │ │ │ -00009080: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -00009090: 2029 2929 0a0a 2020 2054 6865 2070 726f ))).. The pro │ │ │ │ -000090a0: 6365 6475 7265 7320 6176 6169 6c61 626c cedures availabl │ │ │ │ -000090b0: 6520 746f 206d 616e 6970 756c 6174 6520 e to manipulate │ │ │ │ -000090c0: 746f 6b65 6e20 7265 6164 6572 7320 6172 token readers ar │ │ │ │ -000090d0: 6520 6c69 7374 6564 0a62 656c 6f77 3a0a e listed.below:. │ │ │ │ -000090e0: 0a20 2d2d 2053 6368 656d 6520 5072 6f63 . -- Scheme Proc │ │ │ │ -000090f0: 6564 7572 653a 2074 6f6b 656e 2d72 6561 edure: token-rea │ │ │ │ -00009100: 6465 722d 6573 6361 7065 3f20 7472 0a20 der-escape? tr. │ │ │ │ -00009110: 2d2d 2043 2046 756e 6374 696f 6e3a 2073 -- C Function: s │ │ │ │ -00009120: 636d 5f74 6f6b 656e 5f72 6561 6465 725f cm_token_reader_ │ │ │ │ -00009130: 6573 6361 7065 5f70 2028 5343 4d20 7472 escape_p (SCM tr │ │ │ │ -00009140: 290a 2020 2020 2052 6574 7572 6e20 e280 ). Return .. │ │ │ │ -00009150: 9823 74e2 8099 2069 6620 746f 6b65 6e20 .#t... if token │ │ │ │ -00009160: 7265 6164 6572 2054 5220 7265 7175 6972 reader TR requir │ │ │ │ -00009170: 6573 2074 6865 2072 6561 6465 7273 2074 es the readers t │ │ │ │ -00009180: 6861 7420 7573 6520 6974 2074 6f0a 2020 hat use it to. │ │ │ │ -00009190: 2020 2072 6574 7572 6e20 6576 656e 2069 return even i │ │ │ │ -000091a0: 6620 6974 7320 7265 7475 726e 2076 616c f its return val │ │ │ │ -000091b0: 7565 2069 7320 756e 7370 6563 6966 6965 ue is unspecifie │ │ │ │ -000091c0: 642e 0a0a 202d 2d20 5363 6865 6d65 2050 d... -- Scheme P │ │ │ │ -000091d0: 726f 6365 6475 7265 3a20 746f 6b65 6e2d rocedure: token- │ │ │ │ -000091e0: 7265 6164 6572 2d73 7065 6369 6669 6361 reader-specifica │ │ │ │ -000091f0: 7469 6f6e 2074 720a 202d 2d20 4320 4675 tion tr. -- C Fu │ │ │ │ -00009200: 6e63 7469 6f6e 3a20 7363 6d5f 746f 6b65 nction: scm_toke │ │ │ │ -00009210: 6e5f 7265 6164 6572 5f73 7065 6320 2853 n_reader_spec (S │ │ │ │ -00009220: 434d 2074 7229 0a20 2020 2020 5265 7475 CM tr). Retu │ │ │ │ -00009230: 726e 2074 6865 2073 7065 6369 6669 6361 rn the specifica │ │ │ │ -00009240: 7469 6f6e 2c20 6f66 2074 6f6b 656e 2072 tion, of token r │ │ │ │ -00009250: 6561 6465 7220 5452 2e0a 0a20 2d2d 2053 eader TR... -- S │ │ │ │ -00009260: 6368 656d 6520 5072 6f63 6564 7572 653a cheme Procedure: │ │ │ │ -00009270: 2074 6f6b 656e 2d72 6561 6465 722d 7072 token-reader-pr │ │ │ │ -00009280: 6f63 6564 7572 6520 7472 0a20 2d2d 2043 ocedure tr. -- C │ │ │ │ -00009290: 2046 756e 6374 696f 6e3a 2073 636d 5f74 Function: scm_t │ │ │ │ -000092a0: 6f6b 656e 5f72 6561 6465 725f 7072 6f63 oken_reader_proc │ │ │ │ -000092b0: 2028 5343 4d20 7472 290a 2020 2020 2052 (SCM tr). R │ │ │ │ -000092c0: 6574 7572 6e20 7468 6520 7072 6f63 6564 eturn the proced │ │ │ │ -000092d0: 7572 6520 6174 7461 6368 6564 2074 6f20 ure attached to │ │ │ │ -000092e0: 746f 6b65 6e20 7265 6164 6572 2054 522e token reader TR. │ │ │ │ -000092f0: 2020 5768 656e 20e2 8098 2366 e280 9920 When ...#f... │ │ │ │ -00009300: 6973 0a20 2020 2020 7265 7475 726e 6564 is. returned │ │ │ │ -00009310: 2c20 7468 6520 5452 2069 7320 6120 2266 , the TR is a "f │ │ │ │ -00009320: 616b 6522 2072 6561 6465 7220 7468 6174 ake" reader that │ │ │ │ -00009330: 2064 6f65 7320 6e6f 7468 696e 672e 2020 does nothing. │ │ │ │ -00009340: 5468 6973 2069 730a 2020 2020 2074 7970 This is. typ │ │ │ │ -00009350: 6963 616c 6c79 2075 7365 6675 6c20 666f ically useful fo │ │ │ │ -00009360: 7220 7768 6974 6573 7061 6365 732e 0a0a r whitespaces... │ │ │ │ -00009370: 202d 2d20 5363 6865 6d65 2050 726f 6365 -- Scheme Proce │ │ │ │ -00009380: 6475 7265 3a20 7374 616e 6461 7264 2d74 dure: standard-t │ │ │ │ -00009390: 6f6b 656e 2d72 6561 6465 7220 6e61 6d65 oken-reader name │ │ │ │ -000093a0: 0a20 2d2d 2043 2046 756e 6374 696f 6e3a . -- C Function: │ │ │ │ -000093b0: 2073 636d 5f73 7461 6e64 6172 645f 746f scm_standard_to │ │ │ │ -000093c0: 6b65 6e5f 7265 6164 6572 2028 5343 4d20 ken_reader (SCM │ │ │ │ -000093d0: 6e61 6d65 290a 2020 2020 204c 6f6f 6b75 name). Looku │ │ │ │ -000093e0: 7020 7374 616e 6461 7264 2074 6f6b 656e p standard token │ │ │ │ -000093f0: 2072 6561 6465 7220 6e61 6d65 6420 4e41 reader named NA │ │ │ │ -00009400: 4d45 2028 6120 7379 6d62 6f6c 2920 616e ME (a symbol) an │ │ │ │ -00009410: 6420 7265 7475 726e 2069 742e 0a20 2020 d return it.. │ │ │ │ -00009420: 2020 4966 204e 414d 4520 6973 2064 6f65 If NAME is doe │ │ │ │ -00009430: 7320 6e6f 7420 6e61 6d65 2061 2073 7461 s not name a sta │ │ │ │ -00009440: 6e64 6172 6420 746f 6b65 6e20 7265 6164 ndard token read │ │ │ │ -00009450: 6572 2c20 7468 656e 2061 6e20 6572 726f er, then an erro │ │ │ │ -00009460: 7220 6973 0a20 2020 2020 7261 6973 6564 r is. raised │ │ │ │ -00009470: 2e0a 0a1f 0a46 696c 653a 2067 7569 6c65 .....File: guile │ │ │ │ -00009480: 2d72 6561 6465 722e 696e 666f 2c20 204e -reader.info, N │ │ │ │ -00009490: 6f64 653a 204c 696d 6974 6174 696f 6e73 ode: Limitations │ │ │ │ -000094a0: 2c20 2050 7265 763a 2054 6f6b 656e 2052 , Prev: Token R │ │ │ │ -000094b0: 6561 6465 7220 4c69 6272 6172 792c 2020 eader Library, │ │ │ │ -000094c0: 5570 3a20 546f 6b65 6e20 5265 6164 6572 Up: Token Reader │ │ │ │ -000094d0: 730a 0a34 2e31 2e35 204c 696d 6974 6174 s..4.1.5 Limitat │ │ │ │ -000094e0: 696f 6e73 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d ions.----------- │ │ │ │ -000094f0: 2d2d 2d2d 2d2d 0a0a 5468 6973 2073 6563 ------..This sec │ │ │ │ -00009500: 7469 6f6e 2064 6573 6372 6962 6573 2074 tion describes t │ │ │ │ -00009510: 6865 206d 6169 6e20 6c69 6d69 7461 7469 he main limitati │ │ │ │ -00009520: 6f6e 7320 616e 6420 636f 6d6d 6f6e 2070 ons and common p │ │ │ │ -00009530: 6974 6661 6c6c 730a 656e 636f 756e 7465 itfalls.encounte │ │ │ │ -00009540: 7265 6420 7768 656e 2075 7369 6e67 2047 red when using G │ │ │ │ -00009550: 7569 6c65 2d52 6561 6465 722e 0a0a 2a20 uile-Reader...* │ │ │ │ -00009560: 4d65 6e75 3a0a 0a2a 2054 6f6b 656e 2044 Menu:..* Token D │ │ │ │ -00009570: 656c 696d 6974 6572 733a 3a20 2020 2020 elimiters:: │ │ │ │ -00009580: 2020 2020 2020 2044 6561 6c69 6e67 2077 Dealing w │ │ │ │ -00009590: 6974 6820 746f 6b65 6e20 6465 6c69 6d69 ith token delimi │ │ │ │ -000095a0: 7465 7273 2e0a 2a20 4f76 6572 6c61 7070 ters..* Overlapp │ │ │ │ -000095b0: 696e 6720 546f 6b65 6e20 5265 6164 6572 ing Token Reader │ │ │ │ -000095c0: 733a 3a20 2020 546f 6b65 6e20 7265 6164 s:: Token read │ │ │ │ -000095d0: 6572 7320 7468 6174 2073 796e 7461 6374 ers that syntact │ │ │ │ -000095e0: 6963 616c 6c79 206f 7665 726c 6170 2e0a ically overlap.. │ │ │ │ -000095f0: 0a1f 0a46 696c 653a 2067 7569 6c65 2d72 ...File: guile-r │ │ │ │ -00009600: 6561 6465 722e 696e 666f 2c20 204e 6f64 eader.info, Nod │ │ │ │ -00009610: 653a 2054 6f6b 656e 2044 656c 696d 6974 e: Token Delimit │ │ │ │ -00009620: 6572 732c 2020 4e65 7874 3a20 4f76 6572 ers, Next: Over │ │ │ │ -00009630: 6c61 7070 696e 6720 546f 6b65 6e20 5265 lapping Token Re │ │ │ │ -00009640: 6164 6572 732c 2020 5072 6576 3a20 4c69 aders, Prev: Li │ │ │ │ -00009650: 6d69 7461 7469 6f6e 732c 2020 5570 3a20 mitations, Up: │ │ │ │ -00009660: 4c69 6d69 7461 7469 6f6e 730a 0a34 2e31 Limitations..4.1 │ │ │ │ -00009670: 2e35 2e31 2054 6f6b 656e 2044 656c 696d .5.1 Token Delim │ │ │ │ -00009680: 6974 6572 730a 2e2e 2e2e 2e2e 2e2e 2e2e iters........... │ │ │ │ -00009690: 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e 0a0a ................ │ │ │ │ -000096a0: 4173 2063 616e 2062 6520 7365 656e 2066 As can be seen f │ │ │ │ -000096b0: 726f 6d20 7468 6520 7072 6576 696f 7573 rom the previous │ │ │ │ -000096c0: 2073 6563 7469 6f6e 2c20 7468 6572 6520 section, there │ │ │ │ -000096d0: 6578 6973 742c 2066 6f72 2069 6e73 7461 exist, for insta │ │ │ │ -000096e0: 6e63 652c 2061 6e0a 7375 7270 7269 7369 nce, an.surprisi │ │ │ │ -000096f0: 6e67 6c79 2068 6967 6820 6e75 6d62 6572 ngly high number │ │ │ │ -00009700: 206f 6620 7379 6d62 6f6c 2074 6f6b 656e of symbol token │ │ │ │ -00009710: 2072 6561 6465 7273 2e20 2054 6865 2072 readers. The r │ │ │ │ -00009720: 6561 736f 6e20 666f 7220 7468 6973 0a69 eason for this.i │ │ │ │ -00009730: 7320 7468 6174 2064 6966 6665 7265 6e74 s that different │ │ │ │ -00009740: 2073 796e 7461 7820 7661 7269 616e 7473 syntax variants │ │ │ │ -00009750: 2064 6566 696e 6520 6469 6666 6572 656e define differen │ │ │ │ -00009760: 7420 e280 9c74 6f6b 656e 2064 656c 696d t ...token delim │ │ │ │ -00009770: 6974 6572 73e2 809d 2e0a 546f 6b65 6e20 iters.....Token │ │ │ │ -00009780: 6465 6c69 6d69 7465 7273 2061 7265 2063 delimiters are c │ │ │ │ -00009790: 6861 7261 6374 6572 7320 7468 6174 2068 haracters that h │ │ │ │ -000097a0: 656c 7020 7468 6520 7265 6164 6572 2064 elp the reader d │ │ │ │ -000097b0: 6574 6572 6d69 6e65 2077 6865 7265 0a74 etermine where.t │ │ │ │ -000097c0: 6f6b 656e 7320 7468 6174 2072 6571 7569 okens that requi │ │ │ │ -000097d0: 7265 2069 6d70 6c69 6369 7420 7465 726d re implicit term │ │ │ │ -000097e0: 696e 6174 696f 6e20 646f 2074 6572 6d69 ination do termi │ │ │ │ -000097f0: 6e61 7465 2e20 2051 756f 7469 6e67 2052 nate. Quoting R │ │ │ │ -00009800: 3552 530a 282a 6e6f 7465 2052 3552 5327 5RS.(*note R5RS' │ │ │ │ -00009810: 206c 6578 6963 616c 2073 7472 7563 7475 lexical structu │ │ │ │ -00009820: 7265 3a20 2872 3572 7329 4c65 7869 6361 re: (r5rs)Lexica │ │ │ │ -00009830: 6c20 7374 7275 6374 7572 652e 293a 0a0a l structure.):.. │ │ │ │ -00009840: 2020 2020 2054 6f6b 656e 7320 7768 6963 Tokens whic │ │ │ │ -00009850: 6820 7265 7175 6972 6520 696d 706c 6963 h require implic │ │ │ │ -00009860: 6974 2074 6572 6d69 6e61 7469 6f6e 2028 it termination ( │ │ │ │ -00009870: 6964 656e 7469 6669 6572 732c 206e 756d identifiers, num │ │ │ │ -00009880: 6265 7273 2c0a 2020 2020 2063 6861 7261 bers,. chara │ │ │ │ -00009890: 6374 6572 732c 2061 6e64 2064 6f74 2920 cters, and dot) │ │ │ │ -000098a0: 6d61 7920 6265 2074 6572 6d69 6e61 7465 may be terminate │ │ │ │ -000098b0: 6420 6279 2061 6e79 203c 6465 6c69 6d69 d by any , but not. │ │ │ │ -000098d0: 2020 206e 6563 6573 7361 7269 6c79 2062 necessarily b │ │ │ │ -000098e0: 7920 616e 7974 6869 6e67 2065 6c73 652e y anything else. │ │ │ │ -000098f0: 0a0a 2020 2052 3552 5320 6465 6669 6e65 .. R5RS define │ │ │ │ -00009900: 7320 746f 6b65 6e20 6465 6c69 6d69 7465 s token delimite │ │ │ │ -00009910: 7273 2061 7320 6f6e 6520 6f66 2074 6865 rs as one of the │ │ │ │ -00009920: 2066 6f6c 6c6f 7769 6e67 3a20 6120 7768 following: a wh │ │ │ │ -00009930: 6974 6573 7061 6365 2c0a 6120 7061 7265 itespace,.a pare │ │ │ │ -00009940: 6e74 6865 7365 732c 2061 2071 756f 7461 ntheses, a quota │ │ │ │ -00009950: 7469 6f6e 206d 6172 6b20 28e2 8098 22e2 tion mark (...". │ │ │ │ -00009960: 8099 2920 6f72 2061 2073 656d 692d 636f ..) or a semi-co │ │ │ │ -00009970: 6c6f 6e20 28e2 8098 3be2 8099 2920 6368 lon (...;...) ch │ │ │ │ -00009980: 6172 6163 7465 722e 0a4f 6e20 7468 6520 aracter..On the │ │ │ │ -00009990: 6f74 6865 7220 6861 6e64 2c20 5236 5253 other hand, R6RS │ │ │ │ -000099a0: 2c20 7768 6963 6820 6973 2074 6f20 7375 , which is to su │ │ │ │ -000099b0: 7070 6f72 7420 7468 6520 6162 696c 6974 pport the abilit │ │ │ │ -000099c0: 7920 746f 2075 7365 2073 7175 6172 650a y to use square. │ │ │ │ -000099d0: 6272 6163 6b65 7473 2069 6e73 7465 6164 brackets instead │ │ │ │ -000099e0: 206f 6620 7061 7265 6e74 6865 7365 7320 of parentheses │ │ │ │ -000099f0: 666f 7220 532d 6578 7072 6573 7369 6f6e for S-expression │ │ │ │ -00009a00: 732c 2061 6c73 6f20 636f 6e73 6964 6572 s, also consider │ │ │ │ -00009a10: 7320 7371 7561 7265 0a62 7261 636b 6574 s square.bracket │ │ │ │ -00009a20: 7320 6173 2074 6f6b 656e 2064 656c 696d s as token delim │ │ │ │ -00009a30: 6974 6572 732e 2020 4c69 6b65 7769 7365 iters. Likewise │ │ │ │ -00009a40: 2c20 6966 2077 6520 7765 7265 2074 6f20 , if we were to │ │ │ │ -00009a50: 7375 7070 6f72 7420 6375 726c 790a 6272 support curly.br │ │ │ │ -00009a60: 6163 6573 2074 6f20 656e 636c 6f73 6520 aces to enclose │ │ │ │ -00009a70: 532d 6578 7072 6573 7369 6f6e 732c 2074 S-expressions, t │ │ │ │ -00009a80: 6865 6e20 6375 726c 7920 6272 6163 6573 hen curly braces │ │ │ │ -00009a90: 2077 6f75 6c64 206e 6565 6420 746f 2062 would need to b │ │ │ │ -00009aa0: 650a 636f 6e73 6964 6572 6564 2061 7320 e.considered as │ │ │ │ -00009ab0: 746f 6b65 6e20 6465 6c69 6d69 7465 7273 token delimiters │ │ │ │ -00009ac0: 2074 6f6f 2e0a 0a20 2020 466f 7220 7468 too... For th │ │ │ │ -00009ad0: 6973 2072 6561 736f 6e2c 2074 6865 2074 is reason, the t │ │ │ │ -00009ae0: 6f6b 656e 2072 6561 6465 7220 6c69 6272 oken reader libr │ │ │ │ -00009af0: 6172 7920 636f 6d65 7320 7769 7468 2073 ary comes with s │ │ │ │ -00009b00: 6576 6572 616c 2073 796d 626f 6c0a 746f everal symbol.to │ │ │ │ -00009b10: 6b65 6e20 7265 6164 6572 733a 2074 6865 ken readers: the │ │ │ │ -00009b20: 20e2 8098 6775 696c 652d 7379 6d62 6f6c ...guile-symbol │ │ │ │ -00009b30: 2de2 8099 2066 616d 696c 7920 646f 6573 -... family does │ │ │ │ -00009b40: 206e 6f74 2063 6f6e 7369 6465 7220 7371 not consider sq │ │ │ │ -00009b50: 7561 7265 0a62 7261 636b 6574 7320 6173 uare.brackets as │ │ │ │ -00009b60: 2064 656c 696d 6974 6572 7320 7768 696c delimiters whil │ │ │ │ -00009b70: 6520 7468 6520 e280 9872 3672 732d 7379 e the ...r6rs-sy │ │ │ │ -00009b80: 6d62 6f6c 2de2 8099 2066 616d 696c 7920 mbol-... family │ │ │ │ -00009b90: 646f 6573 2c20 7468 650a e280 9862 7261 does, the....bra │ │ │ │ -00009ba0: 6365 2d66 7265 652d e280 9920 5452 2066 ce-free-... TR f │ │ │ │ -00009bb0: 616d 696c 7920 636f 6e73 6964 6572 7320 amily considers │ │ │ │ -00009bc0: 6375 726c 7920 6272 6163 6573 2061 7320 curly braces as │ │ │ │ -00009bd0: 6465 6c69 6d69 7465 7273 2062 7574 206e delimiters but n │ │ │ │ -00009be0: 6f74 0a73 7175 6172 6520 6272 6163 6b65 ot.square bracke │ │ │ │ -00009bf0: 7473 2c20 6574 632e 2020 5369 6d69 6c61 ts, etc. Simila │ │ │ │ -00009c00: 726c 792c 2073 6576 6572 616c 2076 6172 rly, several var │ │ │ │ -00009c10: 6961 6e74 7320 6f66 206e 756d 6265 7220 iants of number │ │ │ │ -00009c20: 5452 7320 6172 650a 6176 6169 6c61 626c TRs are.availabl │ │ │ │ -00009c30: 652e 2020 5468 6973 2069 7320 6475 6520 e. This is due │ │ │ │ -00009c40: 746f 2074 6865 2066 6163 7420 7468 6174 to the fact that │ │ │ │ -00009c50: 206e 756d 6265 7220 5452 7320 6d61 7920 number TRs may │ │ │ │ -00009c60: 7265 7475 726e 2073 796d 626f 6c73 0a69 return symbols.i │ │ │ │ -00009c70: 6e20 636f 726e 6572 2063 6173 6573 206c n corner cases l │ │ │ │ -00009c80: 696b 6520 7379 6d62 6f6c 206e 616d 6573 ike symbol names │ │ │ │ -00009c90: 2073 7461 7274 696e 6720 7769 7468 2061 starting with a │ │ │ │ -00009ca0: 206e 756d 6265 722e 0a0a 2020 2048 6f77 number... How │ │ │ │ -00009cb0: 6576 6572 2c20 616c 7468 6f75 6768 206b ever, although k │ │ │ │ -00009cc0: 6579 776f 7264 7320 6d75 7374 2061 6c73 eywords must als │ │ │ │ -00009cd0: 6f20 636f 6d70 6c79 2077 6974 6820 7468 o comply with th │ │ │ │ -00009ce0: 6520 746f 6b65 6e20 6465 6c69 6d69 7465 e token delimite │ │ │ │ -00009cf0: 7273 0a72 756c 6573 2c20 7468 6572 6520 rs.rules, there │ │ │ │ -00009d00: 6973 206f 6e6c 7920 6f6e 6520 6b65 7977 is only one keyw │ │ │ │ -00009d10: 6f72 6420 5452 2028 6361 6c6c 6564 20e2 ord TR (called . │ │ │ │ -00009d20: 8098 6b65 7977 6f72 64e2 8099 292e 2020 ..keyword...). │ │ │ │ -00009d30: 5468 6520 7265 6173 6f6e 2066 6f72 0a74 The reason for.t │ │ │ │ -00009d40: 6869 7320 6973 2074 6861 7420 7468 6973 his is that this │ │ │ │ -00009d50: 2054 5220 7265 6c69 6573 206f 6e20 7468 TR relies on th │ │ │ │ -00009d60: 6520 746f 702d 6c65 7665 6c20 7265 6164 e top-level read │ │ │ │ -00009d70: 6572 2773 2073 796d 626f 6c20 7265 6164 er's symbol read │ │ │ │ -00009d80: 6572 2074 6f0a 7265 6164 2074 6865 2073 er to.read the s │ │ │ │ -00009d90: 796d 626f 6c20 7468 6174 206d 616b 6573 ymbol that makes │ │ │ │ -00009da0: 2075 7020 7468 6520 6b65 7977 6f72 6420 up the keyword │ │ │ │ -00009db0: 6265 696e 6720 7265 6164 2e0a 0a20 2020 being read... │ │ │ │ -00009dc0: 496e 2074 6865 2063 7572 7265 6e74 2064 In the current d │ │ │ │ -00009dd0: 6573 6967 6e20 6f66 2047 7569 6c65 2d52 esign of Guile-R │ │ │ │ -00009de0: 6561 6465 722c 2074 6869 7320 746f 6b65 eader, this toke │ │ │ │ -00009df0: 6e20 6465 6c69 6d69 7465 7220 6973 7375 n delimiter issu │ │ │ │ -00009e00: 650a 6372 6561 7465 7320 6120 6e75 6d62 e.creates a numb │ │ │ │ -00009e10: 6572 206f 6620 7069 7466 616c 6c73 2077 er of pitfalls w │ │ │ │ -00009e20: 6865 6e20 6f6e 6520 6973 2077 696c 6c69 hen one is willi │ │ │ │ -00009e30: 6e67 2074 6f20 6368 616e 6765 2074 6865 ng to change the │ │ │ │ -00009e40: 2063 7572 7265 6e74 0a64 656c 696d 6974 current.delimit │ │ │ │ -00009e50: 6572 732e 2020 496e 2070 6172 7469 6375 ers. In particu │ │ │ │ -00009e60: 6c61 722c 206f 6e65 2068 6173 2074 6f20 lar, one has to │ │ │ │ -00009e70: 6265 2076 6572 7920 6361 7265 6675 6c20 be very careful │ │ │ │ -00009e80: 6162 6f75 7420 7573 696e 6720 5452 730a about using TRs. │ │ │ │ -00009e90: 7468 6174 2063 6f6e 7369 7374 656e 746c that consistentl │ │ │ │ -00009ea0: 7920 6173 7375 6d65 2074 6865 2073 616d y assume the sam │ │ │ │ -00009eb0: 6520 746f 6b65 6e20 6465 6c69 6d69 7465 e token delimite │ │ │ │ -00009ec0: 7273 2e0a 0a20 2020 4120 2272 6561 6c22 rs... A "real" │ │ │ │ -00009ed0: 206c 6578 6572 2067 656e 6572 6174 6f72 lexer generator │ │ │ │ -00009ee0: 2073 7563 6820 6173 2044 616e 6e79 2044 such as Danny D │ │ │ │ -00009ef0: 7562 c3a9 2773 2053 494c 6578 2061 766f ub..'s SILex avo │ │ │ │ -00009f00: 6964 7320 7375 6368 0a69 7373 7565 7320 ids such.issues │ │ │ │ -00009f10: 6265 6361 7573 6520 6974 2061 6c6c 6f77 because it allow │ │ │ │ -00009f20: 7320 7468 6520 6465 6669 6e69 7469 6f6e s the definition │ │ │ │ -00009f30: 206f 6620 746f 6b65 6e73 2075 7369 6e67 of tokens using │ │ │ │ -00009f40: 2072 6567 756c 6172 0a65 7870 7265 7373 regular.express │ │ │ │ -00009f50: 696f 6e73 2e20 2048 6f77 6576 6572 2c20 ions. However, │ │ │ │ -00009f60: 6974 7320 7573 6167 6520 6d61 7920 6265 its usage may be │ │ │ │ -00009f70: 206c 6573 7320 7472 6976 6961 6c20 7468 less trivial th │ │ │ │ -00009f80: 616e 2074 6861 7420 6f66 0a47 7569 6c65 an that of.Guile │ │ │ │ -00009f90: 2d52 6561 6465 722e 0a0a 1f0a 4669 6c65 -Reader.....File │ │ │ │ -00009fa0: 3a20 6775 696c 652d 7265 6164 6572 2e69 : guile-reader.i │ │ │ │ -00009fb0: 6e66 6f2c 2020 4e6f 6465 3a20 4f76 6572 nfo, Node: Over │ │ │ │ -00009fc0: 6c61 7070 696e 6720 546f 6b65 6e20 5265 lapping Token Re │ │ │ │ -00009fd0: 6164 6572 732c 2020 5072 6576 3a20 546f aders, Prev: To │ │ │ │ -00009fe0: 6b65 6e20 4465 6c69 6d69 7465 7273 2c20 ken Delimiters, │ │ │ │ -00009ff0: 2055 703a 204c 696d 6974 6174 696f 6e73 Up: Limitations │ │ │ │ -0000a000: 0a0a 342e 312e 352e 3220 4f76 6572 6c61 ..4.1.5.2 Overla │ │ │ │ -0000a010: 7070 696e 6720 546f 6b65 6e20 5265 6164 pping Token Read │ │ │ │ -0000a020: 6572 730a 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e ers............. │ │ │ │ +00008fe0: 2020 2020 2062 6c6f 636b 2d63 6f6d 6d65 block-comme │ │ │ │ +00008ff0: 6e74 2929 2929 0a0a 2020 2020 2028 6465 nt)))).. (de │ │ │ │ +00009000: 6669 6e65 2074 6f70 2d6c 6576 656c 2d72 fine top-level-r │ │ │ │ +00009010: 6561 6465 720a 2020 2020 2020 2028 6d61 eader. (ma │ │ │ │ +00009020: 6b65 2d72 6561 6465 7220 286c 6973 7420 ke-reader (list │ │ │ │ +00009030: 286d 616b 652d 746f 6b65 6e2d 7265 6164 (make-token-read │ │ │ │ +00009040: 6572 2023 5c23 2073 6861 7270 2d72 6561 er #\# sharp-rea │ │ │ │ +00009050: 6465 7229 0a20 2020 2020 2020 2020 2020 der). │ │ │ │ +00009060: 2020 2020 2020 2020 2020 2020 2020 202e . │ │ │ │ +00009070: 2e2e 0a20 2020 2020 2020 2020 2020 2020 ... │ │ │ │ +00009080: 2020 2020 2020 2020 2020 2020 2029 2929 ))) │ │ │ │ +00009090: 0a0a 2020 2054 6865 2070 726f 6365 6475 .. The procedu │ │ │ │ +000090a0: 7265 7320 6176 6169 6c61 626c 6520 746f res available to │ │ │ │ +000090b0: 206d 616e 6970 756c 6174 6520 746f 6b65 manipulate toke │ │ │ │ +000090c0: 6e20 7265 6164 6572 7320 6172 6520 6c69 n readers are li │ │ │ │ +000090d0: 7374 6564 0a62 656c 6f77 3a0a 0a20 2d2d sted.below:.. -- │ │ │ │ +000090e0: 2053 6368 656d 6520 5072 6f63 6564 7572 Scheme Procedur │ │ │ │ +000090f0: 653a 2074 6f6b 656e 2d72 6561 6465 722d e: token-reader- │ │ │ │ +00009100: 6573 6361 7065 3f20 7472 0a20 2d2d 2043 escape? tr. -- C │ │ │ │ +00009110: 2046 756e 6374 696f 6e3a 2073 636d 5f74 Function: scm_t │ │ │ │ +00009120: 6f6b 656e 5f72 6561 6465 725f 6573 6361 oken_reader_esca │ │ │ │ +00009130: 7065 5f70 2028 5343 4d20 7472 290a 2020 pe_p (SCM tr). │ │ │ │ +00009140: 2020 2052 6574 7572 6e20 e280 9823 74e2 Return ...#t. │ │ │ │ +00009150: 8099 2069 6620 746f 6b65 6e20 7265 6164 .. if token read │ │ │ │ +00009160: 6572 2054 5220 7265 7175 6972 6573 2074 er TR requires t │ │ │ │ +00009170: 6865 2072 6561 6465 7273 2074 6861 7420 he readers that │ │ │ │ +00009180: 7573 6520 6974 2074 6f0a 2020 2020 2072 use it to. r │ │ │ │ +00009190: 6574 7572 6e20 6576 656e 2069 6620 6974 eturn even if it │ │ │ │ +000091a0: 7320 7265 7475 726e 2076 616c 7565 2069 s return value i │ │ │ │ +000091b0: 7320 756e 7370 6563 6966 6965 642e 0a0a s unspecified... │ │ │ │ +000091c0: 202d 2d20 5363 6865 6d65 2050 726f 6365 -- Scheme Proce │ │ │ │ +000091d0: 6475 7265 3a20 746f 6b65 6e2d 7265 6164 dure: token-read │ │ │ │ +000091e0: 6572 2d73 7065 6369 6669 6361 7469 6f6e er-specification │ │ │ │ +000091f0: 2074 720a 202d 2d20 4320 4675 6e63 7469 tr. -- C Functi │ │ │ │ +00009200: 6f6e 3a20 7363 6d5f 746f 6b65 6e5f 7265 on: scm_token_re │ │ │ │ +00009210: 6164 6572 5f73 7065 6320 2853 434d 2074 ader_spec (SCM t │ │ │ │ +00009220: 7229 0a20 2020 2020 5265 7475 726e 2074 r). Return t │ │ │ │ +00009230: 6865 2073 7065 6369 6669 6361 7469 6f6e he specification │ │ │ │ +00009240: 2c20 6f66 2074 6f6b 656e 2072 6561 6465 , of token reade │ │ │ │ +00009250: 7220 5452 2e0a 0a20 2d2d 2053 6368 656d r TR... -- Schem │ │ │ │ +00009260: 6520 5072 6f63 6564 7572 653a 2074 6f6b e Procedure: tok │ │ │ │ +00009270: 656e 2d72 6561 6465 722d 7072 6f63 6564 en-reader-proced │ │ │ │ +00009280: 7572 6520 7472 0a20 2d2d 2043 2046 756e ure tr. -- C Fun │ │ │ │ +00009290: 6374 696f 6e3a 2073 636d 5f74 6f6b 656e ction: scm_token │ │ │ │ +000092a0: 5f72 6561 6465 725f 7072 6f63 2028 5343 _reader_proc (SC │ │ │ │ +000092b0: 4d20 7472 290a 2020 2020 2052 6574 7572 M tr). Retur │ │ │ │ +000092c0: 6e20 7468 6520 7072 6f63 6564 7572 6520 n the procedure │ │ │ │ +000092d0: 6174 7461 6368 6564 2074 6f20 746f 6b65 attached to toke │ │ │ │ +000092e0: 6e20 7265 6164 6572 2054 522e 2020 5768 n reader TR. Wh │ │ │ │ +000092f0: 656e 20e2 8098 2366 e280 9920 6973 0a20 en ...#f... is. │ │ │ │ +00009300: 2020 2020 7265 7475 726e 6564 2c20 7468 returned, th │ │ │ │ +00009310: 6520 5452 2069 7320 6120 2266 616b 6522 e TR is a "fake" │ │ │ │ +00009320: 2072 6561 6465 7220 7468 6174 2064 6f65 reader that doe │ │ │ │ +00009330: 7320 6e6f 7468 696e 672e 2020 5468 6973 s nothing. This │ │ │ │ +00009340: 2069 730a 2020 2020 2074 7970 6963 616c is. typical │ │ │ │ +00009350: 6c79 2075 7365 6675 6c20 666f 7220 7768 ly useful for wh │ │ │ │ +00009360: 6974 6573 7061 6365 732e 0a0a 202d 2d20 itespaces... -- │ │ │ │ +00009370: 5363 6865 6d65 2050 726f 6365 6475 7265 Scheme Procedure │ │ │ │ +00009380: 3a20 7374 616e 6461 7264 2d74 6f6b 656e : standard-token │ │ │ │ +00009390: 2d72 6561 6465 7220 6e61 6d65 0a20 2d2d -reader name. -- │ │ │ │ +000093a0: 2043 2046 756e 6374 696f 6e3a 2073 636d C Function: scm │ │ │ │ +000093b0: 5f73 7461 6e64 6172 645f 746f 6b65 6e5f _standard_token_ │ │ │ │ +000093c0: 7265 6164 6572 2028 5343 4d20 6e61 6d65 reader (SCM name │ │ │ │ +000093d0: 290a 2020 2020 204c 6f6f 6b75 7020 7374 ). Lookup st │ │ │ │ +000093e0: 616e 6461 7264 2074 6f6b 656e 2072 6561 andard token rea │ │ │ │ +000093f0: 6465 7220 6e61 6d65 6420 4e41 4d45 2028 der named NAME ( │ │ │ │ +00009400: 6120 7379 6d62 6f6c 2920 616e 6420 7265 a symbol) and re │ │ │ │ +00009410: 7475 726e 2069 742e 0a20 2020 2020 4966 turn it.. If │ │ │ │ +00009420: 204e 414d 4520 6973 2064 6f65 7320 6e6f NAME is does no │ │ │ │ +00009430: 7420 6e61 6d65 2061 2073 7461 6e64 6172 t name a standar │ │ │ │ +00009440: 6420 746f 6b65 6e20 7265 6164 6572 2c20 d token reader, │ │ │ │ +00009450: 7468 656e 2061 6e20 6572 726f 7220 6973 then an error is │ │ │ │ +00009460: 0a20 2020 2020 7261 6973 6564 2e0a 0a1f . raised.... │ │ │ │ +00009470: 0a46 696c 653a 2067 7569 6c65 2d72 6561 .File: guile-rea │ │ │ │ +00009480: 6465 722e 696e 666f 2c20 204e 6f64 653a der.info, Node: │ │ │ │ +00009490: 204c 696d 6974 6174 696f 6e73 2c20 2050 Limitations, P │ │ │ │ +000094a0: 7265 763a 2054 6f6b 656e 2052 6561 6465 rev: Token Reade │ │ │ │ +000094b0: 7220 4c69 6272 6172 792c 2020 5570 3a20 r Library, Up: │ │ │ │ +000094c0: 546f 6b65 6e20 5265 6164 6572 730a 0a34 Token Readers..4 │ │ │ │ +000094d0: 2e31 2e35 204c 696d 6974 6174 696f 6e73 .1.5 Limitations │ │ │ │ +000094e0: 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d .--------------- │ │ │ │ +000094f0: 2d2d 0a0a 5468 6973 2073 6563 7469 6f6e --..This section │ │ │ │ +00009500: 2064 6573 6372 6962 6573 2074 6865 206d describes the m │ │ │ │ +00009510: 6169 6e20 6c69 6d69 7461 7469 6f6e 7320 ain limitations │ │ │ │ +00009520: 616e 6420 636f 6d6d 6f6e 2070 6974 6661 and common pitfa │ │ │ │ +00009530: 6c6c 730a 656e 636f 756e 7465 7265 6420 lls.encountered │ │ │ │ +00009540: 7768 656e 2075 7369 6e67 2047 7569 6c65 when using Guile │ │ │ │ +00009550: 2d52 6561 6465 722e 0a0a 2a20 4d65 6e75 -Reader...* Menu │ │ │ │ +00009560: 3a0a 0a2a 2054 6f6b 656e 2044 656c 696d :..* Token Delim │ │ │ │ +00009570: 6974 6572 733a 3a20 2020 2020 2020 2020 iters:: │ │ │ │ +00009580: 2020 2044 6561 6c69 6e67 2077 6974 6820 Dealing with │ │ │ │ +00009590: 746f 6b65 6e20 6465 6c69 6d69 7465 7273 token delimiters │ │ │ │ +000095a0: 2e0a 2a20 4f76 6572 6c61 7070 696e 6720 ..* Overlapping │ │ │ │ +000095b0: 546f 6b65 6e20 5265 6164 6572 733a 3a20 Token Readers:: │ │ │ │ +000095c0: 2020 546f 6b65 6e20 7265 6164 6572 7320 Token readers │ │ │ │ +000095d0: 7468 6174 2073 796e 7461 6374 6963 616c that syntactical │ │ │ │ +000095e0: 6c79 206f 7665 726c 6170 2e0a 0a1f 0a46 ly overlap.....F │ │ │ │ +000095f0: 696c 653a 2067 7569 6c65 2d72 6561 6465 ile: guile-reade │ │ │ │ +00009600: 722e 696e 666f 2c20 204e 6f64 653a 2054 r.info, Node: T │ │ │ │ +00009610: 6f6b 656e 2044 656c 696d 6974 6572 732c oken Delimiters, │ │ │ │ +00009620: 2020 4e65 7874 3a20 4f76 6572 6c61 7070 Next: Overlapp │ │ │ │ +00009630: 696e 6720 546f 6b65 6e20 5265 6164 6572 ing Token Reader │ │ │ │ +00009640: 732c 2020 5072 6576 3a20 4c69 6d69 7461 s, Prev: Limita │ │ │ │ +00009650: 7469 6f6e 732c 2020 5570 3a20 4c69 6d69 tions, Up: Limi │ │ │ │ +00009660: 7461 7469 6f6e 730a 0a34 2e31 2e35 2e31 tations..4.1.5.1 │ │ │ │ +00009670: 2054 6f6b 656e 2044 656c 696d 6974 6572 Token Delimiter │ │ │ │ +00009680: 730a 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e s............... │ │ │ │ +00009690: 2e2e 2e2e 2e2e 2e2e 2e2e 0a0a 4173 2063 ............As c │ │ │ │ +000096a0: 616e 2062 6520 7365 656e 2066 726f 6d20 an be seen from │ │ │ │ +000096b0: 7468 6520 7072 6576 696f 7573 2073 6563 the previous sec │ │ │ │ +000096c0: 7469 6f6e 2c20 7468 6572 6520 6578 6973 tion, there exis │ │ │ │ +000096d0: 742c 2066 6f72 2069 6e73 7461 6e63 652c t, for instance, │ │ │ │ +000096e0: 2061 6e0a 7375 7270 7269 7369 6e67 6c79 an.surprisingly │ │ │ │ +000096f0: 2068 6967 6820 6e75 6d62 6572 206f 6620 high number of │ │ │ │ +00009700: 7379 6d62 6f6c 2074 6f6b 656e 2072 6561 symbol token rea │ │ │ │ +00009710: 6465 7273 2e20 2054 6865 2072 6561 736f ders. The reaso │ │ │ │ +00009720: 6e20 666f 7220 7468 6973 0a69 7320 7468 n for this.is th │ │ │ │ +00009730: 6174 2064 6966 6665 7265 6e74 2073 796e at different syn │ │ │ │ +00009740: 7461 7820 7661 7269 616e 7473 2064 6566 tax variants def │ │ │ │ +00009750: 696e 6520 6469 6666 6572 656e 7420 e280 ine different .. │ │ │ │ +00009760: 9c74 6f6b 656e 2064 656c 696d 6974 6572 .token delimiter │ │ │ │ +00009770: 73e2 809d 2e0a 546f 6b65 6e20 6465 6c69 s.....Token deli │ │ │ │ +00009780: 6d69 7465 7273 2061 7265 2063 6861 7261 miters are chara │ │ │ │ +00009790: 6374 6572 7320 7468 6174 2068 656c 7020 cters that help │ │ │ │ +000097a0: 7468 6520 7265 6164 6572 2064 6574 6572 the reader deter │ │ │ │ +000097b0: 6d69 6e65 2077 6865 7265 0a74 6f6b 656e mine where.token │ │ │ │ +000097c0: 7320 7468 6174 2072 6571 7569 7265 2069 s that require i │ │ │ │ +000097d0: 6d70 6c69 6369 7420 7465 726d 696e 6174 mplicit terminat │ │ │ │ +000097e0: 696f 6e20 646f 2074 6572 6d69 6e61 7465 ion do terminate │ │ │ │ +000097f0: 2e20 2051 756f 7469 6e67 2052 3552 530a . Quoting R5RS. │ │ │ │ +00009800: 282a 6e6f 7465 2052 3552 5327 206c 6578 (*note R5RS' lex │ │ │ │ +00009810: 6963 616c 2073 7472 7563 7475 7265 3a20 ical structure: │ │ │ │ +00009820: 2872 3572 7329 4c65 7869 6361 6c20 7374 (r5rs)Lexical st │ │ │ │ +00009830: 7275 6374 7572 652e 293a 0a0a 2020 2020 ructure.):.. │ │ │ │ +00009840: 2054 6f6b 656e 7320 7768 6963 6820 7265 Tokens which re │ │ │ │ +00009850: 7175 6972 6520 696d 706c 6963 6974 2074 quire implicit t │ │ │ │ +00009860: 6572 6d69 6e61 7469 6f6e 2028 6964 656e ermination (iden │ │ │ │ +00009870: 7469 6669 6572 732c 206e 756d 6265 7273 tifiers, numbers │ │ │ │ +00009880: 2c0a 2020 2020 2063 6861 7261 6374 6572 ,. character │ │ │ │ +00009890: 732c 2061 6e64 2064 6f74 2920 6d61 7920 s, and dot) may │ │ │ │ +000098a0: 6265 2074 6572 6d69 6e61 7465 6420 6279 be terminated by │ │ │ │ +000098b0: 2061 6e79 203c 6465 6c69 6d69 7465 723e any │ │ │ │ +000098c0: 2c20 6275 7420 6e6f 740a 2020 2020 206e , but not. n │ │ │ │ +000098d0: 6563 6573 7361 7269 6c79 2062 7920 616e ecessarily by an │ │ │ │ +000098e0: 7974 6869 6e67 2065 6c73 652e 0a0a 2020 ything else... │ │ │ │ +000098f0: 2052 3552 5320 6465 6669 6e65 7320 746f R5RS defines to │ │ │ │ +00009900: 6b65 6e20 6465 6c69 6d69 7465 7273 2061 ken delimiters a │ │ │ │ +00009910: 7320 6f6e 6520 6f66 2074 6865 2066 6f6c s one of the fol │ │ │ │ +00009920: 6c6f 7769 6e67 3a20 6120 7768 6974 6573 lowing: a whites │ │ │ │ +00009930: 7061 6365 2c0a 6120 7061 7265 6e74 6865 pace,.a parenthe │ │ │ │ +00009940: 7365 732c 2061 2071 756f 7461 7469 6f6e ses, a quotation │ │ │ │ +00009950: 206d 6172 6b20 28e2 8098 22e2 8099 2920 mark (..."...) │ │ │ │ +00009960: 6f72 2061 2073 656d 692d 636f 6c6f 6e20 or a semi-colon │ │ │ │ +00009970: 28e2 8098 3be2 8099 2920 6368 6172 6163 (...;...) charac │ │ │ │ +00009980: 7465 722e 0a4f 6e20 7468 6520 6f74 6865 ter..On the othe │ │ │ │ +00009990: 7220 6861 6e64 2c20 5236 5253 2c20 7768 r hand, R6RS, wh │ │ │ │ +000099a0: 6963 6820 6973 2074 6f20 7375 7070 6f72 ich is to suppor │ │ │ │ +000099b0: 7420 7468 6520 6162 696c 6974 7920 746f t the ability to │ │ │ │ +000099c0: 2075 7365 2073 7175 6172 650a 6272 6163 use square.brac │ │ │ │ +000099d0: 6b65 7473 2069 6e73 7465 6164 206f 6620 kets instead of │ │ │ │ +000099e0: 7061 7265 6e74 6865 7365 7320 666f 7220 parentheses for │ │ │ │ +000099f0: 532d 6578 7072 6573 7369 6f6e 732c 2061 S-expressions, a │ │ │ │ +00009a00: 6c73 6f20 636f 6e73 6964 6572 7320 7371 lso considers sq │ │ │ │ +00009a10: 7561 7265 0a62 7261 636b 6574 7320 6173 uare.brackets as │ │ │ │ +00009a20: 2074 6f6b 656e 2064 656c 696d 6974 6572 token delimiter │ │ │ │ +00009a30: 732e 2020 4c69 6b65 7769 7365 2c20 6966 s. Likewise, if │ │ │ │ +00009a40: 2077 6520 7765 7265 2074 6f20 7375 7070 we were to supp │ │ │ │ +00009a50: 6f72 7420 6375 726c 790a 6272 6163 6573 ort curly.braces │ │ │ │ +00009a60: 2074 6f20 656e 636c 6f73 6520 532d 6578 to enclose S-ex │ │ │ │ +00009a70: 7072 6573 7369 6f6e 732c 2074 6865 6e20 pressions, then │ │ │ │ +00009a80: 6375 726c 7920 6272 6163 6573 2077 6f75 curly braces wou │ │ │ │ +00009a90: 6c64 206e 6565 6420 746f 2062 650a 636f ld need to be.co │ │ │ │ +00009aa0: 6e73 6964 6572 6564 2061 7320 746f 6b65 nsidered as toke │ │ │ │ +00009ab0: 6e20 6465 6c69 6d69 7465 7273 2074 6f6f n delimiters too │ │ │ │ +00009ac0: 2e0a 0a20 2020 466f 7220 7468 6973 2072 ... For this r │ │ │ │ +00009ad0: 6561 736f 6e2c 2074 6865 2074 6f6b 656e eason, the token │ │ │ │ +00009ae0: 2072 6561 6465 7220 6c69 6272 6172 7920 reader library │ │ │ │ +00009af0: 636f 6d65 7320 7769 7468 2073 6576 6572 comes with sever │ │ │ │ +00009b00: 616c 2073 796d 626f 6c0a 746f 6b65 6e20 al symbol.token │ │ │ │ +00009b10: 7265 6164 6572 733a 2074 6865 20e2 8098 readers: the ... │ │ │ │ +00009b20: 6775 696c 652d 7379 6d62 6f6c 2de2 8099 guile-symbol-... │ │ │ │ +00009b30: 2066 616d 696c 7920 646f 6573 206e 6f74 family does not │ │ │ │ +00009b40: 2063 6f6e 7369 6465 7220 7371 7561 7265 consider square │ │ │ │ +00009b50: 0a62 7261 636b 6574 7320 6173 2064 656c .brackets as del │ │ │ │ +00009b60: 696d 6974 6572 7320 7768 696c 6520 7468 imiters while th │ │ │ │ +00009b70: 6520 e280 9872 3672 732d 7379 6d62 6f6c e ...r6rs-symbol │ │ │ │ +00009b80: 2de2 8099 2066 616d 696c 7920 646f 6573 -... family does │ │ │ │ +00009b90: 2c20 7468 650a e280 9862 7261 6365 2d66 , the....brace-f │ │ │ │ +00009ba0: 7265 652d e280 9920 5452 2066 616d 696c ree-... TR famil │ │ │ │ +00009bb0: 7920 636f 6e73 6964 6572 7320 6375 726c y considers curl │ │ │ │ +00009bc0: 7920 6272 6163 6573 2061 7320 6465 6c69 y braces as deli │ │ │ │ +00009bd0: 6d69 7465 7273 2062 7574 206e 6f74 0a73 miters but not.s │ │ │ │ +00009be0: 7175 6172 6520 6272 6163 6b65 7473 2c20 quare brackets, │ │ │ │ +00009bf0: 6574 632e 2020 5369 6d69 6c61 726c 792c etc. Similarly, │ │ │ │ +00009c00: 2073 6576 6572 616c 2076 6172 6961 6e74 several variant │ │ │ │ +00009c10: 7320 6f66 206e 756d 6265 7220 5452 7320 s of number TRs │ │ │ │ +00009c20: 6172 650a 6176 6169 6c61 626c 652e 2020 are.available. │ │ │ │ +00009c30: 5468 6973 2069 7320 6475 6520 746f 2074 This is due to t │ │ │ │ +00009c40: 6865 2066 6163 7420 7468 6174 206e 756d he fact that num │ │ │ │ +00009c50: 6265 7220 5452 7320 6d61 7920 7265 7475 ber TRs may retu │ │ │ │ +00009c60: 726e 2073 796d 626f 6c73 0a69 6e20 636f rn symbols.in co │ │ │ │ +00009c70: 726e 6572 2063 6173 6573 206c 696b 6520 rner cases like │ │ │ │ +00009c80: 7379 6d62 6f6c 206e 616d 6573 2073 7461 symbol names sta │ │ │ │ +00009c90: 7274 696e 6720 7769 7468 2061 206e 756d rting with a num │ │ │ │ +00009ca0: 6265 722e 0a0a 2020 2048 6f77 6576 6572 ber... However │ │ │ │ +00009cb0: 2c20 616c 7468 6f75 6768 206b 6579 776f , although keywo │ │ │ │ +00009cc0: 7264 7320 6d75 7374 2061 6c73 6f20 636f rds must also co │ │ │ │ +00009cd0: 6d70 6c79 2077 6974 6820 7468 6520 746f mply with the to │ │ │ │ +00009ce0: 6b65 6e20 6465 6c69 6d69 7465 7273 0a72 ken delimiters.r │ │ │ │ +00009cf0: 756c 6573 2c20 7468 6572 6520 6973 206f ules, there is o │ │ │ │ +00009d00: 6e6c 7920 6f6e 6520 6b65 7977 6f72 6420 nly one keyword │ │ │ │ +00009d10: 5452 2028 6361 6c6c 6564 20e2 8098 6b65 TR (called ...ke │ │ │ │ +00009d20: 7977 6f72 64e2 8099 292e 2020 5468 6520 yword...). The │ │ │ │ +00009d30: 7265 6173 6f6e 2066 6f72 0a74 6869 7320 reason for.this │ │ │ │ +00009d40: 6973 2074 6861 7420 7468 6973 2054 5220 is that this TR │ │ │ │ +00009d50: 7265 6c69 6573 206f 6e20 7468 6520 746f relies on the to │ │ │ │ +00009d60: 702d 6c65 7665 6c20 7265 6164 6572 2773 p-level reader's │ │ │ │ +00009d70: 2073 796d 626f 6c20 7265 6164 6572 2074 symbol reader t │ │ │ │ +00009d80: 6f0a 7265 6164 2074 6865 2073 796d 626f o.read the symbo │ │ │ │ +00009d90: 6c20 7468 6174 206d 616b 6573 2075 7020 l that makes up │ │ │ │ +00009da0: 7468 6520 6b65 7977 6f72 6420 6265 696e the keyword bein │ │ │ │ +00009db0: 6720 7265 6164 2e0a 0a20 2020 496e 2074 g read... In t │ │ │ │ +00009dc0: 6865 2063 7572 7265 6e74 2064 6573 6967 he current desig │ │ │ │ +00009dd0: 6e20 6f66 2047 7569 6c65 2d52 6561 6465 n of Guile-Reade │ │ │ │ +00009de0: 722c 2074 6869 7320 746f 6b65 6e20 6465 r, this token de │ │ │ │ +00009df0: 6c69 6d69 7465 7220 6973 7375 650a 6372 limiter issue.cr │ │ │ │ +00009e00: 6561 7465 7320 6120 6e75 6d62 6572 206f eates a number o │ │ │ │ +00009e10: 6620 7069 7466 616c 6c73 2077 6865 6e20 f pitfalls when │ │ │ │ +00009e20: 6f6e 6520 6973 2077 696c 6c69 6e67 2074 one is willing t │ │ │ │ +00009e30: 6f20 6368 616e 6765 2074 6865 2063 7572 o change the cur │ │ │ │ +00009e40: 7265 6e74 0a64 656c 696d 6974 6572 732e rent.delimiters. │ │ │ │ +00009e50: 2020 496e 2070 6172 7469 6375 6c61 722c In particular, │ │ │ │ +00009e60: 206f 6e65 2068 6173 2074 6f20 6265 2076 one has to be v │ │ │ │ +00009e70: 6572 7920 6361 7265 6675 6c20 6162 6f75 ery careful abou │ │ │ │ +00009e80: 7420 7573 696e 6720 5452 730a 7468 6174 t using TRs.that │ │ │ │ +00009e90: 2063 6f6e 7369 7374 656e 746c 7920 6173 consistently as │ │ │ │ +00009ea0: 7375 6d65 2074 6865 2073 616d 6520 746f sume the same to │ │ │ │ +00009eb0: 6b65 6e20 6465 6c69 6d69 7465 7273 2e0a ken delimiters.. │ │ │ │ +00009ec0: 0a20 2020 4120 2272 6561 6c22 206c 6578 . A "real" lex │ │ │ │ +00009ed0: 6572 2067 656e 6572 6174 6f72 2073 7563 er generator suc │ │ │ │ +00009ee0: 6820 6173 2044 616e 6e79 2044 7562 c3a9 h as Danny Dub.. │ │ │ │ +00009ef0: 2773 2053 494c 6578 2061 766f 6964 7320 's SILex avoids │ │ │ │ +00009f00: 7375 6368 0a69 7373 7565 7320 6265 6361 such.issues beca │ │ │ │ +00009f10: 7573 6520 6974 2061 6c6c 6f77 7320 7468 use it allows th │ │ │ │ +00009f20: 6520 6465 6669 6e69 7469 6f6e 206f 6620 e definition of │ │ │ │ +00009f30: 746f 6b65 6e73 2075 7369 6e67 2072 6567 tokens using reg │ │ │ │ +00009f40: 756c 6172 0a65 7870 7265 7373 696f 6e73 ular.expressions │ │ │ │ +00009f50: 2e20 2048 6f77 6576 6572 2c20 6974 7320 . However, its │ │ │ │ +00009f60: 7573 6167 6520 6d61 7920 6265 206c 6573 usage may be les │ │ │ │ +00009f70: 7320 7472 6976 6961 6c20 7468 616e 2074 s trivial than t │ │ │ │ +00009f80: 6861 7420 6f66 0a47 7569 6c65 2d52 6561 hat of.Guile-Rea │ │ │ │ +00009f90: 6465 722e 0a0a 1f0a 4669 6c65 3a20 6775 der.....File: gu │ │ │ │ +00009fa0: 696c 652d 7265 6164 6572 2e69 6e66 6f2c ile-reader.info, │ │ │ │ +00009fb0: 2020 4e6f 6465 3a20 4f76 6572 6c61 7070 Node: Overlapp │ │ │ │ +00009fc0: 696e 6720 546f 6b65 6e20 5265 6164 6572 ing Token Reader │ │ │ │ +00009fd0: 732c 2020 5072 6576 3a20 546f 6b65 6e20 s, Prev: Token │ │ │ │ +00009fe0: 4465 6c69 6d69 7465 7273 2c20 2055 703a Delimiters, Up: │ │ │ │ +00009ff0: 204c 696d 6974 6174 696f 6e73 0a0a 342e Limitations..4. │ │ │ │ +0000a000: 312e 352e 3220 4f76 6572 6c61 7070 696e 1.5.2 Overlappin │ │ │ │ +0000a010: 6720 546f 6b65 6e20 5265 6164 6572 730a g Token Readers. │ │ │ │ +0000a020: 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e ................ │ │ │ │ 0000a030: 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e 2e2e ................ │ │ │ │ -0000a040: 2e2e 2e2e 2e0a 0a41 7320 6361 6e20 6265 .......As can be │ │ │ │ -0000a050: 2073 6565 6e20 6672 6f6d 2074 6865 2064 seen from the d │ │ │ │ -0000a060: 6573 6372 6970 7469 6f6e 7320 6f66 2074 escriptions of t │ │ │ │ -0000a070: 6865 2073 7461 6e64 6172 6420 746f 6b65 he standard toke │ │ │ │ -0000a080: 6e20 7265 6164 6572 730a 282a 6e6f 7465 n readers.(*note │ │ │ │ -0000a090: 2054 6f6b 656e 2052 6561 6465 7220 4c69 Token Reader Li │ │ │ │ -0000a0a0: 6272 6172 793a 3a29 2c20 746f 6b65 6e20 brary::), token │ │ │ │ -0000a0b0: 7265 6164 6572 7320 736f 6d65 7469 6d65 readers sometime │ │ │ │ -0000a0c0: 7320 226f 7665 726c 6170 222c 2069 2e65 s "overlap", i.e │ │ │ │ -0000a0d0: 2e2c 0a74 6865 2073 6574 206f 6620 696e .,.the set of in │ │ │ │ -0000a0e0: 7075 7420 7374 7269 6e67 7320 7468 6579 put strings they │ │ │ │ -0000a0f0: 206d 6174 6368 206f 7665 726c 6170 2e20 match overlap. │ │ │ │ -0000a100: 2046 6f72 2069 6e73 7461 6e63 652c 2074 For instance, t │ │ │ │ -0000a110: 6865 0ae2 8098 626f 6f6c 6561 6ee2 8099 he....boolean... │ │ │ │ -0000a120: 2074 6f6b 656e 2072 6561 6465 7220 7368 token reader sh │ │ │ │ -0000a130: 6f75 6c64 206d 6174 6368 20e2 8098 2374 ould match ...#t │ │ │ │ -0000a140: e280 992c 20e2 8098 2354 e280 992c 20e2 ..., ...#T..., . │ │ │ │ -0000a150: 8098 2366 e280 9920 6f72 20e2 8098 2346 ..#f... or ...#F │ │ │ │ -0000a160: e280 992e 2020 486f 7765 7665 722c 0a74 .... However,.t │ │ │ │ -0000a170: 6865 20e2 8098 7372 6669 2d34 e280 9920 he ...srfi-4... │ │ │ │ -0000a180: 746f 6b65 6e20 7265 6164 6572 2061 6c73 token reader als │ │ │ │ -0000a190: 6f20 6e65 6564 7320 746f 206d 6174 6368 o needs to match │ │ │ │ -0000a1a0: 2066 6c6f 6174 696e 672d 706f 696e 7420 floating-point │ │ │ │ -0000a1b0: 6e75 6d65 7269 630a 7665 6374 6f72 7320 numeric.vectors │ │ │ │ -0000a1c0: 7375 6368 2061 7320 e280 9823 6633 3228 such as ...#f32( │ │ │ │ -0000a1d0: 312e 3020 322e 3020 332e 3029 e280 992e 1.0 2.0 3.0).... │ │ │ │ -0000a1e0: 2020 5369 6d69 6c61 726c 792c 2073 7472 Similarly, str │ │ │ │ -0000a1f0: 696e 6773 206c 696b 6520 e280 9831 e280 ings like ...1.. │ │ │ │ -0000a200: 9920 6172 652c 0a6c 6f67 6963 616c 6c79 . are,.logically │ │ │ │ -0000a210: 2c20 6861 6e64 6c65 6420 6279 2074 6865 , handled by the │ │ │ │ -0000a220: 20e2 8098 6775 696c 652d 6e75 6d62 6572 ...guile-number │ │ │ │ -0000a230: e280 9920 286f 7220 7369 6d69 6c61 7229 ... (or similar) │ │ │ │ -0000a240: 2074 6f6b 656e 2072 6561 6465 723b 0a68 token reader;.h │ │ │ │ -0000a250: 6f77 6576 6572 2c20 7369 6e63 6520 6120 owever, since a │ │ │ │ -0000a260: 7374 7269 6e67 206c 696b 6520 e280 9831 string like ...1 │ │ │ │ -0000a270: 2be2 8099 2073 686f 756c 6420 6265 2072 +... should be r │ │ │ │ -0000a280: 6563 6f67 6e69 7a65 6420 6173 2061 205f ecognized as a _ │ │ │ │ -0000a290: 7379 6d62 6f6c 5f2c 0a72 6174 6865 7220 symbol_,.rather │ │ │ │ -0000a2a0: 7468 616e 2061 206e 756d 6265 722c 2069 than a number, i │ │ │ │ -0000a2b0: 7420 6d75 7374 2074 6865 6e20 6265 2070 t must then be p │ │ │ │ -0000a2c0: 6173 7365 6420 746f 206f 6e65 206f 6620 assed to one of │ │ │ │ -0000a2d0: 7468 6520 7379 6d62 6f6c 2074 6f6b 656e the symbol token │ │ │ │ -0000a2e0: 0a72 6561 6465 7273 2e0a 0a20 2020 496e .readers... In │ │ │ │ -0000a2f0: 2074 686f 7365 2074 776f 2063 6173 6573 those two cases │ │ │ │ -0000a300: 2c20 7468 6520 696e 7075 7420 7365 7473 , the input sets │ │ │ │ -0000a310: 206f 6620 7468 6f73 6520 7477 6f20 746f of those two to │ │ │ │ -0000a320: 6b65 6e20 7265 6164 6572 730a 5f6f 7665 ken readers._ove │ │ │ │ -0000a330: 726c 6170 5f2e 2020 496e 206f 7264 6572 rlap_. In order │ │ │ │ -0000a340: 2066 6f72 2074 6865 2072 6573 756c 7469 for the resulti │ │ │ │ -0000a350: 6e67 2072 6561 6465 7220 746f 2077 6f72 ng reader to wor │ │ │ │ -0000a360: 6b20 6173 2065 7870 6563 7465 642c 2074 k as expected, t │ │ │ │ -0000a370: 6865 0a74 776f 206f 7665 726c 6170 7069 he.two overlappi │ │ │ │ -0000a380: 6e67 2074 6f6b 656e 2072 6561 6465 7273 ng token readers │ │ │ │ -0000a390: 206e 6565 6420 746f 2073 6f6d 6568 6f77 need to somehow │ │ │ │ -0000a3a0: 205f 636f 6f70 6572 6174 655f 2e20 2049 _cooperate_. I │ │ │ │ -0000a3b0: 6e20 7468 6520 6669 7273 740a 6578 616d n the first.exam │ │ │ │ -0000a3c0: 706c 652c 2074 6869 7320 6973 2061 6368 ple, this is ach │ │ │ │ -0000a3d0: 6965 7665 6420 6279 2068 6176 696e 6720 ieved by having │ │ │ │ -0000a3e0: 7468 6520 e280 9873 7266 692d 34e2 8099 the ...srfi-4... │ │ │ │ -0000a3f0: 2054 5220 7265 6164 2069 6e20 7374 7269 TR read in stri │ │ │ │ -0000a400: 6e67 730a 7374 6172 7469 6e67 2077 6974 ngs.starting wit │ │ │ │ -0000a410: 6820 e280 9823 66e2 8099 206f 7220 e280 h ...#f... or .. │ │ │ │ -0000a420: 9823 46e2 8099 2061 6e64 2070 6173 7369 .#F... and passi │ │ │ │ -0000a430: 6e67 2074 6865 6d20 746f 2074 6865 20e2 ng them to the . │ │ │ │ -0000a440: 8098 626f 6f6c 6561 6e2d 7372 6669 2d34 ..boolean-srfi-4 │ │ │ │ -0000a450: e280 9920 5452 0a69 6620 6e65 6564 2062 ... TR.if need b │ │ │ │ -0000a460: 652e 2020 496e 2074 6865 2073 6563 6f6e e. In the secon │ │ │ │ -0000a470: 6420 6361 7365 2c20 7468 6973 2069 7320 d case, this is │ │ │ │ -0000a480: 646f 6e65 2062 7920 6861 7669 6e67 206e done by having n │ │ │ │ -0000a490: 756d 6265 7220 5452 730a 2865 2e67 2e2c umber TRs.(e.g., │ │ │ │ -0000a4a0: 20e2 8098 6775 696c 652d 6e75 6d62 6572 ...guile-number │ │ │ │ -0000a4b0: e280 9929 2065 7870 6c69 6369 746c 7920 ...) explicitly │ │ │ │ -0000a4c0: 6368 6563 6b20 666f 7220 6e6f 6e2d 6469 check for non-di │ │ │ │ -0000a4d0: 6769 7420 6368 6172 6163 7465 7273 2061 git characters a │ │ │ │ -0000a4e0: 6e64 0a72 6574 7572 6e20 6120 7379 6d62 nd.return a symb │ │ │ │ -0000a4f0: 6f6c 2069 6e73 7465 6164 206f 6620 6120 ol instead of a │ │ │ │ -0000a500: 6e75 6d62 6572 2077 6865 6e20 6120 6e6f number when a no │ │ │ │ -0000a510: 6e2d 6469 6769 7420 6973 2065 6e63 6f75 n-digit is encou │ │ │ │ -0000a520: 6e74 6572 6564 2e0a 0a20 2020 4974 2073 ntered... It s │ │ │ │ -0000a530: 686f 756c 6420 6265 206f 6276 696f 7573 hould be obvious │ │ │ │ -0000a540: 2066 726f 6d20 7468 6573 6520 7477 6f20 from these two │ │ │ │ -0000a550: 6578 616d 706c 6573 2074 6861 7420 7468 examples that th │ │ │ │ -0000a560: 6973 206c 696d 6974 6174 696f 6e0a 696d is limitation.im │ │ │ │ -0000a570: 7065 6465 7320 6675 6c6c 2073 6570 6172 pedes full separ │ │ │ │ -0000a580: 6174 696f 6e20 6f66 2074 6865 2076 6172 ation of the var │ │ │ │ -0000a590: 696f 7573 2054 5273 2e20 2046 6f72 7475 ious TRs. Fortu │ │ │ │ -0000a5a0: 6e61 7465 6c79 2c20 7468 6572 6520 6172 nately, there ar │ │ │ │ -0000a5b0: 6520 6e6f 740a 736f 206d 616e 7920 6361 e not.so many ca │ │ │ │ -0000a5c0: 7365 7320 7768 6572 6520 7375 6368 206f ses where such o │ │ │ │ -0000a5d0: 7665 726c 6170 7069 6e67 206f 6363 7572 verlapping occur │ │ │ │ -0000a5e0: 7320 7768 656e 2069 6d70 6c65 6d65 6e74 s when implement │ │ │ │ -0000a5f0: 696e 6720 7265 6164 6572 730a 666f 7220 ing readers.for │ │ │ │ -0000a600: 5235 5253 2d6c 696b 6520 7379 6e74 6178 R5RS-like syntax │ │ │ │ -0000a610: 6573 2e20 2054 6865 2069 6d70 6c65 6d65 es. The impleme │ │ │ │ -0000a620: 6e74 6174 696f 6e20 6f66 0ae2 8098 6d61 ntation of....ma │ │ │ │ -0000a630: 6b65 2d61 6c74 6572 6e61 7465 2d67 7569 ke-alternate-gui │ │ │ │ -0000a640: 6c65 2d72 6561 6465 72e2 8099 2028 2a6e le-reader... (*n │ │ │ │ -0000a650: 6f74 6520 5265 6164 6572 204c 6962 7261 ote Reader Libra │ │ │ │ -0000a660: 7279 3a3a 2920 7368 6f77 7320 686f 7720 ry::) shows how │ │ │ │ -0000a670: 7375 6368 0a70 726f 626c 656d 7320 6861 such.problems ha │ │ │ │ -0000a680: 7665 2062 6565 6e20 776f 726b 6564 2061 ve been worked a │ │ │ │ -0000a690: 726f 756e 642e 0a0a 2020 204c 6578 6572 round... Lexer │ │ │ │ -0000a6a0: 2067 656e 6572 6174 6f72 7320 7375 6368 generators such │ │ │ │ -0000a6b0: 2061 7320 466c 6578 2028 6874 7470 3a2f as Flex (http:/ │ │ │ │ -0000a6c0: 2f77 7777 2e67 6e75 2e6f 7267 2f73 6f66 /www.gnu.org/sof │ │ │ │ -0000a6d0: 7477 6172 652f 666c 6578 2f29 2c0a 5349 tware/flex/),.SI │ │ │ │ -0000a6e0: 4c65 7820 2868 7474 703a 2f2f 7777 772e Lex (http://www. │ │ │ │ -0000a6f0: 6972 6f2e 756d 6f6e 7472 6561 6c2e 6361 iro.umontreal.ca │ │ │ │ -0000a700: 2f7e 6475 6265 2f29 2061 6e64 2042 6967 /~dube/) and Big │ │ │ │ -0000a710: 6c6f 6f27 7320 5247 4320 282a 6e6f 7465 loo's RGC (*note │ │ │ │ -0000a720: 0a42 6967 6c6f 6f27 7320 5247 433a 2028 .Bigloo's RGC: ( │ │ │ │ -0000a730: 6269 676c 6f6f 2952 6567 756c 6172 2050 bigloo)Regular P │ │ │ │ -0000a740: 6172 7369 6e67 2e29 206f 6276 696f 7573 arsing.) obvious │ │ │ │ -0000a750: 6c79 2064 6f20 6e6f 7420 6861 7665 2074 ly do not have t │ │ │ │ -0000a760: 6869 730a 7072 6f62 6c65 6d3a 2061 6c6c his.problem: all │ │ │ │ -0000a770: 2070 6f73 7369 626c 6520 2274 6f6b 656e possible "token │ │ │ │ -0000a780: 2220 7479 7065 7320 6172 6520 6465 6669 " types are defi │ │ │ │ -0000a790: 6e65 6420 7573 696e 6720 7265 6775 6c61 ned using regula │ │ │ │ -0000a7a0: 720a 6578 7072 6573 7369 6f6e 7320 616e r.expressions an │ │ │ │ -0000a7b0: 6420 7468 6520 7374 7269 6e67 2d68 616e d the string-han │ │ │ │ -0000a7c0: 646c 696e 6720 636f 6465 2028 652e 672e dling code (e.g. │ │ │ │ -0000a7d0: 2c20 636f 6465 2074 6861 7420 636f 6e76 , code that conv │ │ │ │ -0000a7e0: 6572 7473 2061 0a73 7472 696e 6720 696e erts a.string in │ │ │ │ -0000a7f0: 746f 2061 2053 6368 656d 6520 6e75 6d62 to a Scheme numb │ │ │ │ -0000a800: 6572 2920 6973 206f 6e6c 7920 696e 766f er) is only invo │ │ │ │ -0000a810: 6b65 6420 6f6e 6365 2061 2066 756c 6c20 ked once a full │ │ │ │ -0000a820: 6d61 7463 6869 6e67 2073 7472 696e 670a matching string. │ │ │ │ -0000a830: 6861 7320 6265 656e 2066 6f75 6e64 2e0a has been found.. │ │ │ │ -0000a840: 0a1f 0a46 696c 653a 2067 7569 6c65 2d72 ...File: guile-r │ │ │ │ -0000a850: 6561 6465 722e 696e 666f 2c20 204e 6f64 eader.info, Nod │ │ │ │ -0000a860: 653a 2052 6561 6465 7273 2c20 2050 7265 e: Readers, Pre │ │ │ │ -0000a870: 763a 2054 6f6b 656e 2052 6561 6465 7273 v: Token Readers │ │ │ │ -0000a880: 2c20 2055 703a 2041 5049 2052 6566 6572 , Up: API Refer │ │ │ │ -0000a890: 656e 6365 0a0a 342e 3220 5265 6164 6572 ence..4.2 Reader │ │ │ │ -0000a8a0: 730a 3d3d 3d3d 3d3d 3d3d 3d3d 3d0a 0a47 s.===========..G │ │ │ │ -0000a8b0: 7569 6c65 2d52 6561 6465 7220 6973 2061 uile-Reader is a │ │ │ │ -0000a8c0: 626f 7574 2064 6566 696e 696e 6720 7265 bout defining re │ │ │ │ -0000a8d0: 6164 6572 732e 2020 436f 6e74 696e 7569 aders. Continui │ │ │ │ -0000a8e0: 6e67 2074 6f20 7265 6164 2074 6869 7320 ng to read this │ │ │ │ -0000a8f0: 6d61 6e75 616c 0a77 6173 2064 6566 696e manual.was defin │ │ │ │ -0000a900: 6974 656c 7920 6120 676f 6f64 2069 6465 itely a good ide │ │ │ │ -0000a910: 6120 7369 6e63 6520 7765 2068 6176 6520 a since we have │ │ │ │ -0000a920: 6669 6e61 6c6c 7920 7265 6163 6865 6420 finally reached │ │ │ │ -0000a930: 7468 6520 706f 696e 7420 7768 6572 650a the point where. │ │ │ │ -0000a940: 7765 2077 696c 6c20 7374 6172 7420 7461 we will start ta │ │ │ │ -0000a950: 6c6b 696e 6720 6162 6f75 7420 686f 7720 lking about how │ │ │ │ -0000a960: 746f 2064 6566 696e 6520 6e65 7720 7265 to define new re │ │ │ │ -0000a970: 6164 6572 732e 0a0a 2a20 4d65 6e75 3a0a aders...* Menu:. │ │ │ │ -0000a980: 0a2a 2044 6566 696e 696e 6720 6120 4e65 .* Defining a Ne │ │ │ │ -0000a990: 7720 5265 6164 6572 3a3a 0a2a 2052 6561 w Reader::.* Rea │ │ │ │ -0000a9a0: 6465 7220 4c69 6272 6172 793a 3a0a 2a20 der Library::.* │ │ │ │ -0000a9b0: 436f 6d70 6174 6962 696c 6974 7920 616e Compatibility an │ │ │ │ -0000a9c0: 6420 436f 6e66 696e 656d 656e 743a 3a0a d Confinement::. │ │ │ │ -0000a9d0: 0a1f 0a46 696c 653a 2067 7569 6c65 2d72 ...File: guile-r │ │ │ │ -0000a9e0: 6561 6465 722e 696e 666f 2c20 204e 6f64 eader.info, Nod │ │ │ │ -0000a9f0: 653a 2044 6566 696e 696e 6720 6120 4e65 e: Defining a Ne │ │ │ │ -0000aa00: 7720 5265 6164 6572 2c20 204e 6578 743a w Reader, Next: │ │ │ │ -0000aa10: 2052 6561 6465 7220 4c69 6272 6172 792c Reader Library, │ │ │ │ -0000aa20: 2020 5072 6576 3a20 5265 6164 6572 732c Prev: Readers, │ │ │ │ -0000aa30: 2020 5570 3a20 5265 6164 6572 730a 0a34 Up: Readers..4 │ │ │ │ -0000aa40: 2e32 2e31 2044 6566 696e 696e 6720 6120 .2.1 Defining a │ │ │ │ -0000aa50: 4e65 7720 5265 6164 6572 0a2d 2d2d 2d2d New Reader.----- │ │ │ │ +0000a040: 2e0a 0a41 7320 6361 6e20 6265 2073 6565 ...As can be see │ │ │ │ +0000a050: 6e20 6672 6f6d 2074 6865 2064 6573 6372 n from the descr │ │ │ │ +0000a060: 6970 7469 6f6e 7320 6f66 2074 6865 2073 iptions of the s │ │ │ │ +0000a070: 7461 6e64 6172 6420 746f 6b65 6e20 7265 tandard token re │ │ │ │ +0000a080: 6164 6572 730a 282a 6e6f 7465 2054 6f6b aders.(*note Tok │ │ │ │ +0000a090: 656e 2052 6561 6465 7220 4c69 6272 6172 en Reader Librar │ │ │ │ +0000a0a0: 793a 3a29 2c20 746f 6b65 6e20 7265 6164 y::), token read │ │ │ │ +0000a0b0: 6572 7320 736f 6d65 7469 6d65 7320 226f ers sometimes "o │ │ │ │ +0000a0c0: 7665 726c 6170 222c 2069 2e65 2e2c 0a74 verlap", i.e.,.t │ │ │ │ +0000a0d0: 6865 2073 6574 206f 6620 696e 7075 7420 he set of input │ │ │ │ +0000a0e0: 7374 7269 6e67 7320 7468 6579 206d 6174 strings they mat │ │ │ │ +0000a0f0: 6368 206f 7665 726c 6170 2e20 2046 6f72 ch overlap. For │ │ │ │ +0000a100: 2069 6e73 7461 6e63 652c 2074 6865 0ae2 instance, the.. │ │ │ │ +0000a110: 8098 626f 6f6c 6561 6ee2 8099 2074 6f6b ..boolean... tok │ │ │ │ +0000a120: 656e 2072 6561 6465 7220 7368 6f75 6c64 en reader should │ │ │ │ +0000a130: 206d 6174 6368 20e2 8098 2374 e280 992c match ...#t..., │ │ │ │ +0000a140: 20e2 8098 2354 e280 992c 20e2 8098 2366 ...#T..., ...#f │ │ │ │ +0000a150: e280 9920 6f72 20e2 8098 2346 e280 992e ... or ...#F.... │ │ │ │ +0000a160: 2020 486f 7765 7665 722c 0a74 6865 20e2 However,.the . │ │ │ │ +0000a170: 8098 7372 6669 2d34 e280 9920 746f 6b65 ..srfi-4... toke │ │ │ │ +0000a180: 6e20 7265 6164 6572 2061 6c73 6f20 6e65 n reader also ne │ │ │ │ +0000a190: 6564 7320 746f 206d 6174 6368 2066 6c6f eds to match flo │ │ │ │ +0000a1a0: 6174 696e 672d 706f 696e 7420 6e75 6d65 ating-point nume │ │ │ │ +0000a1b0: 7269 630a 7665 6374 6f72 7320 7375 6368 ric.vectors such │ │ │ │ +0000a1c0: 2061 7320 e280 9823 6633 3228 312e 3020 as ...#f32(1.0 │ │ │ │ +0000a1d0: 322e 3020 332e 3029 e280 992e 2020 5369 2.0 3.0).... Si │ │ │ │ +0000a1e0: 6d69 6c61 726c 792c 2073 7472 696e 6773 milarly, strings │ │ │ │ +0000a1f0: 206c 696b 6520 e280 9831 e280 9920 6172 like ...1... ar │ │ │ │ +0000a200: 652c 0a6c 6f67 6963 616c 6c79 2c20 6861 e,.logically, ha │ │ │ │ +0000a210: 6e64 6c65 6420 6279 2074 6865 20e2 8098 ndled by the ... │ │ │ │ +0000a220: 6775 696c 652d 6e75 6d62 6572 e280 9920 guile-number... │ │ │ │ +0000a230: 286f 7220 7369 6d69 6c61 7229 2074 6f6b (or similar) tok │ │ │ │ +0000a240: 656e 2072 6561 6465 723b 0a68 6f77 6576 en reader;.howev │ │ │ │ +0000a250: 6572 2c20 7369 6e63 6520 6120 7374 7269 er, since a stri │ │ │ │ +0000a260: 6e67 206c 696b 6520 e280 9831 2be2 8099 ng like ...1+... │ │ │ │ +0000a270: 2073 686f 756c 6420 6265 2072 6563 6f67 should be recog │ │ │ │ +0000a280: 6e69 7a65 6420 6173 2061 205f 7379 6d62 nized as a _symb │ │ │ │ +0000a290: 6f6c 5f2c 0a72 6174 6865 7220 7468 616e ol_,.rather than │ │ │ │ +0000a2a0: 2061 206e 756d 6265 722c 2069 7420 6d75 a number, it mu │ │ │ │ +0000a2b0: 7374 2074 6865 6e20 6265 2070 6173 7365 st then be passe │ │ │ │ +0000a2c0: 6420 746f 206f 6e65 206f 6620 7468 6520 d to one of the │ │ │ │ +0000a2d0: 7379 6d62 6f6c 2074 6f6b 656e 0a72 6561 symbol token.rea │ │ │ │ +0000a2e0: 6465 7273 2e0a 0a20 2020 496e 2074 686f ders... In tho │ │ │ │ +0000a2f0: 7365 2074 776f 2063 6173 6573 2c20 7468 se two cases, th │ │ │ │ +0000a300: 6520 696e 7075 7420 7365 7473 206f 6620 e input sets of │ │ │ │ +0000a310: 7468 6f73 6520 7477 6f20 746f 6b65 6e20 those two token │ │ │ │ +0000a320: 7265 6164 6572 730a 5f6f 7665 726c 6170 readers._overlap │ │ │ │ +0000a330: 5f2e 2020 496e 206f 7264 6572 2066 6f72 _. In order for │ │ │ │ +0000a340: 2074 6865 2072 6573 756c 7469 6e67 2072 the resulting r │ │ │ │ +0000a350: 6561 6465 7220 746f 2077 6f72 6b20 6173 eader to work as │ │ │ │ +0000a360: 2065 7870 6563 7465 642c 2074 6865 0a74 expected, the.t │ │ │ │ +0000a370: 776f 206f 7665 726c 6170 7069 6e67 2074 wo overlapping t │ │ │ │ +0000a380: 6f6b 656e 2072 6561 6465 7273 206e 6565 oken readers nee │ │ │ │ +0000a390: 6420 746f 2073 6f6d 6568 6f77 205f 636f d to somehow _co │ │ │ │ +0000a3a0: 6f70 6572 6174 655f 2e20 2049 6e20 7468 operate_. In th │ │ │ │ +0000a3b0: 6520 6669 7273 740a 6578 616d 706c 652c e first.example, │ │ │ │ +0000a3c0: 2074 6869 7320 6973 2061 6368 6965 7665 this is achieve │ │ │ │ +0000a3d0: 6420 6279 2068 6176 696e 6720 7468 6520 d by having the │ │ │ │ +0000a3e0: e280 9873 7266 692d 34e2 8099 2054 5220 ...srfi-4... TR │ │ │ │ +0000a3f0: 7265 6164 2069 6e20 7374 7269 6e67 730a read in strings. │ │ │ │ +0000a400: 7374 6172 7469 6e67 2077 6974 6820 e280 starting with .. │ │ │ │ +0000a410: 9823 66e2 8099 206f 7220 e280 9823 46e2 .#f... or ...#F. │ │ │ │ +0000a420: 8099 2061 6e64 2070 6173 7369 6e67 2074 .. and passing t │ │ │ │ +0000a430: 6865 6d20 746f 2074 6865 20e2 8098 626f hem to the ...bo │ │ │ │ +0000a440: 6f6c 6561 6e2d 7372 6669 2d34 e280 9920 olean-srfi-4... │ │ │ │ +0000a450: 5452 0a69 6620 6e65 6564 2062 652e 2020 TR.if need be. │ │ │ │ +0000a460: 496e 2074 6865 2073 6563 6f6e 6420 6361 In the second ca │ │ │ │ +0000a470: 7365 2c20 7468 6973 2069 7320 646f 6e65 se, this is done │ │ │ │ +0000a480: 2062 7920 6861 7669 6e67 206e 756d 6265 by having numbe │ │ │ │ +0000a490: 7220 5452 730a 2865 2e67 2e2c 20e2 8098 r TRs.(e.g., ... │ │ │ │ +0000a4a0: 6775 696c 652d 6e75 6d62 6572 e280 9929 guile-number...) │ │ │ │ +0000a4b0: 2065 7870 6c69 6369 746c 7920 6368 6563 explicitly chec │ │ │ │ +0000a4c0: 6b20 666f 7220 6e6f 6e2d 6469 6769 7420 k for non-digit │ │ │ │ +0000a4d0: 6368 6172 6163 7465 7273 2061 6e64 0a72 characters and.r │ │ │ │ +0000a4e0: 6574 7572 6e20 6120 7379 6d62 6f6c 2069 eturn a symbol i │ │ │ │ +0000a4f0: 6e73 7465 6164 206f 6620 6120 6e75 6d62 nstead of a numb │ │ │ │ +0000a500: 6572 2077 6865 6e20 6120 6e6f 6e2d 6469 er when a non-di │ │ │ │ +0000a510: 6769 7420 6973 2065 6e63 6f75 6e74 6572 git is encounter │ │ │ │ +0000a520: 6564 2e0a 0a20 2020 4974 2073 686f 756c ed... It shoul │ │ │ │ +0000a530: 6420 6265 206f 6276 696f 7573 2066 726f d be obvious fro │ │ │ │ +0000a540: 6d20 7468 6573 6520 7477 6f20 6578 616d m these two exam │ │ │ │ +0000a550: 706c 6573 2074 6861 7420 7468 6973 206c ples that this l │ │ │ │ +0000a560: 696d 6974 6174 696f 6e0a 696d 7065 6465 imitation.impede │ │ │ │ +0000a570: 7320 6675 6c6c 2073 6570 6172 6174 696f s full separatio │ │ │ │ +0000a580: 6e20 6f66 2074 6865 2076 6172 696f 7573 n of the various │ │ │ │ +0000a590: 2054 5273 2e20 2046 6f72 7475 6e61 7465 TRs. Fortunate │ │ │ │ +0000a5a0: 6c79 2c20 7468 6572 6520 6172 6520 6e6f ly, there are no │ │ │ │ +0000a5b0: 740a 736f 206d 616e 7920 6361 7365 7320 t.so many cases │ │ │ │ +0000a5c0: 7768 6572 6520 7375 6368 206f 7665 726c where such overl │ │ │ │ +0000a5d0: 6170 7069 6e67 206f 6363 7572 7320 7768 apping occurs wh │ │ │ │ +0000a5e0: 656e 2069 6d70 6c65 6d65 6e74 696e 6720 en implementing │ │ │ │ +0000a5f0: 7265 6164 6572 730a 666f 7220 5235 5253 readers.for R5RS │ │ │ │ +0000a600: 2d6c 696b 6520 7379 6e74 6178 6573 2e20 -like syntaxes. │ │ │ │ +0000a610: 2054 6865 2069 6d70 6c65 6d65 6e74 6174 The implementat │ │ │ │ +0000a620: 696f 6e20 6f66 0ae2 8098 6d61 6b65 2d61 ion of....make-a │ │ │ │ +0000a630: 6c74 6572 6e61 7465 2d67 7569 6c65 2d72 lternate-guile-r │ │ │ │ +0000a640: 6561 6465 72e2 8099 2028 2a6e 6f74 6520 eader... (*note │ │ │ │ +0000a650: 5265 6164 6572 204c 6962 7261 7279 3a3a Reader Library:: │ │ │ │ +0000a660: 2920 7368 6f77 7320 686f 7720 7375 6368 ) shows how such │ │ │ │ +0000a670: 0a70 726f 626c 656d 7320 6861 7665 2062 .problems have b │ │ │ │ +0000a680: 6565 6e20 776f 726b 6564 2061 726f 756e een worked aroun │ │ │ │ +0000a690: 642e 0a0a 2020 204c 6578 6572 2067 656e d... Lexer gen │ │ │ │ +0000a6a0: 6572 6174 6f72 7320 7375 6368 2061 7320 erators such as │ │ │ │ +0000a6b0: 466c 6578 2028 6874 7470 3a2f 2f77 7777 Flex (http://www │ │ │ │ +0000a6c0: 2e67 6e75 2e6f 7267 2f73 6f66 7477 6172 .gnu.org/softwar │ │ │ │ +0000a6d0: 652f 666c 6578 2f29 2c0a 5349 4c65 7820 e/flex/),.SILex │ │ │ │ +0000a6e0: 2868 7474 703a 2f2f 7777 772e 6972 6f2e (http://www.iro. │ │ │ │ +0000a6f0: 756d 6f6e 7472 6561 6c2e 6361 2f7e 6475 umontreal.ca/~du │ │ │ │ +0000a700: 6265 2f29 2061 6e64 2042 6967 6c6f 6f27 be/) and Bigloo' │ │ │ │ +0000a710: 7320 5247 4320 282a 6e6f 7465 0a42 6967 s RGC (*note.Big │ │ │ │ +0000a720: 6c6f 6f27 7320 5247 433a 2028 6269 676c loo's RGC: (bigl │ │ │ │ +0000a730: 6f6f 2952 6567 756c 6172 2050 6172 7369 oo)Regular Parsi │ │ │ │ +0000a740: 6e67 2e29 206f 6276 696f 7573 6c79 2064 ng.) obviously d │ │ │ │ +0000a750: 6f20 6e6f 7420 6861 7665 2074 6869 730a o not have this. │ │ │ │ +0000a760: 7072 6f62 6c65 6d3a 2061 6c6c 2070 6f73 problem: all pos │ │ │ │ +0000a770: 7369 626c 6520 2274 6f6b 656e 2220 7479 sible "token" ty │ │ │ │ +0000a780: 7065 7320 6172 6520 6465 6669 6e65 6420 pes are defined │ │ │ │ +0000a790: 7573 696e 6720 7265 6775 6c61 720a 6578 using regular.ex │ │ │ │ +0000a7a0: 7072 6573 7369 6f6e 7320 616e 6420 7468 pressions and th │ │ │ │ +0000a7b0: 6520 7374 7269 6e67 2d68 616e 646c 696e e string-handlin │ │ │ │ +0000a7c0: 6720 636f 6465 2028 652e 672e 2c20 636f g code (e.g., co │ │ │ │ +0000a7d0: 6465 2074 6861 7420 636f 6e76 6572 7473 de that converts │ │ │ │ +0000a7e0: 2061 0a73 7472 696e 6720 696e 746f 2061 a.string into a │ │ │ │ +0000a7f0: 2053 6368 656d 6520 6e75 6d62 6572 2920 Scheme number) │ │ │ │ +0000a800: 6973 206f 6e6c 7920 696e 766f 6b65 6420 is only invoked │ │ │ │ +0000a810: 6f6e 6365 2061 2066 756c 6c20 6d61 7463 once a full matc │ │ │ │ +0000a820: 6869 6e67 2073 7472 696e 670a 6861 7320 hing string.has │ │ │ │ +0000a830: 6265 656e 2066 6f75 6e64 2e0a 0a1f 0a46 been found.....F │ │ │ │ +0000a840: 696c 653a 2067 7569 6c65 2d72 6561 6465 ile: guile-reade │ │ │ │ +0000a850: 722e 696e 666f 2c20 204e 6f64 653a 2052 r.info, Node: R │ │ │ │ +0000a860: 6561 6465 7273 2c20 2050 7265 763a 2054 eaders, Prev: T │ │ │ │ +0000a870: 6f6b 656e 2052 6561 6465 7273 2c20 2055 oken Readers, U │ │ │ │ +0000a880: 703a 2041 5049 2052 6566 6572 656e 6365 p: API Reference │ │ │ │ +0000a890: 0a0a 342e 3220 5265 6164 6572 730a 3d3d ..4.2 Readers.== │ │ │ │ +0000a8a0: 3d3d 3d3d 3d3d 3d3d 3d0a 0a47 7569 6c65 =========..Guile │ │ │ │ +0000a8b0: 2d52 6561 6465 7220 6973 2061 626f 7574 -Reader is about │ │ │ │ +0000a8c0: 2064 6566 696e 696e 6720 7265 6164 6572 defining reader │ │ │ │ +0000a8d0: 732e 2020 436f 6e74 696e 7569 6e67 2074 s. Continuing t │ │ │ │ +0000a8e0: 6f20 7265 6164 2074 6869 7320 6d61 6e75 o read this manu │ │ │ │ +0000a8f0: 616c 0a77 6173 2064 6566 696e 6974 656c al.was definitel │ │ │ │ +0000a900: 7920 6120 676f 6f64 2069 6465 6120 7369 y a good idea si │ │ │ │ +0000a910: 6e63 6520 7765 2068 6176 6520 6669 6e61 nce we have fina │ │ │ │ +0000a920: 6c6c 7920 7265 6163 6865 6420 7468 6520 lly reached the │ │ │ │ +0000a930: 706f 696e 7420 7768 6572 650a 7765 2077 point where.we w │ │ │ │ +0000a940: 696c 6c20 7374 6172 7420 7461 6c6b 696e ill start talkin │ │ │ │ +0000a950: 6720 6162 6f75 7420 686f 7720 746f 2064 g about how to d │ │ │ │ +0000a960: 6566 696e 6520 6e65 7720 7265 6164 6572 efine new reader │ │ │ │ +0000a970: 732e 0a0a 2a20 4d65 6e75 3a0a 0a2a 2044 s...* Menu:..* D │ │ │ │ +0000a980: 6566 696e 696e 6720 6120 4e65 7720 5265 efining a New Re │ │ │ │ +0000a990: 6164 6572 3a3a 0a2a 2052 6561 6465 7220 ader::.* Reader │ │ │ │ +0000a9a0: 4c69 6272 6172 793a 3a0a 2a20 436f 6d70 Library::.* Comp │ │ │ │ +0000a9b0: 6174 6962 696c 6974 7920 616e 6420 436f atibility and Co │ │ │ │ +0000a9c0: 6e66 696e 656d 656e 743a 3a0a 0a1f 0a46 nfinement::....F │ │ │ │ +0000a9d0: 696c 653a 2067 7569 6c65 2d72 6561 6465 ile: guile-reade │ │ │ │ +0000a9e0: 722e 696e 666f 2c20 204e 6f64 653a 2044 r.info, Node: D │ │ │ │ +0000a9f0: 6566 696e 696e 6720 6120 4e65 7720 5265 efining a New Re │ │ │ │ +0000aa00: 6164 6572 2c20 204e 6578 743a 2052 6561 ader, Next: Rea │ │ │ │ +0000aa10: 6465 7220 4c69 6272 6172 792c 2020 5072 der Library, Pr │ │ │ │ +0000aa20: 6576 3a20 5265 6164 6572 732c 2020 5570 ev: Readers, Up │ │ │ │ +0000aa30: 3a20 5265 6164 6572 730a 0a34 2e32 2e31 : Readers..4.2.1 │ │ │ │ +0000aa40: 2044 6566 696e 696e 6720 6120 4e65 7720 Defining a New │ │ │ │ +0000aa50: 5265 6164 6572 0a2d 2d2d 2d2d 2d2d 2d2d Reader.--------- │ │ │ │ 0000aa60: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -0000aa70: 2d2d 2d2d 2d2d 0a0a 526f 7567 686c 792c ------..Roughly, │ │ │ │ -0000aa80: 2061 2072 6561 6465 7220 6973 206e 6f20 a reader is no │ │ │ │ -0000aa90: 6d6f 7265 2074 6861 6e20 6120 6c6f 6f70 more than a loop │ │ │ │ -0000aaa0: 2077 6869 6368 2072 6561 6473 2063 6861 which reads cha │ │ │ │ -0000aab0: 7261 6374 6572 7320 6672 6f6d 2061 0a67 racters from a.g │ │ │ │ -0000aac0: 6976 656e 2070 6f72 742c 2061 6e64 2064 iven port, and d │ │ │ │ -0000aad0: 6973 7061 7463 6865 7320 6675 7274 6865 ispatches furthe │ │ │ │ -0000aae0: 7220 696e 7465 7270 7265 7461 7469 6f6e r interpretation │ │ │ │ -0000aaf0: 2074 6f20 6d6f 7265 2073 7065 6369 6669 to more specifi │ │ │ │ -0000ab00: 630a 7072 6f63 6564 7572 6573 2e20 2057 c.procedures. W │ │ │ │ -0000ab10: 7269 7474 656e 2069 6e20 5363 6865 6d65 ritten in Scheme │ │ │ │ -0000ab20: 2c20 6974 2063 6f75 6c64 2072 6573 656d , it could resem │ │ │ │ -0000ab30: 626c 6520 736f 6d65 7468 696e 6720 6c69 ble something li │ │ │ │ -0000ab40: 6b65 3a0a 0a20 2020 2020 2864 6566 696e ke:.. (defin │ │ │ │ -0000ab50: 6520 286d 792d 7265 6164 6572 2070 6f72 e (my-reader por │ │ │ │ -0000ab60: 7429 0a20 2020 2020 2020 286c 6574 206c t). (let l │ │ │ │ -0000ab70: 6f6f 7020 2828 7265 7375 6c74 202a 756e oop ((result *un │ │ │ │ -0000ab80: 7370 6563 6966 6965 642a 2929 0a20 2020 specified*)). │ │ │ │ -0000ab90: 2020 2020 2020 286c 6574 2028 2874 6865 (let ((the │ │ │ │ -0000aba0: 2d63 6861 7220 2867 6574 6320 706f 7274 -char (getc port │ │ │ │ -0000abb0: 2929 290a 2020 2020 2020 2020 2020 2028 ))). ( │ │ │ │ -0000abc0: 6361 7365 2074 6865 2d63 6861 720a 2020 case the-char. │ │ │ │ -0000abd0: 2020 2020 2020 2020 2020 2028 2823 5c28 ((#\( │ │ │ │ -0000abe0: 2920 2028 6d79 2d73 6578 702d 746f 6b65 ) (my-sexp-toke │ │ │ │ -0000abf0: 6e2d 7265 6164 6572 2074 6865 2d63 6861 n-reader the-cha │ │ │ │ -0000ac00: 7220 706f 7274 206d 792d 7265 6164 6572 r port my-reader │ │ │ │ -0000ac10: 2929 290a 2020 2020 2020 2020 2020 2020 ))). │ │ │ │ -0000ac20: 2028 2823 5c30 2023 5c31 2023 5c32 2023 ((#\0 #\1 #\2 # │ │ │ │ -0000ac30: 5c33 2023 5c34 2023 5c35 2023 5c36 2023 \3 #\4 #\5 #\6 # │ │ │ │ -0000ac40: 5c37 2023 5c38 2023 5c39 290a 2020 2020 \7 #\8 #\9). │ │ │ │ -0000ac50: 2020 2020 2020 2020 2020 286d 792d 6e75 (my-nu │ │ │ │ -0000ac60: 6d62 6572 2d74 6f6b 656e 2d72 6561 6465 mber-token-reade │ │ │ │ -0000ac70: 7220 7468 652d 6368 6172 2070 6f72 7420 r the-char port │ │ │ │ -0000ac80: 6d79 2d72 6561 6465 7229 290a 2020 2020 my-reader)). │ │ │ │ -0000ac90: 2020 2020 2020 2020 2028 656c 7365 0a20 (else. │ │ │ │ -0000aca0: 2020 2020 2020 2020 2020 2020 2028 6572 (er │ │ │ │ -0000acb0: 726f 7220 2275 6e65 7870 6563 7465 6420 ror "unexpected │ │ │ │ -0000acc0: 6368 6172 6163 7465 7222 2074 6865 2d63 character" the-c │ │ │ │ -0000acd0: 6861 7229 2929 2929 290a 0a20 2020 5573 har)))))).. Us │ │ │ │ -0000ace0: 696e 6720 4775 696c 652d 5265 6164 6572 ing Guile-Reader │ │ │ │ -0000acf0: 2c20 7468 6973 2069 7320 646f 6e65 2073 , this is done s │ │ │ │ -0000ad00: 696d 706c 7920 6279 2070 726f 7669 6469 imply by providi │ │ │ │ -0000ad10: 6e67 2061 206c 6973 7420 6f66 2074 6f6b ng a list of tok │ │ │ │ -0000ad20: 656e 0a72 6561 6465 7273 2074 6f20 7468 en.readers to th │ │ │ │ -0000ad30: 6520 e280 986d 616b 652d 7265 6164 6572 e ...make-reader │ │ │ │ -0000ad40: e280 9920 7072 6f63 6564 7572 652c 2061 ... procedure, a │ │ │ │ -0000ad50: 7320 696e 2074 6865 2066 6f6c 6c6f 7769 s in the followi │ │ │ │ -0000ad60: 6e67 2065 7861 6d70 6c65 3a0a 0a20 2020 ng example:.. │ │ │ │ -0000ad70: 2020 2864 6566 696e 6520 6d79 2d72 6561 (define my-rea │ │ │ │ -0000ad80: 6465 720a 2020 2020 2020 2028 6d61 6b65 der. (make │ │ │ │ -0000ad90: 2d72 6561 6465 7220 286c 6973 7420 286d -reader (list (m │ │ │ │ -0000ada0: 616b 652d 746f 6b65 6e2d 7265 6164 6572 ake-token-reader │ │ │ │ -0000adb0: 2023 5c28 206d 792d 7365 7870 2d74 6f6b #\( my-sexp-tok │ │ │ │ -0000adc0: 656e 2d72 6561 6465 7229 0a20 2020 2020 en-reader). │ │ │ │ +0000aa70: 2d2d 0a0a 526f 7567 686c 792c 2061 2072 --..Roughly, a r │ │ │ │ +0000aa80: 6561 6465 7220 6973 206e 6f20 6d6f 7265 eader is no more │ │ │ │ +0000aa90: 2074 6861 6e20 6120 6c6f 6f70 2077 6869 than a loop whi │ │ │ │ +0000aaa0: 6368 2072 6561 6473 2063 6861 7261 6374 ch reads charact │ │ │ │ +0000aab0: 6572 7320 6672 6f6d 2061 0a67 6976 656e ers from a.given │ │ │ │ +0000aac0: 2070 6f72 742c 2061 6e64 2064 6973 7061 port, and dispa │ │ │ │ +0000aad0: 7463 6865 7320 6675 7274 6865 7220 696e tches further in │ │ │ │ +0000aae0: 7465 7270 7265 7461 7469 6f6e 2074 6f20 terpretation to │ │ │ │ +0000aaf0: 6d6f 7265 2073 7065 6369 6669 630a 7072 more specific.pr │ │ │ │ +0000ab00: 6f63 6564 7572 6573 2e20 2057 7269 7474 ocedures. Writt │ │ │ │ +0000ab10: 656e 2069 6e20 5363 6865 6d65 2c20 6974 en in Scheme, it │ │ │ │ +0000ab20: 2063 6f75 6c64 2072 6573 656d 626c 6520 could resemble │ │ │ │ +0000ab30: 736f 6d65 7468 696e 6720 6c69 6b65 3a0a something like:. │ │ │ │ +0000ab40: 0a20 2020 2020 2864 6566 696e 6520 286d . (define (m │ │ │ │ +0000ab50: 792d 7265 6164 6572 2070 6f72 7429 0a20 y-reader port). │ │ │ │ +0000ab60: 2020 2020 2020 286c 6574 206c 6f6f 7020 (let loop │ │ │ │ +0000ab70: 2828 7265 7375 6c74 202a 756e 7370 6563 ((result *unspec │ │ │ │ +0000ab80: 6966 6965 642a 2929 0a20 2020 2020 2020 ified*)). │ │ │ │ +0000ab90: 2020 286c 6574 2028 2874 6865 2d63 6861 (let ((the-cha │ │ │ │ +0000aba0: 7220 2867 6574 6320 706f 7274 2929 290a r (getc port))). │ │ │ │ +0000abb0: 2020 2020 2020 2020 2020 2028 6361 7365 (case │ │ │ │ +0000abc0: 2074 6865 2d63 6861 720a 2020 2020 2020 the-char. │ │ │ │ +0000abd0: 2020 2020 2020 2028 2823 5c28 2920 2028 ((#\() ( │ │ │ │ +0000abe0: 6d79 2d73 6578 702d 746f 6b65 6e2d 7265 my-sexp-token-re │ │ │ │ +0000abf0: 6164 6572 2074 6865 2d63 6861 7220 706f ader the-char po │ │ │ │ +0000ac00: 7274 206d 792d 7265 6164 6572 2929 290a rt my-reader))). │ │ │ │ +0000ac10: 2020 2020 2020 2020 2020 2020 2028 2823 ((# │ │ │ │ +0000ac20: 5c30 2023 5c31 2023 5c32 2023 5c33 2023 \0 #\1 #\2 #\3 # │ │ │ │ +0000ac30: 5c34 2023 5c35 2023 5c36 2023 5c37 2023 \4 #\5 #\6 #\7 # │ │ │ │ +0000ac40: 5c38 2023 5c39 290a 2020 2020 2020 2020 \8 #\9). │ │ │ │ +0000ac50: 2020 2020 2020 286d 792d 6e75 6d62 6572 (my-number │ │ │ │ +0000ac60: 2d74 6f6b 656e 2d72 6561 6465 7220 7468 -token-reader th │ │ │ │ +0000ac70: 652d 6368 6172 2070 6f72 7420 6d79 2d72 e-char port my-r │ │ │ │ +0000ac80: 6561 6465 7229 290a 2020 2020 2020 2020 eader)). │ │ │ │ +0000ac90: 2020 2020 2028 656c 7365 0a20 2020 2020 (else. │ │ │ │ +0000aca0: 2020 2020 2020 2020 2028 6572 726f 7220 (error │ │ │ │ +0000acb0: 2275 6e65 7870 6563 7465 6420 6368 6172 "unexpected char │ │ │ │ +0000acc0: 6163 7465 7222 2074 6865 2d63 6861 7229 acter" the-char) │ │ │ │ +0000acd0: 2929 2929 290a 0a20 2020 5573 696e 6720 ))))).. Using │ │ │ │ +0000ace0: 4775 696c 652d 5265 6164 6572 2c20 7468 Guile-Reader, th │ │ │ │ +0000acf0: 6973 2069 7320 646f 6e65 2073 696d 706c is is done simpl │ │ │ │ +0000ad00: 7920 6279 2070 726f 7669 6469 6e67 2061 y by providing a │ │ │ │ +0000ad10: 206c 6973 7420 6f66 2074 6f6b 656e 0a72 list of token.r │ │ │ │ +0000ad20: 6561 6465 7273 2074 6f20 7468 6520 e280 eaders to the .. │ │ │ │ +0000ad30: 986d 616b 652d 7265 6164 6572 e280 9920 .make-reader... │ │ │ │ +0000ad40: 7072 6f63 6564 7572 652c 2061 7320 696e procedure, as in │ │ │ │ +0000ad50: 2074 6865 2066 6f6c 6c6f 7769 6e67 2065 the following e │ │ │ │ +0000ad60: 7861 6d70 6c65 3a0a 0a20 2020 2020 2864 xample:.. (d │ │ │ │ +0000ad70: 6566 696e 6520 6d79 2d72 6561 6465 720a efine my-reader. │ │ │ │ +0000ad80: 2020 2020 2020 2028 6d61 6b65 2d72 6561 (make-rea │ │ │ │ +0000ad90: 6465 7220 286c 6973 7420 286d 616b 652d der (list (make- │ │ │ │ +0000ada0: 746f 6b65 6e2d 7265 6164 6572 2023 5c28 token-reader #\( │ │ │ │ +0000adb0: 206d 792d 7365 7870 2d74 6f6b 656e 2d72 my-sexp-token-r │ │ │ │ +0000adc0: 6561 6465 7229 0a20 2020 2020 2020 2020 eader). │ │ │ │ 0000add0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ade0: 2020 2020 2028 6d61 6b65 2d74 6f6b 656e (make-token │ │ │ │ -0000adf0: 2d72 6561 6465 7220 2728 235c 3020 2e20 -reader '(#\0 . │ │ │ │ -0000ae00: 235c 3929 0a20 2020 2020 2020 2020 2020 #\9). │ │ │ │ +0000ade0: 2028 6d61 6b65 2d74 6f6b 656e 2d72 6561 (make-token-rea │ │ │ │ +0000adf0: 6465 7220 2728 235c 3020 2e20 235c 3929 der '(#\0 . #\9) │ │ │ │ +0000ae00: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 0000ae10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ae20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ae30: 2020 6d79 2d6e 756d 6265 722d 746f 6b65 my-number-toke │ │ │ │ -0000ae40: 6e2d 7265 6164 6572 2929 2929 0a0a 2020 n-reader)))).. │ │ │ │ -0000ae50: 2048 6f77 6576 6572 2c20 7468 6520 7072 However, the pr │ │ │ │ -0000ae60: 6f63 6564 7572 6520 7265 7475 726e 6564 ocedure returned │ │ │ │ -0000ae70: 2062 7920 e280 986d 616b 652d 7265 6164 by ...make-read │ │ │ │ -0000ae80: 6572 e280 9920 6973 2064 6966 6665 7265 er... is differe │ │ │ │ -0000ae90: 6e74 2066 726f 6d0a 7468 6520 6861 6e64 nt from.the hand │ │ │ │ -0000aea0: 2d77 7269 7474 656e 206f 6e65 2061 626f -written one abo │ │ │ │ -0000aeb0: 7665 2069 6e20 7468 6174 2069 6e20 7461 ve in that in ta │ │ │ │ -0000aec0: 6b65 7320 7477 6f20 6164 6469 7469 6f6e kes two addition │ │ │ │ -0000aed0: 616c 206f 7074 696f 6e61 6c0a 6172 6775 al optional.argu │ │ │ │ -0000aee0: 6d65 6e74 7320 7768 6963 6820 6d61 6b65 ments which make │ │ │ │ -0000aef0: 7320 6974 206c 6f6f 6b20 6c69 6b65 2074 s it look like t │ │ │ │ -0000af00: 6869 733a 0a0a 2020 2020 2028 6465 6669 his:.. (defi │ │ │ │ -0000af10: 6e65 2028 6d79 2d72 6561 6465 7220 706f ne (my-reader po │ │ │ │ -0000af20: 7274 2066 6175 6c74 732d 6361 6c6c 6572 rt faults-caller │ │ │ │ -0000af30: 2d68 616e 646c 6564 3f20 746f 702d 6c65 -handled? top-le │ │ │ │ -0000af40: 7665 6c2d 7265 6164 6572 290a 2020 2020 vel-reader). │ │ │ │ -0000af50: 2020 2028 6c65 7420 6c6f 6f70 2028 2874 (let loop ((t │ │ │ │ -0000af60: 6865 2d63 6861 7220 2867 6574 6320 706f he-char (getc po │ │ │ │ -0000af70: 7274 2929 290a 2020 2020 2020 2020 2028 rt))). ( │ │ │ │ -0000af80: 6361 7365 2074 6865 2d63 6861 720a 2020 case the-char. │ │ │ │ -0000af90: 2020 2020 2020 2020 202e 2e2e 0a20 2020 .... │ │ │ │ -0000afa0: 2020 2020 2020 2020 2865 6c73 650a 2020 (else. │ │ │ │ -0000afb0: 2020 2020 2020 2020 2020 2028 6966 2028 (if ( │ │ │ │ -0000afc0: 6e6f 7420 6661 756c 7473 2d63 616c 6c65 not faults-calle │ │ │ │ -0000afd0: 722d 6861 6e64 6c65 643f 290a 2020 2020 r-handled?). │ │ │ │ -0000afe0: 2020 2020 2020 2020 2020 2020 2028 6572 (er │ │ │ │ -0000aff0: 726f 7220 2275 6e65 7870 6563 7465 6420 ror "unexpected │ │ │ │ -0000b000: 6368 6172 6163 7465 7222 2074 6865 2d63 character" the-c │ │ │ │ -0000b010: 6861 7229 0a20 2020 2020 2020 2020 2020 har). │ │ │ │ -0000b020: 2020 2020 2020 2875 6e67 6574 6320 7468 (ungetc th │ │ │ │ -0000b030: 652d 6368 6172 2920 3b3b 2061 6e64 2072 e-char) ;; and r │ │ │ │ -0000b040: 6574 7572 6e20 2a75 6e73 7065 6369 6669 eturn *unspecifi │ │ │ │ -0000b050: 6564 2a0a 2020 2020 2020 2020 2020 2020 ed*. │ │ │ │ -0000b060: 2020 2020 2029 2929 2929 0a0a 2020 2054 ))))).. T │ │ │ │ -0000b070: 6865 7265 666f 7265 2c20 6279 2064 6566 herefore, by def │ │ │ │ -0000b080: 6175 6c74 2c20 e280 986d 792d 7265 6164 ault, ...my-read │ │ │ │ -0000b090: 6572 e280 9920 7769 6c6c 2072 6169 7365 er... will raise │ │ │ │ -0000b0a0: 2061 6e20 6572 726f 7220 6173 2073 6f6f an error as soo │ │ │ │ -0000b0b0: 6e20 6173 2069 740a 7265 6164 7320 6120 n as it.reads a │ │ │ │ -0000b0c0: 6368 6172 6163 7465 7220 7468 6174 2069 character that i │ │ │ │ -0000b0d0: 7420 646f 6573 206e 6f74 206b 6e6f 7720 t does not know │ │ │ │ -0000b0e0: 686f 7720 746f 2068 616e 646c 652e 2020 how to handle. │ │ │ │ -0000b0f0: 486f 7765 7665 722c 2069 6620 7468 650a However, if the. │ │ │ │ -0000b100: 6361 6c6c 6572 2070 6173 7365 7320 e280 caller passes .. │ │ │ │ -0000b110: 9823 74e2 8099 2061 7320 6974 7320 e280 .#t... as its .. │ │ │ │ -0000b120: 9866 6175 6c74 732d 6361 6c6c 6572 2d68 .faults-caller-h │ │ │ │ -0000b130: 616e 646c 6564 3fe2 8099 2061 7267 756d andled?... argum │ │ │ │ -0000b140: 656e 742c 2074 6865 6e0a e280 986d 792d ent, then....my- │ │ │ │ -0000b150: 7265 6164 6572 e280 9920 6973 2065 7870 reader... is exp │ │ │ │ -0000b160: 6563 7465 6420 746f 2022 756e 6765 7422 ected to "unget" │ │ │ │ -0000b170: 2074 6865 2066 6175 6c74 7920 6368 6172 the faulty char │ │ │ │ -0000b180: 6163 7465 7220 616e 6420 7265 7475 726e acter and return │ │ │ │ -0000b190: 0ae2 8098 2a75 6e73 7065 6369 6669 6564 ....*unspecified │ │ │ │ -0000b1a0: 2ae2 8099 2c20 7468 7573 2061 6c6c 6f77 *..., thus allow │ │ │ │ -0000b1b0: 696e 6720 7468 6520 6361 6c6c 6572 2074 ing the caller t │ │ │ │ -0000b1c0: 6f20 6861 6e64 6c65 2074 6865 2073 6974 o handle the sit │ │ │ │ -0000b1d0: 7561 7469 6f6e 2e0a 0a20 2020 5468 6973 uation... This │ │ │ │ -0000b1e0: 2069 7320 7573 6566 756c 2c20 666f 7220 is useful, for │ │ │ │ -0000b1f0: 696e 7374 616e 6365 2c20 696e 2074 6865 instance, in the │ │ │ │ -0000b200: 2053 2d65 7870 2074 6f6b 656e 2072 6561 S-exp token rea │ │ │ │ -0000b210: 6465 7220 6578 616d 706c 653a 2074 6865 der example: the │ │ │ │ -0000b220: 0a53 2d65 7870 2074 6f6b 656e 2072 6561 .S-exp token rea │ │ │ │ -0000b230: 6465 7220 6e65 6564 7320 746f 2063 616c der needs to cal │ │ │ │ -0000b240: 6c20 6974 7320 6361 6c6c 696e 6720 7265 l its calling re │ │ │ │ -0000b250: 6164 6572 2069 6e20 6f72 6465 7220 746f ader in order to │ │ │ │ -0000b260: 2072 6561 6420 7468 650a 636f 6d70 6f6e read the.compon │ │ │ │ -0000b270: 656e 7473 2062 6574 7765 656e 2074 6865 ents between the │ │ │ │ -0000b280: 206f 7065 6e69 6e67 2061 6e64 2063 6c6f opening and clo │ │ │ │ -0000b290: 7369 6e67 2062 7261 636b 6574 733b 2068 sing brackets; h │ │ │ │ -0000b2a0: 6f77 6576 6572 2c20 7468 650a 6361 6c6c owever, the.call │ │ │ │ -0000b2b0: 696e 6720 7265 6164 6572 206d 6179 2062 ing reader may b │ │ │ │ -0000b2c0: 6520 756e 6162 6c65 2074 6f20 6861 6e64 e unable to hand │ │ │ │ -0000b2d0: 6c65 2074 6865 20e2 8098 235c 29e2 8099 le the ...#\)... │ │ │ │ -0000b2e0: 2063 6861 7261 6374 6572 2073 6f20 7468 character so th │ │ │ │ -0000b2f0: 6520 532d 6578 700a 746f 6b65 6e20 7265 e S-exp.token re │ │ │ │ -0000b300: 6164 6572 2068 6173 2074 6f20 6861 6e64 ader has to hand │ │ │ │ -0000b310: 6c65 2069 7420 6279 2069 7473 656c 6620 le it by itself │ │ │ │ -0000b320: 616e 6420 6e65 6564 7320 746f 2074 656c and needs to tel │ │ │ │ -0000b330: 6c20 6974 2074 6f20 7468 650a 7265 6164 l it to the.read │ │ │ │ -0000b340: 6572 2e0a 0a20 2d2d 2053 6368 656d 6520 er... -- Scheme │ │ │ │ -0000b350: 5072 6f63 6564 7572 653a 2025 7265 6164 Procedure: %read │ │ │ │ -0000b360: 6572 2d73 7461 6e64 6172 642d 6661 756c er-standard-faul │ │ │ │ -0000b370: 742d 6861 6e64 6c65 7220 6368 7220 706f t-handler chr po │ │ │ │ -0000b380: 7274 2072 6561 6465 720a 202d 2d20 4320 rt reader. -- C │ │ │ │ -0000b390: 4675 6e63 7469 6f6e 3a20 7363 6d5f 7265 Function: scm_re │ │ │ │ -0000b3a0: 6164 6572 5f73 7461 6e64 6172 645f 6661 ader_standard_fa │ │ │ │ -0000b3b0: 756c 745f 6861 6e64 6c65 7220 2853 434d ult_handler (SCM │ │ │ │ -0000b3c0: 2063 6872 2c20 5343 4d20 706f 7274 2c0a chr, SCM port,. │ │ │ │ -0000b3d0: 2020 2020 2020 2020 2020 5343 4d20 7265 SCM re │ │ │ │ -0000b3e0: 6164 6572 290a 2020 2020 2054 6872 6f77 ader). Throw │ │ │ │ -0000b3f0: 2061 20e2 8098 7265 6164 2d65 7272 6f72 a ...read-error │ │ │ │ -0000b400: e280 9920 6578 6365 7074 696f 6e20 696e ... exception in │ │ │ │ -0000b410: 6469 6361 7469 6e67 2074 6861 7420 6368 dicating that ch │ │ │ │ -0000b420: 6172 6163 7465 7220 4348 5220 7761 730a aracter CHR was. │ │ │ │ -0000b430: 2020 2020 2072 6561 6420 6672 6f6d 2050 read from P │ │ │ │ -0000b440: 4f52 5420 616e 6420 636f 756c 6420 6e6f ORT and could no │ │ │ │ -0000b450: 7420 6265 2068 616e 646c 6564 2062 7920 t be handled by │ │ │ │ -0000b460: 5245 4144 4552 2e0a 0a20 2d2d 2053 6368 READER... -- Sch │ │ │ │ -0000b470: 656d 6520 5072 6f63 6564 7572 653a 206d eme Procedure: m │ │ │ │ -0000b480: 616b 652d 7265 6164 6572 2074 6f6b 656e ake-reader token │ │ │ │ -0000b490: 2d72 6561 6465 7273 205b 6661 756c 742d -readers [fault- │ │ │ │ -0000b4a0: 6861 6e64 6c65 722d 7072 6f63 0a20 2020 handler-proc. │ │ │ │ -0000b4b0: 2020 2020 2020 205b 666c 6167 732e 2e2e [flags... │ │ │ │ -0000b4c0: 5d5d 0a20 2d2d 2043 2046 756e 6374 696f ]]. -- C Functio │ │ │ │ -0000b4d0: 6e3a 2073 636d 5f6d 616b 655f 7265 6164 n: scm_make_read │ │ │ │ -0000b4e0: 6572 2028 5343 4d20 746f 6b65 6e5f 7265 er (SCM token_re │ │ │ │ -0000b4f0: 6164 6572 732c 2053 434d 0a20 2020 2020 aders, SCM. │ │ │ │ -0000b500: 2020 2020 2066 6175 6c74 5f68 616e 646c fault_handl │ │ │ │ -0000b510: 6572 5f70 726f 632c 2053 434d 2066 6c61 er_proc, SCM fla │ │ │ │ -0000b520: 6773 290a 2020 2020 2043 7265 6174 6520 gs). Create │ │ │ │ -0000b530: 6120 7265 6164 6572 206d 6164 6520 6f66 a reader made of │ │ │ │ -0000b540: 2074 6865 2074 6f6b 656e 2072 6561 6465 the token reade │ │ │ │ -0000b550: 7273 206c 6973 7465 6420 696e 2054 4f4b rs listed in TOK │ │ │ │ -0000b560: 454e 5f52 4541 4445 5253 2e0a 2020 2020 EN_READERS.. │ │ │ │ -0000b570: 2054 4f4b 454e 5f52 4541 4445 5253 2073 TOKEN_READERS s │ │ │ │ -0000b580: 686f 756c 6420 6265 2061 206c 6973 7420 hould be a list │ │ │ │ -0000b590: 6f66 2074 6f6b 656e 2072 6561 6465 7273 of token readers │ │ │ │ -0000b5a0: 2072 6574 7572 6e65 6420 6279 0a20 2020 returned by. │ │ │ │ -0000b5b0: 2020 e280 986d 616b 652d 746f 6b65 6e2d ...make-token- │ │ │ │ -0000b5c0: 7265 6164 6572 e280 9920 6f72 20e2 8098 reader... or ... │ │ │ │ -0000b5d0: 7374 616e 6461 7264 2d74 6f6b 656e 2d72 standard-token-r │ │ │ │ -0000b5e0: 6561 6465 72e2 8099 2066 6f72 2069 6e73 eader... for ins │ │ │ │ -0000b5f0: 7461 6e63 652e 2020 5468 650a 2020 2020 tance. The. │ │ │ │ -0000b600: 2046 4155 4c54 5f48 414e 444c 4552 5f50 FAULT_HANDLER_P │ │ │ │ -0000b610: 524f 4320 6172 6775 6d65 6e74 2069 7320 ROC argument is │ │ │ │ -0000b620: 6f70 7469 6f6e 616c 2061 6e64 206d 6179 optional and may │ │ │ │ -0000b630: 2062 6520 6120 7468 7265 652d 6172 6775 be a three-argu │ │ │ │ -0000b640: 6d65 6e74 0a20 2020 2020 7072 6f63 6564 ment. proced │ │ │ │ -0000b650: 7572 6520 746f 2063 616c 6c20 7768 656e ure to call when │ │ │ │ -0000b660: 2061 6e20 756e 6578 7065 6374 6564 2063 an unexpected c │ │ │ │ -0000b670: 6861 7261 6374 6572 2069 7320 7265 6164 haracter is read │ │ │ │ -0000b680: 2e20 2057 6865 6e0a 2020 2020 2046 4155 . When. FAU │ │ │ │ -0000b690: 4c54 5f48 414e 444c 4552 5f50 524f 4320 LT_HANDLER_PROC │ │ │ │ -0000b6a0: 6973 2069 6e76 6f6b 6564 2c20 6974 2069 is invoked, it i │ │ │ │ -0000b6b0: 7320 7061 7373 6564 2074 6865 2066 6175 s passed the fau │ │ │ │ -0000b6c0: 6c74 7920 6368 6172 6163 7465 722c 0a20 lty character,. │ │ │ │ -0000b6d0: 2020 2020 696e 7075 7420 706f 7274 2c20 input port, │ │ │ │ -0000b6e0: 616e 6420 7265 6164 6572 3b20 6974 7320 and reader; its │ │ │ │ -0000b6f0: 7265 7475 726e 2076 616c 7565 2c20 6966 return value, if │ │ │ │ -0000b700: 2061 6e79 2c20 6973 2074 6865 6e20 7265 any, is then re │ │ │ │ -0000b710: 7475 726e 6564 0a20 2020 2020 6279 2074 turned. by t │ │ │ │ -0000b720: 6865 2072 6561 6465 722e 2020 4966 2046 he reader. If F │ │ │ │ -0000b730: 4155 4c54 5f48 414e 444c 4552 5f50 524f AULT_HANDLER_PRO │ │ │ │ -0000b740: 4320 6973 206e 6f74 2073 7065 6369 6669 C is not specifi │ │ │ │ -0000b750: 6564 2c20 7468 656e 0a20 2020 2020 e280 ed, then. .. │ │ │ │ -0000b760: 9825 7265 6164 6572 2d73 7461 6e64 6172 .%reader-standar │ │ │ │ -0000b770: 642d 6661 756c 742d 6861 6e64 6c65 72e2 d-fault-handler. │ │ │ │ -0000b780: 8099 2069 7320 7573 6564 2e20 2046 4c41 .. is used. FLA │ │ │ │ -0000b790: 4753 2069 7320 6120 7265 7374 2061 7267 GS is a rest arg │ │ │ │ -0000b7a0: 756d 656e 740a 2020 2020 2077 6869 6368 ument. which │ │ │ │ -0000b7b0: 206d 6179 2063 6f6e 7461 696e 2061 206c may contain a l │ │ │ │ -0000b7c0: 6973 7420 6f66 2073 796d 626f 6c73 2072 ist of symbols r │ │ │ │ -0000b7d0: 6570 7265 7365 6e74 696e 6720 7265 6164 epresenting read │ │ │ │ -0000b7e0: 6572 2063 6f6d 7069 6c61 7469 6f6e 0a20 er compilation. │ │ │ │ -0000b7f0: 2020 2020 666c 6167 732e 0a0a 2020 2043 flags... C │ │ │ │ -0000b800: 7572 7265 6e74 6c79 2c20 7468 6520 666c urrently, the fl │ │ │ │ -0000b810: 6167 7320 7468 6174 206d 6179 2062 6520 ags that may be │ │ │ │ -0000b820: 7061 7373 6564 2074 6f20 e280 986d 616b passed to ...mak │ │ │ │ -0000b830: 652d 7265 6164 6572 e280 9920 6172 6520 e-reader... are │ │ │ │ -0000b840: 7468 650a 666f 6c6c 6f77 696e 673a 0a0a the.following:.. │ │ │ │ -0000b850: 2020 20e2 80a2 20e2 8098 7265 6164 6572 ... ...reader │ │ │ │ -0000b860: 2f72 6563 6f72 642d 706f 7369 7469 6f6e /record-position │ │ │ │ -0000b870: 73e2 8099 2077 696c 6c20 7969 656c 6420 s... will yield │ │ │ │ -0000b880: 6120 7265 6164 6572 2074 6861 7420 7265 a reader that re │ │ │ │ -0000b890: 636f 7264 7320 7468 650a 2020 2020 2070 cords the. p │ │ │ │ -0000b8a0: 6f73 6974 696f 6e20 6f66 2074 6865 2065 osition of the e │ │ │ │ -0000b8b0: 7870 7265 7373 696f 6e20 7265 6164 2c20 xpression read, │ │ │ │ -0000b8c0: 7768 6963 6820 6973 206d 6f73 746c 7920 which is mostly │ │ │ │ -0000b8d0: 7573 6566 756c 2066 6f72 0a20 2020 2020 useful for. │ │ │ │ -0000b8e0: 6465 6275 6767 696e 6720 7075 7270 6f73 debugging purpos │ │ │ │ -0000b8f0: 6573 3b20 7468 6973 2069 6e66 6f72 6d61 es; this informa │ │ │ │ -0000b900: 7469 6f6e 206d 6179 2074 6865 6e20 6265 tion may then be │ │ │ │ -0000b910: 2061 6363 6573 7365 6420 7669 610a 2020 accessed via. │ │ │ │ -0000b920: 2020 2073 6f75 7263 6520 7072 6f70 6572 source proper │ │ │ │ -0000b930: 7469 6573 2028 2a6e 6f74 6520 736f 7572 ties (*note sour │ │ │ │ -0000b940: 6365 2070 726f 7065 7274 6965 733a 2028 ce properties: ( │ │ │ │ -0000b950: 6775 696c 6529 5072 6f63 6564 7572 650a guile)Procedure. │ │ │ │ -0000b960: 2020 2020 2050 726f 7065 7274 6965 732e Properties. │ │ │ │ -0000b970: 292e 0a0a 2020 20e2 80a2 20e2 8098 7265 )... ... ...re │ │ │ │ -0000b980: 6164 6572 2f6c 6f77 6572 2d63 6173 65e2 ader/lower-case. │ │ │ │ -0000b990: 8099 2077 696c 6c20 6861 7665 2074 6865 .. will have the │ │ │ │ -0000b9a0: 2079 6965 6c64 6564 2072 6561 6465 7220 yielded reader │ │ │ │ -0000b9b0: 636f 6e76 6572 7420 746f 0a20 2020 2020 convert to. │ │ │ │ -0000b9c0: 6c6f 7765 722d 6361 7365 2061 6c6c 2074 lower-case all t │ │ │ │ -0000b9d0: 6865 206c 6574 7465 7273 2074 6861 7420 he letters that │ │ │ │ -0000b9e0: 6974 2072 6561 6473 3b20 6e6f 7465 2074 it reads; note t │ │ │ │ -0000b9f0: 6861 7420 7468 6973 2069 7320 6e6f 740a hat this is not. │ │ │ │ -0000ba00: 2020 2020 2073 7566 6669 6369 656e 7420 sufficient │ │ │ │ -0000ba10: 746f 2069 6d70 6c65 6d65 6e74 2073 796d to implement sym │ │ │ │ -0000ba20: 626f 6c20 6361 7365 2d69 6e73 656e 7369 bol case-insensi │ │ │ │ -0000ba30: 7469 7669 7479 2061 7320 7368 6f77 6e20 tivity as shown │ │ │ │ -0000ba40: 696e 202a 6e6f 7465 0a20 2020 2020 2867 in *note. (g │ │ │ │ -0000ba50: 7569 6c65 2952 6561 6465 7220 6f70 7469 uile)Reader opti │ │ │ │ -0000ba60: 6f6e 733a 3a2e 2020 466f 7220 7468 6973 ons::. For this │ │ │ │ -0000ba70: 2c20 7468 6520 746f 6b65 6e20 7265 6164 , the token read │ │ │ │ -0000ba80: 6572 2873 2920 7468 6174 2072 6561 640a er(s) that read. │ │ │ │ -0000ba90: 2020 2020 2073 796d 626f 6c73 206d 7573 symbols mus │ │ │ │ -0000baa0: 7420 616c 736f 2063 6f6e 7665 7274 2061 t also convert a │ │ │ │ -0000bab0: 6c6c 2073 7562 7365 7175 656e 7420 6368 ll subsequent ch │ │ │ │ -0000bac0: 6172 6163 7465 7273 2074 6f20 6c6f 7765 aracters to lowe │ │ │ │ -0000bad0: 722d 6361 7365 2e0a 0a20 2020 e280 a220 r-case... ... │ │ │ │ -0000bae0: e280 9872 6561 6465 722f 7570 7065 722d ...reader/upper- │ │ │ │ -0000baf0: 6361 7365 e280 9920 7769 6c6c 2068 6176 case... will hav │ │ │ │ -0000bb00: 6520 7468 6520 7969 656c 6465 6420 7265 e the yielded re │ │ │ │ -0000bb10: 6164 6572 2063 6f6e 7665 7274 2074 6f0a ader convert to. │ │ │ │ -0000bb20: 2020 2020 2075 7070 6572 2d63 6173 6520 upper-case │ │ │ │ -0000bb30: 616c 6c20 7468 6520 6c65 7474 6572 7320 all the letters │ │ │ │ -0000bb40: 7468 6174 2069 7420 7265 6164 733b 2061 that it reads; a │ │ │ │ -0000bb50: 6761 696e 2c20 7468 6174 2069 7320 6e6f gain, that is no │ │ │ │ -0000bb60: 740a 2020 2020 2073 7566 6669 6369 656e t. sufficien │ │ │ │ -0000bb70: 7420 746f 2069 6d70 6c65 6d65 6e74 2063 t to implement c │ │ │ │ -0000bb80: 6173 652d 696e 7365 6e73 6974 6976 6974 ase-insensitivit │ │ │ │ -0000bb90: 792e 0a0a 2020 20e2 80a2 20e2 8098 7265 y... ... ...re │ │ │ │ -0000bba0: 6164 6572 2f64 6562 7567 e280 9920 6361 ader/debug... ca │ │ │ │ -0000bbb0: 7573 6573 2074 6865 2067 656e 6572 6174 uses the generat │ │ │ │ -0000bbc0: 6564 2072 6561 6465 7220 746f 2070 726f ed reader to pro │ │ │ │ -0000bbd0: 6475 6365 2064 6562 7567 6769 6e67 0a20 duce debugging. │ │ │ │ -0000bbe0: 2020 2020 6f75 7470 7574 2e0a 0a1f 0a46 output.....F │ │ │ │ -0000bbf0: 696c 653a 2067 7569 6c65 2d72 6561 6465 ile: guile-reade │ │ │ │ -0000bc00: 722e 696e 666f 2c20 204e 6f64 653a 2052 r.info, Node: R │ │ │ │ -0000bc10: 6561 6465 7220 4c69 6272 6172 792c 2020 eader Library, │ │ │ │ -0000bc20: 4e65 7874 3a20 436f 6d70 6174 6962 696c Next: Compatibil │ │ │ │ -0000bc30: 6974 7920 616e 6420 436f 6e66 696e 656d ity and Confinem │ │ │ │ -0000bc40: 656e 742c 2020 5072 6576 3a20 4465 6669 ent, Prev: Defi │ │ │ │ -0000bc50: 6e69 6e67 2061 204e 6577 2052 6561 6465 ning a New Reade │ │ │ │ -0000bc60: 722c 2020 5570 3a20 5265 6164 6572 730a r, Up: Readers. │ │ │ │ -0000bc70: 0a34 2e32 2e32 2052 6561 6465 7220 4c69 .4.2.2 Reader Li │ │ │ │ -0000bc80: 6272 6172 790a 2d2d 2d2d 2d2d 2d2d 2d2d brary.---------- │ │ │ │ -0000bc90: 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 5468 6520 ----------..The │ │ │ │ -0000bca0: e280 9828 7379 7374 656d 2072 6561 6465 ...(system reade │ │ │ │ -0000bcb0: 7229 e280 9920 6d6f 6475 6c65 2065 7870 r)... module exp │ │ │ │ -0000bcc0: 6f72 7473 2074 6865 20e2 8098 6465 6661 orts the ...defa │ │ │ │ -0000bcd0: 756c 742d 7265 6164 6572 e280 9920 7072 ult-reader... pr │ │ │ │ -0000bce0: 6f63 6564 7572 650a 7768 6963 6820 7265 ocedure.which re │ │ │ │ -0000bcf0: 7475 726e 7320 6120 7265 6164 6572 2065 turns a reader e │ │ │ │ -0000bd00: 7175 6976 616c 656e 7420 746f 2047 7569 quivalent to Gui │ │ │ │ -0000bd10: 6c65 2773 2062 7569 6c74 2d69 6e20 6465 le's built-in de │ │ │ │ -0000bd20: 6661 756c 7420 7265 6164 6572 0a6d 6164 fault reader.mad │ │ │ │ -0000bd30: 6520 6f66 2072 652d 7573 6162 6c65 2074 e of re-usable t │ │ │ │ -0000bd40: 6f6b 656e 2072 6561 6465 7273 2077 7269 oken readers wri │ │ │ │ -0000bd50: 7474 656e 2069 6e20 4320 282a 6e6f 7465 tten in C (*note │ │ │ │ -0000bd60: 2054 6f6b 656e 2052 6561 6465 720a 4c69 Token Reader.Li │ │ │ │ -0000bd70: 6272 6172 793a 3a29 2e0a 0a20 2d2d 2053 brary::)... -- S │ │ │ │ -0000bd80: 6368 656d 6520 5072 6f63 6564 7572 653a cheme Procedure: │ │ │ │ -0000bd90: 2064 6566 6175 6c74 2d73 6861 7270 2d72 default-sharp-r │ │ │ │ -0000bda0: 6561 6465 722d 746f 6b65 6e2d 7265 6164 eader-token-read │ │ │ │ -0000bdb0: 6572 730a 202d 2d20 4320 4675 6e63 7469 ers. -- C Functi │ │ │ │ -0000bdc0: 6f6e 3a20 7363 6d5f 6465 6661 756c 745f on: scm_default_ │ │ │ │ -0000bdd0: 7368 6172 705f 7265 6164 6572 5f74 6f6b sharp_reader_tok │ │ │ │ -0000bde0: 656e 5f72 6561 6465 7273 2028 766f 6964 en_readers (void │ │ │ │ -0000bdf0: 290a 2020 2020 2052 6574 7572 6e20 7468 ). Return th │ │ │ │ -0000be00: 6520 6c69 7374 206f 6620 746f 6b65 6e20 e list of token │ │ │ │ -0000be10: 7265 6164 6572 7320 7468 6174 2063 6f6d readers that com │ │ │ │ -0000be20: 7072 6973 6520 4775 696c 6527 7320 6465 prise Guile's de │ │ │ │ -0000be30: 6661 756c 740a 2020 2020 2072 6561 6465 fault. reade │ │ │ │ -0000be40: 7220 666f 7220 7468 6520 e280 9823 e280 r for the ...#.. │ │ │ │ -0000be50: 9920 6368 6172 6163 7465 722e 0a0a 202d . character... - │ │ │ │ -0000be60: 2d20 5363 6865 6d65 2050 726f 6365 6475 - Scheme Procedu │ │ │ │ -0000be70: 7265 3a20 6465 6661 756c 742d 7265 6164 re: default-read │ │ │ │ -0000be80: 6572 2d74 6f6b 656e 2d72 6561 6465 7273 er-token-readers │ │ │ │ -0000be90: 0a20 2d2d 2043 2046 756e 6374 696f 6e3a . -- C Function: │ │ │ │ -0000bea0: 2073 636d 5f64 6566 6175 6c74 5f72 6561 scm_default_rea │ │ │ │ -0000beb0: 6465 725f 746f 6b65 6e5f 7265 6164 6572 der_token_reader │ │ │ │ -0000bec0: 7320 2876 6f69 6429 0a20 2020 2020 5265 s (void). Re │ │ │ │ -0000bed0: 7475 726e 2074 6865 206c 6973 7420 6f66 turn the list of │ │ │ │ -0000bee0: 2074 6f6b 656e 2072 6561 6465 7273 2074 token readers t │ │ │ │ -0000bef0: 6861 7420 636f 6d70 7269 7365 2047 7569 hat comprise Gui │ │ │ │ -0000bf00: 6c65 2773 2064 6566 6175 6c74 0a20 2020 le's default. │ │ │ │ -0000bf10: 2020 7265 6164 6572 2e0a 0a20 2d2d 2053 reader... -- S │ │ │ │ -0000bf20: 6368 656d 6520 5072 6f63 6564 7572 653a cheme Procedure: │ │ │ │ -0000bf30: 2064 6566 6175 6c74 2d73 6861 7270 2d72 default-sharp-r │ │ │ │ -0000bf40: 6561 6465 720a 202d 2d20 4320 4675 6e63 eader. -- C Func │ │ │ │ -0000bf50: 7469 6f6e 3a20 7363 6d5f 6465 6661 756c tion: scm_defaul │ │ │ │ -0000bf60: 745f 7368 6172 705f 7265 6164 6572 2028 t_sharp_reader ( │ │ │ │ -0000bf70: 766f 6964 290a 2020 2020 2052 6574 7572 void). Retur │ │ │ │ -0000bf80: 6e73 2047 7569 6c65 2773 2064 6566 6175 ns Guile's defau │ │ │ │ -0000bf90: 6c74 2072 6561 6465 7220 666f 7220 7468 lt reader for th │ │ │ │ -0000bfa0: 6520 e280 9823 e280 9920 6368 6172 6163 e ...#... charac │ │ │ │ -0000bfb0: 7465 722e 0a0a 2020 2041 6464 6974 696f ter... Additio │ │ │ │ -0000bfc0: 6e61 6c6c 792c 2074 6865 20e2 8098 2873 nally, the ...(s │ │ │ │ -0000bfd0: 7973 7465 6d20 7265 6164 6572 206c 6962 ystem reader lib │ │ │ │ -0000bfe0: 7261 7279 29e2 8099 206d 6f64 756c 6520 rary)... module │ │ │ │ -0000bff0: 6578 706f 7274 7320 6120 6e75 6d62 6572 exports a number │ │ │ │ -0000c000: 0a6f 6620 7072 6f63 6564 7572 6573 2074 .of procedures t │ │ │ │ -0000c010: 6861 7420 6561 7365 2074 6865 2072 652d hat ease the re- │ │ │ │ -0000c020: 7573 6520 6f66 2072 6561 6465 7273 2e0a use of readers.. │ │ │ │ -0000c030: 0a20 2d2d 2053 6368 656d 6520 5072 6f63 . -- Scheme Proc │ │ │ │ -0000c040: 6564 7572 653a 206d 616b 652d 6775 696c edure: make-guil │ │ │ │ -0000c050: 652d 7265 6164 6572 205b 6661 756c 742d e-reader [fault- │ │ │ │ -0000c060: 6861 6e64 6c65 7220 5b66 6c61 6773 2e2e handler [flags.. │ │ │ │ -0000c070: 2e5d 5d0a 202d 2d20 4320 4675 6e63 7469 .]]. -- C Functi │ │ │ │ -0000c080: 6f6e 3a20 7363 6d5f 6d61 6b65 5f67 7569 on: scm_make_gui │ │ │ │ -0000c090: 6c65 5f72 6561 6465 7220 2853 434d 2066 le_reader (SCM f │ │ │ │ -0000c0a0: 6175 6c74 5f68 616e 646c 6572 2c20 5343 ault_handler, SC │ │ │ │ -0000c0b0: 4d20 666c 6167 7329 0a20 2020 2020 4d61 M flags). Ma │ │ │ │ -0000c0c0: 6b65 2061 6e64 2072 6574 7572 6e20 6120 ke and return a │ │ │ │ -0000c0d0: 6e65 7720 7265 6164 6572 2063 6f6d 7061 new reader compa │ │ │ │ -0000c0e0: 7469 626c 6520 7769 7468 2047 7569 6c65 tible with Guile │ │ │ │ -0000c0f0: 2032 2e30 2773 20e2 8098 7265 6164 e280 2.0's ...read.. │ │ │ │ -0000c100: 992c 0a20 2020 2020 7769 7468 2069 7473 .,. with its │ │ │ │ -0000c110: 2064 6566 6175 6c74 2073 6574 7469 6e67 default setting │ │ │ │ -0000c120: 732e 2020 5468 6973 2066 756e 6374 696f s. This functio │ │ │ │ -0000c130: 6e20 6361 6c6c 7320 e280 986d 616b 652d n calls ...make- │ │ │ │ -0000c140: 7265 6164 6572 e280 9920 7769 7468 0a20 reader... with. │ │ │ │ -0000c150: 2020 2020 464c 4147 532e 2020 4e6f 7465 FLAGS. Note │ │ │ │ -0000c160: 2074 6861 7420 7468 6520 7368 6172 7020 that the sharp │ │ │ │ -0000c170: 7265 6164 6572 2075 7365 6420 6279 2074 reader used by t │ │ │ │ -0000c180: 6865 2072 6574 7572 6e65 6420 7265 6164 he returned read │ │ │ │ -0000c190: 6572 2069 730a 2020 2020 2061 6c73 6f20 er is. also │ │ │ │ -0000c1a0: 696e 7374 616e 7469 6174 6564 2075 7369 instantiated usi │ │ │ │ -0000c1b0: 6e67 2046 4c41 4753 2e20 2054 6865 2076 ng FLAGS. The v │ │ │ │ -0000c1c0: 616c 7565 206f 6620 4641 554c 542d 4841 alue of FAULT-HA │ │ │ │ -0000c1d0: 4e44 4c45 5220 6465 6661 756c 7473 0a20 NDLER defaults. │ │ │ │ -0000c1e0: 2020 2020 746f 20e2 8098 2572 6561 6465 to ...%reade │ │ │ │ -0000c1f0: 722d 7374 616e 6461 7264 2d66 6175 6c74 r-standard-fault │ │ │ │ -0000c200: 2d68 616e 646c 6572 e280 992e 0a0a 202d -handler...... - │ │ │ │ -0000c210: 2d20 5363 6865 6d65 2050 726f 6365 6475 - Scheme Procedu │ │ │ │ -0000c220: 7265 3a20 616c 7465 726e 6174 652d 6775 re: alternate-gu │ │ │ │ -0000c230: 696c 652d 7265 6164 6572 2d74 6f6b 656e ile-reader-token │ │ │ │ -0000c240: 2d72 6561 6465 7273 0a20 2020 2020 4769 -readers. Gi │ │ │ │ -0000c250: 7665 6e20 4f50 5449 4f4e 532c 2061 206c ven OPTIONS, a l │ │ │ │ -0000c260: 6973 7420 6f66 2073 796d 626f 6c73 2064 ist of symbols d │ │ │ │ -0000c270: 6573 6372 6962 696e 6720 7265 6164 6572 escribing reader │ │ │ │ -0000c280: 206f 7074 696f 6e73 2072 656c 6174 6976 options relativ │ │ │ │ -0000c290: 650a 2020 2020 2074 6f20 7468 6520 7265 e. to the re │ │ │ │ -0000c2a0: 6164 6572 2072 6574 7572 6e65 6420 6279 ader returned by │ │ │ │ -0000c2b0: 20e2 8098 2864 6566 6175 6c74 2d72 6561 ...(default-rea │ │ │ │ -0000c2c0: 6465 7229 e280 992c 2072 6574 7572 6e20 der)..., return │ │ │ │ -0000c2d0: 7477 6f20 6c69 7374 7320 6f66 0a20 2020 two lists of. │ │ │ │ -0000c2e0: 2020 746f 6b65 6e20 7265 6164 6572 733a token readers: │ │ │ │ -0000c2f0: 206f 6e65 2066 6f72 2075 7365 2061 7320 one for use as │ │ │ │ -0000c300: 6120 7368 6172 7020 7265 6164 6572 2061 a sharp reader a │ │ │ │ -0000c310: 6e64 2074 6865 206f 7468 6572 2066 6f72 nd the other for │ │ │ │ -0000c320: 2075 7365 0a20 2020 2020 6173 2061 2074 use. as a t │ │ │ │ -0000c330: 6f70 2d6c 6576 656c 2072 6561 6465 722e op-level reader. │ │ │ │ -0000c340: 2020 4375 7272 656e 746c 792c 2074 6865 Currently, the │ │ │ │ -0000c350: 206f 7074 696f 6e73 2073 7570 706f 7274 options support │ │ │ │ -0000c360: 6564 2061 7265 2074 6865 0a20 2020 2020 ed are the. │ │ │ │ -0000c370: 666f 6c6c 6f77 696e 673a 0a0a 2020 2020 following:.. │ │ │ │ -0000c380: 20e2 8098 6e6f 2d73 6861 7270 2d6b 6579 ...no-sharp-key │ │ │ │ -0000c390: 776f 7264 73e2 8099 0a20 2020 2020 2020 words.... │ │ │ │ -0000c3a0: 2020 2052 656d 6f76 6520 7375 7070 6f72 Remove suppor │ │ │ │ -0000c3b0: 7420 666f 7220 e280 9823 3a6b 77e2 8099 t for ...#:kw... │ │ │ │ -0000c3c0: 2d73 7479 6c65 206b 6579 776f 7264 732e -style keywords. │ │ │ │ -0000c3d0: 0a20 2020 2020 e280 9864 7373 736c 2d6b . ...dsssl-k │ │ │ │ -0000c3e0: 6579 776f 7264 73e2 8099 0a20 2020 2020 eywords.... │ │ │ │ -0000c3f0: 2020 2020 2041 6464 2073 7570 706f 7274 Add support │ │ │ │ -0000c400: 2066 6f72 2044 5353 534c 2d73 7479 6c65 for DSSSL-style │ │ │ │ -0000c410: 206b 6579 776f 7264 732c 206c 696b 6520 keywords, like │ │ │ │ -0000c420: e280 9823 216b 77e2 8099 2e20 2054 6869 ...#!kw.... Thi │ │ │ │ -0000c430: 730a 2020 2020 2020 2020 2020 6f70 7469 s. opti │ │ │ │ -0000c440: 6f6e 2061 6c73 6f20 6861 7320 7468 6520 on also has the │ │ │ │ -0000c450: 7361 6d65 2065 6666 6563 7420 6173 20e2 same effect as . │ │ │ │ -0000c460: 8098 6e6f 2d73 6373 682d 626c 6f63 6b2d ..no-scsh-block- │ │ │ │ -0000c470: 636f 6d6d 656e 7473 e280 992e 0a20 2020 comments..... │ │ │ │ -0000c480: 2020 e280 9863 6f6c 6f6e 2d6b 6579 776f ...colon-keywo │ │ │ │ -0000c490: 7264 73e2 8099 0a20 2020 2020 2020 2020 rds.... │ │ │ │ -0000c4a0: 2041 6464 2073 7570 706f 7274 2066 6f72 Add support for │ │ │ │ -0000c4b0: 20e2 8098 3a6b 77e2 8099 2d73 7479 6c65 ...:kw...-style │ │ │ │ -0000c4c0: 206b 6579 776f 7264 732e 2020 5468 6973 keywords. This │ │ │ │ -0000c4d0: 2069 7320 6571 7569 7661 6c65 6e74 2074 is equivalent t │ │ │ │ -0000c4e0: 6f0a 2020 2020 2020 2020 2020 e280 9828 o. ...( │ │ │ │ -0000c4f0: 7265 6164 2d73 6574 2120 6b65 7977 6f72 read-set! keywor │ │ │ │ -0000c500: 6473 2027 7072 6566 6978 29e2 8099 2e0a ds 'prefix)..... │ │ │ │ -0000c510: 2020 2020 20e2 8098 6e6f 2d73 6373 682d ...no-scsh- │ │ │ │ -0000c520: 626c 6f63 6b2d 636f 6d6d 656e 7473 e280 block-comments.. │ │ │ │ -0000c530: 990a 2020 2020 2020 2020 2020 4469 7361 .. Disa │ │ │ │ -0000c540: 626c 6520 5343 5348 2d73 7479 6c65 2062 ble SCSH-style b │ │ │ │ -0000c550: 6c6f 636b 2063 6f6d 6d65 6e74 7320 2873 lock comments (s │ │ │ │ -0000c560: 6565 202a 6e6f 7465 2053 4353 4820 626c ee *note SCSH bl │ │ │ │ -0000c570: 6f63 6b0a 2020 2020 2020 2020 2020 636f ock. co │ │ │ │ -0000c580: 6d6d 656e 7473 3a20 2867 7569 6c65 2942 mments: (guile)B │ │ │ │ -0000c590: 6c6f 636b 2043 6f6d 6d65 6e74 732c 2066 lock Comments, f │ │ │ │ -0000c5a0: 6f72 2064 6574 6169 6c73 292e 0a20 2020 or details).. │ │ │ │ -0000c5b0: 2020 e280 9873 7266 6933 302d 626c 6f63 ...srfi30-bloc │ │ │ │ -0000c5c0: 6b2d 636f 6d6d 656e 7473 e280 990a 2020 k-comments.... │ │ │ │ -0000c5d0: 2020 2020 2020 2020 4164 6420 7375 7070 Add supp │ │ │ │ -0000c5e0: 6f72 7420 666f 7220 5352 4649 2d33 3020 ort for SRFI-30 │ │ │ │ -0000c5f0: 626c 6f63 6b20 636f 6d6d 656e 7473 2c20 block comments, │ │ │ │ -0000c600: 6c69 6b65 3a0a 2020 2020 2020 2020 2020 like:. │ │ │ │ -0000c610: 2020 2020 2028 2b20 3220 237c 2054 6869 (+ 2 #| Thi │ │ │ │ -0000c620: 7320 6973 2061 6e20 237c 2053 5246 492d s is an #| SRFI- │ │ │ │ -0000c630: 3330 207c 2320 636f 6d6d 656e 7420 7c23 30 |# comment |# │ │ │ │ -0000c640: 2032 290a 2020 2020 20e2 8098 7372 6669 2). ...srfi │ │ │ │ -0000c650: 3632 2d73 6578 702d 636f 6d6d 656e 7473 62-sexp-comments │ │ │ │ -0000c660: e280 990a 2020 2020 2020 2020 2020 4164 .... Ad │ │ │ │ -0000c670: 6420 7375 7070 6f72 7420 666f 7220 5352 d support for SR │ │ │ │ -0000c680: 4649 2d36 3220 532d 6578 7072 6573 7369 FI-62 S-expressi │ │ │ │ -0000c690: 6f6e 2063 6f6d 6d65 6e74 732c 206c 696b on comments, lik │ │ │ │ -0000c6a0: 653a 0a20 2020 2020 2020 2020 2020 2020 e:. │ │ │ │ -0000c6b0: 2020 282b 2032 2023 3b28 6120 636f 6d6d (+ 2 #;(a comm │ │ │ │ -0000c6c0: 656e 7429 2032 290a 2020 2020 20e2 8098 ent) 2). ... │ │ │ │ -0000c6d0: 6361 7365 2d69 6e73 656e 7369 7469 7665 case-insensitive │ │ │ │ -0000c6e0: e280 990a 2020 2020 2020 2020 2020 5265 .... Re │ │ │ │ -0000c6f0: 6164 2073 796d 626f 6c73 2069 6e20 6120 ad symbols in a │ │ │ │ -0000c700: 6361 7365 2d69 6e73 656e 7369 7469 7665 case-insensitive │ │ │ │ -0000c710: 2077 6179 2e0a 2020 2020 20e2 8098 7371 way.. ...sq │ │ │ │ -0000c720: 7561 7265 2d62 7261 636b 6574 2d73 6578 uare-bracket-sex │ │ │ │ -0000c730: 7073 e280 990a 2020 2020 20e2 8098 7371 ps.... ...sq │ │ │ │ -0000c740: 7561 7265 2d62 7261 636b 6574 73e2 8099 uare-brackets... │ │ │ │ -0000c750: 0a20 2020 2020 2020 2020 2041 6c6c 6f77 . Allow │ │ │ │ -0000c760: 2066 6f72 2073 7175 6172 6520 6272 6163 for square brac │ │ │ │ -0000c770: 6b65 7473 2061 726f 756e 6420 532d 6578 kets around S-ex │ │ │ │ -0000c780: 7072 6573 7369 6f6e 732e 0a0a 202d 2d20 pressions... -- │ │ │ │ -0000c790: 5363 6865 6d65 2050 726f 6365 6475 7265 Scheme Procedure │ │ │ │ -0000c7a0: 3a20 7265 6164 2d6f 7074 696f 6e73 2d3e : read-options-> │ │ │ │ -0000c7b0: 6578 7465 6e64 6564 2d72 6561 6465 722d extended-reader- │ │ │ │ -0000c7c0: 6f70 7469 6f6e 730a 2020 2020 2052 6561 options. Rea │ │ │ │ -0000c7d0: 6420 5245 4144 2d4f 5054 532c 2061 206c d READ-OPTS, a l │ │ │ │ -0000c7e0: 6973 7420 7265 7072 6573 656e 7469 6e67 ist representing │ │ │ │ -0000c7f0: 2072 6561 6420 6f70 7469 6f6e 7320 666f read options fo │ │ │ │ -0000c800: 6c6c 6f77 696e 6720 4775 696c 6527 730a llowing Guile's. │ │ │ │ -0000c810: 2020 2020 2062 7569 6c74 2d69 6e20 7265 built-in re │ │ │ │ -0000c820: 7072 6573 656e 7461 7469 6f6e 2028 7365 presentation (se │ │ │ │ -0000c830: 6520 2a6e 6f74 6520 2867 7569 6c65 2953 e *note (guile)S │ │ │ │ -0000c840: 6368 656d 6520 5265 6164 3a3a 2c20 666f cheme Read::, fo │ │ │ │ -0000c850: 720a 2020 2020 2064 6574 6169 6c73 292c r. details), │ │ │ │ -0000c860: 2061 6e64 2072 6574 7572 6e20 6120 6c69 and return a li │ │ │ │ -0000c870: 7374 206f 6620 7379 6d62 6f6c 7320 7265 st of symbols re │ │ │ │ -0000c880: 7072 6573 656e 7465 6420 2265 7874 656e presented "exten │ │ │ │ -0000c890: 6465 6420 7265 6164 6572 0a20 2020 2020 ded reader. │ │ │ │ -0000c8a0: 6f70 7469 6f6e 7322 2075 6e64 6572 7374 options" underst │ │ │ │ -0000c8b0: 6f6f 6420 6279 20e2 8098 6d61 6b65 2d61 ood by ...make-a │ │ │ │ -0000c8c0: 6c74 6572 6e61 7465 2d67 7569 6c65 2d72 lternate-guile-r │ │ │ │ -0000c8d0: 6561 6465 72e2 8099 2065 7420 616c 2e0a eader... et al.. │ │ │ │ -0000c8e0: 0a20 2d2d 2053 6368 656d 6520 5072 6f63 . -- Scheme Proc │ │ │ │ -0000c8f0: 6564 7572 653a 206d 616b 652d 616c 7465 edure: make-alte │ │ │ │ -0000c900: 726e 6174 652d 6775 696c 652d 7265 6164 rnate-guile-read │ │ │ │ -0000c910: 6572 0a20 2020 2020 5265 7475 726e 2061 er. Return a │ │ │ │ -0000c920: 206e 6577 6c79 2063 7265 6174 6564 2047 newly created G │ │ │ │ -0000c930: 7569 6c65 2072 6561 6465 7220 7769 7468 uile reader with │ │ │ │ -0000c940: 206f 7074 696f 6e73 204f 5054 494f 4e53 options OPTIONS │ │ │ │ -0000c950: 2028 6120 6c69 7374 206f 660a 2020 2020 (a list of. │ │ │ │ -0000c960: 2073 796d 626f 6c73 2c20 6173 2066 6f72 symbols, as for │ │ │ │ -0000c970: 20e2 8098 616c 7465 726e 6174 652d 6775 ...alternate-gu │ │ │ │ -0000c980: 696c 652d 7265 6164 6572 2d74 6f6b 656e ile-reader-token │ │ │ │ -0000c990: 2d72 6561 6465 7273 e280 9929 2c20 7769 -readers...), wi │ │ │ │ -0000c9a0: 7468 2066 6175 6c74 0a20 2020 2020 6861 th fault. ha │ │ │ │ -0000c9b0: 6e64 6c65 7220 4641 554c 542d 4841 4e44 ndler FAULT-HAND │ │ │ │ -0000c9c0: 4c45 5220 616e 6420 666c 6167 7320 464c LER and flags FL │ │ │ │ -0000c9d0: 4147 532e 2020 5468 6520 4641 554c 542d AGS. The FAULT- │ │ │ │ -0000c9e0: 4841 4e44 4c45 5220 616e 6420 464c 4147 HANDLER and FLAG │ │ │ │ -0000c9f0: 530a 2020 2020 2061 7267 756d 656e 7473 S. arguments │ │ │ │ -0000ca00: 2061 7265 2074 6865 2073 616d 6520 6173 are the same as │ │ │ │ -0000ca10: 2074 686f 7365 2070 6173 7365 6420 746f those passed to │ │ │ │ -0000ca20: 20e2 8098 6d61 6b65 2d72 6561 6465 72e2 ...make-reader. │ │ │ │ -0000ca30: 8099 2e20 2042 790a 2020 2020 2064 6566 ... By. def │ │ │ │ -0000ca40: 6175 6c74 2c20 4641 554c 542d 4841 4e44 ault, FAULT-HAND │ │ │ │ -0000ca50: 4c45 5220 6973 2073 6574 2074 6f20 2552 LER is set to %R │ │ │ │ -0000ca60: 4541 4445 522d 5354 414e 4441 5244 2d46 EADER-STANDARD-F │ │ │ │ -0000ca70: 4155 4c54 2d48 414e 444c 4552 2e0a 0a1f AULT-HANDLER.... │ │ │ │ -0000ca80: 0a46 696c 653a 2067 7569 6c65 2d72 6561 .File: guile-rea │ │ │ │ -0000ca90: 6465 722e 696e 666f 2c20 204e 6f64 653a der.info, Node: │ │ │ │ -0000caa0: 2043 6f6d 7061 7469 6269 6c69 7479 2061 Compatibility a │ │ │ │ -0000cab0: 6e64 2043 6f6e 6669 6e65 6d65 6e74 2c20 nd Confinement, │ │ │ │ -0000cac0: 2050 7265 763a 2052 6561 6465 7220 4c69 Prev: Reader Li │ │ │ │ -0000cad0: 6272 6172 792c 2020 5570 3a20 5265 6164 brary, Up: Read │ │ │ │ -0000cae0: 6572 730a 0a34 2e32 2e33 2043 6f6d 7061 ers..4.2.3 Compa │ │ │ │ -0000caf0: 7469 6269 6c69 7479 2061 6e64 2043 6f6e tibility and Con │ │ │ │ -0000cb00: 6669 6e65 6d65 6e74 0a2d 2d2d 2d2d 2d2d finement.------- │ │ │ │ +0000ae20: 2020 2020 2020 2020 2020 2020 2020 6d79 my │ │ │ │ +0000ae30: 2d6e 756d 6265 722d 746f 6b65 6e2d 7265 -number-token-re │ │ │ │ +0000ae40: 6164 6572 2929 2929 0a0a 2020 2048 6f77 ader)))).. How │ │ │ │ +0000ae50: 6576 6572 2c20 7468 6520 7072 6f63 6564 ever, the proced │ │ │ │ +0000ae60: 7572 6520 7265 7475 726e 6564 2062 7920 ure returned by │ │ │ │ +0000ae70: e280 986d 616b 652d 7265 6164 6572 e280 ...make-reader.. │ │ │ │ +0000ae80: 9920 6973 2064 6966 6665 7265 6e74 2066 . is different f │ │ │ │ +0000ae90: 726f 6d0a 7468 6520 6861 6e64 2d77 7269 rom.the hand-wri │ │ │ │ +0000aea0: 7474 656e 206f 6e65 2061 626f 7665 2069 tten one above i │ │ │ │ +0000aeb0: 6e20 7468 6174 2069 6e20 7461 6b65 7320 n that in takes │ │ │ │ +0000aec0: 7477 6f20 6164 6469 7469 6f6e 616c 206f two additional o │ │ │ │ +0000aed0: 7074 696f 6e61 6c0a 6172 6775 6d65 6e74 ptional.argument │ │ │ │ +0000aee0: 7320 7768 6963 6820 6d61 6b65 7320 6974 s which makes it │ │ │ │ +0000aef0: 206c 6f6f 6b20 6c69 6b65 2074 6869 733a look like this: │ │ │ │ +0000af00: 0a0a 2020 2020 2028 6465 6669 6e65 2028 .. (define ( │ │ │ │ +0000af10: 6d79 2d72 6561 6465 7220 706f 7274 2066 my-reader port f │ │ │ │ +0000af20: 6175 6c74 732d 6361 6c6c 6572 2d68 616e aults-caller-han │ │ │ │ +0000af30: 646c 6564 3f20 746f 702d 6c65 7665 6c2d dled? top-level- │ │ │ │ +0000af40: 7265 6164 6572 290a 2020 2020 2020 2028 reader). ( │ │ │ │ +0000af50: 6c65 7420 6c6f 6f70 2028 2874 6865 2d63 let loop ((the-c │ │ │ │ +0000af60: 6861 7220 2867 6574 6320 706f 7274 2929 har (getc port)) │ │ │ │ +0000af70: 290a 2020 2020 2020 2020 2028 6361 7365 ). (case │ │ │ │ +0000af80: 2074 6865 2d63 6861 720a 2020 2020 2020 the-char. │ │ │ │ +0000af90: 2020 2020 202e 2e2e 0a20 2020 2020 2020 .... │ │ │ │ +0000afa0: 2020 2020 2865 6c73 650a 2020 2020 2020 (else. │ │ │ │ +0000afb0: 2020 2020 2020 2028 6966 2028 6e6f 7420 (if (not │ │ │ │ +0000afc0: 6661 756c 7473 2d63 616c 6c65 722d 6861 faults-caller-ha │ │ │ │ +0000afd0: 6e64 6c65 643f 290a 2020 2020 2020 2020 ndled?). │ │ │ │ +0000afe0: 2020 2020 2020 2020 2028 6572 726f 7220 (error │ │ │ │ +0000aff0: 2275 6e65 7870 6563 7465 6420 6368 6172 "unexpected char │ │ │ │ +0000b000: 6163 7465 7222 2074 6865 2d63 6861 7229 acter" the-char) │ │ │ │ +0000b010: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +0000b020: 2020 2875 6e67 6574 6320 7468 652d 6368 (ungetc the-ch │ │ │ │ +0000b030: 6172 2920 3b3b 2061 6e64 2072 6574 7572 ar) ;; and retur │ │ │ │ +0000b040: 6e20 2a75 6e73 7065 6369 6669 6564 2a0a n *unspecified*. │ │ │ │ +0000b050: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000b060: 2029 2929 2929 0a0a 2020 2054 6865 7265 ))))).. There │ │ │ │ +0000b070: 666f 7265 2c20 6279 2064 6566 6175 6c74 fore, by default │ │ │ │ +0000b080: 2c20 e280 986d 792d 7265 6164 6572 e280 , ...my-reader.. │ │ │ │ +0000b090: 9920 7769 6c6c 2072 6169 7365 2061 6e20 . will raise an │ │ │ │ +0000b0a0: 6572 726f 7220 6173 2073 6f6f 6e20 6173 error as soon as │ │ │ │ +0000b0b0: 2069 740a 7265 6164 7320 6120 6368 6172 it.reads a char │ │ │ │ +0000b0c0: 6163 7465 7220 7468 6174 2069 7420 646f acter that it do │ │ │ │ +0000b0d0: 6573 206e 6f74 206b 6e6f 7720 686f 7720 es not know how │ │ │ │ +0000b0e0: 746f 2068 616e 646c 652e 2020 486f 7765 to handle. Howe │ │ │ │ +0000b0f0: 7665 722c 2069 6620 7468 650a 6361 6c6c ver, if the.call │ │ │ │ +0000b100: 6572 2070 6173 7365 7320 e280 9823 74e2 er passes ...#t. │ │ │ │ +0000b110: 8099 2061 7320 6974 7320 e280 9866 6175 .. as its ...fau │ │ │ │ +0000b120: 6c74 732d 6361 6c6c 6572 2d68 616e 646c lts-caller-handl │ │ │ │ +0000b130: 6564 3fe2 8099 2061 7267 756d 656e 742c ed?... argument, │ │ │ │ +0000b140: 2074 6865 6e0a e280 986d 792d 7265 6164 then....my-read │ │ │ │ +0000b150: 6572 e280 9920 6973 2065 7870 6563 7465 er... is expecte │ │ │ │ +0000b160: 6420 746f 2022 756e 6765 7422 2074 6865 d to "unget" the │ │ │ │ +0000b170: 2066 6175 6c74 7920 6368 6172 6163 7465 faulty characte │ │ │ │ +0000b180: 7220 616e 6420 7265 7475 726e 0ae2 8098 r and return.... │ │ │ │ +0000b190: 2a75 6e73 7065 6369 6669 6564 2ae2 8099 *unspecified*... │ │ │ │ +0000b1a0: 2c20 7468 7573 2061 6c6c 6f77 696e 6720 , thus allowing │ │ │ │ +0000b1b0: 7468 6520 6361 6c6c 6572 2074 6f20 6861 the caller to ha │ │ │ │ +0000b1c0: 6e64 6c65 2074 6865 2073 6974 7561 7469 ndle the situati │ │ │ │ +0000b1d0: 6f6e 2e0a 0a20 2020 5468 6973 2069 7320 on... This is │ │ │ │ +0000b1e0: 7573 6566 756c 2c20 666f 7220 696e 7374 useful, for inst │ │ │ │ +0000b1f0: 616e 6365 2c20 696e 2074 6865 2053 2d65 ance, in the S-e │ │ │ │ +0000b200: 7870 2074 6f6b 656e 2072 6561 6465 7220 xp token reader │ │ │ │ +0000b210: 6578 616d 706c 653a 2074 6865 0a53 2d65 example: the.S-e │ │ │ │ +0000b220: 7870 2074 6f6b 656e 2072 6561 6465 7220 xp token reader │ │ │ │ +0000b230: 6e65 6564 7320 746f 2063 616c 6c20 6974 needs to call it │ │ │ │ +0000b240: 7320 6361 6c6c 696e 6720 7265 6164 6572 s calling reader │ │ │ │ +0000b250: 2069 6e20 6f72 6465 7220 746f 2072 6561 in order to rea │ │ │ │ +0000b260: 6420 7468 650a 636f 6d70 6f6e 656e 7473 d the.components │ │ │ │ +0000b270: 2062 6574 7765 656e 2074 6865 206f 7065 between the ope │ │ │ │ +0000b280: 6e69 6e67 2061 6e64 2063 6c6f 7369 6e67 ning and closing │ │ │ │ +0000b290: 2062 7261 636b 6574 733b 2068 6f77 6576 brackets; howev │ │ │ │ +0000b2a0: 6572 2c20 7468 650a 6361 6c6c 696e 6720 er, the.calling │ │ │ │ +0000b2b0: 7265 6164 6572 206d 6179 2062 6520 756e reader may be un │ │ │ │ +0000b2c0: 6162 6c65 2074 6f20 6861 6e64 6c65 2074 able to handle t │ │ │ │ +0000b2d0: 6865 20e2 8098 235c 29e2 8099 2063 6861 he ...#\)... cha │ │ │ │ +0000b2e0: 7261 6374 6572 2073 6f20 7468 6520 532d racter so the S- │ │ │ │ +0000b2f0: 6578 700a 746f 6b65 6e20 7265 6164 6572 exp.token reader │ │ │ │ +0000b300: 2068 6173 2074 6f20 6861 6e64 6c65 2069 has to handle i │ │ │ │ +0000b310: 7420 6279 2069 7473 656c 6620 616e 6420 t by itself and │ │ │ │ +0000b320: 6e65 6564 7320 746f 2074 656c 6c20 6974 needs to tell it │ │ │ │ +0000b330: 2074 6f20 7468 650a 7265 6164 6572 2e0a to the.reader.. │ │ │ │ +0000b340: 0a20 2d2d 2053 6368 656d 6520 5072 6f63 . -- Scheme Proc │ │ │ │ +0000b350: 6564 7572 653a 2025 7265 6164 6572 2d73 edure: %reader-s │ │ │ │ +0000b360: 7461 6e64 6172 642d 6661 756c 742d 6861 tandard-fault-ha │ │ │ │ +0000b370: 6e64 6c65 7220 6368 7220 706f 7274 2072 ndler chr port r │ │ │ │ +0000b380: 6561 6465 720a 202d 2d20 4320 4675 6e63 eader. -- C Func │ │ │ │ +0000b390: 7469 6f6e 3a20 7363 6d5f 7265 6164 6572 tion: scm_reader │ │ │ │ +0000b3a0: 5f73 7461 6e64 6172 645f 6661 756c 745f _standard_fault_ │ │ │ │ +0000b3b0: 6861 6e64 6c65 7220 2853 434d 2063 6872 handler (SCM chr │ │ │ │ +0000b3c0: 2c20 5343 4d20 706f 7274 2c0a 2020 2020 , SCM port,. │ │ │ │ +0000b3d0: 2020 2020 2020 5343 4d20 7265 6164 6572 SCM reader │ │ │ │ +0000b3e0: 290a 2020 2020 2054 6872 6f77 2061 20e2 ). Throw a . │ │ │ │ +0000b3f0: 8098 7265 6164 2d65 7272 6f72 e280 9920 ..read-error... │ │ │ │ +0000b400: 6578 6365 7074 696f 6e20 696e 6469 6361 exception indica │ │ │ │ +0000b410: 7469 6e67 2074 6861 7420 6368 6172 6163 ting that charac │ │ │ │ +0000b420: 7465 7220 4348 5220 7761 730a 2020 2020 ter CHR was. │ │ │ │ +0000b430: 2072 6561 6420 6672 6f6d 2050 4f52 5420 read from PORT │ │ │ │ +0000b440: 616e 6420 636f 756c 6420 6e6f 7420 6265 and could not be │ │ │ │ +0000b450: 2068 616e 646c 6564 2062 7920 5245 4144 handled by READ │ │ │ │ +0000b460: 4552 2e0a 0a20 2d2d 2053 6368 656d 6520 ER... -- Scheme │ │ │ │ +0000b470: 5072 6f63 6564 7572 653a 206d 616b 652d Procedure: make- │ │ │ │ +0000b480: 7265 6164 6572 2074 6f6b 656e 2d72 6561 reader token-rea │ │ │ │ +0000b490: 6465 7273 205b 6661 756c 742d 6861 6e64 ders [fault-hand │ │ │ │ +0000b4a0: 6c65 722d 7072 6f63 0a20 2020 2020 2020 ler-proc. │ │ │ │ +0000b4b0: 2020 205b 666c 6167 732e 2e2e 5d5d 0a20 [flags...]]. │ │ │ │ +0000b4c0: 2d2d 2043 2046 756e 6374 696f 6e3a 2073 -- C Function: s │ │ │ │ +0000b4d0: 636d 5f6d 616b 655f 7265 6164 6572 2028 cm_make_reader ( │ │ │ │ +0000b4e0: 5343 4d20 746f 6b65 6e5f 7265 6164 6572 SCM token_reader │ │ │ │ +0000b4f0: 732c 2053 434d 0a20 2020 2020 2020 2020 s, SCM. │ │ │ │ +0000b500: 2066 6175 6c74 5f68 616e 646c 6572 5f70 fault_handler_p │ │ │ │ +0000b510: 726f 632c 2053 434d 2066 6c61 6773 290a roc, SCM flags). │ │ │ │ +0000b520: 2020 2020 2043 7265 6174 6520 6120 7265 Create a re │ │ │ │ +0000b530: 6164 6572 206d 6164 6520 6f66 2074 6865 ader made of the │ │ │ │ +0000b540: 2074 6f6b 656e 2072 6561 6465 7273 206c token readers l │ │ │ │ +0000b550: 6973 7465 6420 696e 2054 4f4b 454e 5f52 isted in TOKEN_R │ │ │ │ +0000b560: 4541 4445 5253 2e0a 2020 2020 2054 4f4b EADERS.. TOK │ │ │ │ +0000b570: 454e 5f52 4541 4445 5253 2073 686f 756c EN_READERS shoul │ │ │ │ +0000b580: 6420 6265 2061 206c 6973 7420 6f66 2074 d be a list of t │ │ │ │ +0000b590: 6f6b 656e 2072 6561 6465 7273 2072 6574 oken readers ret │ │ │ │ +0000b5a0: 7572 6e65 6420 6279 0a20 2020 2020 e280 urned by. .. │ │ │ │ +0000b5b0: 986d 616b 652d 746f 6b65 6e2d 7265 6164 .make-token-read │ │ │ │ +0000b5c0: 6572 e280 9920 6f72 20e2 8098 7374 616e er... or ...stan │ │ │ │ +0000b5d0: 6461 7264 2d74 6f6b 656e 2d72 6561 6465 dard-token-reade │ │ │ │ +0000b5e0: 72e2 8099 2066 6f72 2069 6e73 7461 6e63 r... for instanc │ │ │ │ +0000b5f0: 652e 2020 5468 650a 2020 2020 2046 4155 e. The. FAU │ │ │ │ +0000b600: 4c54 5f48 414e 444c 4552 5f50 524f 4320 LT_HANDLER_PROC │ │ │ │ +0000b610: 6172 6775 6d65 6e74 2069 7320 6f70 7469 argument is opti │ │ │ │ +0000b620: 6f6e 616c 2061 6e64 206d 6179 2062 6520 onal and may be │ │ │ │ +0000b630: 6120 7468 7265 652d 6172 6775 6d65 6e74 a three-argument │ │ │ │ +0000b640: 0a20 2020 2020 7072 6f63 6564 7572 6520 . procedure │ │ │ │ +0000b650: 746f 2063 616c 6c20 7768 656e 2061 6e20 to call when an │ │ │ │ +0000b660: 756e 6578 7065 6374 6564 2063 6861 7261 unexpected chara │ │ │ │ +0000b670: 6374 6572 2069 7320 7265 6164 2e20 2057 cter is read. W │ │ │ │ +0000b680: 6865 6e0a 2020 2020 2046 4155 4c54 5f48 hen. FAULT_H │ │ │ │ +0000b690: 414e 444c 4552 5f50 524f 4320 6973 2069 ANDLER_PROC is i │ │ │ │ +0000b6a0: 6e76 6f6b 6564 2c20 6974 2069 7320 7061 nvoked, it is pa │ │ │ │ +0000b6b0: 7373 6564 2074 6865 2066 6175 6c74 7920 ssed the faulty │ │ │ │ +0000b6c0: 6368 6172 6163 7465 722c 0a20 2020 2020 character,. │ │ │ │ +0000b6d0: 696e 7075 7420 706f 7274 2c20 616e 6420 input port, and │ │ │ │ +0000b6e0: 7265 6164 6572 3b20 6974 7320 7265 7475 reader; its retu │ │ │ │ +0000b6f0: 726e 2076 616c 7565 2c20 6966 2061 6e79 rn value, if any │ │ │ │ +0000b700: 2c20 6973 2074 6865 6e20 7265 7475 726e , is then return │ │ │ │ +0000b710: 6564 0a20 2020 2020 6279 2074 6865 2072 ed. by the r │ │ │ │ +0000b720: 6561 6465 722e 2020 4966 2046 4155 4c54 eader. If FAULT │ │ │ │ +0000b730: 5f48 414e 444c 4552 5f50 524f 4320 6973 _HANDLER_PROC is │ │ │ │ +0000b740: 206e 6f74 2073 7065 6369 6669 6564 2c20 not specified, │ │ │ │ +0000b750: 7468 656e 0a20 2020 2020 e280 9825 7265 then. ...%re │ │ │ │ +0000b760: 6164 6572 2d73 7461 6e64 6172 642d 6661 ader-standard-fa │ │ │ │ +0000b770: 756c 742d 6861 6e64 6c65 72e2 8099 2069 ult-handler... i │ │ │ │ +0000b780: 7320 7573 6564 2e20 2046 4c41 4753 2069 s used. FLAGS i │ │ │ │ +0000b790: 7320 6120 7265 7374 2061 7267 756d 656e s a rest argumen │ │ │ │ +0000b7a0: 740a 2020 2020 2077 6869 6368 206d 6179 t. which may │ │ │ │ +0000b7b0: 2063 6f6e 7461 696e 2061 206c 6973 7420 contain a list │ │ │ │ +0000b7c0: 6f66 2073 796d 626f 6c73 2072 6570 7265 of symbols repre │ │ │ │ +0000b7d0: 7365 6e74 696e 6720 7265 6164 6572 2063 senting reader c │ │ │ │ +0000b7e0: 6f6d 7069 6c61 7469 6f6e 0a20 2020 2020 ompilation. │ │ │ │ +0000b7f0: 666c 6167 732e 0a0a 2020 2043 7572 7265 flags... Curre │ │ │ │ +0000b800: 6e74 6c79 2c20 7468 6520 666c 6167 7320 ntly, the flags │ │ │ │ +0000b810: 7468 6174 206d 6179 2062 6520 7061 7373 that may be pass │ │ │ │ +0000b820: 6564 2074 6f20 e280 986d 616b 652d 7265 ed to ...make-re │ │ │ │ +0000b830: 6164 6572 e280 9920 6172 6520 7468 650a ader... are the. │ │ │ │ +0000b840: 666f 6c6c 6f77 696e 673a 0a0a 2020 20e2 following:.. . │ │ │ │ +0000b850: 80a2 20e2 8098 7265 6164 6572 2f72 6563 .. ...reader/rec │ │ │ │ +0000b860: 6f72 642d 706f 7369 7469 6f6e 73e2 8099 ord-positions... │ │ │ │ +0000b870: 2077 696c 6c20 7969 656c 6420 6120 7265 will yield a re │ │ │ │ +0000b880: 6164 6572 2074 6861 7420 7265 636f 7264 ader that record │ │ │ │ +0000b890: 7320 7468 650a 2020 2020 2070 6f73 6974 s the. posit │ │ │ │ +0000b8a0: 696f 6e20 6f66 2074 6865 2065 7870 7265 ion of the expre │ │ │ │ +0000b8b0: 7373 696f 6e20 7265 6164 2c20 7768 6963 ssion read, whic │ │ │ │ +0000b8c0: 6820 6973 206d 6f73 746c 7920 7573 6566 h is mostly usef │ │ │ │ +0000b8d0: 756c 2066 6f72 0a20 2020 2020 6465 6275 ul for. debu │ │ │ │ +0000b8e0: 6767 696e 6720 7075 7270 6f73 6573 3b20 gging purposes; │ │ │ │ +0000b8f0: 7468 6973 2069 6e66 6f72 6d61 7469 6f6e this information │ │ │ │ +0000b900: 206d 6179 2074 6865 6e20 6265 2061 6363 may then be acc │ │ │ │ +0000b910: 6573 7365 6420 7669 610a 2020 2020 2073 essed via. s │ │ │ │ +0000b920: 6f75 7263 6520 7072 6f70 6572 7469 6573 ource properties │ │ │ │ +0000b930: 2028 2a6e 6f74 6520 736f 7572 6365 2070 (*note source p │ │ │ │ +0000b940: 726f 7065 7274 6965 733a 2028 6775 696c roperties: (guil │ │ │ │ +0000b950: 6529 5072 6f63 6564 7572 650a 2020 2020 e)Procedure. │ │ │ │ +0000b960: 2050 726f 7065 7274 6965 732e 292e 0a0a Properties.)... │ │ │ │ +0000b970: 2020 20e2 80a2 20e2 8098 7265 6164 6572 ... ...reader │ │ │ │ +0000b980: 2f6c 6f77 6572 2d63 6173 65e2 8099 2077 /lower-case... w │ │ │ │ +0000b990: 696c 6c20 6861 7665 2074 6865 2079 6965 ill have the yie │ │ │ │ +0000b9a0: 6c64 6564 2072 6561 6465 7220 636f 6e76 lded reader conv │ │ │ │ +0000b9b0: 6572 7420 746f 0a20 2020 2020 6c6f 7765 ert to. lowe │ │ │ │ +0000b9c0: 722d 6361 7365 2061 6c6c 2074 6865 206c r-case all the l │ │ │ │ +0000b9d0: 6574 7465 7273 2074 6861 7420 6974 2072 etters that it r │ │ │ │ +0000b9e0: 6561 6473 3b20 6e6f 7465 2074 6861 7420 eads; note that │ │ │ │ +0000b9f0: 7468 6973 2069 7320 6e6f 740a 2020 2020 this is not. │ │ │ │ +0000ba00: 2073 7566 6669 6369 656e 7420 746f 2069 sufficient to i │ │ │ │ +0000ba10: 6d70 6c65 6d65 6e74 2073 796d 626f 6c20 mplement symbol │ │ │ │ +0000ba20: 6361 7365 2d69 6e73 656e 7369 7469 7669 case-insensitivi │ │ │ │ +0000ba30: 7479 2061 7320 7368 6f77 6e20 696e 202a ty as shown in * │ │ │ │ +0000ba40: 6e6f 7465 0a20 2020 2020 2867 7569 6c65 note. (guile │ │ │ │ +0000ba50: 2952 6561 6465 7220 6f70 7469 6f6e 733a )Reader options: │ │ │ │ +0000ba60: 3a2e 2020 466f 7220 7468 6973 2c20 7468 :. For this, th │ │ │ │ +0000ba70: 6520 746f 6b65 6e20 7265 6164 6572 2873 e token reader(s │ │ │ │ +0000ba80: 2920 7468 6174 2072 6561 640a 2020 2020 ) that read. │ │ │ │ +0000ba90: 2073 796d 626f 6c73 206d 7573 7420 616c symbols must al │ │ │ │ +0000baa0: 736f 2063 6f6e 7665 7274 2061 6c6c 2073 so convert all s │ │ │ │ +0000bab0: 7562 7365 7175 656e 7420 6368 6172 6163 ubsequent charac │ │ │ │ +0000bac0: 7465 7273 2074 6f20 6c6f 7765 722d 6361 ters to lower-ca │ │ │ │ +0000bad0: 7365 2e0a 0a20 2020 e280 a220 e280 9872 se... ... ...r │ │ │ │ +0000bae0: 6561 6465 722f 7570 7065 722d 6361 7365 eader/upper-case │ │ │ │ +0000baf0: e280 9920 7769 6c6c 2068 6176 6520 7468 ... will have th │ │ │ │ +0000bb00: 6520 7969 656c 6465 6420 7265 6164 6572 e yielded reader │ │ │ │ +0000bb10: 2063 6f6e 7665 7274 2074 6f0a 2020 2020 convert to. │ │ │ │ +0000bb20: 2075 7070 6572 2d63 6173 6520 616c 6c20 upper-case all │ │ │ │ +0000bb30: 7468 6520 6c65 7474 6572 7320 7468 6174 the letters that │ │ │ │ +0000bb40: 2069 7420 7265 6164 733b 2061 6761 696e it reads; again │ │ │ │ +0000bb50: 2c20 7468 6174 2069 7320 6e6f 740a 2020 , that is not. │ │ │ │ +0000bb60: 2020 2073 7566 6669 6369 656e 7420 746f sufficient to │ │ │ │ +0000bb70: 2069 6d70 6c65 6d65 6e74 2063 6173 652d implement case- │ │ │ │ +0000bb80: 696e 7365 6e73 6974 6976 6974 792e 0a0a insensitivity... │ │ │ │ +0000bb90: 2020 20e2 80a2 20e2 8098 7265 6164 6572 ... ...reader │ │ │ │ +0000bba0: 2f64 6562 7567 e280 9920 6361 7573 6573 /debug... causes │ │ │ │ +0000bbb0: 2074 6865 2067 656e 6572 6174 6564 2072 the generated r │ │ │ │ +0000bbc0: 6561 6465 7220 746f 2070 726f 6475 6365 eader to produce │ │ │ │ +0000bbd0: 2064 6562 7567 6769 6e67 0a20 2020 2020 debugging. │ │ │ │ +0000bbe0: 6f75 7470 7574 2e0a 0a1f 0a46 696c 653a output.....File: │ │ │ │ +0000bbf0: 2067 7569 6c65 2d72 6561 6465 722e 696e guile-reader.in │ │ │ │ +0000bc00: 666f 2c20 204e 6f64 653a 2052 6561 6465 fo, Node: Reade │ │ │ │ +0000bc10: 7220 4c69 6272 6172 792c 2020 4e65 7874 r Library, Next │ │ │ │ +0000bc20: 3a20 436f 6d70 6174 6962 696c 6974 7920 : Compatibility │ │ │ │ +0000bc30: 616e 6420 436f 6e66 696e 656d 656e 742c and Confinement, │ │ │ │ +0000bc40: 2020 5072 6576 3a20 4465 6669 6e69 6e67 Prev: Defining │ │ │ │ +0000bc50: 2061 204e 6577 2052 6561 6465 722c 2020 a New Reader, │ │ │ │ +0000bc60: 5570 3a20 5265 6164 6572 730a 0a34 2e32 Up: Readers..4.2 │ │ │ │ +0000bc70: 2e32 2052 6561 6465 7220 4c69 6272 6172 .2 Reader Librar │ │ │ │ +0000bc80: 790a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d y.-------------- │ │ │ │ +0000bc90: 2d2d 2d2d 2d2d 0a0a 5468 6520 e280 9828 ------..The ...( │ │ │ │ +0000bca0: 7379 7374 656d 2072 6561 6465 7229 e280 system reader).. │ │ │ │ +0000bcb0: 9920 6d6f 6475 6c65 2065 7870 6f72 7473 . module exports │ │ │ │ +0000bcc0: 2074 6865 20e2 8098 6465 6661 756c 742d the ...default- │ │ │ │ +0000bcd0: 7265 6164 6572 e280 9920 7072 6f63 6564 reader... proced │ │ │ │ +0000bce0: 7572 650a 7768 6963 6820 7265 7475 726e ure.which return │ │ │ │ +0000bcf0: 7320 6120 7265 6164 6572 2065 7175 6976 s a reader equiv │ │ │ │ +0000bd00: 616c 656e 7420 746f 2047 7569 6c65 2773 alent to Guile's │ │ │ │ +0000bd10: 2062 7569 6c74 2d69 6e20 6465 6661 756c built-in defaul │ │ │ │ +0000bd20: 7420 7265 6164 6572 0a6d 6164 6520 6f66 t reader.made of │ │ │ │ +0000bd30: 2072 652d 7573 6162 6c65 2074 6f6b 656e re-usable token │ │ │ │ +0000bd40: 2072 6561 6465 7273 2077 7269 7474 656e readers written │ │ │ │ +0000bd50: 2069 6e20 4320 282a 6e6f 7465 2054 6f6b in C (*note Tok │ │ │ │ +0000bd60: 656e 2052 6561 6465 720a 4c69 6272 6172 en Reader.Librar │ │ │ │ +0000bd70: 793a 3a29 2e0a 0a20 2d2d 2053 6368 656d y::)... -- Schem │ │ │ │ +0000bd80: 6520 5072 6f63 6564 7572 653a 2064 6566 e Procedure: def │ │ │ │ +0000bd90: 6175 6c74 2d73 6861 7270 2d72 6561 6465 ault-sharp-reade │ │ │ │ +0000bda0: 722d 746f 6b65 6e2d 7265 6164 6572 730a r-token-readers. │ │ │ │ +0000bdb0: 202d 2d20 4320 4675 6e63 7469 6f6e 3a20 -- C Function: │ │ │ │ +0000bdc0: 7363 6d5f 6465 6661 756c 745f 7368 6172 scm_default_shar │ │ │ │ +0000bdd0: 705f 7265 6164 6572 5f74 6f6b 656e 5f72 p_reader_token_r │ │ │ │ +0000bde0: 6561 6465 7273 2028 766f 6964 290a 2020 eaders (void). │ │ │ │ +0000bdf0: 2020 2052 6574 7572 6e20 7468 6520 6c69 Return the li │ │ │ │ +0000be00: 7374 206f 6620 746f 6b65 6e20 7265 6164 st of token read │ │ │ │ +0000be10: 6572 7320 7468 6174 2063 6f6d 7072 6973 ers that compris │ │ │ │ +0000be20: 6520 4775 696c 6527 7320 6465 6661 756c e Guile's defaul │ │ │ │ +0000be30: 740a 2020 2020 2072 6561 6465 7220 666f t. reader fo │ │ │ │ +0000be40: 7220 7468 6520 e280 9823 e280 9920 6368 r the ...#... ch │ │ │ │ +0000be50: 6172 6163 7465 722e 0a0a 202d 2d20 5363 aracter... -- Sc │ │ │ │ +0000be60: 6865 6d65 2050 726f 6365 6475 7265 3a20 heme Procedure: │ │ │ │ +0000be70: 6465 6661 756c 742d 7265 6164 6572 2d74 default-reader-t │ │ │ │ +0000be80: 6f6b 656e 2d72 6561 6465 7273 0a20 2d2d oken-readers. -- │ │ │ │ +0000be90: 2043 2046 756e 6374 696f 6e3a 2073 636d C Function: scm │ │ │ │ +0000bea0: 5f64 6566 6175 6c74 5f72 6561 6465 725f _default_reader_ │ │ │ │ +0000beb0: 746f 6b65 6e5f 7265 6164 6572 7320 2876 token_readers (v │ │ │ │ +0000bec0: 6f69 6429 0a20 2020 2020 5265 7475 726e oid). Return │ │ │ │ +0000bed0: 2074 6865 206c 6973 7420 6f66 2074 6f6b the list of tok │ │ │ │ +0000bee0: 656e 2072 6561 6465 7273 2074 6861 7420 en readers that │ │ │ │ +0000bef0: 636f 6d70 7269 7365 2047 7569 6c65 2773 comprise Guile's │ │ │ │ +0000bf00: 2064 6566 6175 6c74 0a20 2020 2020 7265 default. re │ │ │ │ +0000bf10: 6164 6572 2e0a 0a20 2d2d 2053 6368 656d ader... -- Schem │ │ │ │ +0000bf20: 6520 5072 6f63 6564 7572 653a 2064 6566 e Procedure: def │ │ │ │ +0000bf30: 6175 6c74 2d73 6861 7270 2d72 6561 6465 ault-sharp-reade │ │ │ │ +0000bf40: 720a 202d 2d20 4320 4675 6e63 7469 6f6e r. -- C Function │ │ │ │ +0000bf50: 3a20 7363 6d5f 6465 6661 756c 745f 7368 : scm_default_sh │ │ │ │ +0000bf60: 6172 705f 7265 6164 6572 2028 766f 6964 arp_reader (void │ │ │ │ +0000bf70: 290a 2020 2020 2052 6574 7572 6e73 2047 ). Returns G │ │ │ │ +0000bf80: 7569 6c65 2773 2064 6566 6175 6c74 2072 uile's default r │ │ │ │ +0000bf90: 6561 6465 7220 666f 7220 7468 6520 e280 eader for the .. │ │ │ │ +0000bfa0: 9823 e280 9920 6368 6172 6163 7465 722e .#... character. │ │ │ │ +0000bfb0: 0a0a 2020 2041 6464 6974 696f 6e61 6c6c .. Additionall │ │ │ │ +0000bfc0: 792c 2074 6865 20e2 8098 2873 7973 7465 y, the ...(syste │ │ │ │ +0000bfd0: 6d20 7265 6164 6572 206c 6962 7261 7279 m reader library │ │ │ │ +0000bfe0: 29e2 8099 206d 6f64 756c 6520 6578 706f )... module expo │ │ │ │ +0000bff0: 7274 7320 6120 6e75 6d62 6572 0a6f 6620 rts a number.of │ │ │ │ +0000c000: 7072 6f63 6564 7572 6573 2074 6861 7420 procedures that │ │ │ │ +0000c010: 6561 7365 2074 6865 2072 652d 7573 6520 ease the re-use │ │ │ │ +0000c020: 6f66 2072 6561 6465 7273 2e0a 0a20 2d2d of readers... -- │ │ │ │ +0000c030: 2053 6368 656d 6520 5072 6f63 6564 7572 Scheme Procedur │ │ │ │ +0000c040: 653a 206d 616b 652d 6775 696c 652d 7265 e: make-guile-re │ │ │ │ +0000c050: 6164 6572 205b 6661 756c 742d 6861 6e64 ader [fault-hand │ │ │ │ +0000c060: 6c65 7220 5b66 6c61 6773 2e2e 2e5d 5d0a ler [flags...]]. │ │ │ │ +0000c070: 202d 2d20 4320 4675 6e63 7469 6f6e 3a20 -- C Function: │ │ │ │ +0000c080: 7363 6d5f 6d61 6b65 5f67 7569 6c65 5f72 scm_make_guile_r │ │ │ │ +0000c090: 6561 6465 7220 2853 434d 2066 6175 6c74 eader (SCM fault │ │ │ │ +0000c0a0: 5f68 616e 646c 6572 2c20 5343 4d20 666c _handler, SCM fl │ │ │ │ +0000c0b0: 6167 7329 0a20 2020 2020 4d61 6b65 2061 ags). Make a │ │ │ │ +0000c0c0: 6e64 2072 6574 7572 6e20 6120 6e65 7720 nd return a new │ │ │ │ +0000c0d0: 7265 6164 6572 2063 6f6d 7061 7469 626c reader compatibl │ │ │ │ +0000c0e0: 6520 7769 7468 2047 7569 6c65 2032 2e30 e with Guile 2.0 │ │ │ │ +0000c0f0: 2773 20e2 8098 7265 6164 e280 992c 0a20 's ...read...,. │ │ │ │ +0000c100: 2020 2020 7769 7468 2069 7473 2064 6566 with its def │ │ │ │ +0000c110: 6175 6c74 2073 6574 7469 6e67 732e 2020 ault settings. │ │ │ │ +0000c120: 5468 6973 2066 756e 6374 696f 6e20 6361 This function ca │ │ │ │ +0000c130: 6c6c 7320 e280 986d 616b 652d 7265 6164 lls ...make-read │ │ │ │ +0000c140: 6572 e280 9920 7769 7468 0a20 2020 2020 er... with. │ │ │ │ +0000c150: 464c 4147 532e 2020 4e6f 7465 2074 6861 FLAGS. Note tha │ │ │ │ +0000c160: 7420 7468 6520 7368 6172 7020 7265 6164 t the sharp read │ │ │ │ +0000c170: 6572 2075 7365 6420 6279 2074 6865 2072 er used by the r │ │ │ │ +0000c180: 6574 7572 6e65 6420 7265 6164 6572 2069 eturned reader i │ │ │ │ +0000c190: 730a 2020 2020 2061 6c73 6f20 696e 7374 s. also inst │ │ │ │ +0000c1a0: 616e 7469 6174 6564 2075 7369 6e67 2046 antiated using F │ │ │ │ +0000c1b0: 4c41 4753 2e20 2054 6865 2076 616c 7565 LAGS. The value │ │ │ │ +0000c1c0: 206f 6620 4641 554c 542d 4841 4e44 4c45 of FAULT-HANDLE │ │ │ │ +0000c1d0: 5220 6465 6661 756c 7473 0a20 2020 2020 R defaults. │ │ │ │ +0000c1e0: 746f 20e2 8098 2572 6561 6465 722d 7374 to ...%reader-st │ │ │ │ +0000c1f0: 616e 6461 7264 2d66 6175 6c74 2d68 616e andard-fault-han │ │ │ │ +0000c200: 646c 6572 e280 992e 0a0a 202d 2d20 5363 dler...... -- Sc │ │ │ │ +0000c210: 6865 6d65 2050 726f 6365 6475 7265 3a20 heme Procedure: │ │ │ │ +0000c220: 7265 6164 2d6f 7074 696f 6e73 2d3e 6578 read-options->ex │ │ │ │ +0000c230: 7465 6e64 6564 2d72 6561 6465 722d 6f70 tended-reader-op │ │ │ │ +0000c240: 7469 6f6e 730a 2020 2020 2052 6561 6420 tions. Read │ │ │ │ +0000c250: 5245 4144 2d4f 5054 532c 2061 206c 6973 READ-OPTS, a lis │ │ │ │ +0000c260: 7420 7265 7072 6573 656e 7469 6e67 2072 t representing r │ │ │ │ +0000c270: 6561 6420 6f70 7469 6f6e 7320 666f 6c6c ead options foll │ │ │ │ +0000c280: 6f77 696e 6720 4775 696c 6527 730a 2020 owing Guile's. │ │ │ │ +0000c290: 2020 2062 7569 6c74 2d69 6e20 7265 7072 built-in repr │ │ │ │ +0000c2a0: 6573 656e 7461 7469 6f6e 2028 7365 6520 esentation (see │ │ │ │ +0000c2b0: 2a6e 6f74 6520 2867 7569 6c65 2953 6368 *note (guile)Sch │ │ │ │ +0000c2c0: 656d 6520 5265 6164 3a3a 2c20 666f 720a eme Read::, for. │ │ │ │ +0000c2d0: 2020 2020 2064 6574 6169 6c73 292c 2061 details), a │ │ │ │ +0000c2e0: 6e64 2072 6574 7572 6e20 6120 6c69 7374 nd return a list │ │ │ │ +0000c2f0: 206f 6620 7379 6d62 6f6c 7320 7265 7072 of symbols repr │ │ │ │ +0000c300: 6573 656e 7465 6420 2265 7874 656e 6465 esented "extende │ │ │ │ +0000c310: 6420 7265 6164 6572 0a20 2020 2020 6f70 d reader. op │ │ │ │ +0000c320: 7469 6f6e 7322 2075 6e64 6572 7374 6f6f tions" understoo │ │ │ │ +0000c330: 6420 6279 20e2 8098 6d61 6b65 2d61 6c74 d by ...make-alt │ │ │ │ +0000c340: 6572 6e61 7465 2d67 7569 6c65 2d72 6561 ernate-guile-rea │ │ │ │ +0000c350: 6465 72e2 8099 2065 7420 616c 2e0a 0a20 der... et al... │ │ │ │ +0000c360: 2d2d 2053 6368 656d 6520 5072 6f63 6564 -- Scheme Proced │ │ │ │ +0000c370: 7572 653a 206d 616b 652d 616c 7465 726e ure: make-altern │ │ │ │ +0000c380: 6174 652d 6775 696c 652d 7265 6164 6572 ate-guile-reader │ │ │ │ +0000c390: 0a20 2020 2020 5265 7475 726e 2061 206e . Return a n │ │ │ │ +0000c3a0: 6577 6c79 2063 7265 6174 6564 2047 7569 ewly created Gui │ │ │ │ +0000c3b0: 6c65 2072 6561 6465 7220 7769 7468 206f le reader with o │ │ │ │ +0000c3c0: 7074 696f 6e73 204f 5054 494f 4e53 2028 ptions OPTIONS ( │ │ │ │ +0000c3d0: 6120 6c69 7374 206f 660a 2020 2020 2073 a list of. s │ │ │ │ +0000c3e0: 796d 626f 6c73 2c20 6173 2066 6f72 20e2 ymbols, as for . │ │ │ │ +0000c3f0: 8098 616c 7465 726e 6174 652d 6775 696c ..alternate-guil │ │ │ │ +0000c400: 652d 7265 6164 6572 2d74 6f6b 656e 2d72 e-reader-token-r │ │ │ │ +0000c410: 6561 6465 7273 e280 9929 2c20 7769 7468 eaders...), with │ │ │ │ +0000c420: 2066 6175 6c74 0a20 2020 2020 6861 6e64 fault. hand │ │ │ │ +0000c430: 6c65 7220 4641 554c 542d 4841 4e44 4c45 ler FAULT-HANDLE │ │ │ │ +0000c440: 5220 616e 6420 666c 6167 7320 464c 4147 R and flags FLAG │ │ │ │ +0000c450: 532e 2020 5468 6520 4641 554c 542d 4841 S. The FAULT-HA │ │ │ │ +0000c460: 4e44 4c45 5220 616e 6420 464c 4147 530a NDLER and FLAGS. │ │ │ │ +0000c470: 2020 2020 2061 7267 756d 656e 7473 2061 arguments a │ │ │ │ +0000c480: 7265 2074 6865 2073 616d 6520 6173 2074 re the same as t │ │ │ │ +0000c490: 686f 7365 2070 6173 7365 6420 746f 20e2 hose passed to . │ │ │ │ +0000c4a0: 8098 6d61 6b65 2d72 6561 6465 72e2 8099 ..make-reader... │ │ │ │ +0000c4b0: 2e20 2042 790a 2020 2020 2064 6566 6175 . By. defau │ │ │ │ +0000c4c0: 6c74 2c20 4641 554c 542d 4841 4e44 4c45 lt, FAULT-HANDLE │ │ │ │ +0000c4d0: 5220 6973 2073 6574 2074 6f20 2552 4541 R is set to %REA │ │ │ │ +0000c4e0: 4445 522d 5354 414e 4441 5244 2d46 4155 DER-STANDARD-FAU │ │ │ │ +0000c4f0: 4c54 2d48 414e 444c 4552 2e0a 0a20 2d2d LT-HANDLER... -- │ │ │ │ +0000c500: 2053 6368 656d 6520 5072 6f63 6564 7572 Scheme Procedur │ │ │ │ +0000c510: 653a 2061 6c74 6572 6e61 7465 2d67 7569 e: alternate-gui │ │ │ │ +0000c520: 6c65 2d72 6561 6465 722d 746f 6b65 6e2d le-reader-token- │ │ │ │ +0000c530: 7265 6164 6572 730a 2020 2020 2047 6976 readers. Giv │ │ │ │ +0000c540: 656e 204f 5054 494f 4e53 2c20 6120 6c69 en OPTIONS, a li │ │ │ │ +0000c550: 7374 206f 6620 7379 6d62 6f6c 7320 6465 st of symbols de │ │ │ │ +0000c560: 7363 7269 6269 6e67 2072 6561 6465 7220 scribing reader │ │ │ │ +0000c570: 6f70 7469 6f6e 7320 7265 6c61 7469 7665 options relative │ │ │ │ +0000c580: 0a20 2020 2020 746f 2074 6865 2072 6561 . to the rea │ │ │ │ +0000c590: 6465 7220 7265 7475 726e 6564 2062 7920 der returned by │ │ │ │ +0000c5a0: e280 9828 6465 6661 756c 742d 7265 6164 ...(default-read │ │ │ │ +0000c5b0: 6572 29e2 8099 2c20 7265 7475 726e 2074 er)..., return t │ │ │ │ +0000c5c0: 776f 206c 6973 7473 206f 660a 2020 2020 wo lists of. │ │ │ │ +0000c5d0: 2074 6f6b 656e 2072 6561 6465 7273 3a20 token readers: │ │ │ │ +0000c5e0: 6f6e 6520 666f 7220 7573 6520 6173 2061 one for use as a │ │ │ │ +0000c5f0: 2073 6861 7270 2072 6561 6465 7220 616e sharp reader an │ │ │ │ +0000c600: 6420 7468 6520 6f74 6865 7220 666f 7220 d the other for │ │ │ │ +0000c610: 7573 650a 2020 2020 2061 7320 6120 746f use. as a to │ │ │ │ +0000c620: 702d 6c65 7665 6c20 7265 6164 6572 2e20 p-level reader. │ │ │ │ +0000c630: 2043 7572 7265 6e74 6c79 2c20 7468 6520 Currently, the │ │ │ │ +0000c640: 6f70 7469 6f6e 7320 7375 7070 6f72 7465 options supporte │ │ │ │ +0000c650: 6420 6172 6520 7468 650a 2020 2020 2066 d are the. f │ │ │ │ +0000c660: 6f6c 6c6f 7769 6e67 3a0a 0a20 2020 2020 ollowing:.. │ │ │ │ +0000c670: e280 986e 6f2d 7368 6172 702d 6b65 7977 ...no-sharp-keyw │ │ │ │ +0000c680: 6f72 6473 e280 990a 2020 2020 2020 2020 ords.... │ │ │ │ +0000c690: 2020 5265 6d6f 7665 2073 7570 706f 7274 Remove support │ │ │ │ +0000c6a0: 2066 6f72 20e2 8098 233a 6b77 e280 992d for ...#:kw...- │ │ │ │ +0000c6b0: 7374 796c 6520 6b65 7977 6f72 6473 2e0a style keywords.. │ │ │ │ +0000c6c0: 2020 2020 20e2 8098 6473 7373 6c2d 6b65 ...dsssl-ke │ │ │ │ +0000c6d0: 7977 6f72 6473 e280 990a 2020 2020 2020 ywords.... │ │ │ │ +0000c6e0: 2020 2020 4164 6420 7375 7070 6f72 7420 Add support │ │ │ │ +0000c6f0: 666f 7220 4453 5353 4c2d 7374 796c 6520 for DSSSL-style │ │ │ │ +0000c700: 6b65 7977 6f72 6473 2c20 6c69 6b65 20e2 keywords, like . │ │ │ │ +0000c710: 8098 2321 6b77 e280 992e 2020 5468 6973 ..#!kw.... This │ │ │ │ +0000c720: 0a20 2020 2020 2020 2020 206f 7074 696f . optio │ │ │ │ +0000c730: 6e20 616c 736f 2068 6173 2074 6865 2073 n also has the s │ │ │ │ +0000c740: 616d 6520 6566 6665 6374 2061 7320 e280 ame effect as .. │ │ │ │ +0000c750: 986e 6f2d 7363 7368 2d62 6c6f 636b 2d63 .no-scsh-block-c │ │ │ │ +0000c760: 6f6d 6d65 6e74 73e2 8099 2e0a 2020 2020 omments..... │ │ │ │ +0000c770: 20e2 8098 636f 6c6f 6e2d 6b65 7977 6f72 ...colon-keywor │ │ │ │ +0000c780: 6473 e280 990a 2020 2020 2020 2020 2020 ds.... │ │ │ │ +0000c790: 4164 6420 7375 7070 6f72 7420 666f 7220 Add support for │ │ │ │ +0000c7a0: e280 983a 6b77 e280 992d 7374 796c 6520 ...:kw...-style │ │ │ │ +0000c7b0: 6b65 7977 6f72 6473 2e20 2054 6869 7320 keywords. This │ │ │ │ +0000c7c0: 6973 2065 7175 6976 616c 656e 7420 746f is equivalent to │ │ │ │ +0000c7d0: 0a20 2020 2020 2020 2020 20e2 8098 2872 . ...(r │ │ │ │ +0000c7e0: 6561 642d 7365 7421 206b 6579 776f 7264 ead-set! keyword │ │ │ │ +0000c7f0: 7320 2770 7265 6669 7829 e280 992e 0a20 s 'prefix)..... │ │ │ │ +0000c800: 2020 2020 e280 986e 6f2d 7363 7368 2d62 ...no-scsh-b │ │ │ │ +0000c810: 6c6f 636b 2d63 6f6d 6d65 6e74 73e2 8099 lock-comments... │ │ │ │ +0000c820: 0a20 2020 2020 2020 2020 2044 6973 6162 . Disab │ │ │ │ +0000c830: 6c65 2053 4353 482d 7374 796c 6520 626c le SCSH-style bl │ │ │ │ +0000c840: 6f63 6b20 636f 6d6d 656e 7473 2028 7365 ock comments (se │ │ │ │ +0000c850: 6520 2a6e 6f74 6520 5343 5348 2062 6c6f e *note SCSH blo │ │ │ │ +0000c860: 636b 0a20 2020 2020 2020 2020 2063 6f6d ck. com │ │ │ │ +0000c870: 6d65 6e74 733a 2028 6775 696c 6529 426c ments: (guile)Bl │ │ │ │ +0000c880: 6f63 6b20 436f 6d6d 656e 7473 2c20 666f ock Comments, fo │ │ │ │ +0000c890: 7220 6465 7461 696c 7329 2e0a 2020 2020 r details).. │ │ │ │ +0000c8a0: 20e2 8098 7372 6669 3330 2d62 6c6f 636b ...srfi30-block │ │ │ │ +0000c8b0: 2d63 6f6d 6d65 6e74 73e2 8099 0a20 2020 -comments.... │ │ │ │ +0000c8c0: 2020 2020 2020 2041 6464 2073 7570 706f Add suppo │ │ │ │ +0000c8d0: 7274 2066 6f72 2053 5246 492d 3330 2062 rt for SRFI-30 b │ │ │ │ +0000c8e0: 6c6f 636b 2063 6f6d 6d65 6e74 732c 206c lock comments, l │ │ │ │ +0000c8f0: 696b 653a 0a20 2020 2020 2020 2020 2020 ike:. │ │ │ │ +0000c900: 2020 2020 282b 2032 2023 7c20 5468 6973 (+ 2 #| This │ │ │ │ +0000c910: 2069 7320 616e 2023 7c20 5352 4649 2d33 is an #| SRFI-3 │ │ │ │ +0000c920: 3020 7c23 2063 6f6d 6d65 6e74 207c 2320 0 |# comment |# │ │ │ │ +0000c930: 3229 0a20 2020 2020 e280 9873 7266 6936 2). ...srfi6 │ │ │ │ +0000c940: 322d 7365 7870 2d63 6f6d 6d65 6e74 73e2 2-sexp-comments. │ │ │ │ +0000c950: 8099 0a20 2020 2020 2020 2020 2041 6464 ... Add │ │ │ │ +0000c960: 2073 7570 706f 7274 2066 6f72 2053 5246 support for SRF │ │ │ │ +0000c970: 492d 3632 2053 2d65 7870 7265 7373 696f I-62 S-expressio │ │ │ │ +0000c980: 6e20 636f 6d6d 656e 7473 2c20 6c69 6b65 n comments, like │ │ │ │ +0000c990: 3a0a 2020 2020 2020 2020 2020 2020 2020 :. │ │ │ │ +0000c9a0: 2028 2b20 3220 233b 2861 2063 6f6d 6d65 (+ 2 #;(a comme │ │ │ │ +0000c9b0: 6e74 2920 3229 0a20 2020 2020 e280 9863 nt) 2). ...c │ │ │ │ +0000c9c0: 6173 652d 696e 7365 6e73 6974 6976 65e2 ase-insensitive. │ │ │ │ +0000c9d0: 8099 0a20 2020 2020 2020 2020 2052 6561 ... Rea │ │ │ │ +0000c9e0: 6420 7379 6d62 6f6c 7320 696e 2061 2063 d symbols in a c │ │ │ │ +0000c9f0: 6173 652d 696e 7365 6e73 6974 6976 6520 ase-insensitive │ │ │ │ +0000ca00: 7761 792e 0a20 2020 2020 e280 9873 7175 way.. ...squ │ │ │ │ +0000ca10: 6172 652d 6272 6163 6b65 742d 7365 7870 are-bracket-sexp │ │ │ │ +0000ca20: 73e2 8099 0a20 2020 2020 e280 9873 7175 s.... ...squ │ │ │ │ +0000ca30: 6172 652d 6272 6163 6b65 7473 e280 990a are-brackets.... │ │ │ │ +0000ca40: 2020 2020 2020 2020 2020 416c 6c6f 7720 Allow │ │ │ │ +0000ca50: 666f 7220 7371 7561 7265 2062 7261 636b for square brack │ │ │ │ +0000ca60: 6574 7320 6172 6f75 6e64 2053 2d65 7870 ets around S-exp │ │ │ │ +0000ca70: 7265 7373 696f 6e73 2e0a 0a1f 0a46 696c ressions.....Fil │ │ │ │ +0000ca80: 653a 2067 7569 6c65 2d72 6561 6465 722e e: guile-reader. │ │ │ │ +0000ca90: 696e 666f 2c20 204e 6f64 653a 2043 6f6d info, Node: Com │ │ │ │ +0000caa0: 7061 7469 6269 6c69 7479 2061 6e64 2043 patibility and C │ │ │ │ +0000cab0: 6f6e 6669 6e65 6d65 6e74 2c20 2050 7265 onfinement, Pre │ │ │ │ +0000cac0: 763a 2052 6561 6465 7220 4c69 6272 6172 v: Reader Librar │ │ │ │ +0000cad0: 792c 2020 5570 3a20 5265 6164 6572 730a y, Up: Readers. │ │ │ │ +0000cae0: 0a34 2e32 2e33 2043 6f6d 7061 7469 6269 .4.2.3 Compatibi │ │ │ │ +0000caf0: 6c69 7479 2061 6e64 2043 6f6e 6669 6e65 lity and Confine │ │ │ │ +0000cb00: 6d65 6e74 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d ment.----------- │ │ │ │ 0000cb10: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ---------------- │ │ │ │ -0000cb20: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 4775 ------------..Gu │ │ │ │ -0000cb30: 696c 6527 7320 636f 7265 2072 6561 6420 ile's core read │ │ │ │ -0000cb40: 7375 6273 7973 7465 6d20 7072 6f76 6964 subsystem provid │ │ │ │ -0000cb50: 6573 2061 6e20 696e 7465 7266 6163 6520 es an interface │ │ │ │ -0000cb60: 746f 2063 7573 746f 6d69 7a65 2069 7473 to customize its │ │ │ │ -0000cb70: 0a72 6561 6465 722c 206e 616d 656c 7920 .reader, namely │ │ │ │ -0000cb80: 7669 6120 7468 6520 e280 9872 6561 642d via the ...read- │ │ │ │ -0000cb90: 6f70 7469 6f6e 73e2 8099 2028 2a6e 6f74 options... (*not │ │ │ │ -0000cba0: 6520 2867 7569 6c65 2953 6368 656d 6520 e (guile)Scheme │ │ │ │ -0000cbb0: 5265 6164 3a3a 2920 616e 640a e280 9872 Read::) and....r │ │ │ │ -0000cbc0: 6561 642d 6861 7368 2d65 7874 656e 64e2 ead-hash-extend. │ │ │ │ -0000cbd0: 8099 2028 2a6e 6f74 6520 e280 9872 6561 .. (*note ...rea │ │ │ │ -0000cbe0: 642d 6861 7368 2d65 7874 656e 64e2 8099 d-hash-extend... │ │ │ │ -0000cbf0: 3a20 2867 7569 6c65 2952 6561 6465 7220 : (guile)Reader │ │ │ │ -0000cc00: 4578 7465 6e73 696f 6e73 2e29 0a70 726f Extensions.).pro │ │ │ │ -0000cc10: 6365 6475 7265 732e 0a0a 2020 2054 6865 cedures... The │ │ │ │ -0000cc20: 206d 6169 6e20 7072 6f62 6c65 6d20 7769 main problem wi │ │ │ │ -0000cc30: 7468 2074 6869 7320 6170 7072 6f61 6368 th this approach │ │ │ │ -0000cc40: 2069 7320 7468 6174 2063 6861 6e67 696e is that changin │ │ │ │ -0000cc50: 6720 7468 6520 7265 6164 6572 2773 0a6f g the reader's.o │ │ │ │ -0000cc60: 7074 696f 6e73 2075 7369 6e67 2074 6865 ptions using the │ │ │ │ -0000cc70: 7365 2070 726f 6365 6475 7265 7320 6861 se procedures ha │ │ │ │ -0000cc80: 7320 6120 676c 6f62 616c 2065 6666 6563 s a global effec │ │ │ │ -0000cc90: 7420 7369 6e63 6520 7468 6572 6520 6973 t since there is │ │ │ │ -0000cca0: 206f 6e6c 790a 6f6e 6520 696e 7374 616e only.one instan │ │ │ │ -0000ccb0: 6365 206f 6620 e280 9872 6561 64e2 8099 ce of ...read... │ │ │ │ -0000ccc0: 2e20 2043 6861 6e67 696e 6720 7468 6520 . Changing the │ │ │ │ -0000ccd0: 6265 6861 7669 6f72 206f 6620 6120 7369 behavior of a si │ │ │ │ -0000cce0: 6e67 6c65 2066 756e 6374 696f 6e20 6174 ngle function at │ │ │ │ -0000ccf0: 0a74 6865 2073 6361 6c65 206f 6620 7468 .the scale of th │ │ │ │ -0000cd00: 6520 7768 6f6c 6520 6973 206e 6f74 2076 e whole is not v │ │ │ │ -0000cd10: 6572 7920 2273 6368 656d 6579 2220 616e ery "schemey" an │ │ │ │ -0000cd20: 6420 6361 6e20 6265 2071 7569 7465 2068 d can be quite h │ │ │ │ -0000cd30: 6172 6d66 756c 2e0a 5375 7070 6f73 6520 armful..Suppose │ │ │ │ -0000cd40: 6120 6d6f 6475 6c65 2072 656c 6965 7320 a module relies │ │ │ │ -0000cd50: 6f6e 2063 6173 652d 696e 7365 6e73 6974 on case-insensit │ │ │ │ -0000cd60: 6976 6974 7920 7768 696c 6520 616e 6f74 ivity while anot │ │ │ │ -0000cd70: 6865 7220 7265 6c69 6573 206f 6e0a 6361 her relies on.ca │ │ │ │ -0000cd80: 7365 2d73 656e 7369 7469 7669 7479 2e20 se-sensitivity. │ │ │ │ -0000cd90: 2049 6620 6f6e 6520 7472 6965 7320 746f If one tries to │ │ │ │ -0000cda0: 2075 7365 2062 6f74 6820 6d6f 6475 6c65 use both module │ │ │ │ -0000cdb0: 7320 6174 2074 6865 2073 616d 6520 7469 s at the same ti │ │ │ │ -0000cdc0: 6d65 2c0a 6368 616e 6365 7320 6172 6520 me,.chances are │ │ │ │ -0000cdd0: 7468 6174 2061 7420 6c65 6173 7420 6f6e that at least on │ │ │ │ -0000cde0: 6520 6f66 2074 6865 6d20 7769 6c6c 206e e of them will n │ │ │ │ -0000cdf0: 6f74 2077 6f72 6b20 6173 2065 7870 6563 ot work as expec │ │ │ │ -0000ce00: 7465 642e 2020 5269 736b 730a 6f66 2063 ted. Risks.of c │ │ │ │ -0000ce10: 6f6e 666c 6963 7473 2061 7265 2065 7665 onflicts are eve │ │ │ │ -0000ce20: 6e20 6869 6768 6572 2077 6865 6e20 e280 n higher when .. │ │ │ │ -0000ce30: 9872 6561 642d 6861 7368 2d65 7874 656e .read-hash-exten │ │ │ │ -0000ce40: 64e2 8099 2069 7320 7573 6564 3a20 696d d... is used: im │ │ │ │ -0000ce50: 6167 696e 6520 610a 6d6f 6475 6c65 2074 agine a.module t │ │ │ │ -0000ce60: 6861 7420 7573 6573 2044 5353 534c 2d73 hat uses DSSSL-s │ │ │ │ -0000ce70: 7479 6c65 206b 6579 776f 7264 732c 2077 tyle keywords, w │ │ │ │ -0000ce80: 6869 6c65 2061 6e6f 7468 6572 206e 6565 hile another nee │ │ │ │ -0000ce90: 6473 2053 4353 482d 7374 796c 650a 626c ds SCSH-style.bl │ │ │ │ -0000cea0: 6f63 6b20 636f 6d6d 656e 7473 2e0a 0a20 ock comments... │ │ │ │ -0000ceb0: 2020 496e 20e2 8098 2873 7973 7465 6d20 In ...(system │ │ │ │ -0000cec0: 7265 6164 6572 2063 6f6e 6669 6e65 6d65 reader confineme │ │ │ │ -0000ced0: 6e74 29e2 8099 2c20 6775 696c 652d 7265 nt)..., guile-re │ │ │ │ -0000cee0: 6164 6572 206f 6666 6572 7320 616e 0a69 ader offers an.i │ │ │ │ -0000cef0: 6d70 6c65 6d65 6e74 6174 696f 6e20 6f66 mplementation of │ │ │ │ -0000cf00: 20e2 8098 7265 6164 2d6f 7074 696f 6e2d ...read-option- │ │ │ │ -0000cf10: 696e 7465 7266 6163 65e2 8099 2061 6e64 interface... and │ │ │ │ -0000cf20: 20e2 8098 7265 6164 2d68 6173 682d 6578 ...read-hash-ex │ │ │ │ -0000cf30: 7465 6e64 e280 9920 7468 6174 0a61 6c6c tend... that.all │ │ │ │ -0000cf40: 6f77 7320 746f 205f 636f 6e66 696e 655f ows to _confine_ │ │ │ │ -0000cf50: 2073 7563 6820 7365 7474 696e 6773 206f such settings o │ │ │ │ -0000cf60: 6e20 6120 7065 722d 6d6f 6475 6c65 2062 n a per-module b │ │ │ │ -0000cf70: 6173 6973 2e20 2049 6e20 6f72 6465 7220 asis. In order │ │ │ │ -0000cf80: 746f 0a65 6e61 626c 6520 7265 6164 6572 to.enable reader │ │ │ │ -0000cf90: 2063 6f6e 6669 6e65 6d65 6e74 2c20 6f6e confinement, on │ │ │ │ -0000cfa0: 6520 6a75 7374 2068 6173 2074 6f20 646f e just has to do │ │ │ │ -0000cfb0: 2074 6869 733a 0a0a 2020 2020 2028 7573 this:.. (us │ │ │ │ -0000cfc0: 652d 6d6f 6475 6c65 7320 2873 7973 7465 e-modules (syste │ │ │ │ -0000cfd0: 6d20 7265 6164 6572 2063 6f6e 6669 6e65 m reader confine │ │ │ │ -0000cfe0: 6d65 6e74 2929 0a0a 2020 204e 6f74 6520 ment)).. Note │ │ │ │ -0000cff0: 7468 6174 2074 6869 7320 6d75 7374 2062 that this must b │ │ │ │ -0000d000: 6520 646f 6e65 2062 6566 6f72 6520 7468 e done before th │ │ │ │ -0000d010: 6520 7375 7370 6963 696f 7573 206d 6f64 e suspicious mod │ │ │ │ -0000d020: 756c 6573 2061 7265 206c 6f61 6465 642c ules are loaded, │ │ │ │ -0000d030: 0a74 6861 7420 6973 2c20 7479 7069 6361 .that is, typica │ │ │ │ -0000d040: 6c6c 7920 7768 656e 2079 6f75 7220 7072 lly when your pr │ │ │ │ -0000d050: 6f67 7261 6d20 7374 6172 7473 2e20 2054 ogram starts. T │ │ │ │ -0000d060: 6869 7320 7769 6c6c 2072 6564 6566 696e his will redefin │ │ │ │ -0000d070: 650a e280 9872 6561 642d 6f70 7469 6f6e e....read-option │ │ │ │ -0000d080: 732d 696e 7465 7266 6163 65e2 8099 2061 s-interface... a │ │ │ │ -0000d090: 6e64 20e2 8098 7265 6164 2d68 6173 682d nd ...read-hash- │ │ │ │ -0000d0a0: 6578 7465 6e64 e280 9920 736f 2074 6861 extend... so tha │ │ │ │ -0000d0b0: 7420 616e 7920 6675 7475 7265 0a6d 6f64 t any future.mod │ │ │ │ -0000d0c0: 6966 6963 6174 696f 6e20 7065 7266 6f72 ification perfor │ │ │ │ -0000d0d0: 6d65 6420 7669 6120 4775 696c 6527 7320 med via Guile's │ │ │ │ -0000d0e0: 6275 696c 742d 696e 2072 6561 6465 7220 built-in reader │ │ │ │ -0000d0f0: 6f70 7469 6f6e 2069 6e74 6572 6661 6365 option interface │ │ │ │ -0000d100: 2077 696c 6c0a 6265 2063 6f6e 6669 6e65 will.be confine │ │ │ │ -0000d110: 6420 746f 2074 6865 2063 616c 6c69 6e67 d to the calling │ │ │ │ -0000d120: 206d 6f64 756c 652e 0a0a 2020 2053 7461 module... Sta │ │ │ │ -0000d130: 7274 696e 6720 6672 6f6d 2047 7569 6c65 rting from Guile │ │ │ │ -0000d140: 2031 2e38 2e30 2c20 e280 9863 7572 7265 1.8.0, ...curre │ │ │ │ -0000d150: 6e74 2d72 6561 6465 72e2 8099 2069 7320 nt-reader... is │ │ │ │ -0000d160: 6120 636f 7265 2062 696e 6469 6e67 2062 a core binding b │ │ │ │ -0000d170: 6f75 6e64 0a74 6f20 6120 666c 7569 6420 ound.to a fluid │ │ │ │ -0000d180: 7768 6f73 6520 7661 6c75 6520 7368 6f75 whose value shou │ │ │ │ -0000d190: 6c64 2062 6520 6569 7468 6572 20e2 8098 ld be either ... │ │ │ │ -0000d1a0: 2366 e280 9920 6f72 2061 2072 6561 6465 #f... or a reade │ │ │ │ -0000d1b0: 7220 2869 2e65 2e2c 2061 0ae2 8098 7265 r (i.e., a....re │ │ │ │ -0000d1c0: 6164 e280 992d 6c69 6b65 2070 726f 6365 ad...-like proce │ │ │ │ -0000d1d0: 6475 7265 292e 2020 5468 6520 7661 6c75 dure). The valu │ │ │ │ -0000d1e0: 6520 6f66 2074 6869 7320 666c 7569 6420 e of this fluid │ │ │ │ -0000d1f0: 6469 6374 6174 6573 2074 6865 2072 6561 dictates the rea │ │ │ │ -0000d200: 6465 720a 7468 6174 2069 7320 746f 2062 der.that is to b │ │ │ │ -0000d210: 6520 7573 6564 2062 7920 e280 9870 7269 e used by ...pri │ │ │ │ -0000d220: 6d69 7469 7665 2d6c 6f61 64e2 8099 2061 mitive-load... a │ │ │ │ -0000d230: 6e64 2069 7473 2076 616c 7565 2063 616e nd its value can │ │ │ │ -0000d240: 2062 6520 6368 616e 6765 640a 6479 6e61 be changed.dyna │ │ │ │ -0000d250: 6d69 6361 6c6c 7920 282a 6e6f 7465 20e2 mically (*note . │ │ │ │ -0000d260: 8098 6375 7272 656e 742d 7265 6164 6572 ..current-reader │ │ │ │ -0000d270: e280 993a 2028 6775 696c 6529 4c6f 6164 ...: (guile)Load │ │ │ │ -0000d280: 696e 672e 292e 0a0a 2020 2054 6865 2063 ing.)... The c │ │ │ │ -0000d290: 6f6e 6669 6e65 6420 7661 7269 616e 7473 onfined variants │ │ │ │ -0000d2a0: 206f 6620 e280 9872 6561 642d 6f70 7469 of ...read-opti │ │ │ │ -0000d2b0: 6f6e 732d 696e 7465 7266 6163 65e2 8099 ons-interface... │ │ │ │ -0000d2c0: 2061 6e64 0ae2 8098 7265 6164 2d68 6173 and....read-has │ │ │ │ -0000d2d0: 682d 6578 7465 6e64 e280 9920 7265 6c79 h-extend... rely │ │ │ │ -0000d2e0: 206f 6e20 7468 6973 2066 6561 7475 7265 on this feature │ │ │ │ -0000d2f0: 2074 6f20 6d61 6b65 2072 6561 6465 7220 to make reader │ │ │ │ -0000d300: 6375 7374 6f6d 697a 6174 696f 6e73 0a6c customizations.l │ │ │ │ -0000d310: 6f63 616c 2074 6f20 7468 6520 6669 6c65 ocal to the file │ │ │ │ -0000d320: 2062 6569 6e67 206c 6f61 6465 642e 2020 being loaded. │ │ │ │ -0000d330: 5468 6973 2077 6179 2c20 696e 766f 6361 This way, invoca │ │ │ │ -0000d340: 7469 6f6e 7320 6f66 2074 6865 7365 0a66 tions of these.f │ │ │ │ -0000d350: 756e 6374 696f 6e73 2066 726f 6d20 7769 unctions from wi │ │ │ │ -0000d360: 7468 696e 2061 2066 696c 6520 6265 696e thin a file bein │ │ │ │ -0000d370: 6720 6c6f 6164 6564 2062 7920 e280 9870 g loaded by ...p │ │ │ │ -0000d380: 7269 6d69 7469 7665 2d6c 6f61 64e2 8099 rimitive-load... │ │ │ │ -0000d390: 2074 616b 650a 6566 6665 6374 2069 6d6d take.effect imm │ │ │ │ -0000d3a0: 6564 6961 7465 6c79 2e0a 0a1f 0a46 696c ediately.....Fil │ │ │ │ -0000d3b0: 653a 2067 7569 6c65 2d72 6561 6465 722e e: guile-reader. │ │ │ │ -0000d3c0: 696e 666f 2c20 204e 6f64 653a 2049 6e74 info, Node: Int │ │ │ │ -0000d3d0: 6572 6e61 6c73 2c20 204e 6578 743a 2043 ernals, Next: C │ │ │ │ -0000d3e0: 6f6e 6365 7074 2049 6e64 6578 2c20 2050 oncept Index, P │ │ │ │ -0000d3f0: 7265 763a 2041 5049 2052 6566 6572 656e rev: API Referen │ │ │ │ -0000d400: 6365 2c20 2055 703a 2054 6f70 0a0a 3520 ce, Up: Top..5 │ │ │ │ -0000d410: 496e 7465 726e 616c 730a 2a2a 2a2a 2a2a Internals.****** │ │ │ │ -0000d420: 2a2a 2a2a 2a0a 0a49 6e20 6f72 6465 7220 *****..In order │ │ │ │ -0000d430: 746f 206e 6f74 2068 6176 6520 746f 2074 to not have to t │ │ │ │ -0000d440: 7261 6465 2074 6f6f 206d 7563 6820 7065 rade too much pe │ │ │ │ -0000d450: 7266 6f72 6d61 6e63 6520 666f 7220 666c rformance for fl │ │ │ │ -0000d460: 6578 6962 696c 6974 792c 0a47 7569 6c65 exibility,.Guile │ │ │ │ -0000d470: 2d52 6561 6465 7220 6479 6e61 6d69 6361 -Reader dynamica │ │ │ │ -0000d480: 6c6c 7920 636f 6d70 696c 6573 2063 6f64 lly compiles cod │ │ │ │ -0000d490: 6520 666f 7220 7468 6520 7265 6164 6572 e for the reader │ │ │ │ -0000d4a0: 7320 6465 6669 6e65 6420 7573 696e 6720 s defined using │ │ │ │ -0000d4b0: 474e 550a 5f6c 6967 6874 6e69 6e67 5f20 GNU._lightning_ │ │ │ │ -0000d4c0: 282a 6e6f 7465 2049 6e74 726f 6475 6374 (*note Introduct │ │ │ │ -0000d4d0: 696f 6e20 746f 2047 4e55 205f 6c69 6768 ion to GNU _ligh │ │ │ │ -0000d4e0: 746e 696e 675f 3a0a 286c 6967 6874 6e69 tning_:.(lightni │ │ │ │ -0000d4f0: 6e67 294f 7665 7276 6965 772e 292e 2020 ng)Overview.). │ │ │ │ -0000d500: 4173 206f 6620 7665 7273 696f 6e20 312e As of version 1. │ │ │ │ -0000d510: 3263 2c20 474e 5520 5f6c 6967 6874 6e69 2c, GNU _lightni │ │ │ │ -0000d520: 6e67 5f20 6361 6e20 6765 6e65 7261 7465 ng_ can generate │ │ │ │ -0000d530: 0a63 6f64 6520 666f 7220 7468 6520 506f .code for the Po │ │ │ │ -0000d540: 7765 7250 432c 2053 5041 5243 2c20 616e werPC, SPARC, an │ │ │ │ -0000d550: 6420 4941 3332 2061 7263 6869 7465 6374 d IA32 architect │ │ │ │ -0000d560: 7572 6573 2e20 2046 6f72 206f 7468 6572 ures. For other │ │ │ │ -0000d570: 0a70 6c61 7466 6f72 6d73 2c20 4775 696c .platforms, Guil │ │ │ │ -0000d580: 652d 5265 6164 6572 2070 726f 7669 6465 e-Reader provide │ │ │ │ -0000d590: 7320 616e 2061 6c74 6572 6e61 7469 7665 s an alternative │ │ │ │ -0000d5a0: 2028 736c 6f77 6572 2920 430a 696d 706c (slower) C.impl │ │ │ │ -0000d5b0: 656d 656e 7461 7469 6f6e 2074 6861 7420 ementation that │ │ │ │ -0000d5c0: 646f 6573 206e 6f74 2064 6570 656e 6420 does not depend │ │ │ │ -0000d5d0: 6f6e 2069 742e 2020 5573 696e 6720 7468 on it. Using th │ │ │ │ -0000d5e0: 650a 5f6c 6967 6874 6e69 6e67 5f2d 6765 e._lightning_-ge │ │ │ │ -0000d5f0: 6e65 7261 7465 6420 7265 6164 6572 7320 nerated readers │ │ │ │ -0000d600: 7479 7069 6361 6c6c 7920 7072 6f76 6964 typically provid │ │ │ │ -0000d610: 6573 2061 2035 2520 7065 7266 6f72 6d61 es a 5% performa │ │ │ │ -0000d620: 6e63 650a 696d 7072 6f76 656d 656e 7420 nce.improvement │ │ │ │ -0000d630: 6f76 6572 2074 6865 2073 7461 7469 6320 over the static │ │ │ │ -0000d640: 4320 696d 706c 656d 656e 7461 7469 6f6e C implementation │ │ │ │ -0000d650: 2e20 2048 6f77 6576 6572 2c20 6e6f 7465 . However, note │ │ │ │ -0000d660: 2074 6861 740a 5f6c 6967 6874 6e69 6e67 that._lightning │ │ │ │ -0000d670: 5f20 322e 7820 6973 206e 6f74 2073 7570 _ 2.x is not sup │ │ │ │ -0000d680: 706f 7274 6564 2079 6574 2e0a 0a20 2020 ported yet... │ │ │ │ -0000d690: 5265 2d75 7369 6e67 2074 6f6b 656e 2072 Re-using token r │ │ │ │ -0000d6a0: 6561 6465 7273 2077 7269 7474 656e 2069 eaders written i │ │ │ │ -0000d6b0: 6e20 432c 2061 7320 6578 706c 6169 6e65 n C, as explaine │ │ │ │ -0000d6c0: 6420 696e 202a 4e6f 7465 2054 6f6b 656e d in *Note Token │ │ │ │ -0000d6d0: 0a52 6561 6465 7220 4c69 6272 6172 793a .Reader Library: │ │ │ │ -0000d6e0: 3a2c 2064 6f65 7320 6e6f 7420 696d 706c :, does not impl │ │ │ │ -0000d6f0: 7920 616e 7920 6164 6469 7469 6f6e 616c y any additional │ │ │ │ -0000d700: 2063 6f73 743a 2074 6865 2075 6e64 6572 cost: the under │ │ │ │ -0000d710: 6c79 696e 6720 430a 6675 6e63 7469 6f6e lying C.function │ │ │ │ -0000d720: 2077 696c 6c20 6265 2063 616c 6c65 6420 will be called │ │ │ │ -0000d730: 6469 7265 6374 6c79 2062 7920 7468 6520 directly by the │ │ │ │ -0000d740: 7265 6164 6572 2c20 7769 7468 6f75 7420 reader, without │ │ │ │ -0000d750: 6861 7669 6e67 2074 6f20 676f 0a74 6872 having to go.thr │ │ │ │ -0000d760: 6f75 6768 2061 6e79 206d 6172 7368 616c ough any marshal │ │ │ │ -0000d770: 6c69 6e67 2f75 6e6d 6172 7368 616c 6c69 ling/unmarshalli │ │ │ │ -0000d780: 6e67 2073 7461 6765 2e0a 0a20 2020 4164 ng stage... Ad │ │ │ │ -0000d790: 6469 7469 6f6e 616c 6c79 2c20 6f6e 2074 ditionally, on t │ │ │ │ -0000d7a0: 6865 2043 2073 6964 652c 2074 6f6b 656e he C side, token │ │ │ │ -0000d7b0: 2072 6561 6465 7273 206d 6179 2062 6520 readers may be │ │ │ │ -0000d7c0: 696e 6974 6961 6c69 7a65 640a 5f73 7461 initialized._sta │ │ │ │ -0000d7d0: 7469 6361 6c6c 795f 2028 6578 6365 7074 tically_ (except │ │ │ │ -0000d7e0: 2c20 6f62 7669 6f75 736c 792c 2074 6f6b , obviously, tok │ │ │ │ -0000d7f0: 656e 2072 6561 6465 7273 206d 6164 6520 en readers made │ │ │ │ -0000d800: 6f75 7420 6f66 2061 0a64 796e 616d 6963 out of a.dynamic │ │ │ │ -0000d810: 616c 6c79 2d63 6f6d 7069 6c65 6420 7265 ally-compiled re │ │ │ │ -0000d820: 6164 6572 292e 2020 4d61 6b69 6e67 2067 ader). Making g │ │ │ │ -0000d830: 6f6f 6420 7573 6520 6f66 2069 7420 6361 ood use of it ca │ │ │ │ -0000d840: 6e20 696d 7072 6f76 6520 7468 650a 7374 n improve the.st │ │ │ │ -0000d850: 6172 7475 7020 7469 6d65 206f 6620 6120 artup time of a │ │ │ │ -0000d860: 7072 6f67 7261 6d2e 2020 466f 7220 6578 program. For ex │ │ │ │ -0000d870: 616d 706c 652c 20e2 8098 6d61 6b65 2d67 ample, ...make-g │ │ │ │ -0000d880: 7569 6c65 2d72 6561 6465 72e2 8099 2028 uile-reader... ( │ │ │ │ -0000d890: 2a6e 6f74 650a 5265 6164 6572 204c 6962 *note.Reader Lib │ │ │ │ -0000d8a0: 7261 7279 3a3a 2920 6973 2069 6d70 6c65 rary::) is imple │ │ │ │ -0000d8b0: 6d65 6e74 6564 2069 6e20 4320 616e 6420 mented in C and │ │ │ │ -0000d8c0: 6974 2075 7365 7320 7374 6174 6963 616c it uses statical │ │ │ │ -0000d8d0: 6c79 2069 6e69 7469 616c 697a 6564 0a61 ly initialized.a │ │ │ │ -0000d8e0: 7272 6179 7320 6f66 2074 6f6b 656e 2072 rrays of token r │ │ │ │ -0000d8f0: 6561 6465 7273 2e20 2049 7420 7374 696c eaders. It stil │ │ │ │ -0000d900: 6c20 6e65 6564 7320 746f 2069 6e76 6f6b l needs to invok │ │ │ │ -0000d910: 6520 e280 9873 636d 5f63 5f6d 616b 655f e ...scm_c_make_ │ │ │ │ -0000d920: 7265 6164 6572 0a28 29e2 8099 2c20 6275 reader.()..., bu │ │ │ │ -0000d930: 7420 6174 206c 6561 7374 2c20 746f 6b65 t at least, toke │ │ │ │ -0000d940: 6e20 7265 6164 6572 7320 7468 656d 7365 n readers themse │ │ │ │ -0000d950: 6c76 6573 2061 7265 2022 7265 6164 7920 lves are "ready │ │ │ │ -0000d960: 746f 2075 7365 222e 0a0a 2020 2053 6361 to use"... Sca │ │ │ │ -0000d970: 6e6e 6572 7320 6173 2067 656e 6572 6174 nners as generat │ │ │ │ -0000d980: 6564 2062 7920 466c 6578 206f 7220 7369 ed by Flex or si │ │ │ │ -0000d990: 6d69 6c61 7220 746f 6f6c 7320 7368 6f75 milar tools shou │ │ │ │ -0000d9a0: 6c64 2074 6865 6f72 6574 6963 616c 6c79 ld theoretically │ │ │ │ -0000d9b0: 0a62 6520 6162 6c65 2074 6f20 7072 6f76 .be able to prov │ │ │ │ -0000d9c0: 6964 6520 6265 7474 6572 2070 6572 666f ide better perfo │ │ │ │ -0000d9d0: 726d 616e 6365 2062 6563 6175 7365 2074 rmance because t │ │ │ │ -0000d9e0: 6865 2069 6e70 7574 2072 6561 6469 6e67 he input reading │ │ │ │ -0000d9f0: 2061 6e64 0a70 6174 7465 726e 206d 6174 and.pattern mat │ │ │ │ -0000da00: 6368 696e 6720 6c6f 6f70 2069 7320 7365 ching loop is se │ │ │ │ -0000da10: 6c66 2d63 6f6e 7461 696e 6564 2c20 6d61 lf-contained, ma │ │ │ │ -0000da20: 7920 6669 7420 696e 2063 6163 6865 2c20 y fit in cache, │ │ │ │ -0000da30: 616e 6420 6f6e 6c79 2068 6173 0a74 6f20 and only has.to │ │ │ │ -0000da40: 7065 7266 6f72 6d20 6675 6e63 7469 6f6e perform function │ │ │ │ -0000da50: 2063 616c 6c73 206f 6e63 6520 6120 7061 calls once a pa │ │ │ │ -0000da60: 7474 6572 6e20 6861 7320 6265 656e 2066 ttern has been f │ │ │ │ -0000da70: 756c 6c79 2072 6563 6f67 6e69 7a65 642e ully recognized. │ │ │ │ -0000da80: 0a0a 1f0a 4669 6c65 3a20 6775 696c 652d ....File: guile- │ │ │ │ -0000da90: 7265 6164 6572 2e69 6e66 6f2c 2020 4e6f reader.info, No │ │ │ │ -0000daa0: 6465 3a20 436f 6e63 6570 7420 496e 6465 de: Concept Inde │ │ │ │ -0000dab0: 782c 2020 4e65 7874 3a20 4675 6e63 7469 x, Next: Functi │ │ │ │ -0000dac0: 6f6e 2049 6e64 6578 2c20 2050 7265 763a on Index, Prev: │ │ │ │ -0000dad0: 2049 6e74 6572 6e61 6c73 2c20 2055 703a Internals, Up: │ │ │ │ -0000dae0: 2054 6f70 0a0a 436f 6e63 6570 7420 496e Top..Concept In │ │ │ │ -0000daf0: 6465 780a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a dex.************ │ │ │ │ -0000db00: 2a0a 0a00 085b 696e 6465 7800 085d 0a2a *....[index..].* │ │ │ │ -0000db10: 204d 656e 753a 0a0a 2a20 6361 6c6c 696e Menu:..* callin │ │ │ │ -0000db20: 6720 636f 6e76 656e 7469 6f6e 3a20 2020 g convention: │ │ │ │ -0000db30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000db40: 2054 5220 4361 6c6c 696e 6720 436f 6e76 TR Calling Conv │ │ │ │ -0000db50: 656e 7469 6f6e 2e0a 2020 2020 2020 2020 ention.. │ │ │ │ +0000cb20: 2d2d 2d2d 2d2d 2d2d 0a0a 4775 696c 6527 --------..Guile' │ │ │ │ +0000cb30: 7320 636f 7265 2072 6561 6420 7375 6273 s core read subs │ │ │ │ +0000cb40: 7973 7465 6d20 7072 6f76 6964 6573 2061 ystem provides a │ │ │ │ +0000cb50: 6e20 696e 7465 7266 6163 6520 746f 2063 n interface to c │ │ │ │ +0000cb60: 7573 746f 6d69 7a65 2069 7473 0a72 6561 ustomize its.rea │ │ │ │ +0000cb70: 6465 722c 206e 616d 656c 7920 7669 6120 der, namely via │ │ │ │ +0000cb80: 7468 6520 e280 9872 6561 642d 6f70 7469 the ...read-opti │ │ │ │ +0000cb90: 6f6e 73e2 8099 2028 2a6e 6f74 6520 2867 ons... (*note (g │ │ │ │ +0000cba0: 7569 6c65 2953 6368 656d 6520 5265 6164 uile)Scheme Read │ │ │ │ +0000cbb0: 3a3a 2920 616e 640a e280 9872 6561 642d ::) and....read- │ │ │ │ +0000cbc0: 6861 7368 2d65 7874 656e 64e2 8099 2028 hash-extend... ( │ │ │ │ +0000cbd0: 2a6e 6f74 6520 e280 9872 6561 642d 6861 *note ...read-ha │ │ │ │ +0000cbe0: 7368 2d65 7874 656e 64e2 8099 3a20 2867 sh-extend...: (g │ │ │ │ +0000cbf0: 7569 6c65 2952 6561 6465 7220 4578 7465 uile)Reader Exte │ │ │ │ +0000cc00: 6e73 696f 6e73 2e29 0a70 726f 6365 6475 nsions.).procedu │ │ │ │ +0000cc10: 7265 732e 0a0a 2020 2054 6865 206d 6169 res... The mai │ │ │ │ +0000cc20: 6e20 7072 6f62 6c65 6d20 7769 7468 2074 n problem with t │ │ │ │ +0000cc30: 6869 7320 6170 7072 6f61 6368 2069 7320 his approach is │ │ │ │ +0000cc40: 7468 6174 2063 6861 6e67 696e 6720 7468 that changing th │ │ │ │ +0000cc50: 6520 7265 6164 6572 2773 0a6f 7074 696f e reader's.optio │ │ │ │ +0000cc60: 6e73 2075 7369 6e67 2074 6865 7365 2070 ns using these p │ │ │ │ +0000cc70: 726f 6365 6475 7265 7320 6861 7320 6120 rocedures has a │ │ │ │ +0000cc80: 676c 6f62 616c 2065 6666 6563 7420 7369 global effect si │ │ │ │ +0000cc90: 6e63 6520 7468 6572 6520 6973 206f 6e6c nce there is onl │ │ │ │ +0000cca0: 790a 6f6e 6520 696e 7374 616e 6365 206f y.one instance o │ │ │ │ +0000ccb0: 6620 e280 9872 6561 64e2 8099 2e20 2043 f ...read.... C │ │ │ │ +0000ccc0: 6861 6e67 696e 6720 7468 6520 6265 6861 hanging the beha │ │ │ │ +0000ccd0: 7669 6f72 206f 6620 6120 7369 6e67 6c65 vior of a single │ │ │ │ +0000cce0: 2066 756e 6374 696f 6e20 6174 0a74 6865 function at.the │ │ │ │ +0000ccf0: 2073 6361 6c65 206f 6620 7468 6520 7768 scale of the wh │ │ │ │ +0000cd00: 6f6c 6520 6973 206e 6f74 2076 6572 7920 ole is not very │ │ │ │ +0000cd10: 2273 6368 656d 6579 2220 616e 6420 6361 "schemey" and ca │ │ │ │ +0000cd20: 6e20 6265 2071 7569 7465 2068 6172 6d66 n be quite harmf │ │ │ │ +0000cd30: 756c 2e0a 5375 7070 6f73 6520 6120 6d6f ul..Suppose a mo │ │ │ │ +0000cd40: 6475 6c65 2072 656c 6965 7320 6f6e 2063 dule relies on c │ │ │ │ +0000cd50: 6173 652d 696e 7365 6e73 6974 6976 6974 ase-insensitivit │ │ │ │ +0000cd60: 7920 7768 696c 6520 616e 6f74 6865 7220 y while another │ │ │ │ +0000cd70: 7265 6c69 6573 206f 6e0a 6361 7365 2d73 relies on.case-s │ │ │ │ +0000cd80: 656e 7369 7469 7669 7479 2e20 2049 6620 ensitivity. If │ │ │ │ +0000cd90: 6f6e 6520 7472 6965 7320 746f 2075 7365 one tries to use │ │ │ │ +0000cda0: 2062 6f74 6820 6d6f 6475 6c65 7320 6174 both modules at │ │ │ │ +0000cdb0: 2074 6865 2073 616d 6520 7469 6d65 2c0a the same time,. │ │ │ │ +0000cdc0: 6368 616e 6365 7320 6172 6520 7468 6174 chances are that │ │ │ │ +0000cdd0: 2061 7420 6c65 6173 7420 6f6e 6520 6f66 at least one of │ │ │ │ +0000cde0: 2074 6865 6d20 7769 6c6c 206e 6f74 2077 them will not w │ │ │ │ +0000cdf0: 6f72 6b20 6173 2065 7870 6563 7465 642e ork as expected. │ │ │ │ +0000ce00: 2020 5269 736b 730a 6f66 2063 6f6e 666c Risks.of confl │ │ │ │ +0000ce10: 6963 7473 2061 7265 2065 7665 6e20 6869 icts are even hi │ │ │ │ +0000ce20: 6768 6572 2077 6865 6e20 e280 9872 6561 gher when ...rea │ │ │ │ +0000ce30: 642d 6861 7368 2d65 7874 656e 64e2 8099 d-hash-extend... │ │ │ │ +0000ce40: 2069 7320 7573 6564 3a20 696d 6167 696e is used: imagin │ │ │ │ +0000ce50: 6520 610a 6d6f 6475 6c65 2074 6861 7420 e a.module that │ │ │ │ +0000ce60: 7573 6573 2044 5353 534c 2d73 7479 6c65 uses DSSSL-style │ │ │ │ +0000ce70: 206b 6579 776f 7264 732c 2077 6869 6c65 keywords, while │ │ │ │ +0000ce80: 2061 6e6f 7468 6572 206e 6565 6473 2053 another needs S │ │ │ │ +0000ce90: 4353 482d 7374 796c 650a 626c 6f63 6b20 CSH-style.block │ │ │ │ +0000cea0: 636f 6d6d 656e 7473 2e0a 0a20 2020 496e comments... In │ │ │ │ +0000ceb0: 20e2 8098 2873 7973 7465 6d20 7265 6164 ...(system read │ │ │ │ +0000cec0: 6572 2063 6f6e 6669 6e65 6d65 6e74 29e2 er confinement). │ │ │ │ +0000ced0: 8099 2c20 6775 696c 652d 7265 6164 6572 .., guile-reader │ │ │ │ +0000cee0: 206f 6666 6572 7320 616e 0a69 6d70 6c65 offers an.imple │ │ │ │ +0000cef0: 6d65 6e74 6174 696f 6e20 6f66 20e2 8098 mentation of ... │ │ │ │ +0000cf00: 7265 6164 2d6f 7074 696f 6e2d 696e 7465 read-option-inte │ │ │ │ +0000cf10: 7266 6163 65e2 8099 2061 6e64 20e2 8098 rface... and ... │ │ │ │ +0000cf20: 7265 6164 2d68 6173 682d 6578 7465 6e64 read-hash-extend │ │ │ │ +0000cf30: e280 9920 7468 6174 0a61 6c6c 6f77 7320 ... that.allows │ │ │ │ +0000cf40: 746f 205f 636f 6e66 696e 655f 2073 7563 to _confine_ suc │ │ │ │ +0000cf50: 6820 7365 7474 696e 6773 206f 6e20 6120 h settings on a │ │ │ │ +0000cf60: 7065 722d 6d6f 6475 6c65 2062 6173 6973 per-module basis │ │ │ │ +0000cf70: 2e20 2049 6e20 6f72 6465 7220 746f 0a65 . In order to.e │ │ │ │ +0000cf80: 6e61 626c 6520 7265 6164 6572 2063 6f6e nable reader con │ │ │ │ +0000cf90: 6669 6e65 6d65 6e74 2c20 6f6e 6520 6a75 finement, one ju │ │ │ │ +0000cfa0: 7374 2068 6173 2074 6f20 646f 2074 6869 st has to do thi │ │ │ │ +0000cfb0: 733a 0a0a 2020 2020 2028 7573 652d 6d6f s:.. (use-mo │ │ │ │ +0000cfc0: 6475 6c65 7320 2873 7973 7465 6d20 7265 dules (system re │ │ │ │ +0000cfd0: 6164 6572 2063 6f6e 6669 6e65 6d65 6e74 ader confinement │ │ │ │ +0000cfe0: 2929 0a0a 2020 204e 6f74 6520 7468 6174 )).. Note that │ │ │ │ +0000cff0: 2074 6869 7320 6d75 7374 2062 6520 646f this must be do │ │ │ │ +0000d000: 6e65 2062 6566 6f72 6520 7468 6520 7375 ne before the su │ │ │ │ +0000d010: 7370 6963 696f 7573 206d 6f64 756c 6573 spicious modules │ │ │ │ +0000d020: 2061 7265 206c 6f61 6465 642c 0a74 6861 are loaded,.tha │ │ │ │ +0000d030: 7420 6973 2c20 7479 7069 6361 6c6c 7920 t is, typically │ │ │ │ +0000d040: 7768 656e 2079 6f75 7220 7072 6f67 7261 when your progra │ │ │ │ +0000d050: 6d20 7374 6172 7473 2e20 2054 6869 7320 m starts. This │ │ │ │ +0000d060: 7769 6c6c 2072 6564 6566 696e 650a e280 will redefine... │ │ │ │ +0000d070: 9872 6561 642d 6f70 7469 6f6e 732d 696e .read-options-in │ │ │ │ +0000d080: 7465 7266 6163 65e2 8099 2061 6e64 20e2 terface... and . │ │ │ │ +0000d090: 8098 7265 6164 2d68 6173 682d 6578 7465 ..read-hash-exte │ │ │ │ +0000d0a0: 6e64 e280 9920 736f 2074 6861 7420 616e nd... so that an │ │ │ │ +0000d0b0: 7920 6675 7475 7265 0a6d 6f64 6966 6963 y future.modific │ │ │ │ +0000d0c0: 6174 696f 6e20 7065 7266 6f72 6d65 6420 ation performed │ │ │ │ +0000d0d0: 7669 6120 4775 696c 6527 7320 6275 696c via Guile's buil │ │ │ │ +0000d0e0: 742d 696e 2072 6561 6465 7220 6f70 7469 t-in reader opti │ │ │ │ +0000d0f0: 6f6e 2069 6e74 6572 6661 6365 2077 696c on interface wil │ │ │ │ +0000d100: 6c0a 6265 2063 6f6e 6669 6e65 6420 746f l.be confined to │ │ │ │ +0000d110: 2074 6865 2063 616c 6c69 6e67 206d 6f64 the calling mod │ │ │ │ +0000d120: 756c 652e 0a0a 2020 2053 7461 7274 696e ule... Startin │ │ │ │ +0000d130: 6720 6672 6f6d 2047 7569 6c65 2031 2e38 g from Guile 1.8 │ │ │ │ +0000d140: 2e30 2c20 e280 9863 7572 7265 6e74 2d72 .0, ...current-r │ │ │ │ +0000d150: 6561 6465 72e2 8099 2069 7320 6120 636f eader... is a co │ │ │ │ +0000d160: 7265 2062 696e 6469 6e67 2062 6f75 6e64 re binding bound │ │ │ │ +0000d170: 0a74 6f20 6120 666c 7569 6420 7768 6f73 .to a fluid whos │ │ │ │ +0000d180: 6520 7661 6c75 6520 7368 6f75 6c64 2062 e value should b │ │ │ │ +0000d190: 6520 6569 7468 6572 20e2 8098 2366 e280 e either ...#f.. │ │ │ │ +0000d1a0: 9920 6f72 2061 2072 6561 6465 7220 2869 . or a reader (i │ │ │ │ +0000d1b0: 2e65 2e2c 2061 0ae2 8098 7265 6164 e280 .e., a....read.. │ │ │ │ +0000d1c0: 992d 6c69 6b65 2070 726f 6365 6475 7265 .-like procedure │ │ │ │ +0000d1d0: 292e 2020 5468 6520 7661 6c75 6520 6f66 ). The value of │ │ │ │ +0000d1e0: 2074 6869 7320 666c 7569 6420 6469 6374 this fluid dict │ │ │ │ +0000d1f0: 6174 6573 2074 6865 2072 6561 6465 720a ates the reader. │ │ │ │ +0000d200: 7468 6174 2069 7320 746f 2062 6520 7573 that is to be us │ │ │ │ +0000d210: 6564 2062 7920 e280 9870 7269 6d69 7469 ed by ...primiti │ │ │ │ +0000d220: 7665 2d6c 6f61 64e2 8099 2061 6e64 2069 ve-load... and i │ │ │ │ +0000d230: 7473 2076 616c 7565 2063 616e 2062 6520 ts value can be │ │ │ │ +0000d240: 6368 616e 6765 640a 6479 6e61 6d69 6361 changed.dynamica │ │ │ │ +0000d250: 6c6c 7920 282a 6e6f 7465 20e2 8098 6375 lly (*note ...cu │ │ │ │ +0000d260: 7272 656e 742d 7265 6164 6572 e280 993a rrent-reader...: │ │ │ │ +0000d270: 2028 6775 696c 6529 4c6f 6164 696e 672e (guile)Loading. │ │ │ │ +0000d280: 292e 0a0a 2020 2054 6865 2063 6f6e 6669 )... The confi │ │ │ │ +0000d290: 6e65 6420 7661 7269 616e 7473 206f 6620 ned variants of │ │ │ │ +0000d2a0: e280 9872 6561 642d 6f70 7469 6f6e 732d ...read-options- │ │ │ │ +0000d2b0: 696e 7465 7266 6163 65e2 8099 2061 6e64 interface... and │ │ │ │ +0000d2c0: 0ae2 8098 7265 6164 2d68 6173 682d 6578 ....read-hash-ex │ │ │ │ +0000d2d0: 7465 6e64 e280 9920 7265 6c79 206f 6e20 tend... rely on │ │ │ │ +0000d2e0: 7468 6973 2066 6561 7475 7265 2074 6f20 this feature to │ │ │ │ +0000d2f0: 6d61 6b65 2072 6561 6465 7220 6375 7374 make reader cust │ │ │ │ +0000d300: 6f6d 697a 6174 696f 6e73 0a6c 6f63 616c omizations.local │ │ │ │ +0000d310: 2074 6f20 7468 6520 6669 6c65 2062 6569 to the file bei │ │ │ │ +0000d320: 6e67 206c 6f61 6465 642e 2020 5468 6973 ng loaded. This │ │ │ │ +0000d330: 2077 6179 2c20 696e 766f 6361 7469 6f6e way, invocation │ │ │ │ +0000d340: 7320 6f66 2074 6865 7365 0a66 756e 6374 s of these.funct │ │ │ │ +0000d350: 696f 6e73 2066 726f 6d20 7769 7468 696e ions from within │ │ │ │ +0000d360: 2061 2066 696c 6520 6265 696e 6720 6c6f a file being lo │ │ │ │ +0000d370: 6164 6564 2062 7920 e280 9870 7269 6d69 aded by ...primi │ │ │ │ +0000d380: 7469 7665 2d6c 6f61 64e2 8099 2074 616b tive-load... tak │ │ │ │ +0000d390: 650a 6566 6665 6374 2069 6d6d 6564 6961 e.effect immedia │ │ │ │ +0000d3a0: 7465 6c79 2e0a 0a1f 0a46 696c 653a 2067 tely.....File: g │ │ │ │ +0000d3b0: 7569 6c65 2d72 6561 6465 722e 696e 666f uile-reader.info │ │ │ │ +0000d3c0: 2c20 204e 6f64 653a 2049 6e74 6572 6e61 , Node: Interna │ │ │ │ +0000d3d0: 6c73 2c20 204e 6578 743a 2043 6f6e 6365 ls, Next: Conce │ │ │ │ +0000d3e0: 7074 2049 6e64 6578 2c20 2050 7265 763a pt Index, Prev: │ │ │ │ +0000d3f0: 2041 5049 2052 6566 6572 656e 6365 2c20 API Reference, │ │ │ │ +0000d400: 2055 703a 2054 6f70 0a0a 3520 496e 7465 Up: Top..5 Inte │ │ │ │ +0000d410: 726e 616c 730a 2a2a 2a2a 2a2a 2a2a 2a2a rnals.********** │ │ │ │ +0000d420: 2a0a 0a49 6e20 6f72 6465 7220 746f 206e *..In order to n │ │ │ │ +0000d430: 6f74 2068 6176 6520 746f 2074 7261 6465 ot have to trade │ │ │ │ +0000d440: 2074 6f6f 206d 7563 6820 7065 7266 6f72 too much perfor │ │ │ │ +0000d450: 6d61 6e63 6520 666f 7220 666c 6578 6962 mance for flexib │ │ │ │ +0000d460: 696c 6974 792c 0a47 7569 6c65 2d52 6561 ility,.Guile-Rea │ │ │ │ +0000d470: 6465 7220 6479 6e61 6d69 6361 6c6c 7920 der dynamically │ │ │ │ +0000d480: 636f 6d70 696c 6573 2063 6f64 6520 666f compiles code fo │ │ │ │ +0000d490: 7220 7468 6520 7265 6164 6572 7320 6465 r the readers de │ │ │ │ +0000d4a0: 6669 6e65 6420 7573 696e 6720 474e 550a fined using GNU. │ │ │ │ +0000d4b0: 5f6c 6967 6874 6e69 6e67 5f20 282a 6e6f _lightning_ (*no │ │ │ │ +0000d4c0: 7465 2049 6e74 726f 6475 6374 696f 6e20 te Introduction │ │ │ │ +0000d4d0: 746f 2047 4e55 205f 6c69 6768 746e 696e to GNU _lightnin │ │ │ │ +0000d4e0: 675f 3a0a 286c 6967 6874 6e69 6e67 294f g_:.(lightning)O │ │ │ │ +0000d4f0: 7665 7276 6965 772e 292e 2020 4173 206f verview.). As o │ │ │ │ +0000d500: 6620 7665 7273 696f 6e20 312e 3263 2c20 f version 1.2c, │ │ │ │ +0000d510: 474e 5520 5f6c 6967 6874 6e69 6e67 5f20 GNU _lightning_ │ │ │ │ +0000d520: 6361 6e20 6765 6e65 7261 7465 0a63 6f64 can generate.cod │ │ │ │ +0000d530: 6520 666f 7220 7468 6520 506f 7765 7250 e for the PowerP │ │ │ │ +0000d540: 432c 2053 5041 5243 2c20 616e 6420 4941 C, SPARC, and IA │ │ │ │ +0000d550: 3332 2061 7263 6869 7465 6374 7572 6573 32 architectures │ │ │ │ +0000d560: 2e20 2046 6f72 206f 7468 6572 0a70 6c61 . For other.pla │ │ │ │ +0000d570: 7466 6f72 6d73 2c20 4775 696c 652d 5265 tforms, Guile-Re │ │ │ │ +0000d580: 6164 6572 2070 726f 7669 6465 7320 616e ader provides an │ │ │ │ +0000d590: 2061 6c74 6572 6e61 7469 7665 2028 736c alternative (sl │ │ │ │ +0000d5a0: 6f77 6572 2920 430a 696d 706c 656d 656e ower) C.implemen │ │ │ │ +0000d5b0: 7461 7469 6f6e 2074 6861 7420 646f 6573 tation that does │ │ │ │ +0000d5c0: 206e 6f74 2064 6570 656e 6420 6f6e 2069 not depend on i │ │ │ │ +0000d5d0: 742e 2020 5573 696e 6720 7468 650a 5f6c t. Using the._l │ │ │ │ +0000d5e0: 6967 6874 6e69 6e67 5f2d 6765 6e65 7261 ightning_-genera │ │ │ │ +0000d5f0: 7465 6420 7265 6164 6572 7320 7479 7069 ted readers typi │ │ │ │ +0000d600: 6361 6c6c 7920 7072 6f76 6964 6573 2061 cally provides a │ │ │ │ +0000d610: 2035 2520 7065 7266 6f72 6d61 6e63 650a 5% performance. │ │ │ │ +0000d620: 696d 7072 6f76 656d 656e 7420 6f76 6572 improvement over │ │ │ │ +0000d630: 2074 6865 2073 7461 7469 6320 4320 696d the static C im │ │ │ │ +0000d640: 706c 656d 656e 7461 7469 6f6e 2e20 2048 plementation. H │ │ │ │ +0000d650: 6f77 6576 6572 2c20 6e6f 7465 2074 6861 owever, note tha │ │ │ │ +0000d660: 740a 5f6c 6967 6874 6e69 6e67 5f20 322e t._lightning_ 2. │ │ │ │ +0000d670: 7820 6973 206e 6f74 2073 7570 706f 7274 x is not support │ │ │ │ +0000d680: 6564 2079 6574 2e0a 0a20 2020 5265 2d75 ed yet... Re-u │ │ │ │ +0000d690: 7369 6e67 2074 6f6b 656e 2072 6561 6465 sing token reade │ │ │ │ +0000d6a0: 7273 2077 7269 7474 656e 2069 6e20 432c rs written in C, │ │ │ │ +0000d6b0: 2061 7320 6578 706c 6169 6e65 6420 696e as explained in │ │ │ │ +0000d6c0: 202a 4e6f 7465 2054 6f6b 656e 0a52 6561 *Note Token.Rea │ │ │ │ +0000d6d0: 6465 7220 4c69 6272 6172 793a 3a2c 2064 der Library::, d │ │ │ │ +0000d6e0: 6f65 7320 6e6f 7420 696d 706c 7920 616e oes not imply an │ │ │ │ +0000d6f0: 7920 6164 6469 7469 6f6e 616c 2063 6f73 y additional cos │ │ │ │ +0000d700: 743a 2074 6865 2075 6e64 6572 6c79 696e t: the underlyin │ │ │ │ +0000d710: 6720 430a 6675 6e63 7469 6f6e 2077 696c g C.function wil │ │ │ │ +0000d720: 6c20 6265 2063 616c 6c65 6420 6469 7265 l be called dire │ │ │ │ +0000d730: 6374 6c79 2062 7920 7468 6520 7265 6164 ctly by the read │ │ │ │ +0000d740: 6572 2c20 7769 7468 6f75 7420 6861 7669 er, without havi │ │ │ │ +0000d750: 6e67 2074 6f20 676f 0a74 6872 6f75 6768 ng to go.through │ │ │ │ +0000d760: 2061 6e79 206d 6172 7368 616c 6c69 6e67 any marshalling │ │ │ │ +0000d770: 2f75 6e6d 6172 7368 616c 6c69 6e67 2073 /unmarshalling s │ │ │ │ +0000d780: 7461 6765 2e0a 0a20 2020 4164 6469 7469 tage... Additi │ │ │ │ +0000d790: 6f6e 616c 6c79 2c20 6f6e 2074 6865 2043 onally, on the C │ │ │ │ +0000d7a0: 2073 6964 652c 2074 6f6b 656e 2072 6561 side, token rea │ │ │ │ +0000d7b0: 6465 7273 206d 6179 2062 6520 696e 6974 ders may be init │ │ │ │ +0000d7c0: 6961 6c69 7a65 640a 5f73 7461 7469 6361 ialized._statica │ │ │ │ +0000d7d0: 6c6c 795f 2028 6578 6365 7074 2c20 6f62 lly_ (except, ob │ │ │ │ +0000d7e0: 7669 6f75 736c 792c 2074 6f6b 656e 2072 viously, token r │ │ │ │ +0000d7f0: 6561 6465 7273 206d 6164 6520 6f75 7420 eaders made out │ │ │ │ +0000d800: 6f66 2061 0a64 796e 616d 6963 616c 6c79 of a.dynamically │ │ │ │ +0000d810: 2d63 6f6d 7069 6c65 6420 7265 6164 6572 -compiled reader │ │ │ │ +0000d820: 292e 2020 4d61 6b69 6e67 2067 6f6f 6420 ). Making good │ │ │ │ +0000d830: 7573 6520 6f66 2069 7420 6361 6e20 696d use of it can im │ │ │ │ +0000d840: 7072 6f76 6520 7468 650a 7374 6172 7475 prove the.startu │ │ │ │ +0000d850: 7020 7469 6d65 206f 6620 6120 7072 6f67 p time of a prog │ │ │ │ +0000d860: 7261 6d2e 2020 466f 7220 6578 616d 706c ram. For exampl │ │ │ │ +0000d870: 652c 20e2 8098 6d61 6b65 2d67 7569 6c65 e, ...make-guile │ │ │ │ +0000d880: 2d72 6561 6465 72e2 8099 2028 2a6e 6f74 -reader... (*not │ │ │ │ +0000d890: 650a 5265 6164 6572 204c 6962 7261 7279 e.Reader Library │ │ │ │ +0000d8a0: 3a3a 2920 6973 2069 6d70 6c65 6d65 6e74 ::) is implement │ │ │ │ +0000d8b0: 6564 2069 6e20 4320 616e 6420 6974 2075 ed in C and it u │ │ │ │ +0000d8c0: 7365 7320 7374 6174 6963 616c 6c79 2069 ses statically i │ │ │ │ +0000d8d0: 6e69 7469 616c 697a 6564 0a61 7272 6179 nitialized.array │ │ │ │ +0000d8e0: 7320 6f66 2074 6f6b 656e 2072 6561 6465 s of token reade │ │ │ │ +0000d8f0: 7273 2e20 2049 7420 7374 696c 6c20 6e65 rs. It still ne │ │ │ │ +0000d900: 6564 7320 746f 2069 6e76 6f6b 6520 e280 eds to invoke .. │ │ │ │ +0000d910: 9873 636d 5f63 5f6d 616b 655f 7265 6164 .scm_c_make_read │ │ │ │ +0000d920: 6572 0a28 29e2 8099 2c20 6275 7420 6174 er.()..., but at │ │ │ │ +0000d930: 206c 6561 7374 2c20 746f 6b65 6e20 7265 least, token re │ │ │ │ +0000d940: 6164 6572 7320 7468 656d 7365 6c76 6573 aders themselves │ │ │ │ +0000d950: 2061 7265 2022 7265 6164 7920 746f 2075 are "ready to u │ │ │ │ +0000d960: 7365 222e 0a0a 2020 2053 6361 6e6e 6572 se"... Scanner │ │ │ │ +0000d970: 7320 6173 2067 656e 6572 6174 6564 2062 s as generated b │ │ │ │ +0000d980: 7920 466c 6578 206f 7220 7369 6d69 6c61 y Flex or simila │ │ │ │ +0000d990: 7220 746f 6f6c 7320 7368 6f75 6c64 2074 r tools should t │ │ │ │ +0000d9a0: 6865 6f72 6574 6963 616c 6c79 0a62 6520 heoretically.be │ │ │ │ +0000d9b0: 6162 6c65 2074 6f20 7072 6f76 6964 6520 able to provide │ │ │ │ +0000d9c0: 6265 7474 6572 2070 6572 666f 726d 616e better performan │ │ │ │ +0000d9d0: 6365 2062 6563 6175 7365 2074 6865 2069 ce because the i │ │ │ │ +0000d9e0: 6e70 7574 2072 6561 6469 6e67 2061 6e64 nput reading and │ │ │ │ +0000d9f0: 0a70 6174 7465 726e 206d 6174 6368 696e .pattern matchin │ │ │ │ +0000da00: 6720 6c6f 6f70 2069 7320 7365 6c66 2d63 g loop is self-c │ │ │ │ +0000da10: 6f6e 7461 696e 6564 2c20 6d61 7920 6669 ontained, may fi │ │ │ │ +0000da20: 7420 696e 2063 6163 6865 2c20 616e 6420 t in cache, and │ │ │ │ +0000da30: 6f6e 6c79 2068 6173 0a74 6f20 7065 7266 only has.to perf │ │ │ │ +0000da40: 6f72 6d20 6675 6e63 7469 6f6e 2063 616c orm function cal │ │ │ │ +0000da50: 6c73 206f 6e63 6520 6120 7061 7474 6572 ls once a patter │ │ │ │ +0000da60: 6e20 6861 7320 6265 656e 2066 756c 6c79 n has been fully │ │ │ │ +0000da70: 2072 6563 6f67 6e69 7a65 642e 0a0a 1f0a recognized..... │ │ │ │ +0000da80: 4669 6c65 3a20 6775 696c 652d 7265 6164 File: guile-read │ │ │ │ +0000da90: 6572 2e69 6e66 6f2c 2020 4e6f 6465 3a20 er.info, Node: │ │ │ │ +0000daa0: 436f 6e63 6570 7420 496e 6465 782c 2020 Concept Index, │ │ │ │ +0000dab0: 4e65 7874 3a20 4675 6e63 7469 6f6e 2049 Next: Function I │ │ │ │ +0000dac0: 6e64 6578 2c20 2050 7265 763a 2049 6e74 ndex, Prev: Int │ │ │ │ +0000dad0: 6572 6e61 6c73 2c20 2055 703a 2054 6f70 ernals, Up: Top │ │ │ │ +0000dae0: 0a0a 436f 6e63 6570 7420 496e 6465 780a ..Concept Index. │ │ │ │ +0000daf0: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a0a 0a00 *************... │ │ │ │ +0000db00: 085b 696e 6465 7800 085d 0a2a 204d 656e .[index..].* Men │ │ │ │ +0000db10: 753a 0a0a 2a20 6361 6c6c 696e 6720 636f u:..* calling co │ │ │ │ +0000db20: 6e76 656e 7469 6f6e 3a20 2020 2020 2020 nvention: │ │ │ │ +0000db30: 2020 2020 2020 2020 2020 2020 2054 5220 TR │ │ │ │ +0000db40: 4361 6c6c 696e 6720 436f 6e76 656e 7469 Calling Conventi │ │ │ │ +0000db50: 6f6e 2e0a 2020 2020 2020 2020 2020 2020 on.. │ │ │ │ 0000db60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000db70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000db80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000db90: 2020 2020 2020 286c 696e 6520 2020 3629 (line 6) │ │ │ │ -0000dba0: 0a2a 2063 6861 7261 6374 6572 2073 7065 .* character spe │ │ │ │ -0000dbb0: 6369 6669 6361 7469 6f6e 3a20 2020 2020 cification: │ │ │ │ -0000dbc0: 2020 2020 2020 2020 2020 4465 6669 6e69 Defini │ │ │ │ -0000dbd0: 6e67 2061 204e 6577 2054 6f6b 656e 2052 ng a New Token R │ │ │ │ -0000dbe0: 6561 6465 722e 0a20 2020 2020 2020 2020 eader.. │ │ │ │ +0000db90: 2020 286c 696e 6520 2020 3629 0a2a 2063 (line 6).* c │ │ │ │ +0000dba0: 6861 7261 6374 6572 2073 7065 6369 6669 haracter specifi │ │ │ │ +0000dbb0: 6361 7469 6f6e 3a20 2020 2020 2020 2020 cation: │ │ │ │ +0000dbc0: 2020 2020 2020 4465 6669 6e69 6e67 2061 Defining a │ │ │ │ +0000dbd0: 204e 6577 2054 6f6b 656e 2052 6561 6465 New Token Reade │ │ │ │ +0000dbe0: 722e 0a20 2020 2020 2020 2020 2020 2020 r.. │ │ │ │ 0000dbf0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000dc00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000dc10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000dc20: 2020 2020 2028 6c69 6e65 2020 2036 290a (line 6). │ │ │ │ -0000dc30: 2a20 636f 6e66 696e 656d 656e 743a 2020 * confinement: │ │ │ │ +0000dc20: 2028 6c69 6e65 2020 2036 290a 2a20 636f (line 6).* co │ │ │ │ +0000dc30: 6e66 696e 656d 656e 743a 2020 2020 2020 nfinement: │ │ │ │ 0000dc40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000dc50: 2020 2020 2020 2020 2043 6f6d 7061 7469 Compati │ │ │ │ -0000dc60: 6269 6c69 7479 2061 6e64 2043 6f6e 6669 bility and Confi │ │ │ │ -0000dc70: 6e65 6d65 6e74 2e0a 2020 2020 2020 2020 nement.. │ │ │ │ +0000dc50: 2020 2020 2043 6f6d 7061 7469 6269 6c69 Compatibili │ │ │ │ +0000dc60: 7479 2061 6e64 2043 6f6e 6669 6e65 6d65 ty and Confineme │ │ │ │ +0000dc70: 6e74 2e0a 2020 2020 2020 2020 2020 2020 nt.. │ │ │ │ 0000dc80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000dc90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000dca0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000dcb0: 2020 2020 2020 286c 696e 6520 2032 3229 (line 22) │ │ │ │ -0000dcc0: 0a2a 206c 6578 6572 3a20 2020 2020 2020 .* lexer: │ │ │ │ +0000dcb0: 2020 286c 696e 6520 2032 3229 0a2a 206c (line 22).* l │ │ │ │ +0000dcc0: 6578 6572 3a20 2020 2020 2020 2020 2020 exer: │ │ │ │ 0000dcd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000dce0: 2020 2020 2020 2020 2020 496e 7472 6f64 Introd │ │ │ │ -0000dcf0: 7563 7469 6f6e 2e20 2020 2020 2020 2028 uction. ( │ │ │ │ -0000dd00: 6c69 6e65 2020 3336 290a 2a20 6c65 7865 line 36).* lexe │ │ │ │ -0000dd10: 7220 3c31 3e3a 2020 2020 2020 2020 2020 r <1>: │ │ │ │ -0000dd20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000dd30: 2020 204f 7665 726c 6170 7069 6e67 2054 Overlapping T │ │ │ │ -0000dd40: 6f6b 656e 2052 6561 6465 7273 2e0a 2020 oken Readers.. │ │ │ │ +0000dce0: 2020 2020 2020 496e 7472 6f64 7563 7469 Introducti │ │ │ │ +0000dcf0: 6f6e 2e20 2020 2020 2020 2028 6c69 6e65 on. (line │ │ │ │ +0000dd00: 2020 3336 290a 2a20 6c65 7865 7220 3c31 36).* lexer <1 │ │ │ │ +0000dd10: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: │ │ │ │ +0000dd20: 2020 2020 2020 2020 2020 2020 2020 204f O │ │ │ │ +0000dd30: 7665 726c 6170 7069 6e67 2054 6f6b 656e verlapping Token │ │ │ │ +0000dd40: 2052 6561 6465 7273 2e0a 2020 2020 2020 Readers.. │ │ │ │ 0000dd50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000dd60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000dd70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000dd80: 2020 2020 2020 2020 2020 2020 286c 696e (lin │ │ │ │ -0000dd90: 6520 2033 3329 0a2a 2070 6974 6661 6c6c e 33).* pitfall │ │ │ │ -0000dda0: 3a20 2020 2020 2020 2020 2020 2020 2020 : │ │ │ │ -0000ddb0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ddc0: 546f 6b65 6e20 4465 6c69 6d69 7465 7273 Token Delimiters │ │ │ │ -0000ddd0: 2e20 2020 2028 6c69 6e65 2020 3338 290a . (line 38). │ │ │ │ -0000dde0: 2a20 5235 5253 3a20 2020 2020 2020 2020 * R5RS: │ │ │ │ +0000dd80: 2020 2020 2020 2020 286c 696e 6520 2033 (line 3 │ │ │ │ +0000dd90: 3329 0a2a 2070 6974 6661 6c6c 3a20 2020 3).* pitfall: │ │ │ │ +0000dda0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000ddb0: 2020 2020 2020 2020 2020 2020 546f 6b65 Toke │ │ │ │ +0000ddc0: 6e20 4465 6c69 6d69 7465 7273 2e20 2020 n Delimiters. │ │ │ │ +0000ddd0: 2028 6c69 6e65 2020 3338 290a 2a20 5235 (line 38).* R5 │ │ │ │ +0000dde0: 5253 3a20 2020 2020 2020 2020 2020 2020 RS: │ │ │ │ 0000ddf0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000de00: 2020 2020 2020 2020 2054 6f6b 656e 2044 Token D │ │ │ │ -0000de10: 656c 696d 6974 6572 732e 2020 2020 286c elimiters. (l │ │ │ │ -0000de20: 696e 6520 2031 3729 0a2a 2052 3652 533a ine 17).* R6RS: │ │ │ │ +0000de00: 2020 2020 2054 6f6b 656e 2044 656c 696d Token Delim │ │ │ │ +0000de10: 6974 6572 732e 2020 2020 286c 696e 6520 iters. (line │ │ │ │ +0000de20: 2031 3729 0a2a 2052 3652 533a 2020 2020 17).* R6RS: │ │ │ │ 0000de30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000de40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000de50: 2020 546f 6b65 6e20 4465 6c69 6d69 7465 Token Delimite │ │ │ │ -0000de60: 7273 2e20 2020 2028 6c69 6e65 2020 3137 rs. (line 17 │ │ │ │ -0000de70: 290a 2a20 7265 6164 2074 6162 6c65 3a20 ).* read table: │ │ │ │ +0000de40: 2020 2020 2020 2020 2020 2020 2020 546f To │ │ │ │ +0000de50: 6b65 6e20 4465 6c69 6d69 7465 7273 2e20 ken Delimiters. │ │ │ │ +0000de60: 2020 2028 6c69 6e65 2020 3137 290a 2a20 (line 17).* │ │ │ │ +0000de70: 7265 6164 2074 6162 6c65 3a20 2020 2020 read table: │ │ │ │ 0000de80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000de90: 2020 2020 2020 2020 2020 2049 6e74 726f Intro │ │ │ │ -0000dea0: 6475 6374 696f 6e2e 2020 2020 2020 2020 duction. │ │ │ │ -0000deb0: 286c 696e 6520 2034 3829 0a2a 2072 6561 (line 48).* rea │ │ │ │ -0000dec0: 6465 723a 2020 2020 2020 2020 2020 2020 der: │ │ │ │ +0000de90: 2020 2020 2020 2049 6e74 726f 6475 6374 Introduct │ │ │ │ +0000dea0: 696f 6e2e 2020 2020 2020 2020 286c 696e ion. (lin │ │ │ │ +0000deb0: 6520 2034 3829 0a2a 2072 6561 6465 723a e 48).* reader: │ │ │ │ +0000dec0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ded0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000dee0: 2020 2020 4f76 6572 7669 6577 2e20 2020 Overview. │ │ │ │ -0000def0: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line │ │ │ │ -0000df00: 3135 290a 2a20 7265 6164 6572 203c 313e 15).* reader <1> │ │ │ │ -0000df10: 3a20 2020 2020 2020 2020 2020 2020 2020 : │ │ │ │ -0000df20: 2020 2020 2020 2020 2020 2020 2044 6566 Def │ │ │ │ -0000df30: 696e 696e 6720 6120 4e65 7720 5265 6164 ining a New Read │ │ │ │ -0000df40: 6572 2e0a 2020 2020 2020 2020 2020 2020 er.. │ │ │ │ +0000dee0: 4f76 6572 7669 6577 2e20 2020 2020 2020 Overview. │ │ │ │ +0000def0: 2020 2020 2028 6c69 6e65 2020 3135 290a (line 15). │ │ │ │ +0000df00: 2a20 7265 6164 6572 203c 313e 3a20 2020 * reader <1>: │ │ │ │ +0000df10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000df20: 2020 2020 2020 2020 2044 6566 696e 696e Definin │ │ │ │ +0000df30: 6720 6120 4e65 7720 5265 6164 6572 2e0a g a New Reader.. │ │ │ │ +0000df40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000df50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000df60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000df70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000df80: 2020 286c 696e 6520 2020 3629 0a2a 2072 (line 6).* r │ │ │ │ -0000df90: 6561 6465 7220 636f 6e66 696e 656d 656e eader confinemen │ │ │ │ -0000dfa0: 743a 2020 2020 2020 2020 2020 2020 2020 t: │ │ │ │ -0000dfb0: 2020 2020 2020 436f 6d70 6174 6962 696c Compatibil │ │ │ │ -0000dfc0: 6974 7920 616e 6420 436f 6e66 696e 656d ity and Confinem │ │ │ │ -0000dfd0: 656e 742e 0a20 2020 2020 2020 2020 2020 ent.. │ │ │ │ +0000df70: 2020 2020 2020 2020 2020 2020 2020 286c (l │ │ │ │ +0000df80: 696e 6520 2020 3629 0a2a 2072 6561 6465 ine 6).* reade │ │ │ │ +0000df90: 7220 636f 6e66 696e 656d 656e 743a 2020 r confinement: │ │ │ │ +0000dfa0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000dfb0: 2020 436f 6d70 6174 6962 696c 6974 7920 Compatibility │ │ │ │ +0000dfc0: 616e 6420 436f 6e66 696e 656d 656e 742e and Confinement. │ │ │ │ +0000dfd0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 0000dfe0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000dff0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e000: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e010: 2020 2028 6c69 6e65 2020 3232 290a 2a20 (line 22).* │ │ │ │ -0000e020: 7265 6164 6572 206c 6962 7261 7279 3a20 reader library: │ │ │ │ +0000e000: 2020 2020 2020 2020 2020 2020 2020 2028 ( │ │ │ │ +0000e010: 6c69 6e65 2020 3232 290a 2a20 7265 6164 line 22).* read │ │ │ │ +0000e020: 6572 206c 6962 7261 7279 3a20 2020 2020 er library: │ │ │ │ 0000e030: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e040: 2020 2020 2020 204f 7665 7276 6965 772e Overview. │ │ │ │ -0000e050: 2020 2020 2020 2020 2020 2020 286c 696e (lin │ │ │ │ -0000e060: 6520 2020 3629 0a2a 2072 6561 6465 7220 e 6).* reader │ │ │ │ -0000e070: 6c69 6272 6172 7920 3c31 3e3a 2020 2020 library <1>: │ │ │ │ -0000e080: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e090: 5265 6164 6572 204c 6962 7261 7279 2e20 Reader Library. │ │ │ │ -0000e0a0: 2020 2020 2028 6c69 6e65 2020 2036 290a (line 6). │ │ │ │ -0000e0b0: 2a20 5343 5348 2062 6c6f 636b 2063 6f6d * SCSH block com │ │ │ │ -0000e0c0: 6d65 6e74 733a 2020 2020 2020 2020 2020 ments: │ │ │ │ -0000e0d0: 2020 2020 2020 2020 2054 5220 4361 6c6c TR Call │ │ │ │ -0000e0e0: 696e 6720 436f 6e76 656e 7469 6f6e 2e0a ing Convention.. │ │ │ │ +0000e040: 2020 204f 7665 7276 6965 772e 2020 2020 Overview. │ │ │ │ +0000e050: 2020 2020 2020 2020 286c 696e 6520 2020 (line │ │ │ │ +0000e060: 3629 0a2a 2072 6561 6465 7220 6c69 6272 6).* reader libr │ │ │ │ +0000e070: 6172 7920 3c31 3e3a 2020 2020 2020 2020 ary <1>: │ │ │ │ +0000e080: 2020 2020 2020 2020 2020 2020 5265 6164 Read │ │ │ │ +0000e090: 6572 204c 6962 7261 7279 2e20 2020 2020 er Library. │ │ │ │ +0000e0a0: 2028 6c69 6e65 2020 2036 290a 2a20 5343 (line 6).* SC │ │ │ │ +0000e0b0: 5348 2062 6c6f 636b 2063 6f6d 6d65 6e74 SH block comment │ │ │ │ +0000e0c0: 733a 2020 2020 2020 2020 2020 2020 2020 s: │ │ │ │ +0000e0d0: 2020 2020 2054 5220 4361 6c6c 696e 6720 TR Calling │ │ │ │ +0000e0e0: 436f 6e76 656e 7469 6f6e 2e0a 2020 2020 Convention.. │ │ │ │ 0000e0f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e100: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e110: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e120: 2020 2020 2020 2020 2020 2020 2020 286c (l │ │ │ │ -0000e130: 696e 6520 2033 3729 0a2a 2053 494c 6578 ine 37).* SILex │ │ │ │ -0000e140: 3a20 2020 2020 2020 2020 2020 2020 2020 : │ │ │ │ -0000e150: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e160: 2020 496e 7472 6f64 7563 7469 6f6e 2e20 Introduction. │ │ │ │ -0000e170: 2020 2020 2020 2028 6c69 6e65 2020 3336 (line 36 │ │ │ │ -0000e180: 290a 2a20 5352 4649 2d33 303a 2020 2020 ).* SRFI-30: │ │ │ │ +0000e120: 2020 2020 2020 2020 2020 286c 696e 6520 (line │ │ │ │ +0000e130: 2033 3729 0a2a 2053 494c 6578 3a20 2020 37).* SILex: │ │ │ │ +0000e140: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000e150: 2020 2020 2020 2020 2020 2020 2020 496e In │ │ │ │ +0000e160: 7472 6f64 7563 7469 6f6e 2e20 2020 2020 troduction. │ │ │ │ +0000e170: 2020 2028 6c69 6e65 2020 3336 290a 2a20 (line 36).* │ │ │ │ +0000e180: 5352 4649 2d33 303a 2020 2020 2020 2020 SRFI-30: │ │ │ │ 0000e190: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e1a0: 2020 2020 2020 2020 2020 2054 6f6b 656e Token │ │ │ │ -0000e1b0: 2052 6561 6465 7220 4c69 6272 6172 792e Reader Library. │ │ │ │ -0000e1c0: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ +0000e1a0: 2020 2020 2020 2054 6f6b 656e 2052 6561 Token Rea │ │ │ │ +0000e1b0: 6465 7220 4c69 6272 6172 792e 0a20 2020 der Library.. │ │ │ │ +0000e1c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e1d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e1e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e1f0: 2020 2020 2020 2020 2020 2020 2020 2028 ( │ │ │ │ -0000e200: 6c69 6e65 2032 3435 290a 2a20 5352 4649 line 245).* SRFI │ │ │ │ -0000e210: 2d36 323a 2020 2020 2020 2020 2020 2020 -62: │ │ │ │ -0000e220: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e230: 2020 2054 6f6b 656e 2052 6561 6465 7220 Token Reader │ │ │ │ -0000e240: 4c69 6272 6172 792e 0a20 2020 2020 2020 Library.. │ │ │ │ +0000e1f0: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line │ │ │ │ +0000e200: 2032 3435 290a 2a20 5352 4649 2d36 323a 245).* SRFI-62: │ │ │ │ +0000e210: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000e220: 2020 2020 2020 2020 2020 2020 2020 2054 T │ │ │ │ +0000e230: 6f6b 656e 2052 6561 6465 7220 4c69 6272 oken Reader Libr │ │ │ │ +0000e240: 6172 792e 0a20 2020 2020 2020 2020 2020 ary.. │ │ │ │ 0000e250: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e260: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e270: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e280: 2020 2020 2020 2028 6c69 6e65 2032 3536 (line 256 │ │ │ │ -0000e290: 290a 2a20 746f 6b65 6e20 6465 6c69 6d69 ).* token delimi │ │ │ │ -0000e2a0: 7465 7273 3a20 2020 2020 2020 2020 2020 ters: │ │ │ │ -0000e2b0: 2020 2020 2020 2020 2020 2054 6f6b 656e Token │ │ │ │ -0000e2c0: 2044 656c 696d 6974 6572 732e 2020 2020 Delimiters. │ │ │ │ -0000e2d0: 286c 696e 6520 2020 3629 0a2a 2074 6f6b (line 6).* tok │ │ │ │ -0000e2e0: 656e 2072 6561 6465 723a 2020 2020 2020 en reader: │ │ │ │ +0000e280: 2020 2028 6c69 6e65 2032 3536 290a 2a20 (line 256).* │ │ │ │ +0000e290: 746f 6b65 6e20 6465 6c69 6d69 7465 7273 token delimiters │ │ │ │ +0000e2a0: 3a20 2020 2020 2020 2020 2020 2020 2020 : │ │ │ │ +0000e2b0: 2020 2020 2020 2054 6f6b 656e 2044 656c Token Del │ │ │ │ +0000e2c0: 696d 6974 6572 732e 2020 2020 286c 696e imiters. (lin │ │ │ │ +0000e2d0: 6520 2020 3629 0a2a 2074 6f6b 656e 2072 e 6).* token r │ │ │ │ +0000e2e0: 6561 6465 723a 2020 2020 2020 2020 2020 eader: │ │ │ │ 0000e2f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e300: 2020 2020 4f76 6572 7669 6577 2e20 2020 Overview. │ │ │ │ -0000e310: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line │ │ │ │ -0000e320: 3135 290a 2a20 746f 6b65 6e20 7265 6164 15).* token read │ │ │ │ -0000e330: 6572 203c 313e 3a20 2020 2020 2020 2020 er <1>: │ │ │ │ -0000e340: 2020 2020 2020 2020 2020 2020 2044 6566 Def │ │ │ │ -0000e350: 696e 696e 6720 6120 4e65 7720 546f 6b65 ining a New Toke │ │ │ │ -0000e360: 6e20 5265 6164 6572 2e0a 2020 2020 2020 n Reader.. │ │ │ │ +0000e300: 4f76 6572 7669 6577 2e20 2020 2020 2020 Overview. │ │ │ │ +0000e310: 2020 2020 2028 6c69 6e65 2020 3135 290a (line 15). │ │ │ │ +0000e320: 2a20 746f 6b65 6e20 7265 6164 6572 203c * token reader < │ │ │ │ +0000e330: 313e 3a20 2020 2020 2020 2020 2020 2020 1>: │ │ │ │ +0000e340: 2020 2020 2020 2020 2044 6566 696e 696e Definin │ │ │ │ +0000e350: 6720 6120 4e65 7720 546f 6b65 6e20 5265 g a New Token Re │ │ │ │ +0000e360: 6164 6572 2e0a 2020 2020 2020 2020 2020 ader.. │ │ │ │ 0000e370: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e380: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e390: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e3a0: 2020 2020 2020 2020 286c 696e 6520 2020 (line │ │ │ │ -0000e3b0: 3629 0a2a 2074 6f6b 656e 2072 6561 6465 6).* token reade │ │ │ │ -0000e3c0: 7220 6c69 6272 6172 793a 2020 2020 2020 r library: │ │ │ │ -0000e3d0: 2020 2020 2020 2020 2020 2020 546f 6b65 Toke │ │ │ │ -0000e3e0: 6e20 5265 6164 6572 204c 6962 7261 7279 n Reader Library │ │ │ │ -0000e3f0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +0000e3a0: 2020 2020 286c 696e 6520 2020 3629 0a2a (line 6).* │ │ │ │ +0000e3b0: 2074 6f6b 656e 2072 6561 6465 7220 6c69 token reader li │ │ │ │ +0000e3c0: 6272 6172 793a 2020 2020 2020 2020 2020 brary: │ │ │ │ +0000e3d0: 2020 2020 2020 2020 546f 6b65 6e20 5265 Token Re │ │ │ │ +0000e3e0: 6164 6572 204c 6962 7261 7279 2e0a 2020 ader Library.. │ │ │ │ +0000e3f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e400: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e410: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e420: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e430: 286c 696e 6520 2020 3629 0a2a 2074 6f70 (line 6).* top │ │ │ │ -0000e440: 2d6c 6576 656c 2072 6561 6465 723a 2020 -level reader: │ │ │ │ +0000e420: 2020 2020 2020 2020 2020 2020 286c 696e (lin │ │ │ │ +0000e430: 6520 2020 3629 0a2a 2074 6f70 2d6c 6576 e 6).* top-lev │ │ │ │ +0000e440: 656c 2072 6561 6465 723a 2020 2020 2020 el reader: │ │ │ │ 0000e450: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e460: 2020 2020 5452 2043 616c 6c69 6e67 2043 TR Calling C │ │ │ │ -0000e470: 6f6e 7665 6e74 696f 6e2e 0a20 2020 2020 onvention.. │ │ │ │ +0000e460: 5452 2043 616c 6c69 6e67 2043 6f6e 7665 TR Calling Conve │ │ │ │ +0000e470: 6e74 696f 6e2e 0a20 2020 2020 2020 2020 ntion.. │ │ │ │ 0000e480: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e490: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e4a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e4b0: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line │ │ │ │ -0000e4c0: 3134 290a 0a1f 0a46 696c 653a 2067 7569 14)....File: gui │ │ │ │ -0000e4d0: 6c65 2d72 6561 6465 722e 696e 666f 2c20 le-reader.info, │ │ │ │ -0000e4e0: 204e 6f64 653a 2046 756e 6374 696f 6e20 Node: Function │ │ │ │ -0000e4f0: 496e 6465 782c 2020 5072 6576 3a20 436f Index, Prev: Co │ │ │ │ -0000e500: 6e63 6570 7420 496e 6465 782c 2020 5570 ncept Index, Up │ │ │ │ -0000e510: 3a20 546f 700a 0a46 756e 6374 696f 6e20 : Top..Function │ │ │ │ -0000e520: 496e 6465 780a 2a2a 2a2a 2a2a 2a2a 2a2a Index.********** │ │ │ │ -0000e530: 2a2a 2a2a 0a0a 0008 5b69 6e64 6578 0008 ****....[index.. │ │ │ │ -0000e540: 5d0a 2a20 4d65 6e75 3a0a 0a2a 2025 7265 ].* Menu:..* %re │ │ │ │ -0000e550: 6164 6572 2d73 7461 6e64 6172 642d 6661 ader-standard-fa │ │ │ │ -0000e560: 756c 742d 6861 6e64 6c65 723a 2020 2020 ult-handler: │ │ │ │ -0000e570: 2020 2020 4465 6669 6e69 6e67 2061 204e Defining a N │ │ │ │ -0000e580: 6577 2052 6561 6465 722e 0a20 2020 2020 ew Reader.. │ │ │ │ +0000e4b0: 2020 2020 2028 6c69 6e65 2020 3134 290a (line 14). │ │ │ │ +0000e4c0: 0a1f 0a46 696c 653a 2067 7569 6c65 2d72 ...File: guile-r │ │ │ │ +0000e4d0: 6561 6465 722e 696e 666f 2c20 204e 6f64 eader.info, Nod │ │ │ │ +0000e4e0: 653a 2046 756e 6374 696f 6e20 496e 6465 e: Function Inde │ │ │ │ +0000e4f0: 782c 2020 5072 6576 3a20 436f 6e63 6570 x, Prev: Concep │ │ │ │ +0000e500: 7420 496e 6465 782c 2020 5570 3a20 546f t Index, Up: To │ │ │ │ +0000e510: 700a 0a46 756e 6374 696f 6e20 496e 6465 p..Function Inde │ │ │ │ +0000e520: 780a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a x.************** │ │ │ │ +0000e530: 0a0a 0008 5b69 6e64 6578 0008 5d0a 2a20 ....[index..].* │ │ │ │ +0000e540: 4d65 6e75 3a0a 0a2a 2025 7265 6164 6572 Menu:..* %reader │ │ │ │ +0000e550: 2d73 7461 6e64 6172 642d 6661 756c 742d -standard-fault- │ │ │ │ +0000e560: 6861 6e64 6c65 723a 2020 2020 2020 2020 handler: │ │ │ │ +0000e570: 4465 6669 6e69 6e67 2061 204e 6577 2052 Defining a New R │ │ │ │ +0000e580: 6561 6465 722e 0a20 2020 2020 2020 2020 eader.. │ │ │ │ 0000e590: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e5a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e5b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e5c0: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line │ │ │ │ -0000e5d0: 3535 290a 2a20 616c 7465 726e 6174 652d 55).* alternate- │ │ │ │ -0000e5e0: 6775 696c 652d 7265 6164 6572 2d74 6f6b guile-reader-tok │ │ │ │ -0000e5f0: 656e 2d72 6561 6465 7273 3a20 2052 6561 en-readers: Rea │ │ │ │ -0000e600: 6465 7220 4c69 6272 6172 792e 2020 2020 der Library. │ │ │ │ -0000e610: 2020 286c 696e 6520 2033 3629 0a2a 2063 (line 36).* c │ │ │ │ -0000e620: 7572 7265 6e74 2d72 6561 6465 723a 2020 urrent-reader: │ │ │ │ +0000e5c0: 2020 2020 2028 6c69 6e65 2020 3535 290a (line 55). │ │ │ │ +0000e5d0: 2a20 616c 7465 726e 6174 652d 6775 696c * alternate-guil │ │ │ │ +0000e5e0: 652d 7265 6164 6572 2d74 6f6b 656e 2d72 e-reader-token-r │ │ │ │ +0000e5f0: 6561 6465 7273 3a20 2052 6561 6465 7220 eaders: Reader │ │ │ │ +0000e600: 4c69 6272 6172 792e 2020 2020 2020 286c Library. (l │ │ │ │ +0000e610: 696e 6520 2034 3929 0a2a 2063 7572 7265 ine 49).* curre │ │ │ │ +0000e620: 6e74 2d72 6561 6465 723a 2020 2020 2020 nt-reader: │ │ │ │ 0000e630: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e640: 2020 2020 2020 436f 6d70 6174 6962 696c Compatibil │ │ │ │ -0000e650: 6974 7920 616e 6420 436f 6e66 696e 656d ity and Confinem │ │ │ │ -0000e660: 656e 742e 0a20 2020 2020 2020 2020 2020 ent.. │ │ │ │ +0000e640: 2020 436f 6d70 6174 6962 696c 6974 7920 Compatibility │ │ │ │ +0000e650: 616e 6420 436f 6e66 696e 656d 656e 742e and Confinement. │ │ │ │ +0000e660: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 0000e670: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e680: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e690: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e6a0: 2020 2028 6c69 6e65 2020 3335 290a 2a20 (line 35).* │ │ │ │ -0000e6b0: 6465 6661 756c 742d 7265 6164 6572 2d74 default-reader-t │ │ │ │ -0000e6c0: 6f6b 656e 2d72 6561 6465 7273 3a20 2020 oken-readers: │ │ │ │ -0000e6d0: 2020 2020 2020 2052 6561 6465 7220 4c69 Reader Li │ │ │ │ -0000e6e0: 6272 6172 792e 2020 2020 2020 286c 696e brary. (lin │ │ │ │ -0000e6f0: 6520 2031 3629 0a2a 2064 6566 6175 6c74 e 16).* default │ │ │ │ -0000e700: 2d73 6861 7270 2d72 6561 6465 723a 2020 -sharp-reader: │ │ │ │ -0000e710: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e720: 5265 6164 6572 204c 6962 7261 7279 2e20 Reader Library. │ │ │ │ -0000e730: 2020 2020 2028 6c69 6e65 2020 3231 290a (line 21). │ │ │ │ -0000e740: 2a20 6465 6661 756c 742d 7368 6172 702d * default-sharp- │ │ │ │ -0000e750: 7265 6164 6572 2d74 6f6b 656e 2d72 6561 reader-token-rea │ │ │ │ -0000e760: 6465 7273 3a20 2020 2052 6561 6465 7220 ders: Reader │ │ │ │ -0000e770: 4c69 6272 6172 792e 2020 2020 2020 286c Library. (l │ │ │ │ -0000e780: 696e 6520 2031 3129 0a2a 206d 616b 652d ine 11).* make- │ │ │ │ -0000e790: 616c 7465 726e 6174 652d 6775 696c 652d alternate-guile- │ │ │ │ -0000e7a0: 7265 6164 6572 3a20 2020 2020 2020 2020 reader: │ │ │ │ -0000e7b0: 2020 5175 6963 6b20 5374 6172 742e 2020 Quick Start. │ │ │ │ -0000e7c0: 2020 2020 2020 2028 6c69 6e65 2020 3230 (line 20 │ │ │ │ -0000e7d0: 290a 2a20 6d61 6b65 2d61 6c74 6572 6e61 ).* make-alterna │ │ │ │ -0000e7e0: 7465 2d67 7569 6c65 2d72 6561 6465 7220 te-guile-reader │ │ │ │ -0000e7f0: 3c31 3e3a 2020 2020 2020 2052 6561 6465 <1>: Reade │ │ │ │ -0000e800: 7220 4c69 6272 6172 792e 2020 2020 2020 r Library. │ │ │ │ -0000e810: 286c 696e 6520 2037 3229 0a2a 206d 616b (line 72).* mak │ │ │ │ -0000e820: 652d 6775 696c 652d 7265 6164 6572 3a20 e-guile-reader: │ │ │ │ +0000e690: 2020 2020 2020 2020 2020 2020 2020 2028 ( │ │ │ │ +0000e6a0: 6c69 6e65 2020 3335 290a 2a20 6465 6661 line 35).* defa │ │ │ │ +0000e6b0: 756c 742d 7265 6164 6572 2d74 6f6b 656e ult-reader-token │ │ │ │ +0000e6c0: 2d72 6561 6465 7273 3a20 2020 2020 2020 -readers: │ │ │ │ +0000e6d0: 2020 2052 6561 6465 7220 4c69 6272 6172 Reader Librar │ │ │ │ +0000e6e0: 792e 2020 2020 2020 286c 696e 6520 2031 y. (line 1 │ │ │ │ +0000e6f0: 3629 0a2a 2064 6566 6175 6c74 2d73 6861 6).* default-sha │ │ │ │ +0000e700: 7270 2d72 6561 6465 723a 2020 2020 2020 rp-reader: │ │ │ │ +0000e710: 2020 2020 2020 2020 2020 2020 5265 6164 Read │ │ │ │ +0000e720: 6572 204c 6962 7261 7279 2e20 2020 2020 er Library. │ │ │ │ +0000e730: 2028 6c69 6e65 2020 3231 290a 2a20 6465 (line 21).* de │ │ │ │ +0000e740: 6661 756c 742d 7368 6172 702d 7265 6164 fault-sharp-read │ │ │ │ +0000e750: 6572 2d74 6f6b 656e 2d72 6561 6465 7273 er-token-readers │ │ │ │ +0000e760: 3a20 2020 2052 6561 6465 7220 4c69 6272 : Reader Libr │ │ │ │ +0000e770: 6172 792e 2020 2020 2020 286c 696e 6520 ary. (line │ │ │ │ +0000e780: 2031 3129 0a2a 206d 616b 652d 616c 7465 11).* make-alte │ │ │ │ +0000e790: 726e 6174 652d 6775 696c 652d 7265 6164 rnate-guile-read │ │ │ │ +0000e7a0: 6572 3a20 2020 2020 2020 2020 2020 5175 er: Qu │ │ │ │ +0000e7b0: 6963 6b20 5374 6172 742e 2020 2020 2020 ick Start. │ │ │ │ +0000e7c0: 2020 2028 6c69 6e65 2020 3230 290a 2a20 (line 20).* │ │ │ │ +0000e7d0: 6d61 6b65 2d61 6c74 6572 6e61 7465 2d67 make-alternate-g │ │ │ │ +0000e7e0: 7569 6c65 2d72 6561 6465 7220 3c31 3e3a uile-reader <1>: │ │ │ │ +0000e7f0: 2020 2020 2020 2052 6561 6465 7220 4c69 Reader Li │ │ │ │ +0000e800: 6272 6172 792e 2020 2020 2020 286c 696e brary. (lin │ │ │ │ +0000e810: 6520 2034 3229 0a2a 206d 616b 652d 6775 e 42).* make-gu │ │ │ │ +0000e820: 696c 652d 7265 6164 6572 3a20 2020 2020 ile-reader: │ │ │ │ 0000e830: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e840: 2020 2020 5265 6164 6572 204c 6962 7261 Reader Libra │ │ │ │ -0000e850: 7279 2e20 2020 2020 2028 6c69 6e65 2020 ry. (line │ │ │ │ -0000e860: 3238 290a 2a20 6d61 6b65 2d67 7569 6c65 28).* make-guile │ │ │ │ -0000e870: 2d72 6561 6465 7220 3c31 3e3a 2020 2020 -reader <1>: │ │ │ │ -0000e880: 2020 2020 2020 2020 2020 2020 2049 6e74 Int │ │ │ │ -0000e890: 6572 6e61 6c73 2e20 2020 2020 2020 2020 ernals. │ │ │ │ -0000e8a0: 2020 286c 696e 6520 2032 3229 0a2a 206d (line 22).* m │ │ │ │ -0000e8b0: 616b 652d 7265 6164 6572 3a20 2020 2020 ake-reader: │ │ │ │ +0000e840: 5265 6164 6572 204c 6962 7261 7279 2e20 Reader Library. │ │ │ │ +0000e850: 2020 2020 2028 6c69 6e65 2020 3238 290a (line 28). │ │ │ │ +0000e860: 2a20 6d61 6b65 2d67 7569 6c65 2d72 6561 * make-guile-rea │ │ │ │ +0000e870: 6465 7220 3c31 3e3a 2020 2020 2020 2020 der <1>: │ │ │ │ +0000e880: 2020 2020 2020 2020 2049 6e74 6572 6e61 Interna │ │ │ │ +0000e890: 6c73 2e20 2020 2020 2020 2020 2020 286c ls. (l │ │ │ │ +0000e8a0: 696e 6520 2032 3229 0a2a 206d 616b 652d ine 22).* make- │ │ │ │ +0000e8b0: 7265 6164 6572 3a20 2020 2020 2020 2020 reader: │ │ │ │ 0000e8c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e8d0: 2020 2020 2020 4465 6669 6e69 6e67 2061 Defining a │ │ │ │ -0000e8e0: 204e 6577 2052 6561 6465 722e 0a20 2020 New Reader.. │ │ │ │ +0000e8d0: 2020 4465 6669 6e69 6e67 2061 204e 6577 Defining a New │ │ │ │ +0000e8e0: 2052 6561 6465 722e 0a20 2020 2020 2020 Reader.. │ │ │ │ 0000e8f0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e900: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e910: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e920: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line │ │ │ │ -0000e930: 2020 3230 290a 2a20 6d61 6b65 2d72 6561 20).* make-rea │ │ │ │ -0000e940: 6465 7220 3c31 3e3a 2020 2020 2020 2020 der <1>: │ │ │ │ -0000e950: 2020 2020 2020 2020 2020 2020 2020 2044 D │ │ │ │ -0000e960: 6566 696e 696e 6720 6120 4e65 7720 5265 efining a New Re │ │ │ │ -0000e970: 6164 6572 2e0a 2020 2020 2020 2020 2020 ader.. │ │ │ │ +0000e920: 2020 2020 2020 2028 6c69 6e65 2020 3230 (line 20 │ │ │ │ +0000e930: 290a 2a20 6d61 6b65 2d72 6561 6465 7220 ).* make-reader │ │ │ │ +0000e940: 3c31 3e3a 2020 2020 2020 2020 2020 2020 <1>: │ │ │ │ +0000e950: 2020 2020 2020 2020 2020 2044 6566 696e Defin │ │ │ │ +0000e960: 696e 6720 6120 4e65 7720 5265 6164 6572 ing a New Reader │ │ │ │ +0000e970: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ 0000e980: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e990: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000e9a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000e9b0: 2020 2020 286c 696e 6520 2036 3129 0a2a (line 61).* │ │ │ │ -0000e9c0: 206d 616b 652d 746f 6b65 6e2d 7265 6164 make-token-read │ │ │ │ -0000e9d0: 6572 3a20 2020 2020 2020 2020 2020 2020 er: │ │ │ │ -0000e9e0: 2020 2020 2020 2020 4465 6669 6e69 6e67 Defining │ │ │ │ -0000e9f0: 2061 204e 6577 2054 6f6b 656e 2052 6561 a New Token Rea │ │ │ │ -0000ea00: 6465 722e 0a20 2020 2020 2020 2020 2020 der.. │ │ │ │ +0000e9b0: 286c 696e 6520 2036 3129 0a2a 206d 616b (line 61).* mak │ │ │ │ +0000e9c0: 652d 746f 6b65 6e2d 7265 6164 6572 3a20 e-token-reader: │ │ │ │ +0000e9d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000e9e0: 2020 2020 4465 6669 6e69 6e67 2061 204e Defining a N │ │ │ │ +0000e9f0: 6577 2054 6f6b 656e 2052 6561 6465 722e ew Token Reader. │ │ │ │ +0000ea00: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 0000ea10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ea20: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ea30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ea40: 2020 2028 6c69 6e65 2020 2036 290a 2a20 (line 6).* │ │ │ │ -0000ea50: 6d61 6b65 2d74 6f6b 656e 2d72 6561 6465 make-token-reade │ │ │ │ -0000ea60: 7220 3c31 3e3a 2020 2020 2020 2020 2020 r <1>: │ │ │ │ -0000ea70: 2020 2020 2020 2044 6566 696e 696e 6720 Defining │ │ │ │ -0000ea80: 6120 4e65 7720 546f 6b65 6e20 5265 6164 a New Token Read │ │ │ │ -0000ea90: 6572 2e0a 2020 2020 2020 2020 2020 2020 er.. │ │ │ │ +0000ea30: 2020 2020 2020 2020 2020 2020 2020 2028 ( │ │ │ │ +0000ea40: 6c69 6e65 2020 2036 290a 2a20 6d61 6b65 line 6).* make │ │ │ │ +0000ea50: 2d74 6f6b 656e 2d72 6561 6465 7220 3c31 -token-reader <1 │ │ │ │ +0000ea60: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: │ │ │ │ +0000ea70: 2020 2044 6566 696e 696e 6720 6120 4e65 Defining a Ne │ │ │ │ +0000ea80: 7720 546f 6b65 6e20 5265 6164 6572 2e0a w Token Reader.. │ │ │ │ +0000ea90: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000eaa0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000eab0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000eac0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ead0: 2020 286c 696e 6520 2032 3729 0a2a 2072 (line 27).* r │ │ │ │ -0000eae0: 6561 642d 6469 7361 626c 653a 2020 2020 ead-disable: │ │ │ │ +0000eac0: 2020 2020 2020 2020 2020 2020 2020 286c (l │ │ │ │ +0000ead0: 696e 6520 2032 3729 0a2a 2072 6561 642d ine 27).* read- │ │ │ │ +0000eae0: 6469 7361 626c 653a 2020 2020 2020 2020 disable: │ │ │ │ 0000eaf0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000eb00: 2020 2020 2020 436f 6d70 6174 6962 696c Compatibil │ │ │ │ -0000eb10: 6974 7920 616e 6420 436f 6e66 696e 656d ity and Confinem │ │ │ │ -0000eb20: 656e 742e 0a20 2020 2020 2020 2020 2020 ent.. │ │ │ │ +0000eb00: 2020 436f 6d70 6174 6962 696c 6974 7920 Compatibility │ │ │ │ +0000eb10: 616e 6420 436f 6e66 696e 656d 656e 742e and Confinement. │ │ │ │ +0000eb20: 0a20 2020 2020 2020 2020 2020 2020 2020 . │ │ │ │ 0000eb30: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000eb40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000eb50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000eb60: 2020 2028 6c69 6e65 2020 2036 290a 2a20 (line 6).* │ │ │ │ -0000eb70: 7265 6164 2d65 6e61 626c 653a 2020 2020 read-enable: │ │ │ │ +0000eb50: 2020 2020 2020 2020 2020 2020 2020 2028 ( │ │ │ │ +0000eb60: 6c69 6e65 2020 2036 290a 2a20 7265 6164 line 6).* read │ │ │ │ +0000eb70: 2d65 6e61 626c 653a 2020 2020 2020 2020 -enable: │ │ │ │ 0000eb80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000eb90: 2020 2020 2020 2043 6f6d 7061 7469 6269 Compatibi │ │ │ │ -0000eba0: 6c69 7479 2061 6e64 2043 6f6e 6669 6e65 lity and Confine │ │ │ │ -0000ebb0: 6d65 6e74 2e0a 2020 2020 2020 2020 2020 ment.. │ │ │ │ +0000eb90: 2020 2043 6f6d 7061 7469 6269 6c69 7479 Compatibility │ │ │ │ +0000eba0: 2061 6e64 2043 6f6e 6669 6e65 6d65 6e74 and Confinement │ │ │ │ +0000ebb0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ 0000ebc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ebd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ebe0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ebf0: 2020 2020 286c 696e 6520 2020 3629 0a2a (line 6).* │ │ │ │ -0000ec00: 2072 6561 642d 6861 7368 2d65 7874 656e read-hash-exten │ │ │ │ -0000ec10: 643a 2020 2020 2020 2020 2020 2020 2020 d: │ │ │ │ -0000ec20: 2020 2020 2020 2020 436f 6d70 6174 6962 Compatib │ │ │ │ -0000ec30: 696c 6974 7920 616e 6420 436f 6e66 696e ility and Confin │ │ │ │ -0000ec40: 656d 656e 742e 0a20 2020 2020 2020 2020 ement.. │ │ │ │ +0000ebf0: 286c 696e 6520 2020 3629 0a2a 2072 6561 (line 6).* rea │ │ │ │ +0000ec00: 642d 6861 7368 2d65 7874 656e 643a 2020 d-hash-extend: │ │ │ │ +0000ec10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000ec20: 2020 2020 436f 6d70 6174 6962 696c 6974 Compatibilit │ │ │ │ +0000ec30: 7920 616e 6420 436f 6e66 696e 656d 656e y and Confinemen │ │ │ │ +0000ec40: 742e 0a20 2020 2020 2020 2020 2020 2020 t.. │ │ │ │ 0000ec50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ec60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ec70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ec80: 2020 2020 2028 6c69 6e65 2020 2036 290a (line 6). │ │ │ │ -0000ec90: 2a20 7265 6164 2d6f 7074 696f 6e73 3a20 * read-options: │ │ │ │ +0000ec80: 2028 6c69 6e65 2020 2036 290a 2a20 7265 (line 6).* re │ │ │ │ +0000ec90: 6164 2d6f 7074 696f 6e73 3a20 2020 2020 ad-options: │ │ │ │ 0000eca0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ecb0: 2020 2020 2020 2020 2043 6f6d 7061 7469 Compati │ │ │ │ -0000ecc0: 6269 6c69 7479 2061 6e64 2043 6f6e 6669 bility and Confi │ │ │ │ -0000ecd0: 6e65 6d65 6e74 2e0a 2020 2020 2020 2020 nement.. │ │ │ │ +0000ecb0: 2020 2020 2043 6f6d 7061 7469 6269 6c69 Compatibili │ │ │ │ +0000ecc0: 7479 2061 6e64 2043 6f6e 6669 6e65 6d65 ty and Confineme │ │ │ │ +0000ecd0: 6e74 2e0a 2020 2020 2020 2020 2020 2020 nt.. │ │ │ │ 0000ece0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ecf0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ed00: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ed10: 2020 2020 2020 286c 696e 6520 2020 3629 (line 6) │ │ │ │ -0000ed20: 0a2a 2072 6561 642d 6f70 7469 6f6e 732d .* read-options- │ │ │ │ -0000ed30: 3e65 7874 656e 6465 642d 7265 6164 6572 >extended-reader │ │ │ │ -0000ed40: 2d6f 7074 696f 6e73 3a20 5265 6164 6572 -options: Reader │ │ │ │ -0000ed50: 204c 6962 7261 7279 2e20 2020 2020 2028 Library. ( │ │ │ │ -0000ed60: 6c69 6e65 2020 3636 290a 2a20 7265 6164 line 66).* read │ │ │ │ -0000ed70: 2d6f 7074 696f 6e73 2d69 6e74 6572 6661 -options-interfa │ │ │ │ -0000ed80: 6365 3a20 2020 2020 2020 2020 2020 2020 ce: │ │ │ │ -0000ed90: 2020 2043 6f6d 7061 7469 6269 6c69 7479 Compatibility │ │ │ │ -0000eda0: 2061 6e64 2043 6f6e 6669 6e65 6d65 6e74 and Confinement │ │ │ │ -0000edb0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. │ │ │ │ +0000ed10: 2020 286c 696e 6520 2020 3629 0a2a 2072 (line 6).* r │ │ │ │ +0000ed20: 6561 642d 6f70 7469 6f6e 732d 3e65 7874 ead-options->ext │ │ │ │ +0000ed30: 656e 6465 642d 7265 6164 6572 2d6f 7074 ended-reader-opt │ │ │ │ +0000ed40: 696f 6e73 3a20 5265 6164 6572 204c 6962 ions: Reader Lib │ │ │ │ +0000ed50: 7261 7279 2e20 2020 2020 2028 6c69 6e65 rary. (line │ │ │ │ +0000ed60: 2020 3336 290a 2a20 7265 6164 2d6f 7074 36).* read-opt │ │ │ │ +0000ed70: 696f 6e73 2d69 6e74 6572 6661 6365 3a20 ions-interface: │ │ │ │ +0000ed80: 2020 2020 2020 2020 2020 2020 2020 2043 C │ │ │ │ +0000ed90: 6f6d 7061 7469 6269 6c69 7479 2061 6e64 ompatibility and │ │ │ │ +0000eda0: 2043 6f6e 6669 6e65 6d65 6e74 2e0a 2020 Confinement.. │ │ │ │ +0000edb0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000edc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000edd0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ede0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000edf0: 286c 696e 6520 2032 3229 0a2a 2072 6561 (line 22).* rea │ │ │ │ -0000ee00: 642d 7365 7421 3a20 2020 2020 2020 2020 d-set!: │ │ │ │ +0000ede0: 2020 2020 2020 2020 2020 2020 286c 696e (lin │ │ │ │ +0000edf0: 6520 2032 3229 0a2a 2072 6561 642d 7365 e 22).* read-se │ │ │ │ +0000ee00: 7421 3a20 2020 2020 2020 2020 2020 2020 t!: │ │ │ │ 0000ee10: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ee20: 2020 2020 436f 6d70 6174 6962 696c 6974 Compatibilit │ │ │ │ -0000ee30: 7920 616e 6420 436f 6e66 696e 656d 656e y and Confinemen │ │ │ │ -0000ee40: 742e 0a20 2020 2020 2020 2020 2020 2020 t.. │ │ │ │ +0000ee20: 436f 6d70 6174 6962 696c 6974 7920 616e Compatibility an │ │ │ │ +0000ee30: 6420 436f 6e66 696e 656d 656e 742e 0a20 d Confinement.. │ │ │ │ +0000ee40: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ee50: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000ee60: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ee70: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ee80: 2028 6c69 6e65 2020 2036 290a 2a20 7363 (line 6).* sc │ │ │ │ -0000ee90: 6d5f 6465 6661 756c 745f 7265 6164 6572 m_default_reader │ │ │ │ -0000eea0: 5f74 6f6b 656e 5f72 6561 6465 7273 3a20 _token_readers: │ │ │ │ -0000eeb0: 2020 2020 2052 6561 6465 7220 4c69 6272 Reader Libr │ │ │ │ -0000eec0: 6172 792e 2020 2020 2020 286c 696e 6520 ary. (line │ │ │ │ -0000eed0: 2031 3729 0a2a 2073 636d 5f64 6566 6175 17).* scm_defau │ │ │ │ -0000eee0: 6c74 5f73 6861 7270 5f72 6561 6465 723a lt_sharp_reader: │ │ │ │ -0000eef0: 2020 2020 2020 2020 2020 2020 2020 5265 Re │ │ │ │ -0000ef00: 6164 6572 204c 6962 7261 7279 2e20 2020 ader Library. │ │ │ │ -0000ef10: 2020 2028 6c69 6e65 2020 3232 290a 2a20 (line 22).* │ │ │ │ -0000ef20: 7363 6d5f 6465 6661 756c 745f 7368 6172 scm_default_shar │ │ │ │ -0000ef30: 705f 7265 6164 6572 5f74 6f6b 656e 5f72 p_reader_token_r │ │ │ │ -0000ef40: 6561 6465 7273 3a20 5265 6164 6572 204c eaders: Reader L │ │ │ │ -0000ef50: 6962 7261 7279 2e20 2020 2020 286c 696e ibrary. (lin │ │ │ │ -0000ef60: 6520 2031 3229 0a2a 2073 636d 5f6d 616b e 12).* scm_mak │ │ │ │ -0000ef70: 655f 6775 696c 655f 7265 6164 6572 3a20 e_guile_reader: │ │ │ │ -0000ef80: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000ef90: 5265 6164 6572 204c 6962 7261 7279 2e20 Reader Library. │ │ │ │ -0000efa0: 2020 2020 2028 6c69 6e65 2020 3239 290a (line 29). │ │ │ │ -0000efb0: 2a20 7363 6d5f 6d61 6b65 5f72 6561 6465 * scm_make_reade │ │ │ │ -0000efc0: 723a 2020 2020 2020 2020 2020 2020 2020 r: │ │ │ │ -0000efd0: 2020 2020 2020 2020 2044 6566 696e 696e Definin │ │ │ │ -0000efe0: 6720 6120 4e65 7720 5265 6164 6572 2e0a g a New Reader.. │ │ │ │ +0000ee70: 2020 2020 2020 2020 2020 2020 2028 6c69 (li │ │ │ │ +0000ee80: 6e65 2020 2036 290a 2a20 7363 6d5f 6465 ne 6).* scm_de │ │ │ │ +0000ee90: 6661 756c 745f 7265 6164 6572 5f74 6f6b fault_reader_tok │ │ │ │ +0000eea0: 656e 5f72 6561 6465 7273 3a20 2020 2020 en_readers: │ │ │ │ +0000eeb0: 2052 6561 6465 7220 4c69 6272 6172 792e Reader Library. │ │ │ │ +0000eec0: 2020 2020 2020 286c 696e 6520 2031 3729 (line 17) │ │ │ │ +0000eed0: 0a2a 2073 636d 5f64 6566 6175 6c74 5f73 .* scm_default_s │ │ │ │ +0000eee0: 6861 7270 5f72 6561 6465 723a 2020 2020 harp_reader: │ │ │ │ +0000eef0: 2020 2020 2020 2020 2020 5265 6164 6572 Reader │ │ │ │ +0000ef00: 204c 6962 7261 7279 2e20 2020 2020 2028 Library. ( │ │ │ │ +0000ef10: 6c69 6e65 2020 3232 290a 2a20 7363 6d5f line 22).* scm_ │ │ │ │ +0000ef20: 6465 6661 756c 745f 7368 6172 705f 7265 default_sharp_re │ │ │ │ +0000ef30: 6164 6572 5f74 6f6b 656e 5f72 6561 6465 ader_token_reade │ │ │ │ +0000ef40: 7273 3a20 5265 6164 6572 204c 6962 7261 rs: Reader Libra │ │ │ │ +0000ef50: 7279 2e20 2020 2020 286c 696e 6520 2031 ry. (line 1 │ │ │ │ +0000ef60: 3229 0a2a 2073 636d 5f6d 616b 655f 6775 2).* scm_make_gu │ │ │ │ +0000ef70: 696c 655f 7265 6164 6572 3a20 2020 2020 ile_reader: │ │ │ │ +0000ef80: 2020 2020 2020 2020 2020 2020 5265 6164 Read │ │ │ │ +0000ef90: 6572 204c 6962 7261 7279 2e20 2020 2020 er Library. │ │ │ │ +0000efa0: 2028 6c69 6e65 2020 3239 290a 2a20 7363 (line 29).* sc │ │ │ │ +0000efb0: 6d5f 6d61 6b65 5f72 6561 6465 723a 2020 m_make_reader: │ │ │ │ +0000efc0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ +0000efd0: 2020 2020 2044 6566 696e 696e 6720 6120 Defining a │ │ │ │ +0000efe0: 4e65 7720 5265 6164 6572 2e0a 2020 2020 New Reader.. │ │ │ │ 0000eff0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f000: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f010: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f020: 2020 2020 2020 2020 2020 2020 2020 286c (l │ │ │ │ -0000f030: 696e 6520 2036 3329 0a2a 2073 636d 5f6d ine 63).* scm_m │ │ │ │ -0000f040: 616b 655f 746f 6b65 6e5f 7265 6164 6572 ake_token_reader │ │ │ │ -0000f050: 3a20 2020 2020 2020 2020 2020 2020 2020 : │ │ │ │ -0000f060: 2020 4465 6669 6e69 6e67 2061 204e 6577 Defining a New │ │ │ │ -0000f070: 2054 6f6b 656e 2052 6561 6465 722e 0a20 Token Reader.. │ │ │ │ +0000f020: 2020 2020 2020 2020 2020 286c 696e 6520 (line │ │ │ │ +0000f030: 2036 3329 0a2a 2073 636d 5f6d 616b 655f 63).* scm_make_ │ │ │ │ +0000f040: 746f 6b65 6e5f 7265 6164 6572 3a20 2020 token_reader: │ │ │ │ +0000f050: 2020 2020 2020 2020 2020 2020 2020 4465 De │ │ │ │ +0000f060: 6669 6e69 6e67 2061 204e 6577 2054 6f6b fining a New Tok │ │ │ │ +0000f070: 656e 2052 6561 6465 722e 0a20 2020 2020 en Reader.. │ │ │ │ 0000f080: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f090: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f0a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f0b0: 2020 2020 2020 2020 2020 2020 2028 6c69 (li │ │ │ │ -0000f0c0: 6e65 2020 3238 290a 2a20 7363 6d5f 7265 ne 28).* scm_re │ │ │ │ -0000f0d0: 6164 6572 5f73 7461 6e64 6172 645f 6661 ader_standard_fa │ │ │ │ -0000f0e0: 756c 745f 6861 6e64 6c65 723a 2020 2020 ult_handler: │ │ │ │ -0000f0f0: 2044 6566 696e 696e 6720 6120 4e65 7720 Defining a New │ │ │ │ -0000f100: 5265 6164 6572 2e0a 2020 2020 2020 2020 Reader.. │ │ │ │ +0000f0b0: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line │ │ │ │ +0000f0c0: 3238 290a 2a20 7363 6d5f 7265 6164 6572 28).* scm_reader │ │ │ │ +0000f0d0: 5f73 7461 6e64 6172 645f 6661 756c 745f _standard_fault_ │ │ │ │ +0000f0e0: 6861 6e64 6c65 723a 2020 2020 2044 6566 handler: Def │ │ │ │ +0000f0f0: 696e 696e 6720 6120 4e65 7720 5265 6164 ining a New Read │ │ │ │ +0000f100: 6572 2e0a 2020 2020 2020 2020 2020 2020 er.. │ │ │ │ 0000f110: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f120: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f130: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f140: 2020 2020 2020 286c 696e 6520 2035 3629 (line 56) │ │ │ │ -0000f150: 0a2a 2073 636d 5f73 7461 6e64 6172 645f .* scm_standard_ │ │ │ │ -0000f160: 746f 6b65 6e5f 7265 6164 6572 3a20 2020 token_reader: │ │ │ │ -0000f170: 2020 2020 2020 2020 2020 546f 6b65 6e20 Token │ │ │ │ -0000f180: 5265 6164 6572 204c 6962 7261 7279 2e0a Reader Library.. │ │ │ │ +0000f140: 2020 286c 696e 6520 2035 3629 0a2a 2073 (line 56).* s │ │ │ │ +0000f150: 636d 5f73 7461 6e64 6172 645f 746f 6b65 cm_standard_toke │ │ │ │ +0000f160: 6e5f 7265 6164 6572 3a20 2020 2020 2020 n_reader: │ │ │ │ +0000f170: 2020 2020 2020 546f 6b65 6e20 5265 6164 Token Read │ │ │ │ +0000f180: 6572 204c 6962 7261 7279 2e0a 2020 2020 er Library.. │ │ │ │ 0000f190: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f1a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f1b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f1c0: 2020 2020 2020 2020 2020 2020 2020 286c (l │ │ │ │ -0000f1d0: 696e 6520 3331 3729 0a2a 2073 636d 5f74 ine 317).* scm_t │ │ │ │ -0000f1e0: 6f6b 656e 5f72 6561 6465 725f 6573 6361 oken_reader_esca │ │ │ │ -0000f1f0: 7065 5f70 3a20 2020 2020 2020 2020 2020 pe_p: │ │ │ │ -0000f200: 2020 546f 6b65 6e20 5265 6164 6572 204c Token Reader L │ │ │ │ -0000f210: 6962 7261 7279 2e0a 2020 2020 2020 2020 ibrary.. │ │ │ │ +0000f1c0: 2020 2020 2020 2020 2020 286c 696e 6520 (line │ │ │ │ +0000f1d0: 3331 3729 0a2a 2073 636d 5f74 6f6b 656e 317).* scm_token │ │ │ │ +0000f1e0: 5f72 6561 6465 725f 6573 6361 7065 5f70 _reader_escape_p │ │ │ │ +0000f1f0: 3a20 2020 2020 2020 2020 2020 2020 546f : To │ │ │ │ +0000f200: 6b65 6e20 5265 6164 6572 204c 6962 7261 ken Reader Libra │ │ │ │ +0000f210: 7279 2e0a 2020 2020 2020 2020 2020 2020 ry.. │ │ │ │ 0000f220: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f230: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f240: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f250: 2020 2020 2020 286c 696e 6520 3330 3229 (line 302) │ │ │ │ -0000f260: 0a2a 2073 636d 5f74 6f6b 656e 5f72 6561 .* scm_token_rea │ │ │ │ -0000f270: 6465 725f 7072 6f63 3a20 2020 2020 2020 der_proc: │ │ │ │ -0000f280: 2020 2020 2020 2020 2020 546f 6b65 6e20 Token │ │ │ │ -0000f290: 5265 6164 6572 204c 6962 7261 7279 2e0a Reader Library.. │ │ │ │ +0000f250: 2020 286c 696e 6520 3330 3229 0a2a 2073 (line 302).* s │ │ │ │ +0000f260: 636d 5f74 6f6b 656e 5f72 6561 6465 725f cm_token_reader_ │ │ │ │ +0000f270: 7072 6f63 3a20 2020 2020 2020 2020 2020 proc: │ │ │ │ +0000f280: 2020 2020 2020 546f 6b65 6e20 5265 6164 Token Read │ │ │ │ +0000f290: 6572 204c 6962 7261 7279 2e0a 2020 2020 er Library.. │ │ │ │ 0000f2a0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f2b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f2c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f2d0: 2020 2020 2020 2020 2020 2020 2020 286c (l │ │ │ │ -0000f2e0: 696e 6520 3331 3129 0a2a 2073 636d 5f74 ine 311).* scm_t │ │ │ │ -0000f2f0: 6f6b 656e 5f72 6561 6465 725f 7370 6563 oken_reader_spec │ │ │ │ -0000f300: 3a20 2020 2020 2020 2020 2020 2020 2020 : │ │ │ │ -0000f310: 2020 546f 6b65 6e20 5265 6164 6572 204c Token Reader L │ │ │ │ -0000f320: 6962 7261 7279 2e0a 2020 2020 2020 2020 ibrary.. │ │ │ │ +0000f2d0: 2020 2020 2020 2020 2020 286c 696e 6520 (line │ │ │ │ +0000f2e0: 3331 3129 0a2a 2073 636d 5f74 6f6b 656e 311).* scm_token │ │ │ │ +0000f2f0: 5f72 6561 6465 725f 7370 6563 3a20 2020 _reader_spec: │ │ │ │ +0000f300: 2020 2020 2020 2020 2020 2020 2020 546f To │ │ │ │ +0000f310: 6b65 6e20 5265 6164 6572 204c 6962 7261 ken Reader Libra │ │ │ │ +0000f320: 7279 2e0a 2020 2020 2020 2020 2020 2020 ry.. │ │ │ │ 0000f330: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f340: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f350: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f360: 2020 2020 2020 286c 696e 6520 3330 3729 (line 307) │ │ │ │ -0000f370: 0a2a 2073 7461 6e64 6172 642d 746f 6b65 .* standard-toke │ │ │ │ -0000f380: 6e2d 7265 6164 6572 3a20 2020 2020 2020 n-reader: │ │ │ │ -0000f390: 2020 2020 2020 2020 2020 546f 6b65 6e20 Token │ │ │ │ -0000f3a0: 5265 6164 6572 204c 6962 7261 7279 2e0a Reader Library.. │ │ │ │ +0000f360: 2020 286c 696e 6520 3330 3729 0a2a 2073 (line 307).* s │ │ │ │ +0000f370: 7461 6e64 6172 642d 746f 6b65 6e2d 7265 tandard-token-re │ │ │ │ +0000f380: 6164 6572 3a20 2020 2020 2020 2020 2020 ader: │ │ │ │ +0000f390: 2020 2020 2020 546f 6b65 6e20 5265 6164 Token Read │ │ │ │ +0000f3a0: 6572 204c 6962 7261 7279 2e0a 2020 2020 er Library.. │ │ │ │ 0000f3b0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f3c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f3d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f3e0: 2020 2020 2020 2020 2020 2020 2020 286c (l │ │ │ │ -0000f3f0: 696e 6520 3331 3629 0a2a 2074 6f6b 656e ine 316).* token │ │ │ │ -0000f400: 2d72 6561 6465 722d 6573 6361 7065 3f3a -reader-escape?: │ │ │ │ -0000f410: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f420: 2020 546f 6b65 6e20 5265 6164 6572 204c Token Reader L │ │ │ │ -0000f430: 6962 7261 7279 2e0a 2020 2020 2020 2020 ibrary.. │ │ │ │ +0000f3e0: 2020 2020 2020 2020 2020 286c 696e 6520 (line │ │ │ │ +0000f3f0: 3331 3629 0a2a 2074 6f6b 656e 2d72 6561 316).* token-rea │ │ │ │ +0000f400: 6465 722d 6573 6361 7065 3f3a 2020 2020 der-escape?: │ │ │ │ +0000f410: 2020 2020 2020 2020 2020 2020 2020 546f To │ │ │ │ +0000f420: 6b65 6e20 5265 6164 6572 204c 6962 7261 ken Reader Libra │ │ │ │ +0000f430: 7279 2e0a 2020 2020 2020 2020 2020 2020 ry.. │ │ │ │ 0000f440: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f450: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f460: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f470: 2020 2020 2020 286c 696e 6520 3330 3129 (line 301) │ │ │ │ -0000f480: 0a2a 2074 6f6b 656e 2d72 6561 6465 722d .* token-reader- │ │ │ │ -0000f490: 7072 6f63 6564 7572 653a 2020 2020 2020 procedure: │ │ │ │ -0000f4a0: 2020 2020 2020 2020 2020 546f 6b65 6e20 Token │ │ │ │ -0000f4b0: 5265 6164 6572 204c 6962 7261 7279 2e0a Reader Library.. │ │ │ │ +0000f470: 2020 286c 696e 6520 3330 3129 0a2a 2074 (line 301).* t │ │ │ │ +0000f480: 6f6b 656e 2d72 6561 6465 722d 7072 6f63 oken-reader-proc │ │ │ │ +0000f490: 6564 7572 653a 2020 2020 2020 2020 2020 edure: │ │ │ │ +0000f4a0: 2020 2020 2020 546f 6b65 6e20 5265 6164 Token Read │ │ │ │ +0000f4b0: 6572 204c 6962 7261 7279 2e0a 2020 2020 er Library.. │ │ │ │ 0000f4c0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f4d0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f4e0: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f4f0: 2020 2020 2020 2020 2020 2020 2020 286c (l │ │ │ │ -0000f500: 696e 6520 3331 3029 0a2a 2074 6f6b 656e ine 310).* token │ │ │ │ -0000f510: 2d72 6561 6465 722d 7370 6563 6966 6963 -reader-specific │ │ │ │ -0000f520: 6174 696f 6e3a 2020 2020 2020 2020 2020 ation: │ │ │ │ -0000f530: 2020 546f 6b65 6e20 5265 6164 6572 204c Token Reader L │ │ │ │ -0000f540: 6962 7261 7279 2e0a 2020 2020 2020 2020 ibrary.. │ │ │ │ +0000f4f0: 2020 2020 2020 2020 2020 286c 696e 6520 (line │ │ │ │ +0000f500: 3331 3029 0a2a 2074 6f6b 656e 2d72 6561 310).* token-rea │ │ │ │ +0000f510: 6465 722d 7370 6563 6966 6963 6174 696f der-specificatio │ │ │ │ +0000f520: 6e3a 2020 2020 2020 2020 2020 2020 546f n: To │ │ │ │ +0000f530: 6b65 6e20 5265 6164 6572 204c 6962 7261 ken Reader Libra │ │ │ │ +0000f540: 7279 2e0a 2020 2020 2020 2020 2020 2020 ry.. │ │ │ │ 0000f550: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f560: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ 0000f570: 2020 2020 2020 2020 2020 2020 2020 2020 │ │ │ │ -0000f580: 2020 2020 2020 286c 696e 6520 3330 3629 (line 306) │ │ │ │ -0000f590: 0a0a 0a1f 0a54 6167 2054 6162 6c65 3a0a .....Tag Table:. │ │ │ │ -0000f5a0: 4e6f 6465 3a20 546f 707f 3130 3333 0a4e Node: Top.1033.N │ │ │ │ -0000f5b0: 6f64 653a 2049 6e74 726f 6475 6374 696f ode: Introductio │ │ │ │ -0000f5c0: 6e7f 3138 3932 0a4e 6f64 653a 204f 7665 n.1892.Node: Ove │ │ │ │ -0000f5d0: 7276 6965 777f 3530 3233 0a4e 6f64 653a rview.5023.Node: │ │ │ │ -0000f5e0: 2051 7569 636b 2053 7461 7274 7f37 3439 Quick Start.749 │ │ │ │ -0000f5f0: 350a 4e6f 6465 3a20 4150 4920 5265 6665 5.Node: API Refe │ │ │ │ -0000f600: 7265 6e63 657f 3131 3531 330a 4e6f 6465 rence.11513.Node │ │ │ │ -0000f610: 3a20 546f 6b65 6e20 5265 6164 6572 737f : Token Readers. │ │ │ │ -0000f620: 3132 3132 300a 4e6f 6465 3a20 4465 6669 12120.Node: Defi │ │ │ │ -0000f630: 6e69 6e67 2061 204e 6577 2054 6f6b 656e ning a New Token │ │ │ │ -0000f640: 2052 6561 6465 727f 3132 3638 330a 4e6f Reader.12683.No │ │ │ │ -0000f650: 6465 3a20 5452 2043 616c 6c69 6e67 2043 de: TR Calling C │ │ │ │ -0000f660: 6f6e 7665 6e74 696f 6e7f 3134 3433 380a onvention.14438. │ │ │ │ -0000f670: 4e6f 6465 3a20 496e 766f 6b69 6e67 2061 Node: Invoking a │ │ │ │ -0000f680: 2052 6561 6465 7220 6672 6f6d 2061 2054 Reader from a T │ │ │ │ -0000f690: 527f 3136 3839 340a 4e6f 6465 3a20 546f R.16894.Node: To │ │ │ │ -0000f6a0: 6b65 6e20 5265 6164 6572 204c 6962 7261 ken Reader Libra │ │ │ │ -0000f6b0: 7279 7f31 3833 3735 0a4e 6f64 653a 204c ry.18375.Node: L │ │ │ │ -0000f6c0: 696d 6974 6174 696f 6e73 7f33 3830 3033 imitations.38003 │ │ │ │ -0000f6d0: 0a4e 6f64 653a 2054 6f6b 656e 2044 656c .Node: Token Del │ │ │ │ -0000f6e0: 696d 6974 6572 737f 3338 3338 350a 4e6f imiters.38385.No │ │ │ │ -0000f6f0: 6465 3a20 4f76 6572 6c61 7070 696e 6720 de: Overlapping │ │ │ │ -0000f700: 546f 6b65 6e20 5265 6164 6572 737f 3430 Token Readers.40 │ │ │ │ -0000f710: 3835 380a 4e6f 6465 3a20 5265 6164 6572 858.Node: Reader │ │ │ │ -0000f720: 737f 3433 3037 330a 4e6f 6465 3a20 4465 s.43073.Node: De │ │ │ │ -0000f730: 6669 6e69 6e67 2061 204e 6577 2052 6561 fining a New Rea │ │ │ │ -0000f740: 6465 727f 3433 3437 330a 4e6f 6465 3a20 der.43473.Node: │ │ │ │ -0000f750: 5265 6164 6572 204c 6962 7261 7279 7f34 Reader Library.4 │ │ │ │ -0000f760: 3831 3039 0a4e 6f64 653a 2043 6f6d 7061 8109.Node: Compa │ │ │ │ -0000f770: 7469 6269 6c69 7479 2061 6e64 2043 6f6e tibility and Con │ │ │ │ -0000f780: 6669 6e65 6d65 6e74 7f35 3138 3339 0a4e finement.51839.N │ │ │ │ -0000f790: 6f64 653a 2049 6e74 6572 6e61 6c73 7f35 ode: Internals.5 │ │ │ │ -0000f7a0: 3431 3837 0a4e 6f64 653a 2043 6f6e 6365 4187.Node: Conce │ │ │ │ -0000f7b0: 7074 2049 6e64 6578 7f35 3539 3338 0a4e pt Index.55938.N │ │ │ │ -0000f7c0: 6f64 653a 2046 756e 6374 696f 6e20 496e ode: Function In │ │ │ │ -0000f7d0: 6465 787f 3538 3536 350a 1f0a 456e 6420 dex.58565...End │ │ │ │ -0000f7e0: 5461 6720 5461 626c 650a 0a1f 0a4c 6f63 Tag Table....Loc │ │ │ │ -0000f7f0: 616c 2056 6172 6961 626c 6573 3a0a 636f al Variables:.co │ │ │ │ -0000f800: 6469 6e67 3a20 7574 662d 380a 456e 643a ding: utf-8.End: │ │ │ │ -0000f810: 0a . │ │ │ │ +0000f580: 2020 286c 696e 6520 3330 3629 0a0a 0a1f (line 306).... │ │ │ │ +0000f590: 0a54 6167 2054 6162 6c65 3a0a 4e6f 6465 .Tag Table:.Node │ │ │ │ +0000f5a0: 3a20 546f 707f 3130 3333 0a4e 6f64 653a : Top.1033.Node: │ │ │ │ +0000f5b0: 2049 6e74 726f 6475 6374 696f 6e7f 3138 Introduction.18 │ │ │ │ +0000f5c0: 3838 0a4e 6f64 653a 204f 7665 7276 6965 88.Node: Overvie │ │ │ │ +0000f5d0: 777f 3530 3139 0a4e 6f64 653a 2051 7569 w.5019.Node: Qui │ │ │ │ +0000f5e0: 636b 2053 7461 7274 7f37 3439 310a 4e6f ck Start.7491.No │ │ │ │ +0000f5f0: 6465 3a20 4150 4920 5265 6665 7265 6e63 de: API Referenc │ │ │ │ +0000f600: 657f 3131 3530 390a 4e6f 6465 3a20 546f e.11509.Node: To │ │ │ │ +0000f610: 6b65 6e20 5265 6164 6572 737f 3132 3131 ken Readers.1211 │ │ │ │ +0000f620: 360a 4e6f 6465 3a20 4465 6669 6e69 6e67 6.Node: Defining │ │ │ │ +0000f630: 2061 204e 6577 2054 6f6b 656e 2052 6561 a New Token Rea │ │ │ │ +0000f640: 6465 727f 3132 3637 390a 4e6f 6465 3a20 der.12679.Node: │ │ │ │ +0000f650: 5452 2043 616c 6c69 6e67 2043 6f6e 7665 TR Calling Conve │ │ │ │ +0000f660: 6e74 696f 6e7f 3134 3433 340a 4e6f 6465 ntion.14434.Node │ │ │ │ +0000f670: 3a20 496e 766f 6b69 6e67 2061 2052 6561 : Invoking a Rea │ │ │ │ +0000f680: 6465 7220 6672 6f6d 2061 2054 527f 3136 der from a TR.16 │ │ │ │ +0000f690: 3839 300a 4e6f 6465 3a20 546f 6b65 6e20 890.Node: Token │ │ │ │ +0000f6a0: 5265 6164 6572 204c 6962 7261 7279 7f31 Reader Library.1 │ │ │ │ +0000f6b0: 3833 3731 0a4e 6f64 653a 204c 696d 6974 8371.Node: Limit │ │ │ │ +0000f6c0: 6174 696f 6e73 7f33 3739 3939 0a4e 6f64 ations.37999.Nod │ │ │ │ +0000f6d0: 653a 2054 6f6b 656e 2044 656c 696d 6974 e: Token Delimit │ │ │ │ +0000f6e0: 6572 737f 3338 3338 310a 4e6f 6465 3a20 ers.38381.Node: │ │ │ │ +0000f6f0: 4f76 6572 6c61 7070 696e 6720 546f 6b65 Overlapping Toke │ │ │ │ +0000f700: 6e20 5265 6164 6572 737f 3430 3835 340a n Readers.40854. │ │ │ │ +0000f710: 4e6f 6465 3a20 5265 6164 6572 737f 3433 Node: Readers.43 │ │ │ │ +0000f720: 3036 390a 4e6f 6465 3a20 4465 6669 6e69 069.Node: Defini │ │ │ │ +0000f730: 6e67 2061 204e 6577 2052 6561 6465 727f ng a New Reader. │ │ │ │ +0000f740: 3433 3436 390a 4e6f 6465 3a20 5265 6164 43469.Node: Read │ │ │ │ +0000f750: 6572 204c 6962 7261 7279 7f34 3831 3035 er Library.48105 │ │ │ │ +0000f760: 0a4e 6f64 653a 2043 6f6d 7061 7469 6269 .Node: Compatibi │ │ │ │ +0000f770: 6c69 7479 2061 6e64 2043 6f6e 6669 6e65 lity and Confine │ │ │ │ +0000f780: 6d65 6e74 7f35 3138 3335 0a4e 6f64 653a ment.51835.Node: │ │ │ │ +0000f790: 2049 6e74 6572 6e61 6c73 7f35 3431 3833 Internals.54183 │ │ │ │ +0000f7a0: 0a4e 6f64 653a 2043 6f6e 6365 7074 2049 .Node: Concept I │ │ │ │ +0000f7b0: 6e64 6578 7f35 3539 3334 0a4e 6f64 653a ndex.55934.Node: │ │ │ │ +0000f7c0: 2046 756e 6374 696f 6e20 496e 6465 787f Function Index. │ │ │ │ +0000f7d0: 3538 3536 310a 1f0a 456e 6420 5461 6720 58561...End Tag │ │ │ │ +0000f7e0: 5461 626c 650a 0a1f 0a4c 6f63 616c 2056 Table....Local V │ │ │ │ +0000f7f0: 6172 6961 626c 6573 3a0a 636f 6469 6e67 ariables:.coding │ │ │ │ +0000f800: 3a20 7574 662d 380a 456e 643a 0a : utf-8.End:.