home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / case-table.elc < prev    next >
Emacs Compiled Lisp  |  1994-05-04  |  2.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6b 77 7a 68 40 68 61 |piled by| kwzh@ha|
|00000020| 6c 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |l.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 54 75 65 20 | 4d 61 79 20 20 33 20 32 | on Tue |May 3 2|
|00000040| 31 3a 34 35 3a 35 36 20 | 31 39 39 34 0a 3b 3b 3b |1:45:56 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 67 64 2f 67 | from fi|le /gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2f 31 39 2e 30 2f 6c 69 |nu/emacs|/19.0/li|
|00000070| 73 70 2f 63 61 73 65 2d | 74 61 62 6c 65 2e 65 6c |sp/case-|table.el|
|00000080| 0a 3b 3b 3b 20 65 6d 61 | 63 73 20 76 65 72 73 69 |.;;; ema|cs versi|
|00000090| 6f 6e 20 31 39 2e 32 32 | 2e 39 32 2e 32 2e 0a 3b |on 19.22|.92.2..;|
|000000a0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000b0| 69 6f 6e 20 46 53 46 20 | 32 2e 31 30 0a 3b 3b 3b |ion FSF |2.10.;;;|
|000000c0| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 20 69 73 | optimiz|ation is|
|000000d0| 20 6f 6e 2e 0a 3b 3b 3b | 20 74 68 69 73 20 66 69 | on..;;;| this fi|
|000000e0| 6c 65 20 75 73 65 73 20 | 6f 70 63 6f 64 65 73 20 |le uses |opcodes |
|000000f0| 77 68 69 63 68 20 64 6f | 20 6e 6f 74 20 65 78 69 |which do| not exi|
|00000100| 73 74 20 69 6e 20 45 6d | 61 63 73 20 31 38 2e 0a |st in Em|acs 18..|
|00000110| 0a 28 69 66 20 28 61 6e | 64 20 28 62 6f 75 6e 64 |.(if (an|d (bound|
|00000120| 70 20 27 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |p 'emacs|-version|
|00000130| 29 0a 09 20 28 6f 72 20 | 28 61 6e 64 20 28 62 6f |).. (or |(and (bo|
|00000140| 75 6e 64 70 20 27 65 70 | 6f 63 68 3a 3a 76 65 72 |undp 'ep|och::ver|
|00000150| 73 69 6f 6e 29 20 65 70 | 6f 63 68 3a 3a 76 65 72 |sion) ep|och::ver|
|00000160| 73 69 6f 6e 29 0a 09 20 | 20 20 20 20 28 73 74 72 |sion).. | (str|
|00000170| 69 6e 67 2d 6c 65 73 73 | 70 20 65 6d 61 63 73 2d |ing-less|p emacs-|
|00000180| 76 65 72 73 69 6f 6e 20 | 22 31 39 22 29 29 29 0a |version |"19"))).|
|00000190| 20 20 20 20 28 65 72 72 | 6f 72 20 22 60 2f 67 64 | (err|or "`/gd|
|000001a0| 2f 67 6e 75 2f 65 6d 61 | 63 73 2f 31 39 2e 30 2f |/gnu/ema|cs/19.0/|
|000001b0| 6c 69 73 70 2f 63 61 73 | 65 2d 74 61 62 6c 65 2e |lisp/cas|e-table.|
|000001c0| 65 6c 27 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |el' was |compiled|
|000001d0| 20 66 6f 72 20 45 6d 61 | 63 73 20 31 39 22 29 29 | for Ema|cs 19"))|
|000001e0| 0a 0a 28 64 65 66 61 6c | 69 61 73 20 27 64 65 73 |..(defal|ias 'des|
|000001f0| 63 72 69 62 65 2d 62 75 | 66 66 65 72 2d 63 61 73 |cribe-bu|ffer-cas|
|00000200| 65 2d 74 61 62 6c 65 20 | 23 5b 6e 69 6c 20 22 c0 |e-table |#[nil ".|
|00000210| c1 c2 5c 22 c3 1c 1d 5c | 66 c1 57 83 39 00 0d 5c |..\"...\|f.W.9..\|
|00000220| 66 89 89 97 55 84 1f 00 | c6 c7 5c 66 97 21 50 82 |f...U...|..\f.!P.|
|00000230| 30 00 5c 66 89 96 55 84 | 2f 00 c8 c7 5c 66 96 21 |0.\f..U.|/...\f.!|
|00000240| 50 82 30 00 c9 49 88 5c | 66 54 89 14 82 08 00 8a |P.0..I.\|fT......|
|00000250| ca 90 0e 0b 71 88 cc 0d | 21 91 2b 87 22 20 5b 6d |....q...|!.+." [m|
|00000260| 61 6b 65 2d 76 65 63 74 | 6f 72 20 32 35 36 20 6e |ake-vect|or 256 n|
|00000270| 69 6c 20 30 20 63 68 20 | 76 65 63 74 6f 72 20 22 |il 0 ch |vector "|
|00000280| 75 70 70 65 72 63 61 73 | 65 2c 20 6d 61 74 63 68 |uppercas|e, match|
|00000290| 65 73 20 22 20 63 68 61 | 72 2d 74 6f 2d 73 74 72 |es " cha|r-to-str|
|000002a0| 69 6e 67 20 22 6c 6f 77 | 65 72 63 61 73 65 2c 20 |ing "low|ercase, |
|000002b0| 6d 61 74 63 68 65 73 20 | 22 20 22 63 61 73 65 2d |matches |" "case-|
|000002c0| 69 6e 76 61 72 69 61 6e | 74 22 20 22 2a 48 65 6c |invarian|t" "*Hel|
|000002d0| 70 2a 22 20 73 74 61 6e | 64 61 72 64 2d 6f 75 74 |p*" stan|dard-out|
|000002e0| 70 75 74 20 64 65 73 63 | 72 69 62 65 2d 76 65 63 |put desc|ribe-vec|
|000002f0| 74 6f 72 5d 20 36 20 22 | 5c 0a 44 65 73 63 72 69 |tor] 6 "|\.Descri|
|00000300| 62 65 20 74 68 65 20 63 | 61 73 65 20 74 61 62 6c |be the c|ase tabl|
|00000310| 65 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |e of the| current|
|00000320| 20 62 75 66 66 65 72 2e | 22 20 6e 69 6c 5d 29 0a | buffer.|" nil]).|
|00000330| 28 64 65 66 61 6c 69 61 | 73 20 27 73 65 74 2d 63 |(defalia|s 'set-c|
|00000340| 61 73 65 2d 73 79 6e 74 | 61 78 2d 64 65 6c 69 6d |ase-synt|ax-delim|
|00000350| 73 20 23 5b 28 6c 20 72 | 20 74 61 62 6c 65 29 20 |s #[(l r| table) |
|00000360| 22 08 09 89 49 88 08 5c | 6e 89 49 88 c3 09 c4 c5 |"...I..\|n.I.....|
|00000370| 5c 6e 21 c6 51 c7 20 23 | 88 c3 5c 6e c8 c5 09 21 |\n!.Q. #|..\n...!|
|00000380| c6 51 c7 20 23 87 22 20 | 5b 74 61 62 6c 65 20 6c |.Q. #." |[table l|
|00000390| 20 72 20 6d 6f 64 69 66 | 79 2d 73 79 6e 74 61 78 | r modif|y-syntax|
|000003a0| 2d 65 6e 74 72 79 20 22 | 28 22 20 63 68 61 72 2d |-entry "|(" char-|
|000003b0| 74 6f 2d 73 74 72 69 6e | 67 20 22 20 20 22 20 73 |to-strin|g " " s|
|000003c0| 74 61 6e 64 61 72 64 2d | 73 79 6e 74 61 78 2d 74 |tandard-|syntax-t|
|000003d0| 61 62 6c 65 20 22 29 22 | 5d 20 35 20 22 5c 0a 4d |able ")"|] 5 "\.M|
|000003e0| 61 6b 65 20 63 68 61 72 | 61 63 74 65 72 73 20 4c |ake char|acters L|
|000003f0| 20 61 6e 64 20 52 20 61 | 20 6d 61 74 63 68 69 6e | and R a| matchin|
|00000400| 67 20 70 61 69 72 20 6f | 66 20 6e 6f 6e 2d 63 61 |g pair o|f non-ca|
|00000410| 73 65 2d 63 6f 6e 76 65 | 72 74 69 6e 67 20 64 65 |se-conve|rting de|
|00000420| 6c 69 6d 69 74 65 72 73 | 2e 0a 54 68 69 73 20 73 |limiters|..This s|
|00000430| 65 74 73 20 74 68 65 20 | 65 6e 74 72 69 65 73 20 |ets the |entries |
|00000440| 66 6f 72 20 4c 20 61 6e | 64 20 52 20 69 6e 20 54 |for L an|d R in T|
|00000450| 41 42 4c 45 2c 20 77 68 | 69 63 68 20 69 73 20 61 |ABLE, wh|ich is a|
|00000460| 20 73 74 72 69 6e 67 0a | 74 68 61 74 20 77 69 6c | string.|that wil|
|00000470| 6c 20 62 65 20 75 73 65 | 64 20 61 73 20 74 68 65 |l be use|d as the|
|00000480| 20 64 6f 77 6e 63 61 73 | 65 20 70 61 72 74 20 6f | downcas|e part o|
|00000490| 66 20 61 20 63 61 73 65 | 20 74 61 62 6c 65 2e 0a |f a case| table..|
|000004a0| 49 74 20 61 6c 73 6f 20 | 6d 6f 64 69 66 69 65 73 |It also |modifies|
|000004b0| 20 60 73 74 61 6e 64 61 | 72 64 2d 73 79 6e 74 61 | `standa|rd-synta|
|000004c0| 78 2d 74 61 62 6c 65 27 | 20 74 6f 0a 69 6e 64 69 |x-table'| to.indi|
|000004d0| 63 61 74 65 20 6c 65 66 | 74 20 61 6e 64 20 72 69 |cate lef|t and ri|
|000004e0| 67 68 74 20 64 65 6c 69 | 6d 69 74 65 72 73 2e 22 |ght deli|miters."|
|000004f0| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 65 |]).(defa|lias 'se|
|00000500| 74 2d 63 61 73 65 2d 73 | 79 6e 74 61 78 2d 70 61 |t-case-s|yntax-pa|
|00000510| 69 72 20 23 5b 28 75 63 | 20 6c 63 20 74 61 62 6c |ir #[(uc| lc tabl|
|00000520| 65 29 20 22 08 09 5c 6e | 49 88 08 5c 6e 89 49 88 |e) "..\n|I..\n.I.|
|00000530| c3 5c 6e c4 c5 20 23 88 | c3 09 c4 c5 20 23 87 22 |.\n.. #.|.... #."|
|00000540| 20 5b 74 61 62 6c 65 20 | 75 63 20 6c 63 20 6d 6f | [table |uc lc mo|
|00000550| 64 69 66 79 2d 73 79 6e | 74 61 78 2d 65 6e 74 72 |dify-syn|tax-entr|
|00000560| 79 20 22 77 20 20 20 22 | 20 73 74 61 6e 64 61 72 |y "w "| standar|
|00000570| 64 2d 73 79 6e 74 61 78 | 2d 74 61 62 6c 65 5d 20 |d-syntax|-table] |
|00000580| 34 20 22 5c 0a 4d 61 6b | 65 20 63 68 61 72 61 63 |4 "\.Mak|e charac|
|00000590| 74 65 72 73 20 55 43 20 | 61 6e 64 20 4c 43 20 61 |ters UC |and LC a|
|000005a0| 20 70 61 69 72 20 6f 66 | 20 69 6e 74 65 72 2d 63 | pair of| inter-c|
|000005b0| 61 73 65 2d 63 6f 6e 76 | 65 72 74 69 6e 67 20 6c |ase-conv|erting l|
|000005c0| 65 74 74 65 72 73 2e 0a | 54 68 69 73 20 73 65 74 |etters..|This set|
|000005d0| 73 20 74 68 65 20 65 6e | 74 72 69 65 73 20 66 6f |s the en|tries fo|
|000005e0| 72 20 63 68 61 72 61 63 | 74 65 72 73 20 55 43 20 |r charac|ters UC |
|000005f0| 61 6e 64 20 4c 43 20 69 | 6e 20 54 41 42 4c 45 2c |and LC i|n TABLE,|
|00000600| 20 77 68 69 63 68 20 69 | 73 20 61 20 73 74 72 69 | which i|s a stri|
|00000610| 6e 67 0a 74 68 61 74 20 | 77 69 6c 6c 20 62 65 20 |ng.that |will be |
|00000620| 75 73 65 64 20 61 73 20 | 74 68 65 20 64 6f 77 6e |used as |the down|
|00000630| 63 61 73 65 20 70 61 72 | 74 20 6f 66 20 61 20 63 |case par|t of a c|
|00000640| 61 73 65 20 74 61 62 6c | 65 2e 0a 49 74 20 61 6c |ase tabl|e..It al|
|00000650| 73 6f 20 6d 6f 64 69 66 | 69 65 73 20 60 73 74 61 |so modif|ies `sta|
|00000660| 6e 64 61 72 64 2d 73 79 | 6e 74 61 78 2d 74 61 62 |ndard-sy|ntax-tab|
|00000670| 6c 65 27 20 74 6f 20 67 | 69 76 65 20 74 68 65 6d |le' to g|ive them|
|00000680| 20 74 68 65 20 73 79 6e | 74 61 78 20 6f 66 0a 77 | the syn|tax of.w|
|00000690| 6f 72 64 20 63 6f 6e 73 | 74 69 74 75 65 6e 74 73 |ord cons|tituents|
|000006a0| 2e 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |."]).(de|falias '|
|000006b0| 73 65 74 2d 63 61 73 65 | 2d 73 79 6e 74 61 78 20 |set-case|-syntax |
|000006c0| 23 5b 28 63 20 73 79 6e | 74 61 78 20 74 61 62 6c |#[(c syn|tax tabl|
|000006d0| 65 29 20 22 08 09 89 49 | 88 c2 09 0b c4 20 23 87 |e) "...I|..... #.|
|000006e0| 22 20 5b 74 61 62 6c 65 | 20 63 20 6d 6f 64 69 66 |" [table| c modif|
|000006f0| 79 2d 73 79 6e 74 61 78 | 2d 65 6e 74 72 79 20 73 |y-syntax|-entry s|
|00000700| 79 6e 74 61 78 20 73 74 | 61 6e 64 61 72 64 2d 73 |yntax st|andard-s|
|00000710| 79 6e 74 61 78 2d 74 61 | 62 6c 65 5d 20 34 20 22 |yntax-ta|ble] 4 "|
|00000720| 5c 0a 4d 61 6b 65 20 63 | 68 61 72 61 63 74 65 72 |\.Make c|haracter|
|00000730| 73 20 43 20 63 61 73 65 | 2d 69 6e 76 61 72 69 61 |s C case|-invaria|
|00000740| 6e 74 20 77 69 74 68 20 | 73 79 6e 74 61 78 20 53 |nt with |syntax S|
|00000750| 59 4e 54 41 58 2e 0a 54 | 68 69 73 20 73 65 74 73 |YNTAX..T|his sets|
|00000760| 20 74 68 65 20 65 6e 74 | 72 69 65 73 20 66 6f 72 | the ent|ries for|
|00000770| 20 63 68 61 72 61 63 74 | 65 72 20 43 20 69 6e 20 | charact|er C in |
|00000780| 54 41 42 4c 45 2c 20 77 | 68 69 63 68 20 69 73 20 |TABLE, w|hich is |
|00000790| 61 20 73 74 72 69 6e 67 | 0a 74 68 61 74 20 77 69 |a string|.that wi|
|000007a0| 6c 6c 20 62 65 20 75 73 | 65 64 20 61 73 20 74 68 |ll be us|ed as th|
|000007b0| 65 20 64 6f 77 6e 63 61 | 73 65 20 70 61 72 74 20 |e downca|se part |
|000007c0| 6f 66 20 61 20 63 61 73 | 65 20 74 61 62 6c 65 2e |of a cas|e table.|
|000007d0| 0a 49 74 20 61 6c 73 6f | 20 6d 6f 64 69 66 69 65 |.It also| modifie|
|000007e0| 73 20 60 73 74 61 6e 64 | 61 72 64 2d 73 79 6e 74 |s `stand|ard-synt|
|000007f0| 61 78 2d 74 61 62 6c 65 | 27 2e 0a 53 59 4e 54 41 |ax-table|'..SYNTA|
|00000800| 58 20 73 68 6f 75 6c 64 | 20 62 65 20 5c 22 20 5c |X should| be \" \|
|00000810| 22 2c 20 5c 22 77 5c 22 | 2c 20 5c 22 2e 5c 22 20 |", \"w\"|, \".\" |
|00000820| 6f 72 20 5c 22 5f 5c 22 | 2e 22 5d 29 0a 28 70 72 |or \"_\"|."]).(pr|
|00000830| 6f 76 69 64 65 20 28 71 | 75 6f 74 65 20 63 61 73 |ovide (q|uote cas|
|00000840| 65 2d 74 61 62 6c 65 29 | 29 0a |e-table)|). |
+--------+-------------------------+-------------------------+--------+--------+