annotate lisp/mule/auto-autoloads.el @ 464:5aa1854ad537 r21-2-47

Import from CVS: tag r21-2-47
author cvs
date Mon, 13 Aug 2007 11:45:51 +0200
parents 3d3049ae1304
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
1 ;;; DO NOT MODIFY THIS FILE
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
2 (if (featurep 'mule-autoloads) (error "Already loaded"))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
3
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
4 ;;;### (autoloads (ccl-execute-with-args check-ccl-program define-ccl-program declare-ccl-program ccl-dump ccl-compile) "mule-ccl" "mule/mule-ccl.el")
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
6 (autoload 'ccl-compile "mule-ccl" "\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
7 Return a compiled code of CCL-PROGRAM as a vector of integer." nil nil)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
8
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
9 (autoload 'ccl-dump "mule-ccl" "\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
10 Disassemble compiled CCL-CODE." nil nil)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
11
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
12 (autoload 'declare-ccl-program "mule-ccl" "\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
13 Declare NAME as a name of CCL program.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
14
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
15 This macro exists for backward compatibility. In the old version of
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
16 Emacs, to compile a CCL program which calls another CCL program not
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
17 yet defined, it must be declared as a CCL program in advance. But,
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
18 now CCL program names are resolved not at compile time but before
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
19 execution.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
20
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
21 Optional arg VECTOR is a compiled CCL code of the CCL program." nil 'macro)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
22
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
23 (autoload 'define-ccl-program "mule-ccl" "\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
24 Set NAME the compiled code of CCL-PROGRAM.
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
25
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
26 CCL-PROGRAM has this form:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
27 (BUFFER_MAGNIFICATION
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
28 CCL_MAIN_CODE
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
29 [ CCL_EOF_CODE ])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
30
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
31 BUFFER_MAGNIFICATION is an integer value specifying the approximate
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
32 output buffer magnification size compared with the bytes of input data
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
33 text. If the value is zero, the CCL program can't execute `read' and
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
34 `write' commands.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
35
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
36 CCL_MAIN_CODE and CCL_EOF_CODE are CCL program codes. CCL_MAIN_CODE
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
37 executed at first. If there's no more input data when `read' command
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
38 is executed in CCL_MAIN_CODE, CCL_EOF_CODE is executed. If
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
39 CCL_MAIN_CODE is terminated, CCL_EOF_CODE is not executed.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
40
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
41 Here's the syntax of CCL program code in BNF notation. The lines
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
42 starting by two semicolons (and optional leading spaces) describe the
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
43 semantics.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
44
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
45 CCL_MAIN_CODE := CCL_BLOCK
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
46
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
47 CCL_EOF_CODE := CCL_BLOCK
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
48
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
49 CCL_BLOCK := STATEMENT | (STATEMENT [STATEMENT ...])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
50
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
51 STATEMENT :=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
52 SET | IF | BRANCH | LOOP | REPEAT | BREAK | READ | WRITE | CALL
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
53 | TRANSLATE | END
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
54
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
55 SET := (REG = EXPRESSION)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
56 | (REG ASSIGNMENT_OPERATOR EXPRESSION)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
57 ;; The following form is the same as (r0 = integer).
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
58 | integer
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
59
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
60 EXPRESSION := ARG | (EXPRESSION OPERATOR ARG)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
61
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
62 ;; Evaluate EXPRESSION. If the result is nonzeor, execute
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
63 ;; CCL_BLOCK_0. Otherwise, execute CCL_BLOCK_1.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
64 IF := (if EXPRESSION CCL_BLOCK_0 CCL_BLOCK_1)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
65
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
66 ;; Evaluate EXPRESSION. Provided that the result is N, execute
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
67 ;; CCL_BLOCK_N.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
68 BRANCH := (branch EXPRESSION CCL_BLOCK_0 [CCL_BLOCK_1 ...])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
69
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
70 ;; Execute STATEMENTs until (break) or (end) is executed.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
71 LOOP := (loop STATEMENT [STATEMENT ...])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
72
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
73 ;; Terminate the most inner loop.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
74 BREAK := (break)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
75
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
76 REPEAT :=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
77 ;; Jump to the head of the most inner loop.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
78 (repeat)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
79 ;; Same as: ((write [REG | integer | string])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
80 ;; (repeat))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
81 | (write-repeat [REG | integer | string])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
82 ;; Same as: ((write REG [ARRAY])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
83 ;; (read REG)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
84 ;; (repeat))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
85 | (write-read-repeat REG [ARRAY])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
86 ;; Same as: ((write integer)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
87 ;; (read REG)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
88 ;; (repeat))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
89 | (write-read-repeat REG integer)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
90
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
91 READ := ;; Set REG_0 to a byte read from the input text, set REG_1
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
92 ;; to the next byte read, and so on.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
93 (read REG_0 [REG_1 ...])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
94 ;; Same as: ((read REG)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
95 ;; (if (REG OPERATOR ARG) CCL_BLOCK_0 CCL_BLOCK_1))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
96 | (read-if (REG OPERATOR ARG) CCL_BLOCK_0 CCL_BLOCK_1)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
97 ;; Same as: ((read REG)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
98 ;; (branch REG CCL_BLOCK_0 [CCL_BLOCK_1 ...]))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
99 | (read-branch REG CCL_BLOCK_0 [CCL_BLOCK_1 ...])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
100 ;; Read a character from the input text while parsing
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
101 ;; multibyte representation, set REG_0 to the charset ID of
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
102 ;; the character, set REG_1 to the code point of the
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
103 ;; character. If the dimension of charset is two, set REG_1
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
104 ;; to ((CODE0 << 8) | CODE1), where CODE0 is the first code
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
105 ;; point and CODE1 is the second code point.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
106 | (read-multibyte-character REG_0 REG_1)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
107
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
108 WRITE :=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
109 ;; Write REG_0, REG_1, ... to the output buffer. If REG_N is
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
110 ;; a multibyte character, write the corresponding multibyte
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
111 ;; representation.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
112 (write REG_0 [REG_1 ...])
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
113 ;; Same as: ((r7 = EXPRESSION)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
114 ;; (write r7))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
115 | (write EXPRESSION)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
116 ;; Write the value of `integer' to the output buffer. If it
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
117 ;; is a multibyte character, write the corresponding multibyte
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
118 ;; representation.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
119 | (write integer)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
120 ;; Write the byte sequence of `string' as is to the output
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
121 ;; buffer. It is encoded by binary coding system, thus,
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
122 ;; by this operation, you cannot write multibyte string
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
123 ;; as it is.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
124 | (write string)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
125 ;; Same as: (write string)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
126 | string
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
127 ;; Provided that the value of REG is N, write Nth element of
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
128 ;; ARRAY to the output buffer. If it is a multibyte
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
129 ;; character, write the corresponding multibyte
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
130 ;; representation.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
131 | (write REG ARRAY)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
132 ;; Write a multibyte representation of a character whose
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
133 ;; charset ID is REG_0 and code point is REG_1. If the
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
134 ;; dimension of the charset is two, REG_1 should be ((CODE0 <<
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
135 ;; 8) | CODE1), where CODE0 is the first code point and CODE1
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
136 ;; is the second code point of the character.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
137 | (write-multibyte-character REG_0 REG_1)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
138
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
139 ;; Call CCL program whose name is ccl-program-name.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
140 CALL := (call ccl-program-name)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
141
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
142 ;; Terminate the CCL program.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
143 END := (end)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
144
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
145 ;; CCL registers that can contain any integer value. As r7 is also
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
146 ;; used by CCL interpreter, its value is changed unexpectedly.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
147 REG := r0 | r1 | r2 | r3 | r4 | r5 | r6 | r7
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
148
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
149 ARG := REG | integer
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
150
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
151 OPERATOR :=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
152 ;; Normal arithmethic operators (same meaning as C code).
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
153 + | - | * | / | %
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
154
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
155 ;; Bitwize operators (same meaning as C code)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
156 | & | `|' | ^
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
157
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
158 ;; Shifting operators (same meaning as C code)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
159 | << | >>
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
160
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
161 ;; (REG = ARG_0 <8 ARG_1) means:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
162 ;; (REG = ((ARG_0 << 8) | ARG_1))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
163 | <8
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
164
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
165 ;; (REG = ARG_0 >8 ARG_1) means:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
166 ;; ((REG = (ARG_0 >> 8))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
167 ;; (r7 = (ARG_0 & 255)))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
168 | >8
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
169
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
170 ;; (REG = ARG_0 // ARG_1) means:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
171 ;; ((REG = (ARG_0 / ARG_1))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
172 ;; (r7 = (ARG_0 % ARG_1)))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
173 | //
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
174
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
175 ;; Normal comparing operators (same meaning as C code)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
176 | < | > | == | <= | >= | !=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
177
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
178 ;; If ARG_0 and ARG_1 are higher and lower byte of Shift-JIS
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
179 ;; code, and CHAR is the corresponding JISX0208 character,
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
180 ;; (REG = ARG_0 de-sjis ARG_1) means:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
181 ;; ((REG = CODE0)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
182 ;; (r7 = CODE1))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
183 ;; where CODE0 is the first code point of CHAR, CODE1 is the
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
184 ;; second code point of CHAR.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
185 | de-sjis
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
186
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
187 ;; If ARG_0 and ARG_1 are the first and second code point of
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
188 ;; JISX0208 character CHAR, and SJIS is the correponding
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
189 ;; Shift-JIS code,
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
190 ;; (REG = ARG_0 en-sjis ARG_1) means:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
191 ;; ((REG = HIGH)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
192 ;; (r7 = LOW))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
193 ;; where HIGH is the higher byte of SJIS, LOW is the lower
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
194 ;; byte of SJIS.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
195 | en-sjis
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
196
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
197 ASSIGNMENT_OPERATOR :=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
198 ;; Same meaning as C code
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
199 += | -= | *= | /= | %= | &= | `|=' | ^= | <<= | >>=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
200
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
201 ;; (REG <8= ARG) is the same as:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
202 ;; ((REG <<= 8)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
203 ;; (REG |= ARG))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
204 | <8=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
205
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
206 ;; (REG >8= ARG) is the same as:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
207 ;; ((r7 = (REG & 255))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
208 ;; (REG >>= 8))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
209
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
210 ;; (REG //= ARG) is the same as:
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
211 ;; ((r7 = (REG % ARG))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
212 ;; (REG /= ARG))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
213 | //=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
214
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
215 ARRAY := `[' integer ... `]'
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
216
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
217
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
218 TRANSLATE :=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
219 (translate-character REG(table) REG(charset) REG(codepoint))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
220 | (translate-character SYMBOL REG(charset) REG(codepoint))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
221 MAP :=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
222 (iterate-multiple-map REG REG MAP-IDs)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
223 | (map-multiple REG REG (MAP-SET))
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
224 | (map-single REG REG MAP-ID)
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
225 MAP-IDs := MAP-ID ...
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
226 MAP-SET := MAP-IDs | (MAP-IDs) MAP-SET
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
227 MAP-ID := integer
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
228 " nil 'macro)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
229
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
230 (autoload 'check-ccl-program "mule-ccl" "\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
231 Check validity of CCL-PROGRAM.
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
232 If CCL-PROGRAM is a symbol denoting a CCL program, return
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
233 CCL-PROGRAM, else return nil.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
234 If CCL-PROGRAM is a vector and optional arg NAME (symbol) is supplied,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
235 register CCL-PROGRAM by name NAME, and return NAME." nil 'macro)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
236
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
237 (autoload 'ccl-execute-with-args "mule-ccl" "\
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
238 Execute CCL-PROGRAM with registers initialized by the remaining args.
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
239 The return value is a vector of resulting CCL registers.
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
240
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 404
diff changeset
241 See the documentation of `define-ccl-program' for the detail of CCL program." nil nil)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
242
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
243 ;;;***
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
244
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
245 (provide 'mule-autoloads)