Back to index

tetex-bin  3.0
otp.h
Go to the documentation of this file.
00001 /* otp.h: Instructions found in OCP files.
00002 
00003 This file is part of Omega,
00004 which is based on the web2c distribution of TeX,
00005 
00006 Copyright (c) 1994--2001 John Plaice and Yannis Haralambous
00007 Copyright (c) 2002 Behdad Esfahbod
00008 Copyright (c) 2002 Roozbeh Pournader
00009 
00010 Omega is free software; you can redistribute it and/or modify
00011 it under the terms of the GNU General Public License as published by
00012 the Free Software Foundation; either version 2 of the License, or
00013 (at your option) any later version.
00014 
00015 Omega is distributed in the hope that it will be useful,
00016 but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with Omega; if not, write to the Free Software Foundation, Inc.,
00022 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
00023 
00024 */
00025 
00026 enum {
00027     OTP_START_TOKENS = 256,
00028     OTP_RIGHT_OUTPUT,
00029     OTP_RIGHT_NUM,
00030     OTP_RIGHT_CHAR,
00031     OTP_RIGHT_LCHAR,
00032     OTP_RIGHT_SOME,
00033 
00034     OTP_PBACK_OUTPUT,
00035     OTP_PBACK_NUM,
00036     OTP_PBACK_CHAR,
00037     OTP_PBACK_LCHAR,
00038     OTP_PBACK_SOME,
00039 
00040     OTP_ADD,
00041     OTP_SUB,
00042     OTP_MULT,
00043     OTP_DIV,
00044     OTP_MOD,
00045     OTP_LOOKUP,
00046     OTP_PUSH_NUM,
00047     OTP_PUSH_CHAR,
00048     OTP_PUSH_LCHAR,
00049 
00050     OTP_STATE_CHANGE,
00051     OTP_STATE_PUSH,
00052     OTP_STATE_POP,
00053 
00054     OTP_LEFT_START,
00055     OTP_LEFT_RETURN,
00056     OTP_LEFT_BACKUP,
00057 
00058     OTP_GOTO,
00059     OTP_GOTO_NE,
00060     OTP_GOTO_EQ,
00061     OTP_GOTO_LT,
00062     OTP_GOTO_LE,
00063     OTP_GOTO_GT,
00064     OTP_GOTO_GE,
00065     OTP_GOTO_NO_ADVANCE,
00066     OTP_GOTO_BEG,
00067     OTP_GOTO_END,
00068 
00069     OTP_STOP,
00070 };
00071 
00072 #define OTP_PBACK_OFFSET (OTP_PBACK_OUTPUT - OTP_RIGHT_OUTPUT)
00073