1826
|
1 |
############################################################
|
|
2 |
# conv-tables.inp
|
|
3 |
# Franz Regensburger <regensbu@informatik.tu-muenchen.de>
|
|
4 |
# 4.3.95
|
|
5 |
#
|
|
6 |
# last edited
|
|
7 |
# 11.3.95
|
|
8 |
# 20-Mar-96 by David von Oheimb: SEQ_TABLE extended
|
|
9 |
# 10-May-96 by David von Oheimb: HI_TABLE and SEQ_TABLE rearranged
|
|
10 |
#
|
|
11 |
#
|
|
12 |
############################################################
|
|
13 |
#
|
|
14 |
# This is the configuration file for the converter isa2latex
|
|
15 |
# It is interpreted by the perl script `gen-isa2latex' which
|
|
16 |
# produces rsp. changes the followong files of the converter
|
|
17 |
# sources:
|
|
18 |
#
|
|
19 |
# Makefile, conv-tables.h, conv-defs.h and conv-lex.x
|
|
20 |
#
|
|
21 |
# In the perl script, regular expressions are used to identify
|
|
22 |
# the keywords. In order to be sure that something is treated
|
|
23 |
# as a comment, simply begin the line with a # sign. This is
|
|
24 |
# fool proof.
|
|
25 |
#
|
|
26 |
############################################################
|
|
27 |
|
|
28 |
############################################################
|
|
29 |
# General setup
|
|
30 |
#
|
|
31 |
### Absolut path to the sources of the converter,
|
|
32 |
# Must be readable for user.
|
|
33 |
#
|
|
34 |
# Must be delimited by "
|
|
35 |
#
|
|
36 |
|
|
37 |
CONV_SOURCE_DIR "/usr/proj/isabelle/8bit/c-sources/isa2latex"
|
|
38 |
|
|
39 |
# End of general setup
|
|
40 |
############################################################
|
|
41 |
|
|
42 |
############################################################
|
|
43 |
# Setup for translationTableLow in file conv-tables.h
|
|
44 |
#
|
|
45 |
|
|
46 |
### Start index START_LOW_TABLE of translationTableLow
|
|
47 |
# The index END_LOW_TABLE is computed from the length
|
|
48 |
# of the translation table LOW_TABLE below.
|
|
49 |
#
|
|
50 |
# constraints: 32 <= START_LOW_TABLE <= 127
|
|
51 |
# START_LOW_TABLE + length(LOW_TABLE) - 1 <= 127
|
|
52 |
#
|
|
53 |
# Must be delimited by "
|
|
54 |
#
|
|
55 |
|
|
56 |
START_LOW_TABLE "32"
|
|
57 |
|
|
58 |
### The translation table LOW_TABLE
|
|
59 |
#
|
|
60 |
# Keyword for the begin of the table is BEGIN_LOW_TABLE
|
|
61 |
# Keyword for the end of the table is END_LOW_TABLE
|
|
62 |
#
|
|
63 |
# Lines beginning with # are ignored as everywhere in this file.
|
|
64 |
# Lines obeying the syntax given below are treated as table entries.
|
|
65 |
# All other lines are ignored, too. This is for comments.
|
|
66 |
#
|
|
67 |
# Syntax of a table entry:
|
|
68 |
#
|
|
69 |
# > "LaTeX replacement" anything
|
|
70 |
#
|
|
71 |
# The double quotes enclose the LaTeX replacement in pure
|
|
72 |
# LaTeX syntax.
|
|
73 |
# Every \ in the string except when used for hex-notation \x?? is
|
|
74 |
# automatically duplicated by the script! The strings are used in
|
|
75 |
# printf output statements in the C code.
|
|
76 |
#
|
|
77 |
# Attention: you have to use hex-notation \x22 to produce a " inside
|
|
78 |
# the double quoted strings. An explicit " will terminate the string.
|
|
79 |
#
|
|
80 |
# The following `anything' is ignored by the perl script.
|
|
81 |
# This is for comments.
|
|
82 |
#
|
|
83 |
# The ordering of entries in the table LOW_TABLE is relevant!
|
|
84 |
# Empty table is not allowed.
|
|
85 |
#
|
|
86 |
#
|
|
87 |
|
|
88 |
BEGIN_LOW_TABLE
|
|
89 |
> "\ " Blank
|
|
90 |
> "!"
|
|
91 |
#
|
|
92 |
# if you don't like double quotes to be removed insert the following
|
|
93 |
#> "\\x22{}" double quotes are not removed
|
|
94 |
> "\x22{}" double quotes are not removed
|
|
95 |
#
|
|
96 |
> "\#"
|
|
97 |
> "\$"
|
|
98 |
> "\%"
|
|
99 |
> "\mbox{$\&$}"
|
|
100 |
> "'"
|
|
101 |
> "("
|
|
102 |
> ")"
|
|
103 |
> "\mbox{$*$}"
|
|
104 |
> "\mbox{$+$}"
|
|
105 |
> ","
|
|
106 |
> "\mbox{$-$}"
|
|
107 |
> "."
|
|
108 |
> "/"
|
|
109 |
> "0"
|
|
110 |
> "1"
|
|
111 |
> "2"
|
|
112 |
> "3"
|
|
113 |
> "4"
|
|
114 |
> "5"
|
|
115 |
> "6"
|
|
116 |
> "7"
|
|
117 |
> "8"
|
|
118 |
> "9"
|
|
119 |
> ":"
|
|
120 |
> ";"
|
|
121 |
> "\mbox{$<$}"
|
|
122 |
> "\mbox{$=$}"
|
|
123 |
> "\mbox{$>$}"
|
|
124 |
> "?"
|
|
125 |
> "@"
|
|
126 |
> "A"
|
|
127 |
> "B"
|
|
128 |
> "C"
|
|
129 |
> "D"
|
|
130 |
> "E"
|
|
131 |
> "F"
|
|
132 |
> "G"
|
|
133 |
> "H"
|
|
134 |
> "I"
|
|
135 |
> "J"
|
|
136 |
> "K"
|
|
137 |
> "L"
|
|
138 |
> "M"
|
|
139 |
> "N"
|
|
140 |
> "O"
|
|
141 |
> "P"
|
|
142 |
> "Q"
|
|
143 |
> "R"
|
|
144 |
> "S"
|
|
145 |
> "T"
|
|
146 |
> "U"
|
|
147 |
> "V"
|
|
148 |
> "W"
|
|
149 |
> "X"
|
|
150 |
> "Y"
|
|
151 |
> "Z"
|
|
152 |
> "\mbox{$[$}"
|
|
153 |
> "\mbox{$\backslash$}" Backslash
|
|
154 |
> "\mbox{$]$}"
|
|
155 |
> "\^{}"
|
|
156 |
> "\_"
|
|
157 |
> "`"
|
|
158 |
> "a"
|
|
159 |
> "b"
|
|
160 |
> "c"
|
|
161 |
> "d"
|
|
162 |
> "e"
|
|
163 |
> "f"
|
|
164 |
> "g"
|
|
165 |
> "h"
|
|
166 |
> "i"
|
|
167 |
> "j"
|
|
168 |
> "k"
|
|
169 |
> "l"
|
|
170 |
> "m"
|
|
171 |
> "n"
|
|
172 |
> "o"
|
|
173 |
> "p"
|
|
174 |
> "q"
|
|
175 |
> "r"
|
|
176 |
> "s"
|
|
177 |
> "t"
|
|
178 |
> "u"
|
|
179 |
> "v"
|
|
180 |
> "w"
|
|
181 |
> "x"
|
|
182 |
> "y"
|
|
183 |
> "z"
|
|
184 |
> "\{"
|
|
185 |
> "\mbox{$|$}"
|
|
186 |
> "\}"
|
|
187 |
> "\~{}" negation
|
|
188 |
END_LOW_TABLE
|
|
189 |
|
|
190 |
############################################################
|
|
191 |
# Setup for translationTableHi in file conv-tables.h
|
|
192 |
#
|
|
193 |
|
|
194 |
### Start index START_HI_TABLE of translationTableHi
|
|
195 |
# The index END_HI_TABLE is computed from the length
|
|
196 |
# of the translation table HI_TABLE below.
|
|
197 |
#
|
|
198 |
# constraints: 128 <= START_HI_TABLE <= 255
|
|
199 |
# START_HI_TABLE + length(HI_TABLE) - 1 <= 255
|
|
200 |
#
|
|
201 |
#
|
|
202 |
# Must be delimited by "
|
|
203 |
#
|
|
204 |
|
|
205 |
START_HI_TABLE "161"
|
|
206 |
|
|
207 |
### The translation table HI_TABLE
|
|
208 |
#
|
|
209 |
# Keyword for the begin of the table is BEGIN_HI_TABLE
|
|
210 |
# Keyword for the end of the table is END_HI_TABLE
|
|
211 |
#
|
|
212 |
# Lines beginning with # are ignored as everywhere in this file.
|
|
213 |
# Lines obeying the syntax given below are treated as table entries.
|
|
214 |
# All other lines are ignored, too. This is for comments.
|
|
215 |
#
|
|
216 |
# Syntax of a table entry:
|
|
217 |
#
|
|
218 |
# > "lex expression ascii" "ascii replacement" "LaTeX replacement" anything
|
|
219 |
#
|
|
220 |
# The double quotes enclose the lex expression, the ascii replacement, and the
|
|
221 |
# LaTeX replacement in pure lex rsp. pure ascii rsp. LaTeX syntax.
|
|
222 |
#
|
|
223 |
# The string for the lex expression is literally passed to lex. Backslashes
|
|
224 |
# are not duplicated!
|
|
225 |
# Every \ in the replacements except when used for hex-notation \x?? is
|
|
226 |
# automatically duplicated by the script! The strings are used in
|
|
227 |
# printf output statements in the C code.
|
|
228 |
#
|
|
229 |
# Attention: you have to use hex-notation \x22 to produce a " inside
|
|
230 |
# the double quoted strings. An explicit " will terminate the string.
|
|
231 |
#
|
|
232 |
# The following `anything' is ignored by the perl script.
|
|
233 |
# This is for comments.
|
|
234 |
#
|
|
235 |
# The ordering of entries in the table HI_TABLE is relevant!
|
|
236 |
# Empty table is not allowed.
|
|
237 |
#
|
|
238 |
#
|
|
239 |
|
|
240 |
BEGIN_HI_TABLE
|
|
241 |
|
|
242 |
# big greek letters
|
|
243 |
> "\\Gamma\ " "\Gamma" "\mbox{$\Gamma$}"
|
|
244 |
> "\\Delta\ " "\Delta" "\mbox{$\Delta$}"
|
|
245 |
> "\\Theta\ " "\Theta" "\mbox{$\Theta$}"
|
|
246 |
> "LAM\ " "LAM" "\mbox{$\Lambda$}"
|
|
247 |
> "\\Pi\ " "\Pi" "\mbox{$\Pi$}"
|
|
248 |
> "\\Sigma\ " "\Sigma" "\mbox{$\Sigma$}"
|
|
249 |
> "\\Phi\ " "\Phi" "\mbox{$\Phi$}"
|
|
250 |
> "\\Psi\ " "\Psi" "\mbox{$\Psi$}"
|
|
251 |
> "\\Omega\ " "\Omega" "\mbox{$\Omega$}"
|
|
252 |
|
|
253 |
# small greek letters, HOL, HOLCF
|
|
254 |
> "'a" "'a" "\mbox{$\alpha$}"
|
|
255 |
> "'b" "'b" "\mbox{$\beta$}"
|
|
256 |
> "'c" "'c" "\mbox{$\gamma$}"
|
|
257 |
> "\\delta\ " "\delta" "\mbox{$\delta$}"
|
|
258 |
> "\\varepsilon\ " "\varepsilon" "\mbox{$\varepsilon$}"
|
|
259 |
> "\\zeta\ " "\zeta" "\mbox{$\zeta$}"
|
|
260 |
> "\\eta\ " "\eta" "\mbox{$\eta$}"
|
|
261 |
> "\\vartheta\ " "\vartheta" "\mbox{$\vartheta$}"
|
|
262 |
> "\\kappa\ " "\kappa" "\mbox{$\kappa$}"
|
|
263 |
> "%\ " "%" "\mbox{$\lambda$}"
|
|
264 |
> "\\mu\ " "\mu" "\mbox{$\mu$}"
|
|
265 |
> "\\nu\ " "\nu" "\mbox{$\nu$}"
|
|
266 |
> "\\xi\ " "\xi" "\mbox{$\xi$}"
|
|
267 |
> "\\pi\ " "\pi" "\mbox{$\pi$}"
|
|
268 |
> "'r" "'r" "\mbox{$\rho$}"
|
|
269 |
> "'s" "'s" "\mbox{$\sigma$}"
|
|
270 |
> "'t" "'t" "\mbox{$\tau$}"
|
|
271 |
> "\\varphi\ " "\varphi" "\mbox{$\varphi$}"
|
|
272 |
> "\\chi\ " "\chi" "\mbox{$\chi$}"
|
|
273 |
> "\\psi\ " "\psi" "\mbox{$\psi$}"
|
|
274 |
> "\\omega\ " "\omega" "\mbox{$\omega$}"
|
|
275 |
|
|
276 |
# logical symbols, HOL
|
|
277 |
> "~\ " "~" "\mbox{$\neg$}"
|
|
278 |
> "&\ " "&" "\mbox{$\wedge$}"
|
|
279 |
> "\|\ " "|" "\mbox{$\vee$}"
|
|
280 |
> "!\ " "!" "\mbox{$\forall$}"
|
|
281 |
> "\?\ " "?" "\mbox{$\exists$}"
|
|
282 |
> "!!" "!!" "\mbox{$\bigwedge$}"
|
|
283 |
|
|
284 |
# parenthesis. Pure, HOLCF
|
|
285 |
> "\\lceil\ " "\lceil" "\mbox{$\lceil$}"
|
|
286 |
> "\\rceil\ " "\rceil" "\mbox{$\rceil$}"
|
|
287 |
> "\\lfloor\ " "\lfloor" "\mbox{$\lfloor$}"
|
|
288 |
> "\\rfloor\ " "\rfloor" "\mbox{$\rfloor$}"
|
|
289 |
> "\(\|" "(|" "\mbox{$(\!|$}" #\llparenthesis
|
|
290 |
> "\|\)" "|)" "\mbox{$|\!)$}" #\rrparenthesis
|
|
291 |
> "\[\|" "[|" "\mbox{$[\![$}" #\llbracket
|
|
292 |
> "\|\]" "|]" "\mbox{$]\!]$}" #\rrbracket
|
|
293 |
|
|
294 |
# set theory, HOL
|
|
295 |
> "{}" "\emptyset" "\mbox{$\emptyset$}"
|
|
296 |
> "\ :\ " ":" "\mbox{$\in$}"
|
|
297 |
> "\subseteq\ " "\subseteq" "\mbox{$\subseteq$}"
|
|
298 |
> "\ Int\ " "Int" "\mbox{$\cap$}"
|
|
299 |
> "\ Un\ " "Un" "\mbox{$\cup$}"
|
|
300 |
> "Inter\ " "Inter" "\mbox{$\bigcap$}"
|
|
301 |
> "Union\ " "Union" "\mbox{$\bigcup$}"
|
|
302 |
|
|
303 |
# domain theory, HOLCF
|
|
304 |
> "\sqcap\ " "\sqcap" "\mbox{$\sqcap$}"
|
|
305 |
> "\sqcup\ " "\sqcup" "\mbox{$\sqcup$}"
|
|
306 |
> "glb\ " "glb" "\mbox{$\overline{|\,\,|}$}" #\bigsqcap
|
|
307 |
> "lub\ " "lub" "\mbox{$\bigsqcup$}"
|
|
308 |
> "UU" "UU" "\mbox{$\perp$}"
|
|
309 |
|
|
310 |
# relational symbols, Pure, HOLCF
|
|
311 |
> "===" "===" "\mbox{$\doteq$}"
|
|
312 |
> "==" "==" "\mbox{$\equiv$}"
|
|
313 |
> "~=" "~=" "\mbox{$\not=$}"
|
|
314 |
> "\\sqsubset\ " "\sqsubset" "\mbox{$\sqsubset$}"
|
|
315 |
> "<<" "<<" "\mbox{$\sqsubseteq$}"
|
|
316 |
> "\\prec\ " "\prec" "\mbox{$\prec$}"
|
|
317 |
> "\\preceq\ " "\preceq" "\mbox{$\preceq$}"
|
|
318 |
> "\\succ\ " "\succ" "\mbox{$\succ$}"
|
|
319 |
> "\\succeq\ " "\succeq" "\mbox{$\succeq$}"
|
|
320 |
> "\\sim\ " "\sim" "\mbox{$\sim$}"
|
|
321 |
> "\\simeq\ " "\simeq" "\mbox{$\simeq$}"
|
|
322 |
> "\\le\ " "\le" "\mbox{$\le$}"
|
|
323 |
> "\\ge\ " "\ge" "\mbox{$\ge$}"
|
|
324 |
|
|
325 |
# arrows, Pure, HOL
|
|
326 |
> "<-" "<-" "\mbox{$\leftarrow$}"
|
|
327 |
> "-@@@@@" "-" "\mbox{$-$}"
|
|
328 |
> "->" "->" "\mbox{$\rightarrow$}"
|
|
329 |
> "\\Leftarrow\ " "<=" "\mbox{$\Leftarrow$}"
|
|
330 |
> "=@@@@@" "=" "\mbox{$=$}"
|
|
331 |
> "=>" "=>" "\mbox{$\Rightarrow$}"
|
|
332 |
> "->>" "->>" "\mbox{$\twoheadrightarrow$}"
|
|
333 |
> "\\mapsto\ " "\mapsto" "\mbox{$\mapsto$}"
|
|
334 |
> "\\leadsto\ " "\leadsto" "\mbox{$\leadsto$}"
|
|
335 |
> "\\uparrow\ " "\uparrow" "\mbox{$\uparrow$}"
|
|
336 |
> "\\downarrow\ " "\downarrow" "\mbox{$\downarrow$}"
|
|
337 |
> "~:" "~:" "\mbox{$\notin$}"
|
|
338 |
|
|
339 |
# arithmetic, HOLCF
|
|
340 |
> "\\times\ " "*" "\mbox{$\times$}"
|
|
341 |
> "\\oplus\ " "++" "\mbox{$\oplus$}" #\varoplus
|
|
342 |
> "\\ominus\ " "\ominus" "\mbox{$\ominus$}" " #\varominus
|
|
343 |
> "\\otimes\ " "**" "\mbox{$\otimes$}" " #\varotimes
|
|
344 |
> "\\oslash\ " "\oslash" "\mbox{$\oslash$}" #\varoslash
|
|
345 |
> "\\natural\ " "\natural" "\mbox{$\natural$}"
|
|
346 |
> "\\infty\ " "\infty" "\mbox{$\infty$}"
|
|
347 |
|
|
348 |
# misc
|
|
349 |
> "\\Box\ " "\Box" "\mbox{$\Box$}"
|
|
350 |
> "\\Diamond\ " "\Diamond" "\mbox{$\Diamond$}"
|
|
351 |
> "\\circ\ " "\circ" "\mbox{$\circ$}"
|
|
352 |
> "\\bullet\ " "\bullet" "\mbox{$\bullet$}"
|
|
353 |
> "\|\|" "||" "\mbox{$\parallel$}"
|
|
354 |
> "\\tick\ " "\tick" "\mbox{$\surd$}"
|
|
355 |
> "\\filter\ " "\filter" "\mbox{\copyright}"
|
|
356 |
END_HI_TABLE
|
|
357 |
|
|
358 |
############################################################
|
|
359 |
# Setup for translationTableSeq in file conv-tables.h
|
|
360 |
# and lexer source conv-lex.x
|
|
361 |
#
|
|
362 |
# Keyword for the being of the table is BEGIN_SEQ_TABLE
|
|
363 |
# Keyword for the end of the table is END_SEQ_TABLE
|
|
364 |
#
|
|
365 |
# Lines beginning with # are ignored as everywhere in this file.
|
|
366 |
# Lines obeying the syntax given below are treated as table entries.
|
|
367 |
# All other lines are ignored, too. This is for comments.
|
|
368 |
#
|
|
369 |
# Syntax of a table entry:
|
|
370 |
#
|
|
371 |
# > "lex expr 8bit" "lex expr ascii" "ascii replace" "LaTeX replace" anything
|
|
372 |
#
|
|
373 |
# The double quotes enclose the lex expressions, the ascii replacement, and
|
|
374 |
# the LaTeX replacement in pure lex rsp. pure ascii rsp. LaTeX syntax.
|
|
375 |
#
|
|
376 |
# The strings for the lex expressions are literally passed to lex. Backslashes
|
|
377 |
# are not duplicated!
|
|
378 |
# Every \ in the replacements except when used for hex-notation \x?? is
|
|
379 |
# automatically duplicated by the script! The strings are used in
|
|
380 |
# printf output statements in the C code.
|
|
381 |
#
|
|
382 |
# Attention: you have to use hex-notation \x22 to produce a " inside
|
|
383 |
# the double quoted strings. An explicit " will terminate the string.
|
|
384 |
#
|
|
385 |
# The following `anything' is ignored by the perl script.
|
|
386 |
# This is for comments.
|
|
387 |
#
|
|
388 |
# The ordering of entries in table SEQ_TABLE is irrelevant!
|
|
389 |
# Empty table is allowed.
|
|
390 |
#
|
|
391 |
|
|
392 |
BEGIN_SEQ_TABLE
|
|
393 |
|
|
394 |
# Pure
|
|
395 |
> "êë" "==>" "==>" "\mbox{$\Longrightarrow$}"
|
|
396 |
|
|
397 |
# HOL
|
|
398 |
> "çè" "-->" "-->" "\mbox{$\longrightarrow$}"
|
|
399 |
> "Ã!" "\?!" "?!" "\mbox{$\exists$}!"
|
|
400 |
> "ALL@@@@@" "ALL\ " "ALL" "\mbox{$\forall$}"
|
|
401 |
> "EX@@@@@" "EX\ " "EX" "\mbox{$\exists$}"
|
|
402 |
|
|
403 |
#HOLCF
|
|
404 |
> "<\|@@@@@" "<\|" "<|" "\mbox{$<\!\mid$}"
|
|
405 |
> "<<\|@@@@@" "<<\|" "<<|" "\mbox{$\ll\!\mid$}"
|
|
406 |
|
|
407 |
# misc ?
|
|
408 |
> "éê" "<==" "<==" "\mbox{$\Longleftarrow$}"
|
|
409 |
> "éë" "<=>" "<=>" "\mbox{$\Leftrightarrow$}"
|
|
410 |
> "æç" "<--" "<--" "\mbox{$\longleftarrow$}"
|
|
411 |
> "æè" "<->" "<->" "\mbox{$\leftrightarrow$}"
|
|
412 |
END_SEQ_TABLE
|