Debian Codegraph @

texk/web2c/otps/otp.h

raw
1 /* otp.h: Instructions found in OCP files.
2
3 This file is part of Omega,
4 which is based on the web2c distribution of TeX,
5
6 Copyright (c) 1994--2001 John Plaice and Yannis Haralambous
7 Copyright (c) 2002 Behdad Esfahbod
8 Copyright (c) 2002 Roozbeh Pournader
9
10 Omega is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 Omega is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with Omega; if not, write to the Free Software Foundation, Inc.,
22 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
23
24 */
25
26 enum {
27 OTP_START_TOKENS = 256,
28 OTP_RIGHT_OUTPUT,
29 OTP_RIGHT_NUM,
30 OTP_RIGHT_CHAR,
31 OTP_RIGHT_LCHAR,
32 OTP_RIGHT_SOME,
33
34 OTP_PBACK_OUTPUT,
35 OTP_PBACK_NUM,
36 OTP_PBACK_CHAR,
37 OTP_PBACK_LCHAR,
38 OTP_PBACK_SOME,
39
40 OTP_ADD,
41 OTP_SUB,
42 OTP_MULT,
43 OTP_DIV,
44 OTP_MOD,
45 OTP_LOOKUP,
46 OTP_PUSH_NUM,
47 OTP_PUSH_CHAR,
48 OTP_PUSH_LCHAR,
49
50 OTP_STATE_CHANGE,
51 OTP_STATE_PUSH,
52 OTP_STATE_POP,
53
54 OTP_LEFT_START,
55 OTP_LEFT_RETURN,
56 OTP_LEFT_BACKUP,
57
58 OTP_GOTO,
59 OTP_GOTO_NE,
60 OTP_GOTO_EQ,
61 OTP_GOTO_LT,
62 OTP_GOTO_LE,
63 OTP_GOTO_GT,
64 OTP_GOTO_GE,
65 OTP_GOTO_NO_ADVANCE,
66 OTP_GOTO_BEG,
67 OTP_GOTO_END,
68
69 OTP_STOP,
70 };
71
72 #define OTP_PBACK_OFFSET (OTP_PBACK_OUTPUT - OTP_RIGHT_OUTPUT)
73
74 #define OTP_MAXCODE 0xFFFF
75
76 #define OTP_MAXSTATES 100
77 #define OTP_MAXTABLES 100
78 #define OTP_MAXALIASES 1000