diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-02-23 02:50:37 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-02-23 02:50:37 +0000 |
commit | 5cd6f50be0533a56aa7eccf59d527bc4c2df4e76 (patch) | |
tree | f4bfe72299af47dc86a0daa1b48991c0e8ed12d1 /Build/source/texk/detex/detex-src | |
parent | 6c388e4c213b1f5581bfc0f1812c145be473dba1 (diff) |
texk/detex: New convention
git-svn-id: svn://tug.org/texlive/trunk@39830 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/detex/detex-src')
-rw-r--r-- | Build/source/texk/detex/detex-src/COPYRIGHT | 35 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/Makefile | 139 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/README | 195 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/detex.c | 4234 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/detex.h | 84 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/detex.l | 915 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/detex.man | 126 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/lexout.c | 6234 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/os2/README | 7 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/os2/detex-32.def | 3 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/os2/detex.def | 2 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/os2/makefile.os2 | 96 | ||||
-rw-r--r-- | Build/source/texk/detex/detex-src/states.sed | 57 |
13 files changed, 12127 insertions, 0 deletions
diff --git a/Build/source/texk/detex/detex-src/COPYRIGHT b/Build/source/texk/detex/detex-src/COPYRIGHT new file mode 100644 index 00000000000..33c5e6c5399 --- /dev/null +++ b/Build/source/texk/detex/detex-src/COPYRIGHT @@ -0,0 +1,35 @@ + +Copyright (c) 1986-2007 Purdue University +All rights reserved. + +Developed by: Daniel Trinkle + Department of Computer Science, Purdue University + http://www.cs.purdue.edu/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal with the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +o Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimers. + +o Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + +o Neither the names of Daniel Trinkle, Purdue University, nor the + names of its contributors may be used to endorse or promote products + derived from this Software without specific prior written + permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. diff --git a/Build/source/texk/detex/detex-src/Makefile b/Build/source/texk/detex/detex-src/Makefile new file mode 100644 index 00000000000..e6a75b763a7 --- /dev/null +++ b/Build/source/texk/detex/detex-src/Makefile @@ -0,0 +1,139 @@ +# Copyright (c) 1986-2007 Purdue University +# All rights reserved. +# +# Developed by: Daniel Trinkle +# Department of Computer Science, Purdue University +# http://www.cs.purdue.edu/ +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal with the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# o Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimers. +# +# o Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimers in the +# documentation and/or other materials provided with the distribution. +# +# o Neither the names of Daniel Trinkle, Purdue University, nor the +# names of its contributors may be used to endorse or promote products +# derived from this Software without specific prior written +# permission. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR +# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. +# +# +# Makefile for detex and delatex +# +# Detex is a program to remove TeX and LaTeX constructs from text source. + +# Installation directory +# +DESTDIR = /usr/local/bin + +# Specify you favorite compiler +# +#CC = gcc + +# Compile time flags, just uncomment the necessary lines +# Some say GNU make does not correctly handle += -- you may have to use := +# +DEFS = +# +# Add -traditional for GNU cc on ISC 386/ix system and possibly others +# (reported by pinard@iro.umontreal.ca) +# +#DEFS += ${DEFS} -traditional +# +# Add -DHAVE_STRING_H for the SysV string manipulation routines +# +#DEFS += ${DEFS} -DHAVE_STRING_H +# +# Add -DMAXPATHLEN=<length> if it is not defined in /usr/include/sys/param.h +# +#DEFS += ${DEFS} -DMAXPATHLEN=1024 +# +# Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration +# in detex.l (reported by pinard@iro.umontreal.ca) +# +#DEFS += ${DEFS} -DNO_MALLOC_DECL +# +CFLAGS = -O ${DEFS} + +# Use your favorite lexical scanner +# +LEX = lex +#LEX = flex + +#LFLAGS = -8 -C + +# scanner library +# +LEXLIB = -ll +#LEXLIB = -lfl + +LPR = lpr -p + +# Program names +# +PROGS = detex + +# Header files +# +HDR = detex.h + +# Sources +# +SRC = detex.l + +# Objects for various programs +# +D_OBJ = detex.o + +all: ${PROGS} + +detex: ${D_OBJ} + ${CC} ${CFLAGS} -o $@ ${D_OBJ} ${LEXLIB} + +detex.c: + sed -f states.sed detex.l > xxx.l + ${LEX} ${LFLAGS} xxx.l + rm -f xxx.l + mv lex.yy.c detex.c + +lexout.c: detex.c + mv detex.c lexout.c + +man-page: + troff -man detex.1l + +# If you want detex available as delatex, uncomment the last two lines of +# this target +install: detex + rm -f ${DESTDIR}/detex + install -c -m 775 -o binary -g staff -s detex ${DESTDIR} +# rm -f ${DESTDIR}/delatex +# ln ${DESTDIR}/detex ${DESTDIR}/delatex + +clean: + -rm -f a.out core *.s *.o ERRS errs .,* .emacs_[0-9]* + -rm -f ${PROGS} xxx.l lex.yy.c + +print: ${HDR} ${SRC} + ${LPR} Makefile ${HDR} ${SRC} + +# Dependencies +# +detex.c: detex.h +detex.c: detex.l diff --git a/Build/source/texk/detex/detex-src/README b/Build/source/texk/detex/detex-src/README new file mode 100644 index 00000000000..a310a7f3fd0 --- /dev/null +++ b/Build/source/texk/detex/detex-src/README @@ -0,0 +1,195 @@ +Detex - Version 2.8 + +Detex is a program to remove TeX constructs from a text file. It recognizes +the \input command. + +This program assumes it is dealing with LaTeX input if it sees the string +"\begin{document}" in the text. It recognizes the \include and \includeonly +commands. + +This directory contains the following files: + +README - you're looking at it. + +COPYRIGHT - NCSA/University of Illinois Open Source License + +Makefile - makefile for generating detex on a 4.2BSD Unix system. + +detex.1l - troff source for the detex manual page. + Assuming you have the -man macros, use "make man-page" to + generate it. + +detex.h - Various global definitions. These should be modified to suit + the local installation. + +detex.l - Lex and C source for the detex program. + +lexout.c - C code generated from detex.l using lex on a Sun (SunOS 4.1.1) + This can be useful for DOS, OS/2 or systems that don't have + lex. + +states.sed - sed(1) script to munge the state names in detex.l so that + reasonable names can be used in the source without causing + lex(1) to overflow. + +os2 - subdirectory containing support for compilation on + OS/2 and DOS systems + + +This software package is distributed under the NCSA/University of +Illinois Open Source License. The latest version is available at +http://www.cs.purdue.edu/homes/trinkle/detex/ Send comments and fixes +to me via email. + +Daniel Trinkle <trinkle@cs.purdue.edu> +Department of Computer Sciences +Purdue University +West Lafayette, IN 47907-1398 + +April 26, 1986 + +Modified -- June 4, 1986 +Changed so that it automatically recognizes LaTeX source and ignores several +environment modes such as array. + + +Modified (Version 2.0) -- June 30, 1984 +Now handles white space in sequences like "\begin { document }". Detex is not +as easily confused by such things as display mode ends and begins that don't +match up. + + +Modified -- September 19, 1986 +Added the "-e <environment-list>" option to ignore specified LaTeX +environments. + + +Modified -- June 30, 1987 +Added the "-n" no-follow option, to allow detex to ignore \input and \include +commands. Also changed the algorithm for locating the input files. It now +interprets the "." more reasonably (i.e. it is not always the beginning of an +extension). + + +Modified -- December 15, 1988 +Added handling of verbatim environment in LaTeX mode and added it to the list +of modes ignored by default. Because of limitations with lex, it was +necessary to shorten the names of some of the existing start states before +adding a new one (ugh). + + +Modified -- January 3, 1988 +Added ignore of \$ inside $$ (math) pair. + + +Modified (Version 2.2) -- June 25, 1990 +Control sequences are no longer replaced by space, but just removed. This +means accents no longer cause output words to be broken. The "-c" option was +added to show the arguments of \cite, \ref, and \pageref macros. This is +useful when using something like style on the output. + + +Modified (Version 2.3) -- September 7, 1990 +Fixed the handling of Ctl mode a little better and added an exception +for \index on suggestions from kcb@hss.caltech.edu (KC Border). Also +changed the value for DEFAULTINPUTS to coincide with a local change. + + +Modified -- February 10, 1991 +Added -t option to force TeX mode even when seeing the "\begin{document}" +string in the input. + + +Modified -- February 23, 1991 +Based on suggestions from pinard@iro.umontreal.ca (Francois Pinard), I +added support for the SysV string routines (-DUSG), added defines for +the flex lexical scanner (-DFLEX_SCANNER), changed NULL to '\0' when +using it as a character (his sys defined NULL as (void *)0), changed +the Makefile to use ${CC} instead of cc, and added comments about the +new compile time options. + + +Modified (Version 2.4) -- September 2, 1992 +Corrected the way CITEBEGIN worked. Due to serious braindeath I had +the condition wrong in the if test. It should be (fLatex && !fCite). +This solves the problem a couple people reported with amstex style +\ref entries. + +Added a preprocessing sed(1) command to replace all the long, easy to +read state names with short two letter state names (SA-S?) so that lex +won't overflow and I don't have to keep shortening the state names +every time I add one. If a state is added, it must also be added to +states.sed (order is important) along with its unique S? replacement. + +Added \pagestyle, \setcounter, and \verb handling from +K.Sattar@cs.exeter.ac.uk (Khalid Sattar). Also allows invocation as +"delatex" to force LaTeX mode. + +Applied patches from queinnec@cenatls.cena.dgac.fr (Philippe Queinnec) +to handle nested {}s in state <LaMacro2> (\bibitem, \cite, \index). + +Added special ligature handling (\aa, \ae, \oe, \l, \o, \i, \j, \ss) +at the suggestion of gwp@dido.caltech.edu (G. W. Pigman II). + +Cleaned up the comments on detex.h, added mathmatica to DEFAULTENV. + + +Modified (Version 2.5) -- January 28, 1993 +Leading spaces in macros are no longer stripped. This means +"foo\footnote{ bar}" comes out as "foo bar" instead of "foobar". + +Fixed special ligature handling so it works in cases line {\ss} instead of +just when followed by a space. + + +Modified (Version 2.6) -- July 30, 1993 +Added OS/2 port from hankedr@mail.auburn.edu (Darrel R Hankerson). + +Added handling of leading and trailing ':' in TEXINPUTS per the latest +TeX as suggested by jnp@tfl.dk (J|rgen N|rgaard). + +Changed the way the input path is constructed in SetInputPaths() so we +never try to modify a constant string. + +Changed the way the the ignore environment list is contructed in +SetEnvIgnore() so we never try to modify a constant string. + +Changed the USG define to HAVE_STRING_H. + +Fixed the states.sed script so it only replaces "Input" in the correct +places. I would like to use the \< \> word separator patterns but +they are not supported by all versions of sed. This as least works. + +Changed the detex.c target in the Makefile to use a temporary file +because I experienced problems (segmentation fault) with lex on +Solaris 2.1 when input was from stdin. + + +Modified (Version 2.7) -- September 10, 1997 +Removed line breaks in detex.l between a few patterns and actions. It +appears that flex is no longer able to handle this. Thanks to Anthony +Harris <harris@hebb.neurology.pitt.edu> and Marty Leisner +<leisner@sdsp.mc.xerox.com> for reporting this. + + +Porting notes -- March 30, 1992 +When using gcc, or compiling on a NeXT, you should compile with +-fwritable-strings. With the change to SetInputPaths() in 2.6 this +should no longer be necessary. + +On a NeXT, it has been reported that lex replaces the '\0' with NULL, +and then the compiler complains about it. I think this is an old bug +that is no longer applicable. + +July 30, 1993 +The flex scanner generator does not work because it does not handle +input buffering the same way as lex. I don't know of any reasonable +way to rewrite detex to get around this problem. + +May 25, 1995 +According to alain@ia1.u-strasbg.fr (Alain Ketterlin), using flex +allows 8-bit characters to be handled correctly. + +Modified (Version 2.8) -- January 1, 2008 +Added NCSA/University of Illinois Open Source License to facilitate +free redistribution. diff --git a/Build/source/texk/detex/detex-src/detex.c b/Build/source/texk/detex/detex-src/detex.c new file mode 100644 index 00000000000..464e3cc4324 --- /dev/null +++ b/Build/source/texk/detex/detex-src/detex.c @@ -0,0 +1,4234 @@ +#line 4 "detex.l" +#ifndef lint +static char rcsid[] = "$Header: /p/src/local/bin/detex/RCS/detex.l,v 2.22 2007/03/01 20:22:01 trinkle Exp trinkle $"; +#endif + +/* + * Copyright (c) 1986-2007 Purdue University + * All rights reserved. + * + * Developed by: Daniel Trinkle + * Department of Computer Science, Purdue University + * http://www.cs.purdue.edu/ + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal with the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * o Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimers. + * + * o Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimers in the + * documentation and/or other materials provided with the distribution. + * + * o Neither the names of Daniel Trinkle, Purdue University, nor the + * names of its contributors may be used to endorse or promote products + * derived from this Software without specific prior written + * permission. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. + */ + + +/* + * detex [-e environment-list] [-c] [-l] [-n] [-s] [-t] [-w] [file[.tex] ] + * + * This program is used to remove TeX or LaTeX constructs from a text + * file. + */ + +#include "detex.h" + +#ifdef KPATHSEA + +#include <c-auto.h> +#include <kpathsea/c-auto.h> +#include <kpathsea/config.h> +#include <kpathsea/c-memstr.h> +#include <kpathsea/c-pathmx.h> +#include <kpathsea/c-std.h> +#include <kpathsea/tex-file.h> + +#ifdef HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif + +#else /* KPATHSEA */ + +#ifdef HAVE_STRING_H +#include <string.h> +#else +#include <strings.h> +#define strchr index +#define strrchr rindex +#endif +#ifndef MAXPATHLEN +#include <sys/param.h> +#endif +#define PATH_MAX MAXPATHLEN +#ifdef OS2 +#include <stdlib.h> +#endif + +#ifdef WIN32 +#include <fcntl.h> +#include <io.h> +#endif + +#endif /* KPATHSEA */ + + + +#line 94 "detex.c" + +#define YY_INT_ALIGNED short int + +/* A lexical scanner generated by flex */ + +#define FLEX_SCANNER +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 5 +#define YY_FLEX_SUBMINOR_VERSION 39 +#if YY_FLEX_SUBMINOR_VERSION > 0 +#define FLEX_BETA +#endif + +/* First, we deal with platform-specific or compiler-specific issues. */ + +/* begin standard C headers. */ +#include <stdio.h> +#include <string.h> +#include <errno.h> +#include <stdlib.h> + +/* end standard C headers. */ + +/* flex integer type definitions */ + +#ifndef FLEXINT_H +#define FLEXINT_H + +/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ + +#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + +/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, + * if you want the limit (max/min) macros for int types. + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 +#endif + +#include <inttypes.h> +typedef int8_t flex_int8_t; +typedef uint8_t flex_uint8_t; +typedef int16_t flex_int16_t; +typedef uint16_t flex_uint16_t; +typedef int32_t flex_int32_t; +typedef uint32_t flex_uint32_t; +#else +typedef signed char flex_int8_t; +typedef short int flex_int16_t; +typedef int flex_int32_t; +typedef unsigned char flex_uint8_t; +typedef unsigned short int flex_uint16_t; +typedef unsigned int flex_uint32_t; + +/* Limits of integral types. */ +#ifndef INT8_MIN +#define INT8_MIN (-128) +#endif +#ifndef INT16_MIN +#define INT16_MIN (-32767-1) +#endif +#ifndef INT32_MIN +#define INT32_MIN (-2147483647-1) +#endif +#ifndef INT8_MAX +#define INT8_MAX (127) +#endif +#ifndef INT16_MAX +#define INT16_MAX (32767) +#endif +#ifndef INT32_MAX +#define INT32_MAX (2147483647) +#endif +#ifndef UINT8_MAX +#define UINT8_MAX (255U) +#endif +#ifndef UINT16_MAX +#define UINT16_MAX (65535U) +#endif +#ifndef UINT32_MAX +#define UINT32_MAX (4294967295U) +#endif + +#endif /* ! C99 */ + +#endif /* ! FLEXINT_H */ + +#ifdef __cplusplus + +/* The "const" storage-class-modifier is valid. */ +#define YY_USE_CONST + +#else /* ! __cplusplus */ + +/* C99 requires __STDC__ to be defined as 1. */ +#if defined (__STDC__) + +#define YY_USE_CONST + +#endif /* defined (__STDC__) */ +#endif /* ! __cplusplus */ + +#ifdef YY_USE_CONST +#define yyconst const +#else +#define yyconst +#endif + +/* Returned upon end-of-file. */ +#define YY_NULL 0 + +/* Promotes a possibly negative, possibly signed char to an unsigned + * integer for use as an array index. If the signed char is negative, + * we want to instead treat it as an 8-bit unsigned char, hence the + * double cast. + */ +#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) + +/* Enter a start condition. This macro really ought to take a parameter, + * but we do it the disgusting crufty way forced on us by the ()-less + * definition of BEGIN. + */ +#define BEGIN (yy_start) = 1 + 2 * + +/* Translate the current start state into a value that can be later handed + * to BEGIN to return to the state. The YYSTATE alias is for lex + * compatibility. + */ +#define YY_START (((yy_start) - 1) / 2) +#define YYSTATE YY_START + +/* Action number for EOF rule of a given start state. */ +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) + +/* Special action meaning "start processing a new file". */ +#define YY_NEW_FILE yyrestart(yyin ) + +#define YY_END_OF_BUFFER_CHAR 0 + +/* Size of default input buffer. */ +#ifndef YY_BUF_SIZE +#define YY_BUF_SIZE 16384 +#endif + +/* The state buf must be large enough to hold one state per character in the main buffer. + */ +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) + +#ifndef YY_TYPEDEF_YY_BUFFER_STATE +#define YY_TYPEDEF_YY_BUFFER_STATE +typedef struct yy_buffer_state *YY_BUFFER_STATE; +#endif + +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + +extern yy_size_t yyleng; + +extern FILE *yyin, *yyout; + +#define EOB_ACT_CONTINUE_SCAN 0 +#define EOB_ACT_END_OF_FILE 1 +#define EOB_ACT_LAST_MATCH 2 + + #define YY_LESS_LINENO(n) + #define YY_LINENO_REWIND_TO(ptr) + +/* Return all but the first "n" matched characters back to the input stream. */ +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + *yy_cp = (yy_hold_char); \ + YY_RESTORE_YY_MORE_OFFSET \ + (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) + +#define unput(c) yyunput( c, (yytext_ptr) ) + +#ifndef YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE +struct yy_buffer_state + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + yy_size_t yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + yy_size_t yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; + + int yy_bs_lineno; /**< The line count. */ + int yy_bs_column; /**< The column count. */ + + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; + +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + + }; +#endif /* !YY_STRUCT_YY_BUFFER_STATE */ + +/* Stack of input buffers. */ +static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ +static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ +static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ + +/* We provide macros for accessing buffer states in case in the + * future we want to put the buffer states in a more general + * "scanner state". + * + * Returns the top of the stack, or NULL. + */ +#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ + ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ + : NULL) + +/* Same as previous macro, but useful when we know that the buffer stack is not + * NULL or when we need an lvalue. For internal use only. + */ +#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] + +/* yy_hold_char holds the character lost when yytext is formed. */ +static char yy_hold_char; +static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ +yy_size_t yyleng; + +/* Points to current character in buffer. */ +static char *yy_c_buf_p = (char *) 0; +static int yy_init = 0; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ + +/* Flag which is used to allow yywrap()'s to do buffer switches + * instead of setting up a fresh yyin. A bit of a hack ... + */ +static int yy_did_buffer_switch_on_eof; + +void yyrestart (FILE *input_file ); +void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); +YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); +void yy_delete_buffer (YY_BUFFER_STATE b ); +void yy_flush_buffer (YY_BUFFER_STATE b ); +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); +void yypop_buffer_state (void ); + +static void yyensure_buffer_stack (void ); +static void yy_load_buffer_state (void ); +static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); + +#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) + +YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); +YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); + +void *yyalloc (yy_size_t ); +void *yyrealloc (void *,yy_size_t ); +void yyfree (void * ); + +#define yy_new_buffer yy_create_buffer + +#define yy_set_interactive(is_interactive) \ + { \ + if ( ! YY_CURRENT_BUFFER ){ \ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer(yyin,YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ + } + +#define yy_set_bol(at_bol) \ + { \ + if ( ! YY_CURRENT_BUFFER ){\ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer(yyin,YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ + } + +#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) + +/* Begin user sect3 */ + +typedef unsigned char YY_CHAR; + +FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; + +typedef int yy_state_type; + +extern int yylineno; + +int yylineno = 1; + +extern char *yytext; +#define yytext_ptr yytext + +static yy_state_type yy_get_previous_state (void ); +static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); +static int yy_get_next_buffer (void ); +static void yy_fatal_error (yyconst char msg[] ); + +/* Done after the current pattern has been matched and before the + * corresponding action - sets up yytext. + */ +#define YY_DO_BEFORE_ACTION \ + (yytext_ptr) = yy_bp; \ + yyleng = (size_t) (yy_cp - yy_bp); \ + (yy_hold_char) = *yy_cp; \ + *yy_cp = '\0'; \ + (yy_c_buf_p) = yy_cp; + +#define YY_NUM_RULES 142 +#define YY_END_OF_BUFFER 143 +/* This struct is not used in this scanner, + but its presence is necessary. */ +struct yy_trans_info + { + flex_int32_t yy_verify; + flex_int32_t yy_nxt; + }; +static yyconst flex_int16_t yy_accept[1067] = + { 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 122, 122, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 135, 135, 0, 0, 0, 0, 0, 0, 118, 118, + 0, 0, 143, 142, 80, 79, 78, 92, 91, 92, + 103, 106, 105, 104, 108, 110, 109, 97, 95, 94, + 97, 129, 129, 93, 1, 128, 129, 124, 124, 126, + 123, 122, 121, 120, 123, 123, 122, 11, 11, 10, + 9, 11, 88, 87, 88, 18, 17, 15, 16, 14, + 13, 14, 84, 83, 84, 99, 101, 100, 133, 130, + + 131, 132, 135, 134, 139, 136, 137, 138, 141, 140, + 6, 6, 7, 118, 43, 42, 44, 90, 103, 108, + 96, 125, 89, 1, 128, 0, 127, 117, 115, 81, + 114, 114, 114, 114, 85, 116, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 122, 122, 120, 120, 0, 119, + 0, 0, 9, 0, 0, 0, 86, 15, 0, 82, + 99, 135, 6, 0, 43, 127, 114, 114, 112, 112, + 116, 0, 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + 114, 0, 0, 0, 0, 111, 111, 0, 116, 114, + 114, 114, 114, 114, 77, 114, 65, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 71, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 0, 0, + 12, 0, 114, 114, 114, 114, 114, 114, 61, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + 52, 114, 114, 114, 114, 114, 114, 32, 114, 114, + + 114, 114, 114, 114, 114, 114, 114, 114, 73, 114, + 114, 0, 0, 0, 0, 114, 114, 3, 114, 114, + 114, 46, 114, 114, 114, 114, 114, 114, 114, 114, + 66, 107, 0, 0, 0, 0, 0, 68, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 52, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 0, 0, + 0, 0, 114, 114, 0, 0, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 0, 0, 0, 0, 0, + 114, 114, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 19, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 36, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + 114, 34, 114, 0, 0, 0, 0, 0, 114, 0, + 0, 0, 114, 114, 0, 0, 58, 114, 114, 114, + 114, 114, 114, 114, 114, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, + 98, 0, 19, 19, 114, 114, 114, 114, 114, 114, + 69, 114, 114, 114, 114, 114, 114, 114, 33, 114, + 53, 114, 114, 114, 114, 114, 114, 114, 114, 114, + + 114, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 20, 0, 0, 0, 0, 0, 0, 114, + 114, 0, 114, 60, 48, 114, 114, 114, 51, 67, + 0, 22, 22, 22, 22, 0, 0, 0, 0, 0, + 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + 35, 114, 114, 114, 114, 37, 53, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 0, 20, 20, + 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, + 114, 114, 0, 114, 114, 114, 114, 49, 0, 0, + 22, 22, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 114, 114, 113, 114, 114, 25, + 114, 50, 70, 56, 114, 114, 38, 40, 114, 26, + 114, 114, 114, 114, 114, 114, 47, 114, 0, 0, + 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 8, 0, 4, 0, 114, + 0, 0, 0, 114, 114, 114, 114, 0, 0, 22, + 22, 0, 0, 0, 0, 0, 23, 114, 114, 74, + 114, 31, 56, 39, 114, 38, 72, 30, 114, 28, + 54, 114, 114, 64, 0, 0, 20, 20, 0, 0, + 0, 0, 0, 21, 0, 27, 0, 0, 0, 0, + + 0, 0, 114, 45, 114, 114, 0, 0, 22, 22, + 0, 0, 0, 0, 114, 102, 114, 114, 29, 54, + 114, 114, 0, 0, 20, 20, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 59, 114, 114, 0, 0, 22, + 22, 0, 0, 0, 0, 0, 0, 0, 0, 114, + 114, 75, 114, 57, 0, 0, 20, 20, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 24, 0, 63, 62, 0, 0, 22, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 22, 0, 0, 0, 0, 114, + 114, 55, 57, 0, 0, 20, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 20, 0, 0, 0, 0, 0, 5, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 22, 0, 22, 22, 22, + 0, 0, 0, 0, 0, 0, 0, 0, 114, 76, + 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 20, 0, 20, 20, 20, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 2, 0, 22, 22, 22, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 41, 0, 20, 20, 20, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 41, 41, 20, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, + + 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, + 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, + 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0 + } ; + +static yyconst flex_int32_t yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 4, 5, 1, 1, 6, 7, 1, 8, 9, + 10, 11, 12, 13, 14, 15, 1, 16, 16, 16, + 16, 16, 17, 17, 17, 17, 17, 1, 1, 1, + 18, 1, 5, 19, 20, 21, 21, 21, 22, 21, + 21, 21, 21, 21, 21, 23, 21, 21, 24, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + 25, 26, 27, 1, 1, 28, 29, 30, 31, 32, + + 33, 34, 35, 36, 37, 23, 38, 39, 40, 41, + 42, 43, 21, 44, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static yyconst flex_int32_t yy_meta[57] = + { 0, + 1, 2, 3, 2, 1, 1, 1, 4, 1, 1, + 1, 1, 5, 6, 1, 6, 6, 6, 7, 8, + 8, 8, 8, 8, 1, 9, 10, 6, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 11, 1, 12, 1 + } ; + +static yyconst flex_int16_t yy_base[1116] = + { 0, + 0, 0, 0, 1, 2, 3, 8, 11, 14, 23, + 16, 17, 78, 0, 134, 0, 190, 0, 4, 25, + 246, 0, 26, 29, 30, 31, 301, 304, 307, 308, + 2540, 2539, 311, 312, 32, 33, 36, 42, 2549, 2548, + 17, 18, 2563, 2913, 2913, 2913, 2913, 2913, 2913, 2556, + 0, 2913, 2913, 2913, 0, 2913, 2913, 2913, 2913, 2913, + 2555, 2913, 2531, 2552, 0, 21, 2549, 367, 2913, 2913, + 2913, 317, 2913, 0, 310, 0, 2503, 2913, 422, 425, + 0, 428, 2913, 2913, 2528, 2913, 2913, 0, 2913, 2913, + 2913, 2521, 2913, 2913, 2543, 0, 2913, 2913, 2913, 2913, + + 2913, 2913, 0, 2913, 2913, 2913, 2913, 2913, 2913, 2913, + 0, 0, 2519, 2913, 0, 2913, 2913, 2913, 0, 0, + 2913, 2913, 2913, 0, 24, 2539, 2537, 2913, 2913, 2913, + 0, 24, 431, 434, 2913, 298, 284, 289, 283, 16, + 2503, 298, 2498, 438, 2509, 443, 2508, 448, 2511, 301, + 424, 2506, 2489, 32, 456, 2480, 0, 0, 327, 0, + 459, 462, 0, 480, 2495, 2498, 2913, 0, 2489, 2913, + 0, 0, 0, 2488, 0, 2520, 0, 488, 492, 2913, + 2502, 2499, 2493, 2489, 2493, 2476, 2482, 2485, 2487, 2485, + 2474, 302, 304, 442, 2471, 2484, 2472, 2463, 314, 2474, + + 463, 2464, 2461, 2466, 2478, 281, 418, 2455, 2471, 2459, + 308, 2461, 2457, 2468, 2467, 497, 2913, 2471, 2913, 2, + 2456, 468, 2458, 2448, 2452, 2441, 0, 2448, 2447, 2439, + 2443, 2450, 2439, 2444, 2429, 2434, 2441, 2440, 484, 2439, + 489, 2426, 2431, 2436, 2431, 2438, 2432, 2414, 2424, 2416, + 475, 2416, 2417, 2413, 481, 2428, 2420, 2427, 2418, 2424, + 2913, 523, 2411, 2406, 2409, 2403, 2411, 2401, 0, 2402, + 2404, 2404, 2397, 2401, 2395, 2392, 2403, 2386, 2382, 2385, + 575, 2387, 2395, 2382, 2382, 2389, 2392, 500, 2385, 2377, + 2407, 2384, 2383, 2366, 2362, 2366, 2381, 0, 2377, 2372, + + 2366, 2374, 2364, 483, 2376, 2369, 2356, 2368, 0, 2353, + 2364, 2351, 2364, 530, 534, 2353, 2344, 546, 2353, 2343, + 2333, 2353, 2349, 2348, 2336, 2346, 2336, 600, 2344, 2344, + 0, 0, 625, 524, 58, 650, 0, 0, 2331, 2333, + 2324, 2330, 2322, 2327, 2335, 2321, 2322, 2311, 2913, 2329, + 2327, 2326, 2323, 2322, 2312, 2323, 2306, 2300, 2305, 510, + 2314, 2314, 2299, 2300, 2291, 2309, 694, 2306, 2309, 2291, + 552, 2303, 2301, 2304, 558, 561, 2292, 2296, 2291, 2287, + 2297, 2286, 2292, 2291, 2273, 719, 551, 336, 744, 0, + 569, 2285, 569, 427, 471, 2274, 557, 2284, 2275, 2273, + + 2269, 550, 2265, 603, 2274, 2266, 2268, 2269, 2270, 2263, + 2267, 2249, 2270, 0, 2256, 2251, 2253, 2264, 2263, 2242, + 2249, 2249, 2248, 2253, 2250, 2248, 2243, 2233, 2233, 2248, + 2237, 0, 2237, 788, 593, 541, 813, 0, 621, 2235, + 2231, 2223, 2224, 2233, 616, 2220, 0, 2217, 2227, 2205, + 2212, 2207, 2210, 2219, 2217, 618, 553, 558, 2206, 590, + 2216, 2207, 2205, 2205, 567, 2201, 659, 641, 654, 857, + 435, 578, 666, 669, 2211, 2210, 2194, 2191, 2206, 2193, + 0, 2195, 2190, 2182, 2201, 2186, 2183, 2182, 0, 2173, + 2211, 2175, 2174, 2176, 2177, 2180, 2174, 2177, 2174, 2166, + + 2178, 660, 630, 633, 2163, 624, 2169, 2149, 2157, 2156, + 654, 2152, 701, 710, 713, 882, 2160, 2152, 2161, 2151, + 2152, 2153, 2154, 0, 0, 2143, 647, 2130, 0, 0, + 643, 722, 753, 769, 795, 0, 712, 672, 907, 0, + 2135, 2136, 2138, 2134, 2127, 2131, 2122, 2118, 2124, 2119, + 0, 2112, 2105, 2093, 2090, 0, 2913, 2106, 2102, 2086, + 2085, 2072, 2064, 2067, 2052, 2051, 2059, 702, 822, 837, + 864, 886, 0, 722, 726, 951, 0, 765, 776, 2064, + 2044, 748, 2037, 2039, 2029, 2030, 2022, 0, 2029, 2026, + 916, 929, 806, 737, 766, 2020, 709, 2020, 2008, 2006, + + 2005, 655, 1998, 958, 2008, 1997, 0, 2003, 1993, 0, + 1983, 0, 0, 2021, 1977, 1994, 2011, 0, 1977, 0, + 1984, 1979, 1977, 1971, 1965, 1978, 0, 1967, 1909, 1905, + 971, 975, 832, 769, 778, 1900, 779, 1909, 1887, 1895, + 1891, 787, 1886, 983, 910, 2913, 1000, 2913, 1882, 1891, + 889, 1054, 1886, 1889, 1880, 1893, 1870, 1879, 1869, 1003, + 1032, 791, 1038, 1045, 1049, 311, 2913, 1872, 1863, 0, + 1873, 0, 2913, 0, 1870, 2913, 0, 0, 1864, 0, + 1898, 1871, 1859, 0, 1857, 1849, 1058, 1080, 820, 1092, + 1105, 1109, 514, 2913, 1858, 0, 0, 900, 835, 1163, + + 0, 1857, 1837, 0, 1838, 1843, 1830, 1830, 1113, 1207, + 1837, 1833, 838, 402, 1835, 0, 1835, 1835, 0, 2913, + 1820, 1821, 1806, 1807, 1159, 1249, 1814, 1808, 841, 795, + 1805, 919, 838, 847, 1799, 890, 1809, 1778, 1786, 1781, + 856, 1776, 1134, 1777, 0, 1771, 1775, 1758, 1291, 1316, + 1188, 993, 889, 1341, 0, 1761, 1747, 904, 858, 1751, + 1742, 0, 1740, 1769, 1733, 1385, 1410, 1214, 1004, 911, + 1435, 0, 1736, 1721, 911, 926, 1126, 929, 1233, 1241, + 1297, 599, 2913, 1721, 0, 0, 1479, 0, 1237, 1012, + 973, 1504, 0, 1015, 976, 983, 1719, 985, 1729, 1717, + + 1708, 1708, 918, 1703, 1167, 1697, 1694, 1000, 1548, 1706, + 1690, 1722, 2913, 1584, 0, 1283, 1048, 1057, 1609, 0, + 1124, 1074, 1086, 1684, 993, 1693, 1674, 1673, 1662, 949, + 1654, 1180, 1633, 1633, 1022, 1653, 1183, 2913, 1627, 1614, + 1069, 1007, 1223, 0, 1127, 1102, 1105, 1591, 1093, 1595, + 1557, 1554, 1553, 1068, 1546, 1210, 1110, 1307, 1310, 1358, + 1530, 1689, 1714, 1351, 1243, 1134, 1739, 0, 1528, 0, + 2913, 0, 1252, 1138, 1156, 1518, 1128, 1527, 1490, 1474, + 1452, 1184, 1436, 1268, 1159, 1363, 1405, 1416, 1429, 1783, + 1808, 1430, 1353, 1181, 1833, 0, 1428, 1410, 1050, 1197, + + 1373, 2913, 1232, 1413, 1427, 1457, 1877, 0, 1444, 1425, + 1239, 1902, 0, 1447, 1266, 1274, 1406, 1284, 1391, 1381, + 1369, 1364, 1290, 1353, 1498, 1947, 1281, 1486, 1507, 1514, + 2002, 0, 1526, 1497, 1322, 2027, 0, 1507, 1332, 1347, + 1342, 1285, 1327, 1301, 1305, 1301, 1359, 1286, 1554, 1275, + 1259, 1290, 2071, 1568, 0, 1510, 1363, 1366, 1259, 1404, + 1247, 1234, 1221, 1206, 1412, 1189, 1529, 1376, 1574, 1588, + 1634, 0, 0, 1619, 0, 1587, 1438, 1460, 1186, 1508, + 1173, 1151, 1147, 1117, 1440, 1091, 1603, 1487, 1658, 1679, + 1683, 1086, 2107, 2132, 1692, 1601, 1526, 2157, 0, 1705, + + 1529, 1629, 1708, 1749, 1756, 1551, 1762, 1771, 1789, 2201, + 0, 1803, 1660, 1563, 2226, 0, 1798, 1566, 1603, 1036, + 1604, 1044, 989, 976, 957, 1599, 927, 1829, 2270, 1883, + 2309, 2006, 0, 1823, 1631, 1634, 900, 1632, 868, 831, + 835, 830, 1642, 814, 1852, 1683, 1857, 2022, 2052, 2348, + 2036, 2387, 2097, 1705, 2047, 2076, 2110, 2426, 2480, 2123, + 2101, 2113, 2126, 2534, 1897, 2913, 2589, 2601, 2613, 2625, + 2637, 2649, 2661, 2673, 2685, 2697, 2709, 2721, 2733, 2745, + 2757, 2769, 2781, 2791, 2801, 2810, 2818, 2827, 2829, 819, + 805, 2837, 2847, 2859, 2871, 2878, 2880, 2888, 803, 780, + + 762, 756, 750, 724, 722, 683, 676, 671, 623, 514, + 459, 23, 2900, 39, 323 + } ; + +static yyconst flex_int16_t yy_def[1116] = + { 0, + 1067, 1067, 1068, 1068, 1069, 1069, 1070, 1070, 1071, 1071, + 1072, 1072, 1066, 13, 1066, 15, 1066, 17, 1073, 1073, + 1066, 21, 1074, 1074, 1075, 1075, 1076, 1076, 1077, 1077, + 1078, 1078, 1079, 1079, 1080, 1080, 1081, 1081, 1067, 1067, + 1082, 1082, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1083, 1066, 1066, 1066, 1084, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1085, 1066, 1086, 1066, 1066, 1066, + 1066, 1066, 1066, 1087, 1088, 1089, 1066, 1066, 1066, 1066, + 1090, 1066, 1066, 1066, 1066, 1066, 1066, 1091, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1092, 1066, 1066, 1066, 1066, + + 1066, 1066, 1093, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1094, 1094, 1066, 1066, 1095, 1066, 1066, 1066, 1083, 1084, + 1066, 1066, 1066, 1085, 1066, 1096, 1086, 1066, 1066, 1066, + 1097, 1097, 1097, 1097, 1066, 1066, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1066, 1066, 1087, 1087, 1088, 1089, + 1066, 1066, 1090, 1066, 1066, 1066, 1066, 1091, 1066, 1066, + 1092, 1093, 1094, 1066, 1095, 1096, 1097, 1097, 1066, 1066, + 1066, 1098, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1066, 1066, 1066, 1066, 1066, 1066, 1098, 1066, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1066, 1066, + 1066, 1066, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1066, 1066, 1066, 1066, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1066, 1066, 1066, 1066, 1099, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1066, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1066, 1066, + 1066, 1066, 1097, 1097, 1066, 1066, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1066, 1066, 1066, 1066, 1100, + 1097, 1097, 336, 393, 1066, 1066, 1066, 1066, 1066, 1066, + + 1066, 1066, 1066, 1099, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1066, 1066, 1066, 1066, 1101, 1097, 1066, + 1066, 1066, 1097, 1097, 1066, 1066, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 389, 456, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1100, 1066, 1066, 1066, + 1097, 393, 1066, 1066, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + + 1097, 437, 502, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1101, 1066, 1066, 1066, 1066, 1066, 1066, 1097, + 1097, 1066, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 456, 1066, 1066, 1100, 1100, 470, 1066, 1066, 1066, 1102, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1066, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 502, 1066, 1066, + 1101, 1101, 516, 1066, 1066, 1066, 1103, 1066, 1066, 1066, + 1097, 1097, 1066, 1097, 1097, 1097, 1097, 1097, 1066, 1066, + 1100, 1100, 539, 593, 1066, 1066, 1066, 1066, 1066, 1066, + + 1066, 1066, 1066, 1102, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1066, 1066, + 1101, 1101, 576, 633, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1103, 1066, 1066, 1066, 1066, 1066, 1097, + 1066, 1066, 1066, 1097, 1097, 1097, 1097, 1066, 1066, 1100, + 1100, 593, 1066, 1066, 1102, 665, 1066, 1097, 1097, 1097, + 1097, 1097, 1066, 1097, 1097, 1066, 1097, 1097, 1097, 1097, + 1097, 1097, 1097, 1097, 1066, 1066, 1101, 1101, 633, 1066, + 1066, 1103, 692, 1066, 1066, 1097, 652, 1066, 1066, 1066, + + 1104, 1066, 1097, 1097, 1097, 1097, 1066, 1066, 1100, 1100, + 1066, 1066, 665, 665, 1097, 1097, 1097, 1097, 1097, 1066, + 1097, 1097, 1066, 1066, 1101, 1101, 1066, 1066, 692, 692, + 1066, 700, 732, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1104, 1066, 1097, 1097, 1097, 1066, 1066, 710, + 749, 1066, 1066, 1066, 1105, 1066, 1066, 665, 665, 1097, + 1097, 1097, 1097, 1097, 1066, 1066, 726, 766, 1066, 1066, + 1066, 1106, 1066, 1066, 692, 692, 1066, 732, 1066, 1066, + 1104, 781, 1066, 1066, 1097, 1097, 1066, 749, 787, 1066, + 1066, 1066, 1107, 754, 794, 1066, 1066, 1066, 1066, 1066, + + 1066, 1066, 1066, 1066, 1105, 1066, 1066, 665, 665, 1097, + 1097, 1097, 1066, 1066, 766, 814, 1066, 1066, 1066, 1108, + 771, 821, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1106, 1066, 1066, 692, 692, 1066, 1066, 1066, 1066, + 781, 781, 1066, 787, 792, 845, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1107, 794, 1066, 1066, 1105, + 1066, 1066, 809, 862, 1066, 1066, 1066, 1109, 1097, 1097, + 1066, 814, 819, 873, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1108, 821, 1066, 1066, 1106, 1066, 1066, + 836, 890, 1066, 1066, 1066, 1110, 1066, 1066, 781, 781, + + 1066, 1066, 845, 1066, 1066, 1105, 1066, 862, 907, 1066, + 1066, 1066, 1111, 867, 914, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1109, 1066, 873, 1066, 1066, 1106, + 1066, 890, 931, 1066, 1066, 1066, 1112, 895, 938, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1110, 1066, + 1066, 781, 781, 1105, 907, 912, 956, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1111, 914, 1066, 1066, + 1109, 1113, 926, 1106, 931, 936, 976, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1112, 938, 1066, 1066, + 1110, 1066, 1066, 953, 993, 1066, 1066, 1066, 1114, 1105, + + 956, 1066, 1066, 1109, 1106, 976, 1066, 1066, 1110, 1066, + 993, 1010, 1066, 1066, 1066, 1115, 998, 1017, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1114, 1105, 1109, + 1106, 1110, 1010, 1015, 1034, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1115, 1017, 1066, 1066, 1114, 1066, + 1109, 1066, 1110, 1034, 1066, 1066, 1114, 1109, 1110, 1114, + 907, 931, 1114, 1114, 1012, 0, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066 + } ; + +static yyconst flex_int16_t yy_nxt[2970] = + { 0, + 1066, 1066, 46, 46, 49, 49, 84, 50, 50, 52, + 53, 52, 52, 53, 52, 56, 57, 56, 59, 59, + 52, 60, 60, 52, 56, 57, 56, 84, 91, 85, + 987, 91, 94, 94, 44, 44, 125, 125, 112, 125, + 125, 61, 61, 178, 112, 178, 1028, 263, 188, 264, + 85, 92, 47, 47, 92, 95, 95, 189, 110, 110, + 52, 113, 54, 52, 210, 54, 56, 113, 56, 116, + 116, 117, 117, 393, 393, 56, 211, 56, 62, 62, + 62, 62, 63, 64, 65, 62, 62, 62, 62, 62, + 62, 62, 62, 66, 66, 62, 62, 67, 67, 67, + + 67, 67, 62, 68, 62, 62, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 69, 69, 69, 70, 71, 72, 73, 72, 71, 71, + 71, 74, 71, 71, 71, 71, 71, 74, 71, 75, + 75, 74, 75, 75, 75, 75, 75, 75, 71, 76, + 71, 74, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 77, 71, 71, 71, + 78, 79, 80, 79, 78, 78, 78, 78, 78, 78, + + 78, 78, 78, 78, 78, 78, 78, 78, 78, 81, + 81, 81, 81, 81, 78, 78, 78, 78, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 82, 78, 78, 78, 86, 86, 87, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 88, 88, 88, 88, 88, + 86, 86, 86, 86, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 88, 88, 88, 88, 86, 86, + + 89, 86, 97, 98, 97, 97, 98, 97, 181, 44, + 44, 250, 178, 44, 44, 183, 178, 158, 155, 186, + 155, 184, 182, 158, 187, 185, 251, 158, 191, 200, + 1045, 100, 100, 201, 158, 106, 106, 158, 229, 192, + 158, 231, 202, 230, 158, 257, 232, 604, 240, 714, + 258, 456, 456, 97, 158, 97, 97, 241, 97, 101, + 101, 102, 102, 107, 107, 108, 108, 128, 128, 156, + 129, 128, 128, 128, 128, 130, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 131, 132, 131, 131, 133, + 134, 135, 136, 128, 128, 137, 138, 139, 140, 141, + + 142, 131, 143, 144, 145, 146, 131, 147, 148, 149, + 150, 151, 152, 153, 154, 131, 131, 131, 131, 128, + 128, 128, 128, 161, 161, 161, 161, 161, 161, 164, + 164, 164, 179, 180, 179, 179, 180, 179, 604, 179, + 180, 179, 1066, 1066, 179, 180, 179, 252, 759, 179, + 180, 179, 203, 204, 205, 178, 206, 155, 253, 155, + 161, 161, 161, 164, 164, 164, 967, 165, 178, 541, + 207, 196, 233, 234, 162, 166, 542, 162, 194, 197, + 178, 164, 164, 164, 235, 180, 472, 472, 180, 216, + 217, 216, 180, 179, 180, 179, 243, 180, 216, 217, + + 216, 165, 180, 244, 266, 301, 267, 245, 156, 166, + 307, 162, 268, 302, 284, 361, 285, 289, 290, 165, + 303, 949, 286, 308, 314, 314, 314, 166, 287, 362, + 344, 314, 314, 314, 291, 371, 371, 371, 335, 336, + 336, 425, 217, 345, 346, 426, 180, 375, 375, 375, + 644, 217, 730, 371, 371, 371, 502, 502, 427, 375, + 375, 375, 445, 445, 445, 388, 389, 389, 1066, 1066, + 468, 468, 468, 531, 531, 315, 333, 333, 333, 469, + 473, 372, 315, 1066, 393, 393, 334, 473, 334, 335, + 336, 336, 446, 472, 472, 473, 473, 532, 376, 372, + + 337, 386, 386, 386, 474, 474, 474, 436, 437, 437, + 376, 387, 532, 387, 388, 389, 389, 445, 445, 445, + 532, 470, 514, 514, 514, 390, 333, 333, 333, 532, + 925, 515, 1066, 456, 456, 743, 334, 842, 334, 335, + 336, 336, 468, 468, 468, 1066, 1066, 446, 568, 568, + 337, 394, 394, 394, 569, 468, 468, 468, 531, 531, + 533, 533, 533, 569, 395, 336, 336, 474, 474, 474, + 474, 474, 474, 516, 1066, 502, 502, 586, 884, 396, + 397, 398, 399, 856, 569, 663, 400, 593, 593, 401, + 832, 587, 402, 470, 403, 434, 434, 434, 534, 569, + + 663, 535, 570, 570, 570, 435, 470, 435, 436, 437, + 437, 514, 514, 514, 514, 514, 514, 568, 568, 438, + 386, 386, 386, 533, 533, 533, 538, 539, 539, 805, + 387, 743, 387, 388, 389, 389, 575, 576, 576, 663, + 571, 633, 633, 572, 390, 457, 457, 457, 663, 651, + 651, 651, 1066, 1066, 533, 533, 533, 644, 458, 389, + 389, 589, 516, 604, 590, 516, 645, 645, 645, 513, + 533, 533, 533, 459, 460, 461, 462, 647, 647, 647, + 463, 662, 662, 464, 1066, 1066, 465, 467, 466, 434, + 434, 434, 589, 689, 689, 590, 533, 533, 533, 435, + + 652, 435, 436, 437, 437, 591, 662, 662, 534, 690, + 404, 535, 168, 438, 503, 503, 503, 690, 690, 646, + 1066, 593, 593, 570, 570, 570, 163, 504, 437, 437, + 648, 644, 690, 592, 534, 689, 689, 535, 570, 570, + 570, 776, 505, 506, 507, 508, 1066, 633, 633, 509, + 732, 732, 510, 1066, 1066, 511, 1055, 512, 536, 536, + 536, 629, 778, 778, 630, 570, 570, 570, 537, 1055, + 537, 538, 539, 539, 604, 1055, 629, 644, 758, 630, + 1055, 775, 540, 573, 573, 573, 779, 570, 570, 570, + 651, 651, 651, 574, 604, 574, 575, 576, 576, 1055, + + 631, 779, 809, 571, 794, 794, 572, 577, 594, 594, + 594, 645, 645, 645, 699, 700, 700, 533, 533, 533, + 779, 595, 539, 539, 632, 571, 821, 821, 572, 779, + 533, 533, 533, 1066, 732, 732, 596, 597, 598, 599, + 604, 652, 1055, 600, 778, 778, 601, 644, 858, 602, + 808, 603, 634, 634, 634, 534, 660, 835, 535, 664, + 664, 664, 644, 858, 646, 635, 576, 576, 534, 1047, + 836, 535, 570, 570, 570, 661, 570, 570, 570, 886, + 636, 637, 638, 639, 691, 691, 691, 640, 845, 845, + 641, 1066, 1066, 642, 886, 643, 1047, 665, 857, 857, + + 666, 647, 647, 647, 533, 533, 533, 753, 754, 754, + 571, 687, 667, 572, 571, 858, 1047, 572, 770, 771, + 771, 688, 692, 886, 858, 693, 791, 792, 792, 1066, + 794, 794, 886, 533, 533, 533, 604, 694, 1047, 664, + 664, 664, 534, 743, 863, 535, 664, 664, 664, 709, + 664, 664, 664, 900, 648, 697, 697, 697, 644, 570, + 570, 570, 818, 819, 819, 698, 891, 698, 699, 700, + 700, 534, 873, 873, 535, 1047, 710, 711, 1047, 701, + 712, 570, 570, 570, 711, 713, 743, 712, 665, 1066, + 1066, 666, 667, 691, 691, 691, 952, 571, 904, 667, + + 572, 885, 885, 667, 725, 743, 691, 691, 691, 899, + 691, 691, 691, 904, 533, 533, 533, 1066, 1066, 571, + 903, 903, 572, 904, 726, 857, 857, 837, 837, 837, + 1010, 727, 904, 1007, 728, 780, 780, 780, 1066, 821, + 821, 1066, 845, 845, 727, 729, 694, 728, 692, 914, + 914, 693, 534, 1066, 1066, 535, 1007, 750, 928, 694, + 570, 570, 570, 694, 733, 733, 733, 928, 859, 859, + 859, 927, 927, 781, 885, 885, 782, 734, 700, 700, + 838, 887, 887, 887, 837, 837, 837, 1007, 783, 751, + 751, 751, 735, 736, 737, 738, 938, 938, 571, 739, + + 1007, 572, 740, 767, 1007, 741, 860, 742, 751, 751, + 751, 905, 905, 905, 928, 768, 768, 768, 752, 888, + 752, 753, 754, 754, 901, 901, 901, 589, 1007, 928, + 590, 1002, 755, 743, 780, 780, 780, 838, 789, 789, + 789, 953, 780, 780, 780, 1002, 534, 903, 903, 535, + 768, 768, 768, 629, 956, 956, 630, 866, 867, 867, + 769, 1002, 769, 770, 771, 771, 1066, 873, 873, 929, + 929, 929, 839, 1002, 772, 840, 589, 902, 1002, 590, + 839, 1066, 1066, 840, 816, 816, 816, 783, 571, 968, + 968, 572, 788, 788, 788, 783, 927, 927, 780, 780, + + 780, 1002, 752, 993, 752, 753, 754, 754, 859, 859, + 859, 859, 859, 859, 969, 989, 755, 789, 789, 789, + 969, 992, 629, 969, 989, 630, 743, 790, 989, 790, + 791, 792, 792, 841, 994, 969, 781, 976, 976, 782, + 989, 793, 795, 795, 795, 989, 589, 1066, 1066, 589, + 989, 783, 864, 864, 864, 796, 754, 754, 989, 859, + 859, 859, 988, 988, 887, 887, 887, 894, 895, 895, + 797, 798, 799, 800, 901, 901, 901, 801, 1066, 1066, + 802, 1001, 1001, 803, 989, 804, 815, 815, 815, 989, + 711, 968, 968, 712, 906, 969, 769, 860, 769, 770, + + 771, 771, 629, 969, 989, 667, 887, 887, 887, 969, + 772, 816, 816, 816, 905, 905, 905, 887, 887, 887, + 969, 817, 969, 817, 818, 819, 819, 902, 905, 905, + 905, 892, 892, 892, 1002, 820, 822, 822, 822, 911, + 912, 912, 1002, 1002, 629, 909, 909, 909, 969, 823, + 771, 771, 930, 1066, 1066, 888, 951, 1002, 859, 859, + 859, 1066, 914, 914, 824, 825, 826, 827, 950, 727, + 1007, 828, 728, 931, 829, 1006, 1006, 830, 928, 831, + 844, 844, 844, 711, 694, 1007, 712, 929, 929, 929, + 790, 928, 790, 791, 792, 792, 860, 954, 667, 970, + + 970, 970, 988, 988, 793, 846, 846, 846, 929, 929, + 929, 935, 936, 936, 928, 887, 887, 887, 847, 792, + 792, 1066, 938, 938, 1066, 956, 956, 933, 933, 933, + 1003, 1003, 1003, 848, 849, 850, 851, 971, 1007, 928, + 852, 1017, 1017, 853, 1001, 1001, 854, 1007, 855, 864, + 864, 864, 667, 888, 974, 990, 990, 990, 928, 865, + 928, 865, 866, 867, 867, 727, 1006, 1006, 728, 859, + 859, 859, 926, 868, 907, 970, 970, 970, 1034, 1034, + 694, 1066, 1066, 667, 604, 872, 872, 872, 904, 970, + 970, 970, 904, 991, 904, 817, 904, 817, 818, 819, + + 819, 1066, 976, 976, 1008, 1008, 1008, 860, 694, 820, + 874, 874, 874, 711, 1000, 997, 998, 998, 1046, 1046, + 887, 887, 887, 875, 819, 819, 904, 711, 667, 1047, + 1003, 1003, 1003, 904, 1047, 970, 970, 970, 876, 877, + 878, 879, 667, 1047, 1047, 880, 1066, 1066, 881, 1054, + 1054, 882, 898, 883, 892, 892, 892, 694, 888, 990, + 990, 990, 1055, 897, 893, 1005, 893, 894, 895, 895, + 1004, 1055, 1055, 971, 1014, 1015, 1015, 890, 896, 889, + 990, 990, 990, 667, 990, 990, 990, 1055, 667, 644, + 908, 908, 908, 995, 995, 995, 886, 727, 1046, 1046, + + 865, 886, 865, 866, 867, 867, 859, 859, 859, 1003, + 1003, 1003, 694, 886, 868, 909, 909, 909, 727, 1009, + 1054, 1054, 991, 886, 886, 910, 886, 910, 911, 912, + 912, 839, 871, 694, 840, 870, 869, 694, 862, 913, + 915, 915, 915, 861, 860, 858, 783, 858, 858, 1029, + 970, 970, 970, 916, 867, 867, 858, 887, 887, 887, + 858, 858, 667, 1008, 1008, 1008, 843, 834, 917, 918, + 919, 920, 1008, 1008, 1008, 921, 833, 814, 922, 813, + 812, 923, 811, 924, 932, 932, 932, 810, 971, 1030, + 990, 990, 990, 807, 893, 888, 893, 894, 895, 895, + + 1031, 806, 787, 667, 1012, 1012, 1012, 786, 896, 933, + 933, 933, 1066, 1017, 1017, 785, 694, 784, 779, 934, + 779, 934, 935, 936, 936, 694, 779, 779, 991, 1032, + 1048, 1048, 1048, 937, 939, 939, 939, 1066, 1034, 1034, + 779, 779, 839, 694, 777, 840, 774, 940, 895, 895, + 773, 766, 765, 1056, 1056, 1056, 764, 783, 1048, 1048, + 1048, 763, 941, 942, 943, 944, 762, 761, 1049, 945, + 760, 757, 946, 756, 749, 947, 748, 948, 955, 955, + 955, 747, 746, 783, 970, 970, 970, 745, 910, 744, + 910, 911, 912, 912, 731, 724, 839, 723, 1065, 1065, + + 1065, 722, 913, 957, 957, 957, 783, 721, 720, 719, + 718, 783, 717, 716, 715, 708, 958, 912, 912, 707, + 706, 705, 971, 704, 703, 702, 696, 695, 690, 1051, + 690, 959, 960, 961, 962, 690, 690, 667, 963, 1066, + 690, 964, 690, 686, 965, 685, 966, 972, 972, 972, + 972, 972, 972, 972, 972, 972, 972, 972, 972, 972, + 972, 972, 972, 972, 972, 973, 973, 973, 973, 973, + 973, 972, 972, 972, 972, 973, 973, 973, 973, 973, + 973, 973, 973, 973, 973, 973, 973, 973, 973, 973, + 973, 973, 973, 973, 973, 973, 973, 973, 973, 684, + + 972, 972, 972, 975, 975, 975, 683, 990, 990, 990, + 682, 681, 680, 934, 679, 934, 935, 936, 936, 678, + 677, 676, 675, 1048, 1048, 1048, 674, 937, 977, 977, + 977, 673, 672, 671, 670, 669, 668, 970, 970, 970, + 663, 978, 936, 936, 663, 991, 663, 663, 1056, 1056, + 1056, 663, 1053, 1048, 1048, 1048, 979, 980, 981, 982, + 694, 839, 663, 983, 659, 658, 984, 657, 656, 985, + 655, 986, 995, 995, 995, 971, 783, 1056, 1056, 1056, + 1058, 654, 996, 653, 996, 997, 998, 998, 1057, 650, + 667, 1049, 649, 628, 627, 626, 999, 625, 990, 990, + + 990, 783, 1061, 1061, 1061, 624, 783, 743, 1011, 1011, + 1011, 1048, 1048, 1048, 1062, 1062, 1062, 623, 996, 622, + 996, 997, 998, 998, 1048, 1048, 1048, 1048, 1048, 1048, + 783, 621, 999, 1012, 1012, 1012, 991, 620, 619, 618, + 711, 1059, 617, 1013, 616, 1013, 1014, 1015, 1015, 1049, + 1060, 694, 727, 615, 614, 667, 613, 1016, 1018, 1018, + 1018, 612, 1049, 611, 783, 1049, 610, 694, 609, 1063, + 1064, 1019, 998, 998, 608, 607, 606, 783, 605, 588, + 783, 585, 584, 583, 582, 581, 1020, 1021, 1022, 1023, + 580, 579, 578, 1024, 569, 569, 1025, 569, 569, 1026, + + 569, 1027, 1033, 1033, 1033, 569, 567, 566, 565, 564, + 563, 562, 1013, 561, 1013, 1014, 1015, 1015, 560, 559, + 558, 557, 556, 555, 554, 553, 1016, 1035, 1035, 1035, + 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, + 1036, 1015, 1015, 532, 532, 532, 532, 532, 532, 530, + 529, 528, 527, 526, 525, 1037, 1038, 1039, 1040, 524, + 523, 522, 1041, 521, 520, 1042, 519, 518, 1043, 517, + 1044, 1050, 1050, 1050, 501, 500, 499, 498, 497, 496, + 495, 790, 494, 790, 791, 792, 792, 493, 492, 491, + 490, 489, 488, 487, 486, 793, 485, 484, 483, 482, + + 481, 480, 479, 478, 477, 476, 475, 473, 473, 860, + 1052, 1052, 1052, 473, 473, 473, 473, 471, 455, 454, + 817, 453, 817, 818, 819, 819, 452, 451, 450, 449, + 448, 447, 444, 443, 820, 442, 441, 440, 439, 433, + 432, 431, 430, 429, 428, 424, 423, 422, 888, 1050, + 1050, 1050, 421, 420, 419, 418, 417, 416, 415, 790, + 414, 790, 791, 792, 792, 413, 412, 411, 410, 409, + 408, 407, 406, 793, 405, 392, 391, 385, 384, 383, + 382, 381, 380, 379, 378, 377, 374, 589, 1052, 1052, + 1052, 373, 370, 369, 368, 367, 366, 365, 817, 364, + + 817, 818, 819, 819, 363, 360, 359, 358, 357, 356, + 355, 354, 820, 353, 352, 351, 350, 349, 348, 347, + 343, 342, 341, 340, 339, 338, 629, 1061, 1061, 1061, + 332, 331, 330, 329, 328, 327, 326, 910, 325, 910, + 911, 912, 912, 324, 323, 322, 321, 320, 319, 318, + 317, 913, 316, 313, 312, 311, 310, 309, 306, 305, + 304, 300, 299, 298, 297, 971, 296, 295, 294, 293, + 292, 288, 283, 282, 281, 280, 279, 278, 277, 276, + 667, 1062, 1062, 1062, 275, 274, 273, 272, 271, 270, + 269, 934, 265, 934, 935, 936, 936, 219, 262, 261, + + 260, 259, 256, 255, 254, 937, 249, 248, 247, 246, + 242, 239, 238, 237, 236, 228, 227, 226, 225, 991, + 224, 223, 222, 221, 220, 219, 182, 1066, 215, 214, + 213, 212, 156, 209, 694, 1065, 1065, 1065, 208, 199, + 198, 195, 193, 190, 126, 1013, 126, 1013, 1014, 1015, + 1015, 174, 170, 169, 167, 156, 126, 123, 122, 1016, + 121, 118, 1066, 114, 114, 104, 104, 1066, 1066, 1066, + 1066, 1066, 1066, 1049, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 783, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + + 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 96, 96, 96, + + 96, 96, 96, 96, 96, 96, 96, 96, 96, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 119, 1066, 1066, 119, 1066, 119, 119, 119, 119, + 119, 120, 1066, 1066, 120, 120, 120, 120, 120, 120, + + 120, 124, 124, 1066, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 127, 1066, 1066, 1066, 127, 157, 1066, + 1066, 157, 157, 157, 157, 157, 157, 157, 1066, 157, + 159, 1066, 159, 159, 159, 160, 160, 171, 1066, 1066, + 171, 171, 171, 171, 171, 171, 171, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 1066, 172, 172, 173, + 173, 173, 173, 173, 173, 173, 173, 1066, 173, 173, + 173, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 176, 1066, 1066, 1066, 176, 177, 177, 218, 218, + 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + + 972, 972, 972, 972, 972, 972, 972, 972, 972, 972, + 1066, 972, 43, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066 + } ; + +static yyconst flex_int16_t yy_chk[2970] = + { 0, + 0, 0, 3, 4, 5, 6, 19, 5, 6, 7, + 7, 7, 8, 8, 8, 9, 9, 9, 11, 12, + 7, 11, 12, 8, 10, 10, 10, 20, 23, 19, + 1112, 24, 25, 26, 35, 36, 66, 66, 37, 125, + 125, 11, 12, 132, 38, 132, 1114, 220, 140, 220, + 20, 23, 3, 4, 24, 25, 26, 140, 35, 36, + 7, 37, 7, 8, 154, 8, 9, 38, 9, 41, + 42, 41, 42, 335, 335, 10, 154, 10, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, + + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, 17, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + + 21, 21, 27, 27, 27, 28, 28, 28, 136, 29, + 30, 206, 137, 33, 34, 137, 137, 75, 72, 139, + 72, 138, 136, 75, 139, 138, 206, 75, 142, 150, + 1115, 29, 30, 150, 159, 33, 34, 75, 192, 142, + 159, 193, 150, 192, 159, 211, 193, 666, 199, 666, + 211, 388, 388, 27, 159, 27, 28, 199, 28, 29, + 30, 29, 30, 33, 34, 33, 34, 68, 68, 72, + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + 68, 68, 68, 79, 79, 79, 80, 80, 80, 82, + 82, 82, 133, 133, 133, 134, 134, 134, 714, 144, + 144, 144, 394, 394, 146, 146, 146, 207, 714, 148, + 148, 148, 151, 151, 151, 134, 151, 155, 207, 155, + 161, 161, 161, 162, 162, 162, 1111, 82, 151, 471, + 151, 146, 194, 194, 79, 82, 471, 80, 144, 146, + 148, 164, 164, 164, 194, 133, 395, 395, 134, 178, + 178, 178, 144, 179, 179, 179, 201, 146, 216, 216, + + 216, 162, 148, 201, 222, 251, 222, 201, 155, 162, + 255, 161, 222, 251, 239, 304, 239, 241, 241, 164, + 251, 1110, 239, 255, 262, 262, 262, 164, 239, 304, + 288, 314, 314, 314, 241, 315, 315, 315, 334, 334, + 334, 360, 178, 288, 288, 360, 179, 318, 318, 318, + 693, 216, 693, 371, 371, 371, 436, 436, 360, 375, + 375, 375, 376, 376, 376, 387, 387, 387, 457, 457, + 391, 391, 391, 458, 458, 262, 281, 281, 281, 391, + 402, 315, 314, 393, 393, 393, 281, 397, 281, 281, + 281, 281, 376, 472, 472, 402, 397, 465, 318, 371, + + 281, 328, 328, 328, 404, 404, 404, 435, 435, 435, + 375, 328, 465, 328, 328, 328, 328, 445, 445, 445, + 460, 391, 439, 439, 439, 328, 333, 333, 333, 460, + 1109, 439, 456, 456, 456, 782, 333, 782, 333, 333, + 333, 333, 468, 468, 468, 503, 503, 445, 504, 504, + 333, 336, 336, 336, 506, 469, 469, 469, 531, 531, + 467, 467, 467, 506, 336, 336, 336, 473, 473, 473, + 474, 474, 474, 439, 502, 502, 502, 527, 1108, 336, + 336, 336, 336, 1107, 511, 602, 336, 538, 538, 336, + 1106, 527, 336, 468, 336, 367, 367, 367, 467, 511, + + 602, 467, 513, 513, 513, 367, 469, 367, 367, 367, + 367, 514, 514, 514, 515, 515, 515, 568, 568, 367, + 386, 386, 386, 532, 532, 532, 537, 537, 537, 1105, + 386, 1104, 386, 386, 386, 386, 574, 574, 574, 597, + 513, 575, 575, 513, 386, 389, 389, 389, 597, 582, + 582, 582, 594, 594, 533, 533, 533, 1103, 389, 389, + 389, 532, 514, 1102, 532, 515, 578, 578, 578, 1101, + 534, 534, 534, 389, 389, 389, 389, 579, 579, 579, + 389, 595, 595, 389, 634, 634, 389, 1100, 389, 434, + 434, 434, 533, 635, 635, 533, 535, 535, 535, 434, + + 582, 434, 434, 434, 434, 534, 662, 662, 534, 637, + 1099, 534, 1091, 434, 437, 437, 437, 642, 637, 578, + 593, 593, 593, 569, 569, 569, 1090, 437, 437, 437, + 579, 730, 642, 535, 535, 689, 689, 535, 570, 570, + 570, 730, 437, 437, 437, 437, 633, 633, 633, 437, + 699, 699, 437, 733, 733, 437, 1044, 437, 470, 470, + 470, 569, 734, 734, 569, 571, 571, 571, 470, 1042, + 470, 470, 470, 470, 713, 1041, 570, 729, 713, 570, + 1040, 729, 470, 516, 516, 516, 741, 572, 572, 572, + 651, 651, 651, 516, 759, 516, 516, 516, 516, 1039, + + 571, 741, 759, 571, 753, 753, 571, 516, 539, 539, + 539, 645, 645, 645, 698, 698, 698, 591, 591, 591, + 736, 539, 539, 539, 572, 572, 770, 770, 572, 736, + 592, 592, 592, 732, 732, 732, 539, 539, 539, 539, + 758, 651, 1037, 539, 778, 778, 539, 775, 803, 539, + 758, 539, 576, 576, 576, 591, 591, 775, 591, 604, + 604, 604, 776, 803, 645, 576, 576, 576, 592, 1027, + 776, 592, 631, 631, 631, 592, 632, 632, 632, 830, + 576, 576, 576, 576, 644, 644, 644, 576, 791, 791, + 576, 795, 795, 576, 830, 576, 1025, 604, 796, 796, + + 604, 647, 647, 647, 660, 660, 660, 752, 752, 752, + 631, 631, 604, 631, 632, 798, 1024, 632, 769, 769, + 769, 632, 644, 825, 798, 644, 790, 790, 790, 794, + 794, 794, 825, 661, 661, 661, 808, 644, 1023, 663, + 663, 663, 660, 842, 808, 660, 664, 664, 664, 660, + 665, 665, 665, 842, 647, 652, 652, 652, 835, 687, + 687, 687, 817, 817, 817, 652, 835, 652, 652, 652, + 652, 661, 818, 818, 661, 1022, 661, 663, 1020, 652, + 663, 688, 688, 688, 664, 665, 899, 664, 665, 822, + 822, 665, 663, 690, 690, 690, 899, 687, 854, 664, + + 687, 823, 823, 665, 687, 841, 691, 691, 691, 841, + 692, 692, 692, 854, 709, 709, 709, 846, 846, 688, + 847, 847, 688, 849, 688, 857, 857, 777, 777, 777, + 992, 690, 849, 986, 690, 743, 743, 743, 821, 821, + 821, 845, 845, 845, 691, 692, 690, 691, 692, 866, + 866, 692, 709, 874, 874, 709, 984, 709, 877, 691, + 725, 725, 725, 692, 700, 700, 700, 877, 805, 805, + 805, 875, 875, 743, 885, 885, 743, 700, 700, 700, + 777, 832, 832, 832, 837, 837, 837, 983, 743, 751, + 751, 751, 700, 700, 700, 700, 894, 894, 725, 700, + + 982, 725, 700, 725, 981, 700, 805, 700, 710, 710, + 710, 856, 856, 856, 882, 768, 768, 768, 710, 832, + 710, 710, 710, 710, 843, 843, 843, 751, 979, 882, + 751, 966, 710, 900, 779, 779, 779, 837, 789, 789, + 789, 900, 780, 780, 780, 964, 710, 903, 903, 710, + 726, 726, 726, 768, 911, 911, 768, 865, 865, 865, + 726, 963, 726, 726, 726, 726, 873, 873, 873, 884, + 884, 884, 779, 962, 726, 779, 789, 843, 961, 789, + 780, 915, 915, 780, 816, 816, 816, 779, 726, 916, + 916, 726, 749, 749, 749, 780, 927, 927, 781, 781, + + 781, 959, 749, 951, 749, 749, 749, 749, 858, 858, + 858, 859, 859, 859, 918, 942, 749, 750, 750, 750, + 923, 950, 816, 918, 942, 816, 952, 750, 948, 750, + 750, 750, 750, 781, 952, 923, 781, 935, 935, 781, + 946, 750, 754, 754, 754, 945, 858, 939, 939, 859, + 944, 781, 864, 864, 864, 754, 754, 754, 943, 860, + 860, 860, 940, 940, 886, 886, 886, 893, 893, 893, + 754, 754, 754, 754, 901, 901, 901, 754, 957, 957, + 754, 958, 958, 754, 941, 754, 766, 766, 766, 947, + 864, 968, 968, 864, 860, 924, 766, 860, 766, 766, + + 766, 766, 886, 922, 947, 864, 887, 887, 887, 921, + 766, 767, 767, 767, 904, 904, 904, 888, 888, 888, + 920, 767, 919, 767, 767, 767, 767, 901, 905, 905, + 905, 892, 892, 892, 960, 767, 771, 771, 771, 910, + 910, 910, 965, 960, 887, 909, 909, 909, 917, 771, + 771, 771, 888, 977, 977, 888, 898, 965, 906, 906, + 906, 914, 914, 914, 771, 771, 771, 771, 897, 892, + 985, 771, 892, 889, 771, 978, 978, 771, 883, 771, + 787, 787, 787, 909, 892, 985, 909, 928, 928, 928, + 787, 881, 787, 787, 787, 787, 906, 906, 909, 925, + + 925, 925, 988, 988, 787, 792, 792, 792, 929, 929, + 929, 934, 934, 934, 880, 930, 930, 930, 792, 792, + 792, 938, 938, 938, 956, 956, 956, 933, 933, 933, + 967, 967, 967, 792, 792, 792, 792, 925, 980, 879, + 792, 997, 997, 792, 1001, 1001, 792, 980, 792, 809, + 809, 809, 925, 930, 930, 949, 949, 949, 878, 809, + 876, 809, 809, 809, 809, 933, 1006, 1006, 933, 954, + 954, 954, 869, 809, 861, 969, 969, 969, 1014, 1014, + 933, 1018, 1018, 967, 809, 814, 814, 814, 855, 970, + 970, 970, 853, 949, 852, 814, 851, 814, 814, 814, + + 814, 976, 976, 976, 987, 987, 987, 954, 949, 814, + 819, 819, 819, 969, 954, 996, 996, 996, 1019, 1019, + 974, 974, 974, 819, 819, 819, 850, 970, 969, 1026, + 1002, 1002, 1002, 848, 1021, 971, 971, 971, 819, 819, + 819, 819, 970, 1021, 1026, 819, 1035, 1035, 819, 1036, + 1036, 819, 840, 819, 836, 836, 836, 987, 974, 989, + 989, 989, 1038, 839, 836, 974, 836, 836, 836, 836, + 971, 1038, 1043, 971, 1013, 1013, 1013, 834, 836, 833, + 990, 990, 990, 1002, 991, 991, 991, 1043, 971, 836, + 862, 862, 862, 995, 995, 995, 831, 989, 1046, 1046, + + 862, 829, 862, 862, 862, 862, 1000, 1000, 1000, 1003, + 1003, 1003, 989, 828, 862, 863, 863, 863, 990, 991, + 1054, 1054, 991, 827, 826, 863, 824, 863, 863, 863, + 863, 995, 812, 990, 995, 811, 810, 991, 807, 863, + 867, 867, 867, 806, 1000, 804, 995, 802, 801, 1000, + 1004, 1004, 1004, 867, 867, 867, 800, 1005, 1005, 1005, + 799, 797, 1003, 1007, 1007, 1007, 784, 774, 867, 867, + 867, 867, 1008, 1008, 1008, 867, 773, 765, 867, 764, + 763, 867, 761, 867, 890, 890, 890, 760, 1004, 1004, + 1009, 1009, 1009, 757, 890, 1005, 890, 890, 890, 890, + + 1005, 756, 748, 1004, 1012, 1012, 1012, 747, 890, 891, + 891, 891, 1017, 1017, 1017, 746, 1007, 744, 742, 891, + 740, 891, 891, 891, 891, 1008, 739, 738, 1009, 1009, + 1028, 1028, 1028, 891, 895, 895, 895, 1034, 1034, 1034, + 737, 735, 1012, 1009, 731, 1012, 728, 895, 895, 895, + 727, 724, 723, 1045, 1045, 1045, 722, 1012, 1047, 1047, + 1047, 721, 895, 895, 895, 895, 718, 717, 1028, 895, + 715, 712, 895, 711, 708, 895, 707, 895, 907, 907, + 907, 706, 705, 1028, 1030, 1030, 1030, 703, 907, 702, + 907, 907, 907, 907, 695, 686, 1047, 685, 1065, 1065, + + 1065, 683, 907, 912, 912, 912, 1045, 682, 681, 679, + 675, 1047, 671, 669, 668, 659, 912, 912, 912, 658, + 657, 656, 1030, 655, 654, 653, 650, 649, 643, 1030, + 641, 912, 912, 912, 912, 640, 639, 1030, 912, 1065, + 638, 912, 636, 630, 912, 629, 912, 926, 926, 926, + 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, + 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, + 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, + 926, 926, 926, 926, 926, 926, 926, 926, 926, 926, + 926, 926, 926, 926, 926, 926, 926, 926, 926, 628, + + 926, 926, 926, 931, 931, 931, 626, 1032, 1032, 1032, + 625, 624, 623, 931, 622, 931, 931, 931, 931, 621, + 619, 617, 616, 1048, 1048, 1048, 615, 931, 936, 936, + 936, 614, 611, 609, 608, 606, 605, 1051, 1051, 1051, + 603, 936, 936, 936, 601, 1032, 600, 599, 1055, 1055, + 1055, 598, 1032, 1049, 1049, 1049, 936, 936, 936, 936, + 1032, 1048, 596, 936, 590, 589, 936, 587, 586, 936, + 585, 936, 953, 953, 953, 1051, 1048, 1056, 1056, 1056, + 1051, 584, 953, 583, 953, 953, 953, 953, 1049, 581, + 1051, 1049, 580, 567, 566, 565, 953, 564, 1053, 1053, + + 1053, 1055, 1061, 1061, 1061, 563, 1049, 953, 993, 993, + 993, 1057, 1057, 1057, 1062, 1062, 1062, 562, 993, 561, + 993, 993, 993, 993, 1060, 1060, 1060, 1063, 1063, 1063, + 1056, 560, 993, 994, 994, 994, 1053, 559, 558, 555, + 1061, 1053, 554, 994, 553, 994, 994, 994, 994, 1057, + 1057, 1053, 1062, 552, 550, 1061, 549, 994, 998, 998, + 998, 548, 1060, 547, 1057, 1063, 546, 1062, 545, 1060, + 1063, 998, 998, 998, 544, 543, 542, 1060, 541, 528, + 1063, 526, 523, 522, 521, 520, 998, 998, 998, 998, + 519, 518, 517, 998, 512, 510, 998, 509, 508, 998, + + 507, 998, 1010, 1010, 1010, 505, 501, 500, 499, 498, + 497, 496, 1010, 495, 1010, 1010, 1010, 1010, 494, 493, + 492, 491, 490, 488, 487, 486, 1010, 1015, 1015, 1015, + 485, 484, 483, 482, 480, 479, 478, 477, 476, 475, + 1015, 1015, 1015, 466, 464, 463, 462, 461, 459, 455, + 454, 453, 452, 451, 450, 1015, 1015, 1015, 1015, 449, + 448, 446, 1015, 444, 443, 1015, 442, 441, 1015, 440, + 1015, 1029, 1029, 1029, 433, 431, 430, 429, 428, 427, + 426, 1029, 425, 1029, 1029, 1029, 1029, 424, 423, 422, + 421, 420, 419, 418, 417, 1029, 416, 415, 413, 412, + + 411, 410, 409, 408, 407, 406, 405, 403, 401, 1029, + 1031, 1031, 1031, 400, 399, 398, 396, 392, 385, 384, + 1031, 383, 1031, 1031, 1031, 1031, 382, 381, 380, 379, + 378, 377, 374, 373, 1031, 372, 370, 369, 368, 366, + 365, 364, 363, 362, 361, 359, 358, 357, 1031, 1050, + 1050, 1050, 356, 355, 354, 353, 352, 351, 350, 1050, + 348, 1050, 1050, 1050, 1050, 347, 346, 345, 344, 343, + 342, 341, 340, 1050, 339, 330, 329, 327, 326, 325, + 324, 323, 322, 321, 320, 319, 317, 1050, 1052, 1052, + 1052, 316, 313, 312, 311, 310, 308, 307, 1052, 306, + + 1052, 1052, 1052, 1052, 305, 303, 302, 301, 300, 299, + 297, 296, 1052, 295, 294, 293, 292, 291, 290, 289, + 287, 286, 285, 284, 283, 282, 1052, 1058, 1058, 1058, + 280, 279, 278, 277, 276, 275, 274, 1058, 273, 1058, + 1058, 1058, 1058, 272, 271, 270, 268, 267, 266, 265, + 264, 1058, 263, 260, 259, 258, 257, 256, 254, 253, + 252, 250, 249, 248, 247, 1058, 246, 245, 244, 243, + 242, 240, 238, 237, 236, 235, 234, 233, 232, 231, + 1058, 1059, 1059, 1059, 230, 229, 228, 226, 225, 224, + 223, 1059, 221, 1059, 1059, 1059, 1059, 218, 215, 214, + + 213, 212, 210, 209, 208, 1059, 205, 204, 203, 202, + 200, 198, 197, 196, 195, 191, 190, 189, 188, 1059, + 187, 186, 185, 184, 183, 182, 181, 176, 174, 169, + 166, 165, 156, 153, 1059, 1064, 1064, 1064, 152, 149, + 147, 145, 143, 141, 127, 1064, 126, 1064, 1064, 1064, + 1064, 113, 95, 92, 85, 77, 67, 64, 63, 1064, + 61, 50, 43, 40, 39, 32, 31, 0, 0, 0, + 0, 0, 0, 1064, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 1064, 1067, + 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, + + 1067, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, + 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, 1069, 1069, + 1069, 1069, 1069, 1069, 1069, 1070, 1070, 1070, 1070, 1070, + 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1071, 1071, 1071, + 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1072, + 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, + 1072, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, + 1073, 1073, 1073, 1074, 1074, 1074, 1074, 1074, 1074, 1074, + 1074, 1074, 1074, 1074, 1074, 1075, 1075, 1075, 1075, 1075, + 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1076, 1076, 1076, + + 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1077, + 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, + 1077, 1078, 1078, 1078, 1078, 1078, 1078, 1078, 1078, 1078, + 1078, 1078, 1078, 1079, 1079, 1079, 1079, 1079, 1079, 1079, + 1079, 1079, 1079, 1079, 1079, 1080, 1080, 1080, 1080, 1080, + 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1081, 1081, 1081, + 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1082, + 1082, 1082, 1082, 1082, 1082, 1082, 1082, 1082, 1082, 1082, + 1082, 1083, 0, 0, 1083, 0, 1083, 1083, 1083, 1083, + 1083, 1084, 0, 0, 1084, 1084, 1084, 1084, 1084, 1084, + + 1084, 1085, 1085, 0, 1085, 1085, 1085, 1085, 1085, 1085, + 1085, 1085, 1085, 1086, 0, 0, 0, 1086, 1087, 0, + 0, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 0, 1087, + 1088, 0, 1088, 1088, 1088, 1089, 1089, 1092, 0, 0, + 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1093, 1093, 1093, + 1093, 1093, 1093, 1093, 1093, 1093, 0, 1093, 1093, 1094, + 1094, 1094, 1094, 1094, 1094, 1094, 1094, 0, 1094, 1094, + 1094, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, + 1095, 1096, 0, 0, 0, 1096, 1097, 1097, 1098, 1098, + 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, + + 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, + 0, 1113, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, + 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066 + } ; + +static yy_state_type yy_last_accepting_state; +static char *yy_last_accepting_cpos; + +extern int yy_flex_debug; +int yy_flex_debug = 0; + +/* The intent behind this definition is that it'll catch + * any uses of REJECT which flex missed. + */ +#define REJECT reject_used_but_not_detected +#define yymore() yymore_used_but_not_detected +#define YY_MORE_ADJ 0 +#define YY_RESTORE_YY_MORE_OFFSET +char *yytext; +#line 1 "detex.l" + +#line 95 "detex.l" +#undef IGNORE + +#define LaBEGIN if (fLatex) BEGIN +#define IGNORE if (fSpace && !fWord) putchar(' ') +#define SPACE if (!fWord) putchar(' ') +#define NEWLINE if (!fWord) putchar('\n') +#define LATEX fLatex=!fForcetex +#define KILLARGS(x) cArgs=x; LaBEGIN LaMacro +#define STRIPARGS(x) cArgs=x; LaBEGIN LaMacro2 +#define CITE(x) if (fLatex && !fCite) KILLARGS(x) + +void AddInclude(char *sbFile); +void ErrorExit(const char *sb1); +void IncludeFile(char *sbFile); +void InputFile(char *sbFile); +void SetEnvIgnore(const char *sbEnvList); +#ifndef KPATHSEA +void SetInputPaths(void); +#endif +void Warning(const char *sb1, const char *sb2); +int BeginEnv(const char *sbEnv); +int EndEnv(const char *sbEnv); +int InList(char *sbFile); +int SeparateList(char *sbList, char *rgsbList[] ,char chSep, int csbMax); +FILE *TexOpen(char *sbFile); +char *SafeMalloc(int cch, const char *sbMessage); +#ifndef KPATHSEA +char *getenv(); +#ifndef NO_MALLOC_DECL +char *malloc(); +#endif +#ifdef OS2 +void yyless(int); +void OS2UsageExit(void); +#endif +#endif /* KPATHSEA */ + +char *rgsbEnvIgnore[MAXENVS]; /* list of environments ignored */ +char *rgsbIncList[MAXINCLIST]; /* list of includeonly files */ +char *rgsbInputPaths[MAXINPUTPATHS]; /* list of input paths in order */ +char sbCurrentEnv[CCHMAXENV]; /* current environment being ignored */ +char *sbProgName; /* name we were invoked with */ +#ifndef NOFILE /* might be defined in <sys/param.h> */ +#define NOFILE 256 +#endif +FILE *rgfp[NOFILE+1]; /* stack of input/include files */ +int cfp = 0; /* count of files in stack */ +int cOpenBrace = 0; /* count of `{' in <LaMacro> and <LaMacro2> */ +int cArgs = 0; /* argument connt in <LaArgs> */ +int csbEnvIgnore; /* count of environments ignored */ +int csbIncList = 0; /* count of includeonly files */ +int csbInputPaths; /* count of input paths */ +int fLatex = 0; /* flag to indicated delatex */ +int fWord = 0; /* flag for -w option */ +int fFollow = 1; /* flag to follow input/include */ +int fCite = 0; /* flag to echo \cite and \ref args */ +int fSpace = 0; /* flag to replace \cs with space */ +int fForcetex = 0; /* flag to inhibit latex mode */ + +#ifdef FLEX_SCANNER +/* flex has contexts for buffers that need to be switched when file changes + * otherwise output contains imported files in reverse order. Weird, but + * true. + */ +YY_BUFFER_STATE rgsb[NOFILE + 1]; /* flex context stack */ +int csb = 0; /* depth of flex context stack */ +#endif /* FLEX_SCANNER */ + + + + + +#line 1631 "detex.c" + +#define INITIAL 0 +#define Define 1 +#define Display 2 +#define IncludeOnly 3 +#define Input 4 +#define Math 5 +#define Normal 6 +#define Control 7 +#define LaBegin 8 +#define LaDisplay 9 +#define LaEnd 10 +#define LaEnv 11 +#define LaFormula 12 +#define LaInclude 13 +#define LaMacro 14 +#define LaOptArg 15 +#define LaMacro2 16 +#define LaOptArg2 17 +#define LaVerbatim 18 +#define LaBreak 19 +#define LaPicture 20 + +#ifndef YY_NO_UNISTD_H +/* Special case for "unistd.h", since it is non-ANSI. We include it way + * down here because we want the user's section 1 to have been scanned first. + * The user has a chance to override it with an option. + */ +#include <unistd.h> +#endif + +#ifndef YY_EXTRA_TYPE +#define YY_EXTRA_TYPE void * +#endif + +static int yy_init_globals (void ); + +/* Accessor methods to globals. + These are made visible to non-reentrant scanners for convenience. */ + +int yylex_destroy (void ); + +int yyget_debug (void ); + +void yyset_debug (int debug_flag ); + +YY_EXTRA_TYPE yyget_extra (void ); + +void yyset_extra (YY_EXTRA_TYPE user_defined ); + +FILE *yyget_in (void ); + +void yyset_in (FILE * in_str ); + +FILE *yyget_out (void ); + +void yyset_out (FILE * out_str ); + +yy_size_t yyget_leng (void ); + +char *yyget_text (void ); + +int yyget_lineno (void ); + +void yyset_lineno (int line_number ); + +/* Macros after this point can all be overridden by user definitions in + * section 1. + */ + +#ifndef YY_SKIP_YYWRAP +#ifdef __cplusplus +extern "C" int yywrap (void ); +#else +extern int yywrap (void ); +#endif +#endif + + static void yyunput (int c,char *buf_ptr ); + +#ifndef yytext_ptr +static void yy_flex_strncpy (char *,yyconst char *,int ); +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen (yyconst char * ); +#endif + +#ifndef YY_NO_INPUT + +#ifdef __cplusplus +static int yyinput (void ); +#else +static int input (void ); +#endif + +#endif + +/* Amount of stuff to slurp up with each read. */ +#ifndef YY_READ_BUF_SIZE +#define YY_READ_BUF_SIZE 8192 +#endif + +/* Copy whatever the last rule matched to the standard output. */ +#ifndef ECHO +/* This used to be an fputs(), but since the string might contain NUL's, + * we now use fwrite(). + */ +#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) +#endif + +/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, + * is returned in "result". + */ +#ifndef YY_INPUT +#define YY_INPUT(buf,result,max_size) \ + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ + { \ + int c = '*'; \ + size_t n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else \ + { \ + errno=0; \ + while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ + { \ + if( errno != EINTR) \ + { \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + break; \ + } \ + errno=0; \ + clearerr(yyin); \ + } \ + }\ +\ + +#endif + +/* No semi-colon after return; correct usage is to write "yyterminate();" - + * we don't want an extra ';' after the "return" because that will cause + * some compilers to complain about unreachable statements. + */ +#ifndef yyterminate +#define yyterminate() return YY_NULL +#endif + +/* Number of entries by which start-condition stack grows. */ +#ifndef YY_START_STACK_INCR +#define YY_START_STACK_INCR 25 +#endif + +/* Report a fatal error. */ +#ifndef YY_FATAL_ERROR +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) +#endif + +/* end tables serialization structures and prototypes */ + +/* Default declaration of generated scanner - a define so the user can + * easily add parameters. + */ +#ifndef YY_DECL +#define YY_DECL_IS_OURS 1 + +extern int yylex (void); + +#define YY_DECL int yylex (void) +#endif /* !YY_DECL */ + +/* Code executed at the beginning of each rule, after yytext and yyleng + * have been set up. + */ +#ifndef YY_USER_ACTION +#define YY_USER_ACTION +#endif + +/* Code executed at the end of each rule. */ +#ifndef YY_BREAK +#define YY_BREAK break; +#endif + +#define YY_RULE_SETUP \ + YY_USER_ACTION + +/** The main scanner function which does all the work. + */ +YY_DECL +{ + register yy_state_type yy_current_state; + register char *yy_cp, *yy_bp; + register int yy_act; + + if ( !(yy_init) ) + { + (yy_init) = 1; + +#ifdef YY_USER_INIT + YY_USER_INIT; +#endif + + if ( ! (yy_start) ) + (yy_start) = 1; /* first start state */ + + if ( ! yyin ) + yyin = stdin; + + if ( ! yyout ) + yyout = stdout; + + if ( ! YY_CURRENT_BUFFER ) { + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer(yyin,YY_BUF_SIZE ); + } + + yy_load_buffer_state( ); + } + + { +#line 182 "detex.l" + +#line 1862 "detex.c" + + while ( 1 ) /* loops until end-of-file is reached */ + { + yy_cp = (yy_c_buf_p); + + /* Support of yytext. */ + *yy_cp = (yy_hold_char); + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = (yy_start); +yy_match: + do + { + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 1067 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + ++yy_cp; + } + while ( yy_current_state != 1066 ); + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + + YY_DO_BEFORE_ACTION; + +do_action: /* This label is used only to access EOF actions. */ + + switch ( yy_act ) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = (yy_hold_char); + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + goto yy_find_action; + +case 1: +YY_RULE_SETUP +#line 183 "detex.l" +/* ignore comments */ ; + YY_BREAK +case 2: +/* rule 2 can match eol */ +YY_RULE_SETUP +#line 185 "detex.l" +{LATEX; IGNORE;} + YY_BREAK +case 3: +YY_RULE_SETUP +#line 187 "detex.l" +/* environment start */ {LaBEGIN LaBegin; IGNORE;} + YY_BREAK +case 4: +/* rule 4 can match eol */ +YY_RULE_SETUP +#line 189 "detex.l" +{ if (BeginEnv("verbatim")) + BEGIN LaEnv; + else + BEGIN LaVerbatim; + IGNORE; + } + YY_BREAK +case 5: +/* rule 5 can match eol */ +YY_RULE_SETUP +#line 196 "detex.l" +/* verbatim mode */ {BEGIN Normal; IGNORE;} + YY_BREAK +case 6: +/* rule 6 can match eol */ +YY_RULE_SETUP +#line 197 "detex.l" +ECHO; + YY_BREAK +case 7: +YY_RULE_SETUP +#line 198 "detex.l" +ECHO; + YY_BREAK +case 8: +/* rule 8 can match eol */ +YY_RULE_SETUP +#line 200 "detex.l" +{ KILLARGS(1); + if (BeginEnv("minpage")) + BEGIN LaEnv; + else + BEGIN Normal; + IGNORE; + } + YY_BREAK +case 9: +YY_RULE_SETUP +#line 208 "detex.l" +{ if (BeginEnv(yytext)) + BEGIN LaEnv; + else + BEGIN Normal; + IGNORE; + } + YY_BREAK +case 10: +/* rule 10 can match eol */ +YY_RULE_SETUP +#line 214 "detex.l" +NEWLINE; + YY_BREAK +case 11: +YY_RULE_SETUP +#line 215 "detex.l" +; + YY_BREAK +case 12: +YY_RULE_SETUP +#line 217 "detex.l" +/* absorb some environments */ {LaBEGIN LaEnd; IGNORE;} + YY_BREAK +case 13: +/* rule 13 can match eol */ +YY_RULE_SETUP +#line 218 "detex.l" +NEWLINE; + YY_BREAK +case 14: +YY_RULE_SETUP +#line 219 "detex.l" +; + YY_BREAK +case 15: +YY_RULE_SETUP +#line 221 "detex.l" +/* end environment */ { if (EndEnv(yytext)) + BEGIN Normal; + IGNORE; + } + YY_BREAK +case 16: +YY_RULE_SETUP +#line 225 "detex.l" +{BEGIN LaEnv; IGNORE;} + YY_BREAK +case 17: +/* rule 17 can match eol */ +YY_RULE_SETUP +#line 226 "detex.l" +NEWLINE; + YY_BREAK +case 18: +YY_RULE_SETUP +#line 227 "detex.l" +; + YY_BREAK +case 19: +/* rule 19 can match eol */ +YY_RULE_SETUP +#line 229 "detex.l" +; + YY_BREAK +case 20: +/* rule 20 can match eol */ +YY_RULE_SETUP +#line 230 "detex.l" +; + YY_BREAK +case 21: +/* rule 21 can match eol */ +YY_RULE_SETUP +#line 231 "detex.l" +; + YY_BREAK +case 22: +/* rule 22 can match eol */ +YY_RULE_SETUP +#line 232 "detex.l" +; + YY_BREAK +case 23: +/* rule 23 can match eol */ +YY_RULE_SETUP +#line 233 "detex.l" +; + YY_BREAK +case 24: +/* rule 24 can match eol */ +YY_RULE_SETUP +#line 234 "detex.l" +; + YY_BREAK +case 25: +YY_RULE_SETUP +#line 236 "detex.l" +{ KILLARGS(1); } + YY_BREAK +case 26: +YY_RULE_SETUP +#line 237 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 27: +YY_RULE_SETUP +#line 238 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 28: +YY_RULE_SETUP +#line 239 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 29: +YY_RULE_SETUP +#line 240 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 30: +YY_RULE_SETUP +#line 241 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 31: +YY_RULE_SETUP +#line 242 "detex.l" +{ KILLARGS(1); } + YY_BREAK +case 32: +YY_RULE_SETUP +#line 243 "detex.l" +{ KILLARGS(1); } + YY_BREAK +case 33: +YY_RULE_SETUP +#line 244 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 34: +YY_RULE_SETUP +#line 245 "detex.l" +{ KILLARGS(1); } + YY_BREAK +case 35: +YY_RULE_SETUP +#line 246 "detex.l" +{ STRIPARGS(2); } + YY_BREAK +case 36: +YY_RULE_SETUP +#line 247 "detex.l" +{ KILLARGS(1); } + YY_BREAK +case 37: +YY_RULE_SETUP +#line 248 "detex.l" +{ STRIPARGS(2); } + YY_BREAK +case 38: +YY_RULE_SETUP +#line 249 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 39: +YY_RULE_SETUP +#line 250 "detex.l" +; + YY_BREAK +case 40: +YY_RULE_SETUP +#line 251 "detex.l" +{ KILLARGS(1); } + YY_BREAK +case 41: +/* rule 41 can match eol */ +YY_RULE_SETUP +#line 252 "detex.l" +{ LaBEGIN LaPicture; } + YY_BREAK +case 42: +YY_RULE_SETUP +#line 254 "detex.l" +; + YY_BREAK +case 43: +/* rule 43 can match eol */ +YY_RULE_SETUP +#line 255 "detex.l" +{ printf("<Picture %s>", yytext); } + YY_BREAK +case 44: +YY_RULE_SETUP +#line 256 "detex.l" +BEGIN Normal; + YY_BREAK +case 45: +YY_RULE_SETUP +#line 258 "detex.l" +{ KILLARGS(3); } + YY_BREAK +case 46: +YY_RULE_SETUP +#line 259 "detex.l" +{ KILLARGS(1); } + YY_BREAK +case 47: +YY_RULE_SETUP +#line 260 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 48: +YY_RULE_SETUP +#line 261 "detex.l" +{ KILLARGS(2); } + YY_BREAK +case 49: +YY_RULE_SETUP +#line 262 "detex.l" +{ KILLARGS(3); } + YY_BREAK +case 50: +YY_RULE_SETUP +#line 263 "detex.l" +{ KILLARGS(1); } + YY_BREAK +case 51: +YY_RULE_SETUP +#line 264 "detex.l" +{ STRIPARGS(1); } + YY_BREAK +case 52: +YY_RULE_SETUP +#line 266 "detex.l" +; + YY_BREAK +case 53: +YY_RULE_SETUP +#line 267 "detex.l" +; + YY_BREAK +case 54: +YY_RULE_SETUP +#line 268 "detex.l" +; + YY_BREAK +case 55: +YY_RULE_SETUP +#line 269 "detex.l" +; + YY_BREAK +case 56: +YY_RULE_SETUP +#line 270 "detex.l" +; + YY_BREAK +case 57: +YY_RULE_SETUP +#line 271 "detex.l" +; + YY_BREAK +case 58: +YY_RULE_SETUP +#line 273 "detex.l" +/* ignore args */ {KILLARGS(1); IGNORE;} + YY_BREAK +case 59: +YY_RULE_SETUP +#line 274 "detex.l" +/* of these \cs */ {KILLARGS(1); IGNORE;} + YY_BREAK +case 60: +YY_RULE_SETUP +#line 275 "detex.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 61: +YY_RULE_SETUP +#line 276 "detex.l" +{CITE(1); IGNORE;} + YY_BREAK +case 62: +YY_RULE_SETUP +#line 277 "detex.l" +{LATEX; KILLARGS(1); IGNORE;} + YY_BREAK +case 63: +YY_RULE_SETUP +#line 278 "detex.l" +{LATEX; KILLARGS(1); IGNORE;} + YY_BREAK +case 64: +YY_RULE_SETUP +#line 279 "detex.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 65: +YY_RULE_SETUP +#line 280 "detex.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 66: +YY_RULE_SETUP +#line 281 "detex.l" +{KILLARGS(1); SPACE;} + YY_BREAK +case 67: +YY_RULE_SETUP +#line 282 "detex.l" +{KILLARGS(1); SPACE;} + YY_BREAK +case 68: +YY_RULE_SETUP +#line 283 "detex.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 69: +YY_RULE_SETUP +#line 284 "detex.l" +{CITE(1); IGNORE;} + YY_BREAK +case 70: +YY_RULE_SETUP +#line 285 "detex.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 71: +YY_RULE_SETUP +#line 286 "detex.l" +{CITE(1); IGNORE;} + YY_BREAK +case 72: +YY_RULE_SETUP +#line 287 "detex.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 73: +YY_RULE_SETUP +#line 288 "detex.l" +/* ignore \verb<ch>...<ch> */ { if (fLatex) { + char verbchar, c; + verbchar = input(); + while ((c = input()) != verbchar) + if (c == '\n') + NEWLINE; + } + IGNORE; + } + YY_BREAK +case 74: +YY_RULE_SETUP +#line 298 "detex.l" +{ LATEX; KILLARGS(2); } + YY_BREAK +case 75: +YY_RULE_SETUP +#line 299 "detex.l" +{ LATEX; KILLARGS(2); } + YY_BREAK +case 76: +YY_RULE_SETUP +#line 300 "detex.l" +{ LATEX; KILLARGS(3); } + YY_BREAK +case 77: +YY_RULE_SETUP +#line 302 "detex.l" +/* ignore def begin */ {BEGIN Define; IGNORE;} + YY_BREAK +case 78: +YY_RULE_SETUP +#line 303 "detex.l" +BEGIN Normal; + YY_BREAK +case 79: +/* rule 79 can match eol */ +YY_RULE_SETUP +#line 304 "detex.l" +NEWLINE; + YY_BREAK +case 80: +YY_RULE_SETUP +#line 305 "detex.l" +; + YY_BREAK +case 81: +YY_RULE_SETUP +#line 307 "detex.l" +/* formula mode */ {LaBEGIN LaFormula; IGNORE;} + YY_BREAK +case 82: +YY_RULE_SETUP +#line 308 "detex.l" +BEGIN Normal; + YY_BREAK +case 83: +/* rule 83 can match eol */ +YY_RULE_SETUP +#line 309 "detex.l" +NEWLINE; + YY_BREAK +case 84: +YY_RULE_SETUP +#line 310 "detex.l" +; + YY_BREAK +case 85: +YY_RULE_SETUP +#line 312 "detex.l" +/* display mode */ {LaBEGIN LaDisplay; IGNORE;} + YY_BREAK +case 86: +YY_RULE_SETUP +#line 313 "detex.l" +BEGIN Normal; + YY_BREAK +case 87: +/* rule 87 can match eol */ +YY_RULE_SETUP +#line 314 "detex.l" +NEWLINE; + YY_BREAK +case 88: +YY_RULE_SETUP +#line 315 "detex.l" +; + YY_BREAK +case 89: +YY_RULE_SETUP +#line 317 "detex.l" +/* display mode */ {BEGIN Display; IGNORE;} + YY_BREAK +case 90: +YY_RULE_SETUP +#line 318 "detex.l" +BEGIN Normal; + YY_BREAK +case 91: +/* rule 91 can match eol */ +YY_RULE_SETUP +#line 319 "detex.l" +NEWLINE; + YY_BREAK +case 92: +YY_RULE_SETUP +#line 320 "detex.l" +; + YY_BREAK +case 93: +YY_RULE_SETUP +#line 322 "detex.l" +/* math mode */ {BEGIN Math; IGNORE;} + YY_BREAK +case 94: +YY_RULE_SETUP +#line 323 "detex.l" +BEGIN Normal; + YY_BREAK +case 95: +/* rule 95 can match eol */ +YY_RULE_SETUP +#line 324 "detex.l" +NEWLINE; + YY_BREAK +case 96: +YY_RULE_SETUP +#line 325 "detex.l" +; + YY_BREAK +case 97: +YY_RULE_SETUP +#line 326 "detex.l" +; + YY_BREAK +case 98: +YY_RULE_SETUP +#line 328 "detex.l" +/* process files */ {LaBEGIN LaInclude; IGNORE;} + YY_BREAK +case 99: +YY_RULE_SETUP +#line 329 "detex.l" +{ IncludeFile(yytext); + BEGIN Normal; + } + YY_BREAK +case 100: +/* rule 100 can match eol */ +YY_RULE_SETUP +#line 332 "detex.l" +NEWLINE; + YY_BREAK +case 101: +YY_RULE_SETUP +#line 333 "detex.l" +; + YY_BREAK +case 102: +YY_RULE_SETUP +#line 335 "detex.l" +{BEGIN IncludeOnly; IGNORE;} + YY_BREAK +case 103: +YY_RULE_SETUP +#line 336 "detex.l" +AddInclude(yytext); + YY_BREAK +case 104: +YY_RULE_SETUP +#line 337 "detex.l" +{ if (csbIncList == 0) + rgsbIncList[csbIncList++] = '\0'; + BEGIN Normal; + } + YY_BREAK +case 105: +/* rule 105 can match eol */ +YY_RULE_SETUP +#line 341 "detex.l" +NEWLINE; + YY_BREAK +case 106: +YY_RULE_SETUP +#line 342 "detex.l" +; + YY_BREAK +case 107: +YY_RULE_SETUP +#line 344 "detex.l" +{BEGIN Input; IGNORE;} + YY_BREAK +case 108: +YY_RULE_SETUP +#line 345 "detex.l" +{ InputFile(yytext); + BEGIN Normal; + } + YY_BREAK +case 109: +/* rule 109 can match eol */ +YY_RULE_SETUP +#line 348 "detex.l" +NEWLINE; + YY_BREAK +case 110: +YY_RULE_SETUP +#line 349 "detex.l" +; + YY_BREAK +case 111: +/* rule 111 can match eol */ +YY_RULE_SETUP +#line 351 "detex.l" +/* handle ligatures */ {(void)printf("%.2s", yytext+1);} + YY_BREAK +case 112: +/* rule 112 can match eol */ +YY_RULE_SETUP +#line 352 "detex.l" +{(void)printf("%.1s", yytext+1);} + YY_BREAK +case 113: +YY_RULE_SETUP +#line 353 "detex.l" +BEGIN LaBreak; + YY_BREAK +case 114: +YY_RULE_SETUP +#line 355 "detex.l" +/* ignore other \cs */ {BEGIN Control; IGNORE;} + YY_BREAK +case 115: +YY_RULE_SETUP +#line 356 "detex.l" +SPACE; + YY_BREAK +case 116: +/* rule 116 can match eol */ +YY_RULE_SETUP +#line 357 "detex.l" +NEWLINE; + YY_BREAK +case 117: +YY_RULE_SETUP +#line 358 "detex.l" +IGNORE; + YY_BREAK +case 118: +YY_RULE_SETUP +#line 359 "detex.l" +{ if (yytext==NULL || strlen(yytext)==0 + || atoi(yytext)==4) + NEWLINE; + BEGIN Normal; + } + YY_BREAK +case 119: +YY_RULE_SETUP +#line 365 "detex.l" +IGNORE; + YY_BREAK +case 120: +YY_RULE_SETUP +#line 366 "detex.l" +IGNORE; + YY_BREAK +case 121: +/* rule 121 can match eol */ +YY_RULE_SETUP +#line 367 "detex.l" +{BEGIN Normal; NEWLINE;} + YY_BREAK +case 122: +YY_RULE_SETUP +#line 368 "detex.l" +{BEGIN Normal; IGNORE;} + YY_BREAK +case 123: +YY_RULE_SETUP +#line 369 "detex.l" +{yyless(0);BEGIN Normal;} + YY_BREAK +case 124: +YY_RULE_SETUP +#line 371 "detex.l" +/* special characters */ IGNORE; + YY_BREAK +case 125: +YY_RULE_SETUP +#line 372 "detex.l" +IGNORE; + YY_BREAK +case 126: +YY_RULE_SETUP +#line 373 "detex.l" +SPACE; + YY_BREAK +case 127: +YY_RULE_SETUP +#line 375 "detex.l" +{ if (fWord) + (void)printf("%s\n", yytext); + else + ECHO; + } + YY_BREAK +case 128: +YY_RULE_SETUP +#line 380 "detex.l" +if (!fWord) ECHO; + YY_BREAK +case 129: +/* rule 129 can match eol */ +YY_RULE_SETUP +#line 381 "detex.l" +if (!fWord) ECHO; + YY_BREAK +case 130: +YY_RULE_SETUP +#line 383 "detex.l" +{ BEGIN LaOptArg; } + YY_BREAK +case 131: +YY_RULE_SETUP +#line 384 "detex.l" +{ cOpenBrace++; } + YY_BREAK +case 132: +YY_RULE_SETUP +#line 385 "detex.l" +{ cOpenBrace--; + if (cOpenBrace == 0) + { + if (--cArgs==0) + BEGIN Normal; + } + } + YY_BREAK +case 133: +YY_RULE_SETUP +#line 392 "detex.l" +; + YY_BREAK +case 134: +YY_RULE_SETUP +#line 393 "detex.l" +BEGIN LaMacro; + YY_BREAK +case 135: +/* rule 135 can match eol */ +YY_RULE_SETUP +#line 394 "detex.l" +; + YY_BREAK +case 136: +YY_RULE_SETUP +#line 396 "detex.l" +{ BEGIN LaOptArg2; } + YY_BREAK +case 137: +YY_RULE_SETUP +#line 397 "detex.l" +{ if (cOpenBrace == 0) + { + if (--cArgs==0) + { + BEGIN Normal; + cOpenBrace--; + } + } + cOpenBrace++; + } + YY_BREAK +case 138: +YY_RULE_SETUP +#line 407 "detex.l" +{ cOpenBrace--; } + YY_BREAK +case 139: +YY_RULE_SETUP +#line 408 "detex.l" +; + YY_BREAK +case 140: +YY_RULE_SETUP +#line 409 "detex.l" +BEGIN LaMacro2; + YY_BREAK +case 141: +YY_RULE_SETUP +#line 410 "detex.l" +; + YY_BREAK +case 142: +YY_RULE_SETUP +#line 411 "detex.l" +ECHO; + YY_BREAK +#line 2712 "detex.c" +case YY_STATE_EOF(INITIAL): +case YY_STATE_EOF(Define): +case YY_STATE_EOF(Display): +case YY_STATE_EOF(IncludeOnly): +case YY_STATE_EOF(Input): +case YY_STATE_EOF(Math): +case YY_STATE_EOF(Normal): +case YY_STATE_EOF(Control): +case YY_STATE_EOF(LaBegin): +case YY_STATE_EOF(LaDisplay): +case YY_STATE_EOF(LaEnd): +case YY_STATE_EOF(LaEnv): +case YY_STATE_EOF(LaFormula): +case YY_STATE_EOF(LaInclude): +case YY_STATE_EOF(LaMacro): +case YY_STATE_EOF(LaOptArg): +case YY_STATE_EOF(LaMacro2): +case YY_STATE_EOF(LaOptArg2): +case YY_STATE_EOF(LaVerbatim): +case YY_STATE_EOF(LaBreak): +case YY_STATE_EOF(LaPicture): + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = (yy_hold_char); + YY_RESTORE_YY_MORE_OFFSET + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between YY_CURRENT_BUFFER and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++(yy_c_buf_p); + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_END_OF_FILE: + { + (yy_did_buffer_switch_on_eof) = 0; + + if ( yywrap( ) ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = + (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + (yy_c_buf_p) = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of user's declarations */ +} /* end of yylex */ + +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ +static int yy_get_next_buffer (void) +{ + register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + register char *source = (yytext_ptr); + register int number_to_move, i; + int ret_val; + + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; + + else + { + yy_size_t num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; + + int yy_c_buf_p_offset = + (int) ((yy_c_buf_p) - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + yy_size_t new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = 0; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - + number_to_move - 1; + + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), + (yy_n_chars), num_to_read ); + + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + if ( (yy_n_chars) == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart(yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + } + + (yy_n_chars) += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + + return ret_val; +} + +/* yy_get_previous_state - get the state just before the EOB char was reached */ + + static yy_state_type yy_get_previous_state (void) +{ + register yy_state_type yy_current_state; + register char *yy_cp; + + yy_current_state = (yy_start); + + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + { + register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 1067 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + } + + return yy_current_state; +} + +/* yy_try_NUL_trans - try to make a transition on the NUL character + * + * synopsis + * next_state = yy_try_NUL_trans( current_state ); + */ + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) +{ + register int yy_is_jam; + register char *yy_cp = (yy_c_buf_p); + + register YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 1067 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_is_jam = (yy_current_state == 1066); + + return yy_is_jam ? 0 : yy_current_state; +} + + static void yyunput (int c, register char * yy_bp ) +{ + register char *yy_cp; + + yy_cp = (yy_c_buf_p); + + /* undo effects of setting up yytext */ + *yy_cp = (yy_hold_char); + + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + register yy_size_t number_to_move = (yy_n_chars) + 2; + register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; + register char *source = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; + + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + *--dest = *--source; + + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; + + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } + + *--yy_cp = (char) c; + + (yytext_ptr) = yy_bp; + (yy_hold_char) = *yy_cp; + (yy_c_buf_p) = yy_cp; +} + +#ifndef YY_NO_INPUT +#ifdef __cplusplus + static int yyinput (void) +#else + static int input (void) +#endif + +{ + int c; + + *(yy_c_buf_p) = (yy_hold_char); + + if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + /* This was really a NUL. */ + *(yy_c_buf_p) = '\0'; + + else + { /* need more input */ + yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); + ++(yy_c_buf_p); + + switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart(yyin ); + + /*FALLTHROUGH*/ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap( ) ) + return EOF; + + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(); +#else + return input(); +#endif + } + + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = (yytext_ptr) + offset; + break; + } + } + } + + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ + *(yy_c_buf_p) = '\0'; /* preserve yytext */ + (yy_hold_char) = *++(yy_c_buf_p); + + return c; +} +#endif /* ifndef YY_NO_INPUT */ + +/** Immediately switch to a different input stream. + * @param input_file A readable stream. + * + * @note This function does not reset the start condition to @c INITIAL . + */ + void yyrestart (FILE * input_file ) +{ + + if ( ! YY_CURRENT_BUFFER ){ + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer(yyin,YY_BUF_SIZE ); + } + + yy_init_buffer(YY_CURRENT_BUFFER,input_file ); + yy_load_buffer_state( ); +} + +/** Switch to a different input buffer. + * @param new_buffer The new input buffer. + * + */ + void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) +{ + + /* TODO. We should be able to replace this entire function body + * with + * yypop_buffer_state(); + * yypush_buffer_state(new_buffer); + */ + yyensure_buffer_stack (); + if ( YY_CURRENT_BUFFER == new_buffer ) + return; + + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + YY_CURRENT_BUFFER_LVALUE = new_buffer; + yy_load_buffer_state( ); + + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + (yy_did_buffer_switch_on_eof) = 1; +} + +static void yy_load_buffer_state (void) +{ + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + (yy_hold_char) = *(yy_c_buf_p); +} + +/** Allocate and initialize an input buffer state. + * @param file A readable stream. + * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. + * + * @return the allocated buffer state. + */ + YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) +{ + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_is_our_buffer = 1; + + yy_init_buffer(b,file ); + + return b; +} + +/** Destroy the buffer. + * @param b a buffer created with yy_create_buffer() + * + */ + void yy_delete_buffer (YY_BUFFER_STATE b ) +{ + + if ( ! b ) + return; + + if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; + + if ( b->yy_is_our_buffer ) + yyfree((void *) b->yy_ch_buf ); + + yyfree((void *) b ); +} + +/* Initializes or reinitializes a buffer. + * This function is sometimes called more than once on the same buffer, + * such as during a yyrestart() or at EOF. + */ + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) + +{ + int oerrno = errno; + + yy_flush_buffer(b ); + + b->yy_input_file = file; + b->yy_fill_buffer = 1; + + /* If b is the current buffer, then yy_init_buffer was _probably_ + * called from yyrestart() or through yy_get_next_buffer. + * In that case, we don't want to reset the lineno or column. + */ + if (b != YY_CURRENT_BUFFER){ + b->yy_bs_lineno = 1; + b->yy_bs_column = 0; + } + + b->yy_is_interactive = 0; + + errno = oerrno; +} + +/** Discard all buffered characters. On the next scan, YY_INPUT will be called. + * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. + * + */ + void yy_flush_buffer (YY_BUFFER_STATE b ) +{ + if ( ! b ) + return; + + b->yy_n_chars = 0; + + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + + b->yy_buf_pos = &b->yy_ch_buf[0]; + + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; + + if ( b == YY_CURRENT_BUFFER ) + yy_load_buffer_state( ); +} + +/** Pushes the new state onto the stack. The new state becomes + * the current state. This function will allocate the stack + * if necessary. + * @param new_buffer The new state. + * + */ +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) +{ + if (new_buffer == NULL) + return; + + yyensure_buffer_stack(); + + /* This block is copied from yy_switch_to_buffer. */ + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + (yy_buffer_stack_top)++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; + + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; +} + +/** Removes and deletes the top of the stack, if present. + * The next element becomes the new top. + * + */ +void yypop_buffer_state (void) +{ + if (!YY_CURRENT_BUFFER) + return; + + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + if ((yy_buffer_stack_top) > 0) + --(yy_buffer_stack_top); + + if (YY_CURRENT_BUFFER) { + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; + } +} + +/* Allocates the stack if it does not exist. + * Guarantees space for at least one push. + */ +static void yyensure_buffer_stack (void) +{ + yy_size_t num_to_alloc; + + if (!(yy_buffer_stack)) { + + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. + */ + num_to_alloc = 1; + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + + (yy_buffer_stack_max) = num_to_alloc; + (yy_buffer_stack_top) = 0; + return; + } + + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ + + /* Increase the buffer to prepare for a possible push. */ + int grow_size = 8 /* arbitrary grow size */; + + num_to_alloc = (yy_buffer_stack_max) + grow_size; + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc + ((yy_buffer_stack), + num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + /* zero only the new slots.*/ + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); + (yy_buffer_stack_max) = num_to_alloc; + } +} + +/** Setup the input buffer state to scan directly from a user-specified character buffer. + * @param base the character buffer + * @param size the size in bytes of the character buffer + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) +{ + YY_BUFFER_STATE b; + + if ( size < 2 || + base[size-2] != YY_END_OF_BUFFER_CHAR || + base[size-1] != YY_END_OF_BUFFER_CHAR ) + /* They forgot to leave room for the EOB's. */ + return 0; + + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + + b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = 0; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; + + yy_switch_to_buffer(b ); + + return b; +} + +/** Setup the input buffer state to scan a string. The next call to yylex() will + * scan from a @e copy of @a str. + * @param yystr a NUL-terminated string to scan + * + * @return the newly allocated buffer state object. + * @note If you want to scan bytes that may contain NUL values, then use + * yy_scan_bytes() instead. + */ +YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) +{ + + return yy_scan_bytes(yystr,strlen(yystr) ); +} + +/** Setup the input buffer state to scan the given bytes. The next call to yylex() will + * scan from a @e copy of @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. + * + * @return the newly allocated buffer state object. + */ +YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) +{ + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + yy_size_t i; + + /* Get memory for full buffer, including space for trailing EOB's. */ + n = _yybytes_len + 2; + buf = (char *) yyalloc(n ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + + for ( i = 0; i < _yybytes_len; ++i ) + buf[i] = yybytes[i]; + + buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; + + b = yy_scan_buffer(buf,n ); + if ( ! b ) + YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; +} + +#ifndef YY_EXIT_FAILURE +#define YY_EXIT_FAILURE 2 +#endif + +static void yy_fatal_error (yyconst char* msg ) +{ + (void) fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); +} + +/* Redefine yyless() so it works in section 3 code. */ + +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + yytext[yyleng] = (yy_hold_char); \ + (yy_c_buf_p) = yytext + yyless_macro_arg; \ + (yy_hold_char) = *(yy_c_buf_p); \ + *(yy_c_buf_p) = '\0'; \ + yyleng = yyless_macro_arg; \ + } \ + while ( 0 ) + +/* Accessor methods (get/set functions) to struct members. */ + +/** Get the current line number. + * + */ +int yyget_lineno (void) +{ + + return yylineno; +} + +/** Get the input stream. + * + */ +FILE *yyget_in (void) +{ + return yyin; +} + +/** Get the output stream. + * + */ +FILE *yyget_out (void) +{ + return yyout; +} + +/** Get the length of the current token. + * + */ +yy_size_t yyget_leng (void) +{ + return yyleng; +} + +/** Get the current token. + * + */ + +char *yyget_text (void) +{ + return yytext; +} + +/** Set the current line number. + * @param line_number + * + */ +void yyset_lineno (int line_number ) +{ + + yylineno = line_number; +} + +/** Set the input stream. This does not discard the current + * input buffer. + * @param in_str A readable stream. + * + * @see yy_switch_to_buffer + */ +void yyset_in (FILE * in_str ) +{ + yyin = in_str ; +} + +void yyset_out (FILE * out_str ) +{ + yyout = out_str ; +} + +int yyget_debug (void) +{ + return yy_flex_debug; +} + +void yyset_debug (int bdebug ) +{ + yy_flex_debug = bdebug ; +} + +static int yy_init_globals (void) +{ + /* Initialization is the same as for the non-reentrant scanner. + * This function is called from yylex_destroy(), so don't allocate here. + */ + + (yy_buffer_stack) = 0; + (yy_buffer_stack_top) = 0; + (yy_buffer_stack_max) = 0; + (yy_c_buf_p) = (char *) 0; + (yy_init) = 0; + (yy_start) = 0; + +/* Defined in main.c */ +#ifdef YY_STDINIT + yyin = stdin; + yyout = stdout; +#else + yyin = (FILE *) 0; + yyout = (FILE *) 0; +#endif + + /* For future reference: Set errno on error, since we are called by + * yylex_init() + */ + return 0; +} + +/* yylex_destroy is for both reentrant and non-reentrant scanners. */ +int yylex_destroy (void) +{ + + /* Pop the buffer stack, destroying each element. */ + while(YY_CURRENT_BUFFER){ + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + yypop_buffer_state(); + } + + /* Destroy the stack itself. */ + yyfree((yy_buffer_stack) ); + (yy_buffer_stack) = NULL; + + /* Reset the globals. This is important in a non-reentrant scanner so the next time + * yylex() is called, initialization will occur. */ + yy_init_globals( ); + + return 0; +} + +/* + * Internal utility routines. + */ + +#ifndef yytext_ptr +static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) +{ + register int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; +} +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen (yyconst char * s ) +{ + register int n; + for ( n = 0; s[n]; ++n ) + ; + + return n; +} +#endif + +void *yyalloc (yy_size_t size ) +{ + return (void *) malloc( size ); +} + +void *yyrealloc (void * ptr, yy_size_t size ) +{ + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return (void *) realloc( (char *) ptr, size ); +} + +void yyfree (void * ptr ) +{ + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ +} + +#define YYTABLES_NAME "yytables" + +#line 411 "detex.l" + + +/****** +** main -- +** Set sbProgName to the base of arg 0. +** Set the input paths. +** Check for options +** -c echo LaTeX \cite, \ref, and \pageref values +** -e <env-list> list of LaTeX environments to ignore +** -l force latex mode +** -n do not follow \input and \include +** -s replace control sequences with space +** -t force tex mode +** -w word only output +** Set the list of LaTeX environments to ignore. +** Process each input file. +** If no input files are specified on the command line, process stdin. +******/ + +int +main(int cArgs, char *rgsbArgs[]) +{ + char *pch, sbBadOpt[2]; + const char *sbEnvList = DEFAULTENV; + int fSawFile = 0, iArgs = 1; + + /* get base name and decide what we are doing, detex or delatex */ +#ifdef OS2 + char drive[_MAX_DRIVE], dir[_MAX_DIR]; + char fname[_MAX_FNAME], ext[_MAX_EXT]; +#ifdef __EMX__ + _wildcard(&cArgs, &rgsbArgs); + _response(&cArgs, &rgsbArgs); +#endif + _splitpath (rgsbArgs[0], drive, dir, fname, ext); + sbProgName = strlwr(fname); +#elif defined(KPATHSEA) + kpse_set_program_name (rgsbArgs[0], NULL); + sbProgName = kpse_program_name; +#else + if ((sbProgName = strrchr(rgsbArgs[0], '/')) != NULL) + sbProgName++; + else + sbProgName = rgsbArgs[0]; +#endif + if (strcmp("delatex",sbProgName) == 0) + fLatex = 1; + +#ifndef KPATHSEA + /* set rgsbInputPaths for use with TexOpen() */ + SetInputPaths(); +#endif + + /* process command line options */ + while (iArgs < cArgs && *(pch = rgsbArgs[iArgs]) == CHOPT) { + while (*++pch) + switch (*pch) { + case CHCITEOPT: + fCite = 1; + break; + case CHENVOPT: + if (++iArgs >= cArgs) { + ErrorExit("-e option requires an argument"); + } + sbEnvList = rgsbArgs[iArgs]; + break; + case CHLATEXOPT: + fLatex = 1; + break; + case CHNOFOLLOWOPT: + fFollow = 0; + break; + case CHSPACEOPT: + fSpace = 1; + break; + case CHTEXOPT: + fForcetex = 1; + break; + case CHWORDOPT: + fWord = 1; + break; + default: +#ifdef OS2 + OS2UsageExit(); +#else + sbBadOpt[0] = *pch; + sbBadOpt[1] = '\0'; + Warning("unknown option ignored -", sbBadOpt); +#endif + } + iArgs++; + } + SetEnvIgnore(sbEnvList); + +#ifdef WIN32 + _setmode(fileno(stdout), _O_BINARY); +#endif + + /* process input files */ + for (; iArgs < cArgs; iArgs++) { + fSawFile++; + if ((yyin = TexOpen(rgsbArgs[iArgs])) == NULL) { + Warning("can't open file", rgsbArgs[iArgs]); + continue;; + } + BEGIN Normal; + (void)yylex(); + } + + /* if there were no input files, assume stdin */ + if (!fSawFile) { + yyin = stdin; +#ifdef OS2 + if (isatty(fileno(stdin))) + OS2UsageExit(); +#endif + BEGIN Normal; + (void)yylex(); + } +#ifndef FLEX_SCANNER + if (YYSTATE != Normal) + ErrorExit("input contains an unterminated mode or environment"); +#endif + return(0); +} + +#ifdef FLEX_SCANNER +#undef yywrap +#endif + +/****** +** yywrap -- handles EOF for lex. Check to see if the stack of open files +** has anything on it. If it does, set yyin to the to value. If not +** return the termination signal for lex. +******/ + +int +yywrap(void) +{ + (void)fclose(yyin); +#ifdef FLEX_SCANNER + /* Pop context state */ + if (csb > 0) { + yy_delete_buffer(YY_CURRENT_BUFFER ); + yy_switch_to_buffer(rgsb[--csb] ); + } +#endif /* FLEX_SCANNER */ + if (cfp > 0) { + yyin = rgfp[--cfp]; + return(0); + } + return(1); +} + +#ifdef OS2 + +/****** +** yyless -- return characters to the input stream. Some systems don't have +** a yyless routine +******/ + +void +yyless(int n) +{ + int i = strlen(yytext); + + while (i > n) unput(yytext[--i]); + yytext[yyleng = n] = '\0'; +} +#endif + +/****** +** SetEnvIgnore -- sets rgsbEnvIgnore to the values indicated by the +** sbEnvList. +******/ + +void +SetEnvIgnore(const char *sbEnvList) +{ + char *sb; + + sb = SafeMalloc(strlen(sbEnvList) + 1, "malloc for SetEnvIgnore failed"); + (void) strcpy(sb, sbEnvList); + csbEnvIgnore = SeparateList(sb, rgsbEnvIgnore, CHENVSEP, MAXENVS); + if (csbEnvIgnore == my_ERROR) + ErrorExit("The environment list contains too many environments"); +} + +/****** +** BeginEnv -- checks to see if sbEnv is in the list rgsbEnvIgnore. If it +** is, sbCurrentEnv is set to sbEnv. +******/ + +int +BeginEnv(const char *sbEnv) +{ + int i; + + if (!fLatex) return(0); + for (i = 0; i < csbEnvIgnore; i++) + if (strcmp(sbEnv, rgsbEnvIgnore[i]) == 0) { + (void)strcpy(sbCurrentEnv, sbEnv); + return(1); + } + return(0); +} + +/****** +** EndEnv -- checks to see if sbEnv is the current environment being ignored. +******/ + +int +EndEnv(const char *sbEnv) +{ + if (!fLatex) return(0); + if (strcmp(sbEnv, sbCurrentEnv) == 0) + return(1); + return(0); +} + +/****** +** InputFile -- push the current yyin and open sbFile. If the open fails, +** the sbFile is ignored. +******/ + +void +InputFile(char *sbFile) +{ + if (!fFollow) + return; + rgfp[cfp++] = yyin; + if ((yyin = TexOpen(sbFile)) == NULL) { + Warning("can't open \\input file", sbFile); + yyin = rgfp[--cfp]; + return; + } +#ifdef FLEX_SCANNER + rgsb[csb++] = YY_CURRENT_BUFFER; + yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE ) ); +#endif /* FLEX_SCANNER */ +} + +/****** +** IncludeFile -- if sbFile is not in the rgsbIncList, push current yyin +** and open sbFile. If the open fails, the sbFile is ignored. +******/ + +void +IncludeFile(char *sbFile) +{ + if (!fFollow) + return; + if (!InList(sbFile)) + return; + rgfp[cfp++] = yyin; + if ((yyin = TexOpen(sbFile)) == NULL) { + Warning("can't open \\include file", sbFile); + yyin = rgfp[--cfp]; + return; + } +#ifdef FLEX_SCANNER + rgsb[csb++] = YY_CURRENT_BUFFER; + yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE ) ); +#endif /* FLEX_SCANNER */ +} + +/****** +** AddInclude -- adds sbFile to the rgsbIncList and increments csbIncList. +** If the include list is too long, sbFile is ignored. +******/ + +void +AddInclude(char *sbFile) +{ + if (!fFollow) + return; + if (csbIncList >= MAXINCLIST) + Warning("\\includeonly list is too long, ignoring", sbFile); + rgsbIncList[csbIncList] = SafeMalloc(strlen(sbFile) + 1, "malloc for AddInclude failed"); + (void)strcpy(rgsbIncList[csbIncList++], sbFile); +} + +/****** +** InList -- checks to see if sbFile is in the rgsbIncList. If there is +** no list, all files are assumed to be "in the list". +******/ + +int +InList(char *sbFile) +{ + char *pch, sbBase[PATH_MAX]; + int i; + + if (csbIncList == 0) /* no list */ + return(1); + (void)strcpy(sbBase, sbFile); + if ((pch = strrchr(sbBase, '.')) != NULL) + *pch = '\0'; + i = 0; + while ((i < csbIncList) && rgsbIncList[i]) + if (strcmp(rgsbIncList[i++], sbBase) == 0) + return(1); + return(0); +} + +#ifndef KPATHSEA +/****** +** SetInputPaths -- sets rgsbInputPaths to the values indicated by the +** TEXINPUTS environment variable if set or else DEFAULTINPUTS. If +** the user's TEXINPUTS has a leading ':' prepend the DEFAULTINPUTS +** to the path, if there is a trailing ':' append the DEFAULTINPUTS. +** This is consistent with the most recent TeX. However, this +** routine does not honor the '//' construct (expand subdirs). +******/ + +void +SetInputPaths(void) +{ + const char *sb; + char *sbPaths; + int cchDefaults, cchPaths; + + cchDefaults = strlen(DEFAULTINPUTS); +#ifdef OS2 + if ((sb = getenv("TEXINPUT")) == NULL) +#endif + if ((sb = getenv("TEXINPUTS")) == NULL) + sb = DEFAULTINPUTS; + cchPaths = strlen(sb); + if (sb[0] == CHPATHSEP) + cchPaths += cchDefaults; + if (sb[strlen(sb) - 1] == CHPATHSEP) + cchPaths += cchDefaults; + sbPaths = SafeMalloc(cchPaths + 1, "malloc for SetInputPaths failed"); + sbPaths[0] = '\0'; + if (sb[0] == CHPATHSEP) + (void)strcat(sbPaths, DEFAULTINPUTS); + (void)strcat(sbPaths, sb); + if (sb[strlen(sb) - 1] == CHPATHSEP) + (void)strcat(sbPaths, DEFAULTINPUTS); + + csbInputPaths = SeparateList(sbPaths, rgsbInputPaths, CHPATHSEP, MAXINPUTPATHS); + if (csbInputPaths == my_ERROR) +#ifdef OS2 + ErrorExit("TEXINPUT(S) environment variable has too many paths"); +#else + ErrorExit("TEXINPUTS environment variable has too many paths"); +#endif +} +#endif + +/****** +** SeparateList -- takes a chSep separated list sbList, replaces the +** chSep's with NULLs and sets rgsbList[i] to the beginning of +** the ith word in sbList. The number of words is returned. A +** my_ERROR is returned if there are more than csbMax words. +******/ + +int +SeparateList(char *sbList, char *rgsbList[], char chSep, int csbMax) +{ + int csbList = 0; + + while (sbList && *sbList && csbList < csbMax) { + rgsbList[csbList++] = sbList; + if ((sbList = strchr(sbList, chSep))) + *sbList++ = '\0'; + } + return(sbList && *sbList ? my_ERROR : csbList); +} + +/****** +** TexOpen -- tries to open sbFile in each of the rgsbInputPaths in turn. +** For each input path the following order is used: +** file.tex - must be as named, if not there go to the next path +** file.ext - random extension, try it +** file - base name, add .tex and try it +** file - try it as is +** Notice that if file exists in the first path and file.tex exists in +** one of the other paths, file in the first path is what is opened. +** If the sbFile begins with a '/', no paths are searched. +******/ + +FILE * +TexOpen(char *sbFile) +{ + char *sbNew; +#ifndef KPATHSEA + char *pch; + FILE *fp; + int iPath; + static char sbFullPath[PATH_MAX]; + + for (iPath = 0; iPath < csbInputPaths; iPath++) { +#ifdef OS2 + if (*sbFile == '/' || *sbFile == '\\' || strchr(sbFile, ':')) { /* absolute path */ +#else + if (*sbFile == '/') { /* absolute path */ +#endif + (void)sprintf(sbFullPath, "%s", sbFile); + iPath = csbInputPaths; /* only check once */ + } else + (void)sprintf(sbFullPath, "%s/%s", rgsbInputPaths[iPath], sbFile); +#ifdef OS2 + pch = sbFullPath; + while (pch = strchr(pch, '\\')) + *pch = '/'; +#endif + + /* If sbFile ends in .tex then it must be there */ + if ((pch = strrchr(sbFullPath, '.')) != NULL + && (strcmp(pch, ".tex") == 0)) + { + if ((fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + else + continue; + } + + /* if .<ext> then try to open it. the '.' represents */ + /* the beginning of an extension if it is not the first */ + /* character and it does not follow a '.' or a '/' */ + if (pch != NULL && pch > &(sbFullPath[0]) + && *(pch - 1) != '.' && *(pch - 1) != '/' + && (fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + + /* just base name, add .tex to the name */ + sbNew = SafeMalloc(strlen(sbFullPath) + 5, "malloc for TexOpen failed"); + (void)strcpy(sbNew, sbFullPath); + (void)strcat(sbNew, ".tex"); + if ((fp = fopen(sbNew, "r")) != NULL) + return(fp); + + /* try sbFile regardless */ + if ((fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + } + return NULL; +#else + sbNew = kpse_find_file (sbFile, kpse_tex_format, false); + + if (sbNew == NULL) + return NULL; + + return fopen (sbNew, "r"); +#endif +} + +/****** +** SafeMalloc -- wrapper around malloc() to check for failure. +******/ + +char * +SafeMalloc(int cch, const char *sbMessage) +{ + char *sb; + + if ((sb = (char *)malloc((unsigned)cch)) == NULL) + ErrorExit(sbMessage); + return(sb); +} + +/****** +** Warning -- print a warning message preceded by the program name. +******/ + +void +Warning(const char *sb1, const char *sb2) +{ + (void)fprintf(stderr, "%s: warning: %s %s\n", sbProgName, sb1, sb2); +} + +/****** +** ErrorExit -- print an error message preceded by the program name. +** Stdout is flushed and detex exits. +******/ + +void +ErrorExit(const char *sb1) +{ + (void)fflush(stdout); + (void)fprintf(stderr, "%s: error: %s\n", sbProgName, sb1); + exit(1); +} +#ifdef OS2 + +/****** +** OS2UsageExit -- print OS/2 usage message and exit. +******/ + +void +OS2UsageExit(void) +{ + (void)printf("\n%s [ -clnstw ] [ -e environment-list ] [ filename[.tex] ... ]\n", + sbProgName); + puts(" -c echo LaTeX \\cite, \\ref, and \\pageref values\n \ +-e <env-list> list of LaTeX environments to ignore\n \ +-l force latex mode\n \ +-n do not follow \\input and \\include\n \ +-s replace control sequences with space\n \ +-t force tex mode\n \ +-w word only output"); + exit(0); +} +#endif + diff --git a/Build/source/texk/detex/detex-src/detex.h b/Build/source/texk/detex/detex-src/detex.h new file mode 100644 index 00000000000..ef0e65840a0 --- /dev/null +++ b/Build/source/texk/detex/detex-src/detex.h @@ -0,0 +1,84 @@ +/* + * Copyright (c) 1986-2007 Purdue University + * All rights reserved. + * + * Developed by: Daniel Trinkle + * Department of Computer Science, Purdue University + * http://www.cs.purdue.edu/ + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal with the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * o Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimers. + * + * o Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimers in the + * documentation and/or other materials provided with the distribution. + * + * o Neither the names of Daniel Trinkle, Purdue University, nor the + * names of its contributors may be used to endorse or promote products + * derived from this Software without specific prior written + * permission. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. + */ + +/****** +** The following parameters should be modified as necessary +** MAXINCLIST - maximum number of files allowed in an \includeonly list +** +** DEFAULTINPUTS - this should be the same as the default TEXINPUTS +** CHPATHSEP - the path separator character in TEXINPUTS +** MAXINPUTPATHS - (arbitrary) number of separate paths in TEXINPUTS +** +** DEFAULTENV - list of LaTeX environments ignored +** CHENVSEP - the list separator character in the ignore envronment list +** MAXENVS - maximum number of environments listed in the ignore list +** CCHMAXENV - maximum count of characters in an environment name (LaTex) +******/ + +#define MAXINCLIST 40 + +#ifndef KPATHSEA +#ifdef OS2 +#define DEFAULTINPUTS ".;/emtex/texinput" +#define CHPATHSEP ';' +#else +#define DEFAULTINPUTS ".:/usr/local/tex/inputs" +#define CHPATHSEP ':' +#endif +#endif + +#define MAXINPUTPATHS 10 + +#define DEFAULTENV "array,eqnarray,equation,figure,mathmatica,picture,table,verbatim" +#define CHENVSEP ',' +#define MAXENVS 10 +#define CCHMAXENV 100 + +/****** +** These probably should not be changed +******/ + +#define CHOPT '-' +#define CHCITEOPT 'c' +#define CHENVOPT 'e' +#define CHLATEXOPT 'l' +#define CHNOFOLLOWOPT 'n' +#define CHSPACEOPT 's' +#define CHTEXOPT 't' +#define CHWORDOPT 'w' + +#define my_ERROR -1 diff --git a/Build/source/texk/detex/detex-src/detex.l b/Build/source/texk/detex/detex-src/detex.l new file mode 100644 index 00000000000..059a9cfd929 --- /dev/null +++ b/Build/source/texk/detex/detex-src/detex.l @@ -0,0 +1,915 @@ +%option never-interactive + +%top{ +#ifndef lint +static char rcsid[] = "$Header: /p/src/local/bin/detex/RCS/detex.l,v 2.22 2007/03/01 20:22:01 trinkle Exp trinkle $"; +#endif + +/* + * Copyright (c) 1986-2007 Purdue University + * All rights reserved. + * + * Developed by: Daniel Trinkle + * Department of Computer Science, Purdue University + * http://www.cs.purdue.edu/ + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal with the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * o Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimers. + * + * o Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimers in the + * documentation and/or other materials provided with the distribution. + * + * o Neither the names of Daniel Trinkle, Purdue University, nor the + * names of its contributors may be used to endorse or promote products + * derived from this Software without specific prior written + * permission. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. + */ + + +/* + * detex [-e environment-list] [-c] [-l] [-n] [-s] [-t] [-w] [file[.tex] ] + * + * This program is used to remove TeX or LaTeX constructs from a text + * file. + */ + +#include "detex.h" + +#ifdef KPATHSEA + +#include <c-auto.h> +#include <kpathsea/c-auto.h> +#include <kpathsea/config.h> +#include <kpathsea/c-memstr.h> +#include <kpathsea/c-pathmx.h> +#include <kpathsea/c-std.h> +#include <kpathsea/tex-file.h> + +#ifdef HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif + +#else /* KPATHSEA */ + +#ifdef HAVE_STRING_H +#include <string.h> +#else +#include <strings.h> +#define strchr index +#define strrchr rindex +#endif +#ifndef MAXPATHLEN +#include <sys/param.h> +#endif +#define PATH_MAX MAXPATHLEN +#ifdef OS2 +#include <stdlib.h> +#endif + +#ifdef WIN32 +#include <fcntl.h> +#include <io.h> +#endif + +#endif /* KPATHSEA */ +} + +%{ +#undef IGNORE + +#define LaBEGIN if (fLatex) BEGIN +#define IGNORE if (fSpace && !fWord) putchar(' ') +#define SPACE if (!fWord) putchar(' ') +#define NEWLINE if (!fWord) putchar('\n') +#define LATEX fLatex=!fForcetex +#define KILLARGS(x) cArgs=x; LaBEGIN LaMacro +#define STRIPARGS(x) cArgs=x; LaBEGIN LaMacro2 +#define CITE(x) if (fLatex && !fCite) KILLARGS(x) + +void AddInclude(char *sbFile); +void ErrorExit(const char *sb1); +void IncludeFile(char *sbFile); +void InputFile(char *sbFile); +void SetEnvIgnore(const char *sbEnvList); +#ifndef KPATHSEA +void SetInputPaths(void); +#endif +void Warning(const char *sb1, const char *sb2); +int BeginEnv(const char *sbEnv); +int EndEnv(const char *sbEnv); +int InList(char *sbFile); +int SeparateList(char *sbList, char *rgsbList[] ,char chSep, int csbMax); +FILE *TexOpen(char *sbFile); +char *SafeMalloc(int cch, const char *sbMessage); +#ifndef KPATHSEA +char *getenv(); +#ifndef NO_MALLOC_DECL +char *malloc(); +#endif +#ifdef OS2 +void yyless(int); +void OS2UsageExit(void); +#endif +#endif /* KPATHSEA */ + +char *rgsbEnvIgnore[MAXENVS]; /* list of environments ignored */ +char *rgsbIncList[MAXINCLIST]; /* list of includeonly files */ +char *rgsbInputPaths[MAXINPUTPATHS]; /* list of input paths in order */ +char sbCurrentEnv[CCHMAXENV]; /* current environment being ignored */ +char *sbProgName; /* name we were invoked with */ +#ifndef NOFILE /* might be defined in <sys/param.h> */ +#define NOFILE 256 +#endif +FILE *rgfp[NOFILE+1]; /* stack of input/include files */ +int cfp = 0; /* count of files in stack */ +int cOpenBrace = 0; /* count of `{' in <LaMacro> and <LaMacro2> */ +int cArgs = 0; /* argument connt in <LaArgs> */ +int csbEnvIgnore; /* count of environments ignored */ +int csbIncList = 0; /* count of includeonly files */ +int csbInputPaths; /* count of input paths */ +int fLatex = 0; /* flag to indicated delatex */ +int fWord = 0; /* flag for -w option */ +int fFollow = 1; /* flag to follow input/include */ +int fCite = 0; /* flag to echo \cite and \ref args */ +int fSpace = 0; /* flag to replace \cs with space */ +int fForcetex = 0; /* flag to inhibit latex mode */ + +#ifdef FLEX_SCANNER +/* flex has contexts for buffers that need to be switched when file changes + * otherwise output contains imported files in reverse order. Weird, but + * true. + */ +YY_BUFFER_STATE rgsb[NOFILE + 1]; /* flex context stack */ +int csb = 0; /* depth of flex context stack */ +#endif /* FLEX_SCANNER */ + +%} + +S [ \t\n]* +W [a-zA-Z]+ +N [+-]?(([0-9]+(\.[0-9]+)?)|(\.[0-9]+)) +U pt|pc|in|bp|cm|mm|dd|cc|sp +HU {U}|em +HD {S}(({N}{S}{HU})|(\\{W})){S} +HG {HD}(plus{HD})?(minus{HD})? +VU {U}|ex +VD {S}(({N}{S}{VU})|(\\{W})){S} +VG {VD}(plus{VD})?(minus{VD})? +Z \*? + +%Start Define Display IncludeOnly Input Math Normal Control +%Start LaBegin LaDisplay LaEnd LaEnv LaFormula LaInclude +%Start LaMacro LaOptArg LaMacro2 LaOptArg2 LaVerbatim +%start LaBreak LaPicture + +%% +<Normal>"%".* /* ignore comments */ ; + +<Normal>"\\begin"{S}"{"{S}"document"{S}"}" {LATEX; IGNORE;} + +<Normal>"\\begin" /* environment start */ {LaBEGIN LaBegin; IGNORE;} + +<LaBegin>{S}"{"{S}"verbatim"{S}"}" { if (BeginEnv("verbatim")) + BEGIN LaEnv; + else + BEGIN LaVerbatim; + IGNORE; + } + +<LaVerbatim>"\\end"{S}"{"{S}"verbatim"{S}"}" /* verbatim mode */ {BEGIN Normal; IGNORE;} +<LaVerbatim>[^\\]+ ECHO; +<LaVerbatim>. ECHO; + +<LaBegin>{S}"{"{S}"minipage"{S}"}" { KILLARGS(1); + if (BeginEnv("minpage")) + BEGIN LaEnv; + else + BEGIN Normal; + IGNORE; + } + +<LaBegin>{W} { if (BeginEnv(yytext)) + BEGIN LaEnv; + else + BEGIN Normal; + IGNORE; + } +<LaBegin>"\n" NEWLINE; +<LaBegin>. ; + +<LaEnv>"\\end" /* absorb some environments */ {LaBEGIN LaEnd; IGNORE;} +<LaEnv>"\n" NEWLINE; +<LaEnv>. ; + +<LaEnd>{W} /* end environment */ { if (EndEnv(yytext)) + BEGIN Normal; + IGNORE; + } +<LaEnd>"}" {BEGIN LaEnv; IGNORE;} +<LaEnd>"\n" NEWLINE; +<LaEnd>. ; + +<Normal>"\\kern"{HD} ; +<Normal>"\\vskip"{VG} ; +<Normal>"\\vspace"{Z}{S}"{"{VG}"}" ; +<Normal>"\\hskip"{HG} ; +<Normal>"\\hspace"{Z}{S}"{"{HG}"}" ; +<Normal>"\\addvspace"{S}"{"{VG}"}" ; + +<Normal>"\\newlength" { KILLARGS(1); } +<Normal>"\\setlength" { KILLARGS(2); } +<Normal>"\\addtolength" { KILLARGS(2); } +<Normal>"\\settowidth" { KILLARGS(2); } +<Normal>"\\settoheight" { KILLARGS(2); } +<Normal>"\\settodepth" { KILLARGS(2); } +<Normal>"\\newsavebox" { KILLARGS(1); } +<Normal>"\\sbox" { KILLARGS(1); } +<Normal>"\\savebox" { KILLARGS(2); } +<Normal>"\\usebox" { KILLARGS(1); } +<Normal>"\\raisebox" { STRIPARGS(2); } +<Normal>"\\parbox" { KILLARGS(1); } +<Normal>"\\scalebox" { STRIPARGS(2); } +<Normal>"\\resizebox"{Z} { KILLARGS(2); } +<Normal>"\\reflectbox" ; +<Normal>"\\rotatebox" { KILLARGS(1); } +<Normal>"\\includegraphics"[^{]* { LaBEGIN LaPicture; } + +<LaPicture>"{" ; +<LaPicture>[^{}]+ { printf("<Picture %s>", yytext); } +<LaPicture>"\}" BEGIN Normal; + +<Normal>"\\definecolor" { KILLARGS(3); } +<Normal>"\\color" { KILLARGS(1); } +<Normal>"\\textcolor" { KILLARGS(2); } +<Normal>"\\colorbox" { KILLARGS(2); } +<Normal>"\\fcolorbox" { KILLARGS(3); } +<Normal>"\\pagecolor" { KILLARGS(1); } +<Normal>"\\foilhead" { STRIPARGS(1); } + +<Normal>"\\part"{Z} ; +<Normal>"\\section"{Z} ; +<Normal>"\\subsection"{Z} ; +<Normal>"\\subsubsection"{Z} ; +<Normal>"\\paragraph"{Z} ; +<Normal>"\\sunparagraph"{Z} ; + +<Normal>"\\bibitem" /* ignore args */ {KILLARGS(1); IGNORE;} +<Normal>"\\bibliography" /* of these \cs */ {KILLARGS(1); IGNORE;} +<Normal>"\\bibstyle" {KILLARGS(1); IGNORE;} +<Normal>"\\cite" {CITE(1); IGNORE;} +<Normal>"\\documentstyle" {LATEX; KILLARGS(1); IGNORE;} +<Normal>"\\documentclass" {LATEX; KILLARGS(1); IGNORE;} +<Normal>"\\usepackage" {KILLARGS(1); IGNORE;} +<Normal>"\\end" {KILLARGS(1); IGNORE;} +<Normal>"\\index" {KILLARGS(1); SPACE;} +<Normal>"\\footnote" {KILLARGS(1); SPACE;} +<Normal>"\\label" {KILLARGS(1); IGNORE;} +<Normal>"\\pageref" {CITE(1); IGNORE;} +<Normal>"\\pagestyle" {KILLARGS(1); IGNORE;} +<Normal>"\\ref" {CITE(1); IGNORE;} +<Normal>"\\setcounter" {KILLARGS(1); IGNORE;} +<Normal>"\\verb" /* ignore \verb<ch>...<ch> */ { if (fLatex) { + char verbchar, c; + verbchar = input(); + while ((c = input()) != verbchar) + if (c == '\n') + NEWLINE; + } + IGNORE; + } + +<Normal>"\\newcommand" { LATEX; KILLARGS(2); } +<Normal>"\\renewcommand" { LATEX; KILLARGS(2); } +<Normal>"\\newenvironment" { LATEX; KILLARGS(3); } + +<Normal>"\\def" /* ignore def begin */ {BEGIN Define; IGNORE;} +<Define>"{" BEGIN Normal; +<Define>"\n" NEWLINE; +<Define>. ; + +<Normal>"\\(" /* formula mode */ {LaBEGIN LaFormula; IGNORE;} +<LaFormula>"\\)" BEGIN Normal; +<LaFormula>"\n" NEWLINE; +<LaFormula>. ; + +<Normal>"\\[" /* display mode */ {LaBEGIN LaDisplay; IGNORE;} +<LaDisplay>"\\]" BEGIN Normal; +<LaDisplay>"\n" NEWLINE; +<LaDisplay>. ; + +<Normal>"$$" /* display mode */ {BEGIN Display; IGNORE;} +<Display>"$$" BEGIN Normal; +<Display>"\n" NEWLINE; +<Display>. ; + +<Normal>"$" /* math mode */ {BEGIN Math; IGNORE;} +<Math>"$" BEGIN Normal; +<Math>"\n" NEWLINE; +<Math>"\\$" ; +<Math>. ; + +<Normal>"\\include" /* process files */ {LaBEGIN LaInclude; IGNORE;} +<LaInclude>[^{ \t\n}]+ { IncludeFile(yytext); + BEGIN Normal; + } +<LaInclude>"\n" NEWLINE; +<LaInclude>. ; + +<Normal>"\\includeonly" {BEGIN IncludeOnly; IGNORE;} +<IncludeOnly>[^{ \t,\n}]+ AddInclude(yytext); +<IncludeOnly>"}" { if (csbIncList == 0) + rgsbIncList[csbIncList++] = '\0'; + BEGIN Normal; + } +<IncludeOnly>"\n" NEWLINE; +<IncludeOnly>. ; + +<Normal>"\\input" {BEGIN Input; IGNORE;} +<Input>[^{ \t\n}]+ { InputFile(yytext); + BEGIN Normal; + } +<Input>"\n" NEWLINE; +<Input>. ; + +<Normal>\\(aa|AA|ae|AE|oe|OE|ss)[ \t]*[ \t\n}] /* handle ligatures */ {(void)printf("%.2s", yytext+1);} +<Normal>\\[OoijLl][ \t]*[ \t\n}] {(void)printf("%.1s", yytext+1);} +<Normal>"\\linebreak" BEGIN LaBreak; + +<Normal>\\[a-zA-Z@]+ /* ignore other \cs */ {BEGIN Control; IGNORE;} +<Normal>"\\ " SPACE; +<Normal>"\\\\"{Z}(\[[^\]]*\])? NEWLINE; +<Normal>\\. IGNORE; +<LaBreak>[0-4]? { if (yytext==NULL || strlen(yytext)==0 + || atoi(yytext)==4) + NEWLINE; + BEGIN Normal; + } + +<Control>\\[a-zA-Z@]+ IGNORE; +<Control>[a-zA-Z@0-9]*[-'=`][^ \t\n{]* IGNORE; +<Control>"\n" {BEGIN Normal; NEWLINE;} +<Control>[ \t]*[{]* {BEGIN Normal; IGNORE;} +<Control>. {yyless(0);BEGIN Normal;} + +<Normal>[{}\\|] /* special characters */ IGNORE; +<Normal>[!?]"`" IGNORE; +<Normal>~ SPACE; + +<Normal>{W}[']*{W} { if (fWord) + (void)printf("%s\n", yytext); + else + ECHO; + } +<Normal>[0-9]+ if (!fWord) ECHO; +<Normal>(.|\n) if (!fWord) ECHO; + +<LaMacro>"\[" { BEGIN LaOptArg; } +<LaMacro>"{" { cOpenBrace++; } +<LaMacro>"}" { cOpenBrace--; + if (cOpenBrace == 0) + { + if (--cArgs==0) + BEGIN Normal; + } + } +<LaMacro>. ; +<LaOptArg>"\]" BEGIN LaMacro; +<LaOptArg>[^\]]* ; + +<LaMacro2>"\[" { BEGIN LaOptArg2; } +<LaMacro2>"{" { if (cOpenBrace == 0) + { + if (--cArgs==0) + { + BEGIN Normal; + cOpenBrace--; + } + } + cOpenBrace++; + } +<LaMacro2>"}" { cOpenBrace--; } +<LaMacro2>. ; +<LaOptArg2>"\]" BEGIN LaMacro2; +<LaOptArg2>. ; +%% +/****** +** main -- +** Set sbProgName to the base of arg 0. +** Set the input paths. +** Check for options +** -c echo LaTeX \cite, \ref, and \pageref values +** -e <env-list> list of LaTeX environments to ignore +** -l force latex mode +** -n do not follow \input and \include +** -s replace control sequences with space +** -t force tex mode +** -w word only output +** Set the list of LaTeX environments to ignore. +** Process each input file. +** If no input files are specified on the command line, process stdin. +******/ + +int +main(int cArgs, char *rgsbArgs[]) +{ + char *pch, sbBadOpt[2]; + const char *sbEnvList = DEFAULTENV; + int fSawFile = 0, iArgs = 1; + + /* get base name and decide what we are doing, detex or delatex */ +#ifdef OS2 + char drive[_MAX_DRIVE], dir[_MAX_DIR]; + char fname[_MAX_FNAME], ext[_MAX_EXT]; +#ifdef __EMX__ + _wildcard(&cArgs, &rgsbArgs); + _response(&cArgs, &rgsbArgs); +#endif + _splitpath (rgsbArgs[0], drive, dir, fname, ext); + sbProgName = strlwr(fname); +#elif defined(KPATHSEA) + kpse_set_program_name (rgsbArgs[0], NULL); + sbProgName = kpse_program_name; +#else + if ((sbProgName = strrchr(rgsbArgs[0], '/')) != NULL) + sbProgName++; + else + sbProgName = rgsbArgs[0]; +#endif + if (strcmp("delatex",sbProgName) == 0) + fLatex = 1; + +#ifndef KPATHSEA + /* set rgsbInputPaths for use with TexOpen() */ + SetInputPaths(); +#endif + + /* process command line options */ + while (iArgs < cArgs && *(pch = rgsbArgs[iArgs]) == CHOPT) { + while (*++pch) + switch (*pch) { + case CHCITEOPT: + fCite = 1; + break; + case CHENVOPT: + if (++iArgs >= cArgs) { + ErrorExit("-e option requires an argument"); + } + sbEnvList = rgsbArgs[iArgs]; + break; + case CHLATEXOPT: + fLatex = 1; + break; + case CHNOFOLLOWOPT: + fFollow = 0; + break; + case CHSPACEOPT: + fSpace = 1; + break; + case CHTEXOPT: + fForcetex = 1; + break; + case CHWORDOPT: + fWord = 1; + break; + default: +#ifdef OS2 + OS2UsageExit(); +#else + sbBadOpt[0] = *pch; + sbBadOpt[1] = '\0'; + Warning("unknown option ignored -", sbBadOpt); +#endif + } + iArgs++; + } + SetEnvIgnore(sbEnvList); + +#ifdef WIN32 + _setmode(fileno(stdout), _O_BINARY); +#endif + + /* process input files */ + for (; iArgs < cArgs; iArgs++) { + fSawFile++; + if ((yyin = TexOpen(rgsbArgs[iArgs])) == NULL) { + Warning("can't open file", rgsbArgs[iArgs]); + continue;; + } + BEGIN Normal; + (void)yylex(); + } + + /* if there were no input files, assume stdin */ + if (!fSawFile) { + yyin = stdin; +#ifdef OS2 + if (isatty(fileno(stdin))) + OS2UsageExit(); +#endif + BEGIN Normal; + (void)yylex(); + } +#ifndef FLEX_SCANNER + if (YYSTATE != Normal) + ErrorExit("input contains an unterminated mode or environment"); +#endif + return(0); +} + +#ifdef FLEX_SCANNER +#undef yywrap +#endif + +/****** +** yywrap -- handles EOF for lex. Check to see if the stack of open files +** has anything on it. If it does, set yyin to the to value. If not +** return the termination signal for lex. +******/ + +int +yywrap(void) +{ + (void)fclose(yyin); +#ifdef FLEX_SCANNER + /* Pop context state */ + if (csb > 0) { + yy_delete_buffer( YY_CURRENT_BUFFER ); + yy_switch_to_buffer( rgsb[--csb] ); + } +#endif /* FLEX_SCANNER */ + if (cfp > 0) { + yyin = rgfp[--cfp]; + return(0); + } + return(1); +} + +#ifdef OS2 + +/****** +** yyless -- return characters to the input stream. Some systems don't have +** a yyless routine +******/ + +void +yyless(int n) +{ + int i = strlen(yytext); + + while (i > n) unput(yytext[--i]); + yytext[yyleng = n] = '\0'; +} +#endif + +/****** +** SetEnvIgnore -- sets rgsbEnvIgnore to the values indicated by the +** sbEnvList. +******/ + +void +SetEnvIgnore(const char *sbEnvList) +{ + char *sb; + + sb = SafeMalloc(strlen(sbEnvList) + 1, "malloc for SetEnvIgnore failed"); + (void) strcpy(sb, sbEnvList); + csbEnvIgnore = SeparateList(sb, rgsbEnvIgnore, CHENVSEP, MAXENVS); + if (csbEnvIgnore == my_ERROR) + ErrorExit("The environment list contains too many environments"); +} + +/****** +** BeginEnv -- checks to see if sbEnv is in the list rgsbEnvIgnore. If it +** is, sbCurrentEnv is set to sbEnv. +******/ + +int +BeginEnv(const char *sbEnv) +{ + int i; + + if (!fLatex) return(0); + for (i = 0; i < csbEnvIgnore; i++) + if (strcmp(sbEnv, rgsbEnvIgnore[i]) == 0) { + (void)strcpy(sbCurrentEnv, sbEnv); + return(1); + } + return(0); +} + +/****** +** EndEnv -- checks to see if sbEnv is the current environment being ignored. +******/ + +int +EndEnv(const char *sbEnv) +{ + if (!fLatex) return(0); + if (strcmp(sbEnv, sbCurrentEnv) == 0) + return(1); + return(0); +} + +/****** +** InputFile -- push the current yyin and open sbFile. If the open fails, +** the sbFile is ignored. +******/ + +void +InputFile(char *sbFile) +{ + if (!fFollow) + return; + rgfp[cfp++] = yyin; + if ((yyin = TexOpen(sbFile)) == NULL) { + Warning("can't open \\input file", sbFile); + yyin = rgfp[--cfp]; + return; + } +#ifdef FLEX_SCANNER + rgsb[csb++] = YY_CURRENT_BUFFER; + yy_switch_to_buffer(yy_create_buffer( yyin, YY_BUF_SIZE ) ); +#endif /* FLEX_SCANNER */ +} + +/****** +** IncludeFile -- if sbFile is not in the rgsbIncList, push current yyin +** and open sbFile. If the open fails, the sbFile is ignored. +******/ + +void +IncludeFile(char *sbFile) +{ + if (!fFollow) + return; + if (!InList(sbFile)) + return; + rgfp[cfp++] = yyin; + if ((yyin = TexOpen(sbFile)) == NULL) { + Warning("can't open \\include file", sbFile); + yyin = rgfp[--cfp]; + return; + } +#ifdef FLEX_SCANNER + rgsb[csb++] = YY_CURRENT_BUFFER; + yy_switch_to_buffer(yy_create_buffer( yyin, YY_BUF_SIZE ) ); +#endif /* FLEX_SCANNER */ +} + +/****** +** AddInclude -- adds sbFile to the rgsbIncList and increments csbIncList. +** If the include list is too long, sbFile is ignored. +******/ + +void +AddInclude(char *sbFile) +{ + if (!fFollow) + return; + if (csbIncList >= MAXINCLIST) + Warning("\\includeonly list is too long, ignoring", sbFile); + rgsbIncList[csbIncList] = SafeMalloc(strlen(sbFile) + 1, "malloc for AddInclude failed"); + (void)strcpy(rgsbIncList[csbIncList++], sbFile); +} + +/****** +** InList -- checks to see if sbFile is in the rgsbIncList. If there is +** no list, all files are assumed to be "in the list". +******/ + +int +InList(char *sbFile) +{ + char *pch, sbBase[PATH_MAX]; + int i; + + if (csbIncList == 0) /* no list */ + return(1); + (void)strcpy(sbBase, sbFile); + if ((pch = strrchr(sbBase, '.')) != NULL) + *pch = '\0'; + i = 0; + while ((i < csbIncList) && rgsbIncList[i]) + if (strcmp(rgsbIncList[i++], sbBase) == 0) + return(1); + return(0); +} + +#ifndef KPATHSEA +/****** +** SetInputPaths -- sets rgsbInputPaths to the values indicated by the +** TEXINPUTS environment variable if set or else DEFAULTINPUTS. If +** the user's TEXINPUTS has a leading ':' prepend the DEFAULTINPUTS +** to the path, if there is a trailing ':' append the DEFAULTINPUTS. +** This is consistent with the most recent TeX. However, this +** routine does not honor the '//' construct (expand subdirs). +******/ + +void +SetInputPaths(void) +{ + const char *sb; + char *sbPaths; + int cchDefaults, cchPaths; + + cchDefaults = strlen(DEFAULTINPUTS); +#ifdef OS2 + if ((sb = getenv("TEXINPUT")) == NULL) +#endif + if ((sb = getenv("TEXINPUTS")) == NULL) + sb = DEFAULTINPUTS; + cchPaths = strlen(sb); + if (sb[0] == CHPATHSEP) + cchPaths += cchDefaults; + if (sb[strlen(sb) - 1] == CHPATHSEP) + cchPaths += cchDefaults; + sbPaths = SafeMalloc(cchPaths + 1, "malloc for SetInputPaths failed"); + sbPaths[0] = '\0'; + if (sb[0] == CHPATHSEP) + (void)strcat(sbPaths, DEFAULTINPUTS); + (void)strcat(sbPaths, sb); + if (sb[strlen(sb) - 1] == CHPATHSEP) + (void)strcat(sbPaths, DEFAULTINPUTS); + + csbInputPaths = SeparateList(sbPaths, rgsbInputPaths, CHPATHSEP, MAXINPUTPATHS); + if (csbInputPaths == my_ERROR) +#ifdef OS2 + ErrorExit("TEXINPUT(S) environment variable has too many paths"); +#else + ErrorExit("TEXINPUTS environment variable has too many paths"); +#endif +} +#endif + +/****** +** SeparateList -- takes a chSep separated list sbList, replaces the +** chSep's with NULLs and sets rgsbList[i] to the beginning of +** the ith word in sbList. The number of words is returned. A +** my_ERROR is returned if there are more than csbMax words. +******/ + +int +SeparateList(char *sbList, char *rgsbList[], char chSep, int csbMax) +{ + int csbList = 0; + + while (sbList && *sbList && csbList < csbMax) { + rgsbList[csbList++] = sbList; + if ((sbList = strchr(sbList, chSep))) + *sbList++ = '\0'; + } + return(sbList && *sbList ? my_ERROR : csbList); +} + +/****** +** TexOpen -- tries to open sbFile in each of the rgsbInputPaths in turn. +** For each input path the following order is used: +** file.tex - must be as named, if not there go to the next path +** file.ext - random extension, try it +** file - base name, add .tex and try it +** file - try it as is +** Notice that if file exists in the first path and file.tex exists in +** one of the other paths, file in the first path is what is opened. +** If the sbFile begins with a '/', no paths are searched. +******/ + +FILE * +TexOpen(char *sbFile) +{ + char *sbNew; +#ifndef KPATHSEA + char *pch; + FILE *fp; + int iPath; + static char sbFullPath[PATH_MAX]; + + for (iPath = 0; iPath < csbInputPaths; iPath++) { +#ifdef OS2 + if (*sbFile == '/' || *sbFile == '\\' || strchr(sbFile, ':')) { /* absolute path */ +#else + if (*sbFile == '/') { /* absolute path */ +#endif + (void)sprintf(sbFullPath, "%s", sbFile); + iPath = csbInputPaths; /* only check once */ + } else + (void)sprintf(sbFullPath, "%s/%s", rgsbInputPaths[iPath], sbFile); +#ifdef OS2 + pch = sbFullPath; + while (pch = strchr(pch, '\\')) + *pch = '/'; +#endif + + /* If sbFile ends in .tex then it must be there */ + if ((pch = strrchr(sbFullPath, '.')) != NULL + && (strcmp(pch, ".tex") == 0)) + { + if ((fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + else + continue; + } + + /* if .<ext> then try to open it. the '.' represents */ + /* the beginning of an extension if it is not the first */ + /* character and it does not follow a '.' or a '/' */ + if (pch != NULL && pch > &(sbFullPath[0]) + && *(pch - 1) != '.' && *(pch - 1) != '/' + && (fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + + /* just base name, add .tex to the name */ + sbNew = SafeMalloc(strlen(sbFullPath) + 5, "malloc for TexOpen failed"); + (void)strcpy(sbNew, sbFullPath); + (void)strcat(sbNew, ".tex"); + if ((fp = fopen(sbNew, "r")) != NULL) + return(fp); + + /* try sbFile regardless */ + if ((fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + } + return NULL; +#else + sbNew = kpse_find_file (sbFile, kpse_tex_format, false); + + if (sbNew == NULL) + return NULL; + + return fopen (sbNew, "r"); +#endif +} + +/****** +** SafeMalloc -- wrapper around malloc() to check for failure. +******/ + +char * +SafeMalloc(int cch, const char *sbMessage) +{ + char *sb; + + if ((sb = (char *)malloc((unsigned)cch)) == NULL) + ErrorExit(sbMessage); + return(sb); +} + +/****** +** Warning -- print a warning message preceded by the program name. +******/ + +void +Warning(const char *sb1, const char *sb2) +{ + (void)fprintf(stderr, "%s: warning: %s %s\n", sbProgName, sb1, sb2); +} + +/****** +** ErrorExit -- print an error message preceded by the program name. +** Stdout is flushed and detex exits. +******/ + +void +ErrorExit(const char *sb1) +{ + (void)fflush(stdout); + (void)fprintf(stderr, "%s: error: %s\n", sbProgName, sb1); + exit(1); +} +#ifdef OS2 + +/****** +** OS2UsageExit -- print OS/2 usage message and exit. +******/ + +void +OS2UsageExit(void) +{ + (void)printf("\n%s [ -clnstw ] [ -e environment-list ] [ filename[.tex] ... ]\n", + sbProgName); + puts(" -c echo LaTeX \\cite, \\ref, and \\pageref values\n \ +-e <env-list> list of LaTeX environments to ignore\n \ +-l force latex mode\n \ +-n do not follow \\input and \\include\n \ +-s replace control sequences with space\n \ +-t force tex mode\n \ +-w word only output"); + exit(0); +} +#endif diff --git a/Build/source/texk/detex/detex-src/detex.man b/Build/source/texk/detex/detex-src/detex.man new file mode 100644 index 00000000000..93e71005746 --- /dev/null +++ b/Build/source/texk/detex/detex-src/detex.man @@ -0,0 +1,126 @@ +.TH DETEX 1L "12 August 1993" "Purdue University" +.SH NAME +detex \- a filter to strip \fITeX\fP commands from a .tex file. +.SH SYNOPSIS +.B detex +[ \fB\-clnstw\fR ] [ \fB\-e\fI environment-list\fR ] [ \fIfilename\fR[.tex] ... ] +.SH DESCRIPTION +.I Detex +(Version 2.6) +reads each file in sequence, removes all comments and +.I TeX +control sequences +and writes the remainder on the standard output. +All text in math mode and display mode is removed. +By default, +.I detex +follows \\input commands. +If a file cannot be opened, a warning message is +printed and the command is ignored. +If the +.B \-n +option is used, no \\input or \\include commands will be processed. +This allows single file processing. +If no input file is given on the command line, +.I detex +reads from standard input. +.PP +If the magic sequence ``\\begin{document}'' appears in the text, +.I detex +assumes it is dealing with +.I LaTeX +source and +.I detex +recognizes additional constructs used in +.IR LaTeX . +These include the \\include and \\includeonly commands. +The +.B \-l +option can be used to force +.I LaTeX +mode and the +.B \-t +option can be used to force +.I TeX +mode regardless of input content. +.PP +Text in various environment modes of +.I LaTeX +is ignored. The default modes are array, eqnarray, equation, figure, +mathmatica, picture, table and verbatim. The +.B \-e +option can be used to specify a comma separated +.I environment-list +of environments to ignore. The list replaces the defaults so specifying an +empty list effectively causes no environments to be ignored. +.PP +The +.B \-c +option can be used in +.I LaTeX +mode to have detex echo the arguments to \\cite, +\\ref, and \\pageref macros. This can be useful when sending the output to +a style checker. +.PP +.I Detex +assumes the standard character classes are being used for +.IR TeX . +.I Detex +allows white space between control sequences +and magic characters like `{' when recognizing things like +.I LaTeX +environments. +.PP +If the +.B \-w +flag is given, the output is a word list, one `word' (string of two or more +letters and apostrophes beginning with a letter) +per line, and all other characters ignored. +Without \fB\-w\fR the output follows the original, +with the deletions mentioned above. Newline characters are +preserved where possible +so that the lines of output match the input as closely as possible. +.PP +The TEXINPUTS environment variable is used to find \\input and \\include +files. Like \fITeX\fP, it interprets a leading or trailing `:' as the default +TEXINPUTS. It does \fInot\fP support the `//' directory expansion magic sequence. +.PP +Detex now handles the basic \fITeX\fP ligatures as a special case, replacing the +ligatures with acceptable charater substitutes. This eliminates +spelling errors introduced by merely removing them. The ligatures are +\\aa, \\ae, \\oe, \\ss, \\o, \\l (and their upper-case +equivalents). The special "dotless" characters \\i and \\j are also +replaced with i and j respectively. +.PP +Note that previous versions of +.I detex +would replace control sequences with a space character to prevent words +from running together. +However, this caused accents in the middle of words to break words, generating +"spelling errors" that were not desirable. +Therefore, the new version merely removes these accents. +The old functionality can be essentially duplicated by using the +.B \-s +option. +.SH SEE ALSO +tex(1L) +.SH DIAGNOSTICS +Nesting of \\input is allowed but the number of opened files must not +exceed the system's limit on the number of simultaneously opened files. +.I Detex +ignores unrecognized option characters after printing a warning message. +.SH AUTHOR +Daniel Trinkle, Computer Science Department, Purdue University +.SH BUGS +.I Detex +is not a complete +.I TeX +interpreter, so it can be confused by some constructs. +Most errors result in too much rather than too little output. +.PP +Running \fILaTeX\fR +source without a ``\\begin{document}'' +through \fIdetex\fR may produce +errors. +.PP +Suggestions for improvements are (mildly) encouraged. diff --git a/Build/source/texk/detex/detex-src/lexout.c b/Build/source/texk/detex/detex-src/lexout.c new file mode 100644 index 00000000000..cf56bdc0ba3 --- /dev/null +++ b/Build/source/texk/detex/detex-src/lexout.c @@ -0,0 +1,6234 @@ +/* A lexical scanner generated by flex */ + +/* Scanner skeleton version: + * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ + */ + +#define FLEX_SCANNER +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 5 + +#include <stdio.h> + + +/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ +#ifdef c_plusplus +#ifndef __cplusplus +#define __cplusplus +#endif +#endif + + +#ifdef __cplusplus + +#include <stdlib.h> +#include <unistd.h> + +/* Use prototypes in function declarations. */ +#define YY_USE_PROTOS + +/* The "const" storage-class-modifier is valid. */ +#define YY_USE_CONST + +#else /* ! __cplusplus */ + +#if __STDC__ + +#define YY_USE_PROTOS +#define YY_USE_CONST + +#endif /* __STDC__ */ +#endif /* ! __cplusplus */ + +#ifdef __TURBOC__ + #pragma warn -rch + #pragma warn -use +#include <io.h> +#include <stdlib.h> +#define YY_USE_CONST +#define YY_USE_PROTOS +#endif + +#ifdef YY_USE_CONST +#define yyconst const +#else +#define yyconst +#endif + + +#ifdef YY_USE_PROTOS +#define YY_PROTO(proto) proto +#else +#define YY_PROTO(proto) () +#endif + +/* Returned upon end-of-file. */ +#define YY_NULL 0 + +/* Promotes a possibly negative, possibly signed char to an unsigned + * integer for use as an array index. If the signed char is negative, + * we want to instead treat it as an 8-bit unsigned char, hence the + * double cast. + */ +#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) + +/* Enter a start condition. This macro really ought to take a parameter, + * but we do it the disgusting crufty way forced on us by the ()-less + * definition of BEGIN. + */ +#define BEGIN yy_start = 1 + 2 * + +/* Translate the current start state into a value that can be later handed + * to BEGIN to return to the state. The YYSTATE alias is for lex + * compatibility. + */ +#define YY_START ((yy_start - 1) / 2) +#define YYSTATE YY_START + +/* Action number for EOF rule of a given start state. */ +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) + +/* Special action meaning "start processing a new file". */ +#define YY_NEW_FILE yyrestart( yyin ) + +#define YY_END_OF_BUFFER_CHAR 0 + +/* Size of default input buffer. */ +#define YY_BUF_SIZE 16384 + +typedef struct yy_buffer_state *YY_BUFFER_STATE; + +extern int yyleng; +extern FILE *yyin, *yyout; + +#define EOB_ACT_CONTINUE_SCAN 0 +#define EOB_ACT_END_OF_FILE 1 +#define EOB_ACT_LAST_MATCH 2 + +/* The funky do-while in the following #define is used to turn the definition + * int a single C statement (which needs a semi-colon terminator). This + * avoids problems with code like: + * + * if ( condition_holds ) + * yyless( 5 ); + * else + * do_something_else(); + * + * Prior to using the do-while the compiler would get upset at the + * "else" because it interpreted the "if" statement as being all + * done when it reached the ';' after the yyless() call. + */ + +/* Return all but the first 'n' matched characters back to the input stream. */ + +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + *yy_cp = yy_hold_char; \ + YY_RESTORE_YY_MORE_OFFSET \ + yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) + +#define unput(c) yyunput( c, yytext_ptr ) + +/* The following is because we cannot portably get our hands on size_t + * (without autoconf's help, which isn't available because we want + * flex-generated scanners to compile on their own). + */ +typedef unsigned int yy_size_t; + + +struct yy_buffer_state + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + yy_size_t yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; + + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + }; + +static YY_BUFFER_STATE yy_current_buffer = 0; + +/* We provide macros for accessing buffer states in case in the + * future we want to put the buffer states in a more general + * "scanner state". + */ +#define YY_CURRENT_BUFFER yy_current_buffer + + +/* yy_hold_char holds the character lost when yytext is formed. */ +static char yy_hold_char; + +static int yy_n_chars; /* number of characters read into yy_ch_buf */ + + +int yyleng; + +/* Points to current character in buffer. */ +static char *yy_c_buf_p = (char *) 0; +static int yy_init = 1; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ + +/* Flag which is used to allow yywrap()'s to do buffer switches + * instead of setting up a fresh yyin. A bit of a hack ... + */ +static int yy_did_buffer_switch_on_eof; + +void yyrestart YY_PROTO(( FILE *input_file )); + +void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); +void yy_load_buffer_state YY_PROTO(( void )); +YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); +void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); +void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); +void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); +#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) + +YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); +YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); +YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); + +static void *yy_flex_alloc YY_PROTO(( yy_size_t )); +static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); +static void yy_flex_free YY_PROTO(( void * )); + +#define yy_new_buffer yy_create_buffer + +#define yy_set_interactive(is_interactive) \ + { \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_is_interactive = is_interactive; \ + } + +#define yy_set_bol(at_bol) \ + { \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_at_bol = at_bol; \ + } + +#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) + +typedef unsigned char YY_CHAR; +FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; +typedef int yy_state_type; +extern char *yytext; +#define yytext_ptr yytext + +static yy_state_type yy_get_previous_state YY_PROTO(( void )); +static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); +static int yy_get_next_buffer YY_PROTO(( void )); +static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); + +/* Done after the current pattern has been matched and before the + * corresponding action - sets up yytext. + */ +#define YY_DO_BEFORE_ACTION \ + yytext_ptr = yy_bp; \ + yyleng = (int) (yy_cp - yy_bp); \ + yy_hold_char = *yy_cp; \ + *yy_cp = '\0'; \ + yy_c_buf_p = yy_cp; + +#define YY_NUM_RULES 141 +#define YY_END_OF_BUFFER 142 +static yyconst short int yy_accept[708] = + { 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 121, 121, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 134, 134, 0, 0, 0, 0, 0, 0, 117, 117, + 0, 0, 142, 141, 79, 78, 77, 91, 90, 91, + 102, 105, 104, 103, 107, 109, 108, 96, 94, 93, + 96, 128, 128, 92, 1, 127, 128, 123, 123, 125, + 122, 121, 120, 119, 122, 122, 121, 11, 11, 10, + 9, 11, 87, 86, 87, 18, 17, 15, 16, 14, + 13, 14, 83, 82, 83, 98, 100, 99, 132, 129, + + 130, 131, 134, 133, 138, 135, 136, 137, 140, 139, + 6, 6, 7, 117, 42, 41, 43, 89, 102, 107, + 95, 124, 88, 1, 127, 0, 126, 116, 114, 80, + 113, 113, 113, 113, 84, 115, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 113, 121, 121, 119, 119, 0, 118, 0, + 0, 9, 0, 0, 0, 85, 15, 0, 81, 98, + 134, 6, 0, 42, 126, 113, 113, 111, 111, 115, + 0, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + + 113, 113, 113, 113, 113, 113, 113, 113, 113, 0, + 0, 0, 0, 110, 110, 0, 115, 113, 113, 113, + 113, 113, 76, 113, 64, 113, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 70, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 0, 0, 12, 0, 113, + 113, 113, 113, 113, 113, 60, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 51, 113, 113, 113, + 113, 113, 113, 31, 113, 113, 113, 113, 113, 113, + + 113, 113, 113, 113, 72, 113, 113, 0, 0, 0, + 0, 113, 113, 3, 113, 113, 113, 45, 113, 113, + 113, 113, 113, 113, 113, 113, 65, 106, 67, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 51, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 0, + 0, 0, 0, 113, 113, 0, 0, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 0, 0, 0, 0, + 0, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 35, 113, 113, 113, 113, 113, 113, 113, + + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 33, 113, 0, 0, 0, 0, 0, 113, 0, 0, + 0, 113, 113, 0, 0, 57, 113, 113, 113, 113, + 113, 113, 113, 113, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 21, 0, 0, 0, 97, 113, + 113, 113, 113, 113, 113, 68, 113, 113, 113, 113, + 113, 113, 113, 32, 113, 52, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, + 0, 0, 0, 113, 113, 0, 113, 59, 47, 113, + + 113, 113, 50, 66, 0, 21, 21, 0, 0, 0, + 0, 0, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 34, 113, 113, 113, 113, 36, 52, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 0, + 19, 19, 0, 0, 0, 0, 0, 0, 0, 0, + 113, 113, 0, 113, 113, 113, 113, 48, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, + 113, 112, 113, 113, 24, 113, 49, 69, 55, 113, + 113, 37, 39, 113, 25, 113, 113, 113, 113, 113, + 113, 46, 113, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 0, 8, 0, 4, 0, 113, + 0, 0, 0, 113, 113, 113, 113, 0, 0, 0, + 22, 113, 113, 73, 113, 30, 55, 38, 113, 37, + 71, 29, 113, 27, 53, 113, 113, 63, 0, 0, + 0, 20, 0, 26, 0, 0, 0, 0, 0, 0, + 113, 44, 113, 113, 113, 101, 113, 113, 28, 53, + 113, 113, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 58, 113, 113, 113, 113, + 74, 113, 56, 0, 0, 0, 0, 23, 0, 62, + 61, 113, 113, 54, 56, 0, 5, 0, 113, 75, + + 54, 0, 2, 40, 40, 40, 0 + } ; + +static yyconst short int yy_base[767] = + { 0, + 0, 0, 0, 1, 2, 3, 5, 8, 11, 14, + 6, 9, 107, 201, 319, 434, 549, 664, 12, 15, + 778, 894, 16, 17, 18, 19, 22, 25, 26, 75, + 1972, 1971, 78, 287, 20, 23, 34, 37, 10, 15, + 2, 29, 2062,13692,13692,13692,13692,13692,13692, 2025, + 0,13692,13692,13692, 0,13692,13692,13692,13692,13692, + 2023,13692, 1962, 2020, 0, 20, 2012, 988,13692,13692, + 13692, 227,13692, 0, 39, 0, 1927,13692, 230, 233, + 0, 345,13692,13692, 1951,13692,13692, 0,13692,13692, + 13692, 1942,13692,13692, 2001, 0,13692,13692,13692,13692, + + 13692,13692, 0,13692,13692,13692,13692,13692,13692,13692, + 0, 0, 1940,13692, 0,13692,13692,13692, 0, 0, + 13692,13692,13692, 0, 282, 1998, 1997,13692,13692,13692, + 0, 14, 110, 460,13692, 6, 2, 13, 1, 4, + 1925, 42, 1919, 350, 578, 1932, 580, 1933, 246, 264, + 1928, 1912, 31, 439, 1903, 0, 0, 547, 0, 440, + 567, 0, 569, 1919, 1922,13692, 0, 1911,13692, 0, + 0, 0, 1910, 0, 0, 0, 436, 442,13692, 1928, + 1924, 1916, 1912, 1916, 1894, 1901, 1906, 1888, 1886, 1874, + 60, 134, 148, 1886, 1873, 1863, 238, 1876, 458, 1862, + + 1859, 1865, 1878, 22, 349, 1854, 1872, 1857, 233, 1850, + 1842, 1855, 1854, 446,13692, 1860,13692, 145, 1847, 467, + 1850, 1836, 1841, 1816, 0, 1824, 1822, 1813, 1822, 1829, + 1813, 1819, 1799, 1814, 1813, 492, 1802, 360, 1781, 1787, + 1792, 1787, 1794, 1788, 1767, 1774, 1764, 495, 1764, 1765, + 1732, 355, 1749, 1741, 1748, 1739, 1745,13692, 574, 1720, + 1715, 1704, 1696, 1706, 1692, 0, 1692, 1690, 1690, 1687, + 1692, 1683, 1677, 1688, 1669, 1664, 1665, 1670, 1662, 1648, + 1648, 1654, 1657, 366, 1650, 1628, 1696, 1636, 1635, 1616, + 1608, 1611, 1627, 0, 1622, 1616, 1609, 1618, 1607, 360, + + 1616, 1613, 1598, 1610, 0, 1593, 1596, 1582, 1596, 670, + 679, 1584, 1574, 681, 1584, 1572, 1560, 1582, 1578, 1577, + 1563, 1575, 1564, 780, 1563, 1563, 0, 0, 0, 1546, + 1527, 1515, 1522, 1512, 1518, 1527, 1509, 1510, 1502,13692, + 1523, 1520, 1519, 1506, 1505, 1491, 1486, 1471, 1464, 1469, + 582, 1479, 1479, 1461, 1462, 1452, 1469, 896, 1464, 1467, + 1447, 683, 1449, 1448, 1439, 685, 807, 1426, 1431, 1425, + 1421, 1432, 1420, 1431, 1419, 1382, 1102, 670, 860, 1114, + 0, 1008, 1392, 1391, 1382, 1382, 1379, 1368, 1336, 1313, + 1293, 1314, 0, 1299, 1292, 1290, 1302, 1301, 1277, 1281, + + 1281, 1280, 1286, 1287, 1286, 1278, 1265, 1265, 1280, 1267, + 0, 1262, 1129, 881, 981, 1186, 0, 1183, 1265, 1259, + 1249, 1252, 1242, 1013, 1227, 0, 1221, 1233, 1212, 1218, + 1212, 1214, 1224, 1221, 1218, 1017, 1149, 1208, 465, 1211, + 1200, 1198, 250, 1188, 782, 1110, 1179, 1294, 493, 1197, + 1191, 1167, 1164, 1181, 1167, 0, 1155, 1150, 1141, 1151, + 1139, 1136, 1135, 0, 1125, 1202, 1115, 1108, 1110, 1115, + 1117, 1111, 1109, 1106, 1080, 1093, 1304, 1267, 1203, 1075, + 471, 1076, 1063, 1040, 695, 1032, 786, 1198, 1255, 1375, + 1042, 1032, 1039, 1033, 1034, 1034, 1033, 0, 0, 1020, + + 498, 1007, 0, 0, 1385, 789, 810, 1456, 1397, 1407, + 1471, 0, 1011, 1011, 1011, 1004, 973, 979, 971, 967, + 950, 944, 0, 935, 935, 923, 922, 0,13692, 940, + 935, 905, 887, 873, 876, 887, 871, 844, 854, 1505, + 892, 911, 1542, 1422, 1490, 1591, 0, 1015, 1273, 859, + 839, 1283, 837, 828, 815, 817, 807, 0, 1617, 1599, + 1602, 810, 496, 819, 808, 765, 706, 761, 1280, 774, + 762, 0, 769, 731, 0, 720, 0, 0, 796, 695, + 716, 767, 0, 692, 0, 699, 698, 696, 650, 643, + 661, 0, 656, 1692, 1652, 1720, 644, 599, 655, 618, + + 605, 708, 600, 1287, 1361,13692, 1364,13692, 594, 603, + 1299, 1770, 597, 600, 586, 587, 556, 1785, 1486, 1557, + 13692, 533, 523, 0, 533, 0,13692, 0, 531,13692, + 0, 0, 524, 0, 567, 497, 486, 0, 1819, 1603, + 1606,13692, 464, 0, 1856, 1804, 1887, 1913, 0, 465, + 444, 0, 413, 419, 421, 0, 396, 396, 0,13692, + 383, 389, 355, 1940, 1948, 1950, 350, 600, 314, 303, + 239, 711, 234, 1678, 234, 0, 227, 195, 190, 184, + 0, 182, 203, 1724, 2022, 1753, 1756,13692, 128, 0, + 0, 103, 52, 125,13692, 1773,13692, 1800, 7, 0, + + 13692, 1854,13692, 2074, 0, 2133,13692, 2255, 2510, 2765, + 3020, 3275, 3530, 3785, 4040, 4295, 4550, 4805, 5060, 5315, + 5570, 5825, 6080, 6335, 6590, 6845, 7100, 7355, 7610, 7865, + 8120, 8337, 8459, 8714, 8931, 8990, 9048, 9106, 9228, 9483, + 9738, 9993,10248,10503,10758,10975,11059,11118,11240,11457, + 11516,11574,11632,11754,12009,12264,12519,12710,12769,12891, + 13082,13140,13198,13256,13314,13436 + } ; + +static yyconst short int yy_def[767] = + { 0, + 708, 708, 709, 709, 710, 710, 711, 711, 712, 712, + 713, 713, 714, 714, 715, 715, 716, 716, 717, 717, + 718, 718, 719, 719, 720, 720, 721, 721, 722, 722, + 723, 723, 724, 724, 725, 725, 726, 726, 727, 727, + 728, 728, 707, 707, 707, 707, 707, 707, 707, 707, + 729, 707, 707, 707, 730, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 731, 707, 732, 733, 707, 707, + 707, 707, 707, 734, 735, 736, 707, 707, 707, 707, + 737, 707, 707, 707, 707, 707, 707, 738, 707, 707, + 707, 707, 707, 707, 707, 739, 707, 707, 707, 707, + + 707, 707, 740, 707, 707, 707, 707, 707, 707, 707, + 741, 741, 707, 707, 742, 707, 707, 707, 743, 744, + 707, 707, 707, 745, 707, 746, 747, 707, 707, 707, + 748, 748, 748, 748, 707, 707, 748, 748, 748, 748, + 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, + 748, 748, 748, 707, 707, 749, 749, 750, 751, 707, + 707, 752, 707, 707, 707, 707, 753, 707, 707, 754, + 755, 756, 707, 757, 758, 759, 759, 707, 707, 707, + 760, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + + 759, 759, 759, 759, 759, 759, 759, 759, 759, 707, + 707, 707, 707, 707, 707, 760, 707, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 707, 707, 707, 707, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + + 759, 759, 759, 759, 759, 759, 759, 707, 707, 707, + 707, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 707, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 707, + 707, 707, 707, 759, 759, 707, 707, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 707, 707, 707, 707, + 761, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 707, 707, 707, 707, 762, 759, 707, 707, + 707, 759, 759, 707, 707, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 761, 707, 707, 707, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 762, 707, 707, 707, + 707, 707, 707, 759, 759, 707, 759, 759, 759, 759, + + 759, 759, 759, 759, 707, 707, 707, 707, 707, 707, + 707, 763, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 707, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 707, + 707, 707, 707, 707, 707, 707, 764, 707, 707, 707, + 759, 759, 707, 759, 759, 759, 759, 759, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 763, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 707, 707, 707, 707, 707, 707, 707, + + 707, 707, 707, 764, 707, 707, 707, 707, 707, 759, + 707, 707, 707, 759, 759, 759, 759, 707, 707, 707, + 707, 759, 759, 759, 759, 759, 707, 759, 759, 707, + 759, 759, 759, 759, 759, 759, 759, 759, 707, 707, + 707, 707, 707, 759, 707, 707, 707, 707, 765, 707, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 707, + 759, 759, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 765, 707, 759, 759, 759, 759, 759, + 759, 759, 759, 707, 707, 707, 707, 707, 707, 759, + 759, 759, 759, 759, 707, 707, 707, 707, 759, 759, + + 707, 707, 707, 766, 766, 766, 0, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707 + } ; + +static yyconst short int yy_nxt[13949] = + { 0, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 46, + 46, 49, 49, 52, 53, 59, 52, 53, 59, 56, + 57, 84, 56, 57, 84, 91, 91, 94, 94, 44, + 97, 98, 44, 97, 98, 44, 52, 50, 50, 52, + 707, 60, 56, 112, 60, 56, 112, 180, 52, 707, + 707, 52, 707, 97, 707, 707, 97, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 125, 125, 125, + 125, 125, 125, 125, 125, 125, 125, 157, 177, 707, + 707, 707, 177, 157, 44, 707, 707, 44, 707, 707, + 707, 707, 707, 707, 707, 707, 181, 61, 177, 157, + + 61, 182, 177, 85, 187, 185, 85, 92, 92, 95, + 95, 186, 110, 183, 188, 110, 100, 184, 178, 179, + 247, 704, 47, 47, 116, 113, 117, 52, 113, 54, + 52, 208, 54, 56, 157, 56, 56, 248, 56, 63, + 190, 178, 64, 65, 97, 209, 97, 97, 101, 97, + 102, 116, 191, 117, 66, 66, 66, 66, 66, 66, + 66, 66, 66, 66, 227, 100, 701, 700, 106, 63, + 228, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 101, 68, 102, + + 107, 699, 108, 67, 67, 67, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 67, 67, 69, + 69, 69, 70, 63, 179, 154, 64, 65, 160, 160, + 229, 160, 160, 698, 695, 230, 231, 232, 66, 66, + 66, 66, 66, 66, 66, 66, 66, 66, 154, 233, + 260, 160, 261, 63, 160, 67, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 67, 694, 68, 693, 692, 691, 44, 67, 67, 67, + + 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, + 67, 67, 67, 69, 69, 69, 70, 72, 73, 125, + 125, 125, 125, 125, 125, 125, 125, 125, 125, 254, + 237, 690, 198, 689, 255, 686, 199, 686, 506, 155, + 72, 238, 161, 163, 163, 161, 200, 74, 178, 179, + 201, 202, 203, 74, 204, 506, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 163, 106, 177, 74, + 205, 178, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, + + 75, 75, 75, 75, 75, 75, 75, 75, 75, 107, + 76, 108, 686, 686, 74, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 77, 72, 73, 214, 215, 249, 154, 160, 160, + 178, 179, 303, 164, 214, 215, 285, 286, 250, 193, + 352, 686, 165, 684, 335, 72, 304, 214, 178, 179, + 154, 160, 74, 178, 179, 287, 353, 214, 74, 336, + 337, 75, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 178, 683, 682, 74, 681, 680, 75, 75, 75, + + 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 679, 76, 678, 677, 177, 74, + 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, + 75, 75, 75, 75, 75, 75, 77, 79, 80, 240, + 215, 155, 161, 506, 676, 675, 179, 241, 663, 541, + 215, 263, 242, 506, 264, 163, 163, 163, 163, 541, + 79, 265, 310, 310, 179, 157, 178, 179, 178, 179, + 280, 157, 281, 297, 619, 513, 556, 662, 163, 282, + + 163, 661, 298, 514, 619, 310, 283, 157, 660, 178, + 299, 178, 557, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 659, + 658, 657, 157, 656, 655, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 82, 79, 80, 194, 164, 654, 164, 310, 310, + 177, 404, 195, 653, 165, 405, 165, 362, 362, 366, + 366, 362, 362, 366, 366, 79, 311, 640, 686, 652, + + 406, 310, 179, 651, 179, 650, 644, 640, 686, 643, + 362, 640, 366, 640, 362, 379, 366, 380, 380, 380, + 380, 380, 380, 380, 380, 380, 380, 640, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 640, 640, 638, 637, 636, 635, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 81, 81, 81, 82, 87, 377, 377, + 507, 507, 311, 541, 542, 542, 363, 507, 507, 634, + + 363, 633, 632, 367, 619, 631, 640, 367, 630, 686, + 541, 377, 629, 507, 628, 424, 424, 542, 507, 507, + 507, 619, 378, 640, 378, 379, 686, 380, 380, 380, + 380, 380, 380, 380, 380, 380, 380, 627, 424, 626, + 625, 507, 88, 88, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 88, 88, 88, 88, 624, 623, + 622, 381, 619, 619, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, + + 542, 542, 89, 87, 413, 413, 425, 435, 435, 435, + 435, 435, 435, 435, 435, 435, 435, 619, 619, 542, + 542, 619, 617, 542, 616, 615, 415, 413, 416, 416, + 416, 416, 416, 416, 416, 416, 416, 416, 414, 614, + 414, 415, 542, 416, 416, 416, 416, 416, 416, 416, + 416, 416, 416, 613, 610, 609, 593, 592, 88, 88, + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 591, 590, 589, 417, 588, 587, + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, + + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, + 88, 88, 88, 88, 88, 88, 446, 446, 89, 129, + 586, 424, 424, 605, 605, 436, 436, 130, 477, 477, + 477, 477, 477, 477, 477, 477, 477, 477, 585, 446, + 584, 583, 582, 581, 424, 580, 605, 579, 436, 447, + 578, 131, 132, 131, 131, 131, 131, 131, 131, 131, + 131, 131, 131, 133, 131, 131, 134, 131, 131, 131, + 131, 131, 131, 131, 131, 131, 131, 131, 135, 136, + 577, 576, 575, 574, 137, 138, 139, 140, 141, 142, + 131, 143, 144, 133, 131, 145, 131, 146, 147, 148, + + 131, 149, 150, 151, 152, 153, 131, 131, 131, 131, + 377, 377, 425, 573, 438, 439, 440, 572, 446, 446, + 571, 441, 436, 436, 570, 442, 558, 555, 443, 554, + 448, 444, 553, 377, 552, 551, 550, 413, 413, 606, + 549, 446, 548, 541, 378, 436, 378, 379, 541, 380, + 380, 380, 380, 380, 380, 380, 380, 380, 380, 437, + 413, 380, 380, 380, 380, 380, 380, 380, 380, 380, + 380, 414, 541, 414, 415, 541, 416, 416, 416, 416, + 416, 416, 416, 416, 416, 416, 541, 446, 446, 539, + 538, 488, 488, 381, 478, 478, 505, 505, 505, 505, + + 505, 505, 505, 505, 505, 505, 488, 488, 537, 536, + 446, 438, 439, 440, 488, 535, 534, 478, 441, 533, + 417, 532, 442, 531, 489, 443, 436, 436, 444, 488, + 530, 479, 448, 416, 416, 416, 416, 416, 416, 416, + 416, 416, 416, 529, 528, 527, 526, 525, 524, 436, + 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, + 523, 522, 521, 488, 488, 435, 435, 435, 435, 435, + 435, 435, 435, 435, 435, 478, 478, 520, 519, 518, + 517, 607, 607, 480, 481, 482, 488, 516, 620, 620, + 483, 611, 611, 515, 484, 641, 641, 485, 478, 506, + + 486, 448, 508, 508, 607, 490, 506, 611, 611, 506, + 506, 620, 478, 478, 611, 438, 439, 440, 641, 506, + 490, 504, 441, 503, 502, 508, 442, 501, 500, 443, + 611, 499, 444, 498, 497, 478, 509, 496, 509, 510, + 495, 511, 511, 511, 511, 511, 511, 511, 511, 511, + 511, 477, 477, 477, 477, 477, 477, 477, 477, 477, + 477, 494, 493, 492, 480, 481, 482, 491, 476, 605, + 605, 483, 607, 607, 475, 484, 474, 490, 485, 473, + 472, 486, 471, 543, 543, 512, 470, 469, 468, 467, + 466, 465, 605, 436, 436, 607, 464, 608, 463, 462, + + 461, 480, 481, 482, 621, 612, 543, 460, 483, 459, + 458, 642, 484, 457, 456, 485, 436, 544, 486, 544, + 545, 612, 546, 546, 546, 546, 546, 546, 546, 546, + 546, 546, 505, 505, 505, 505, 505, 505, 505, 505, + 505, 505, 510, 455, 511, 511, 511, 511, 511, 511, + 511, 511, 511, 511, 559, 559, 559, 559, 559, 559, + 559, 559, 559, 559, 508, 508, 547, 545, 454, 546, + 546, 546, 546, 546, 546, 546, 546, 546, 546, 560, + 560, 453, 438, 439, 440, 606, 452, 508, 608, 441, + 451, 450, 449, 442, 620, 620, 443, 434, 509, 444, + + 509, 510, 560, 511, 511, 511, 511, 511, 511, 511, + 511, 511, 511, 478, 478, 433, 561, 620, 511, 511, + 511, 511, 511, 511, 511, 511, 511, 511, 432, 431, + 430, 429, 428, 427, 426, 423, 478, 594, 594, 594, + 594, 594, 594, 594, 594, 594, 594, 512, 422, 421, + 543, 543, 540, 540, 540, 540, 540, 540, 540, 540, + 540, 540, 420, 419, 418, 620, 620, 412, 562, 563, + 564, 411, 410, 543, 409, 565, 408, 407, 403, 566, + 402, 401, 567, 400, 544, 568, 544, 545, 620, 546, + 546, 546, 546, 546, 546, 546, 546, 546, 546, 595, + + 595, 399, 480, 481, 482, 398, 397, 560, 560, 483, + 621, 641, 641, 484, 641, 641, 485, 396, 395, 486, + 394, 393, 595, 392, 391, 560, 560, 390, 389, 388, + 560, 387, 386, 547, 641, 385, 596, 641, 546, 546, + 546, 546, 546, 546, 546, 546, 546, 546, 560, 618, + 618, 618, 618, 618, 618, 618, 618, 618, 618, 384, + 595, 595, 383, 382, 559, 559, 559, 559, 559, 559, + 559, 559, 559, 559, 376, 375, 374, 373, 372, 371, + 370, 621, 369, 595, 368, 365, 687, 687, 597, 598, + 599, 364, 361, 360, 359, 600, 562, 563, 564, 601, + + 595, 595, 602, 565, 358, 603, 357, 566, 356, 687, + 567, 355, 354, 568, 562, 563, 564, 351, 350, 349, + 348, 565, 347, 595, 346, 566, 345, 642, 567, 344, + 642, 568, 696, 696, 343, 342, 341, 340, 339, 594, + 594, 594, 594, 594, 594, 594, 594, 594, 594, 597, + 598, 599, 338, 334, 333, 696, 600, 332, 331, 330, + 601, 687, 687, 602, 687, 687, 603, 639, 639, 639, + 639, 639, 639, 639, 639, 639, 639, 329, 645, 645, + 328, 696, 696, 327, 687, 326, 325, 687, 324, 597, + 598, 599, 323, 560, 560, 322, 600, 321, 320, 319, + + 601, 645, 688, 602, 696, 318, 603, 317, 702, 702, + 316, 315, 646, 314, 646, 647, 560, 648, 648, 648, + 648, 648, 648, 648, 648, 648, 648, 595, 595, 313, + 312, 702, 618, 618, 618, 618, 618, 618, 618, 618, + 618, 618, 309, 308, 307, 306, 305, 302, 697, 647, + 595, 648, 648, 648, 648, 648, 648, 648, 648, 648, + 648, 649, 702, 702, 645, 645, 639, 639, 639, 639, + 639, 639, 639, 639, 639, 639, 301, 688, 300, 296, + 688, 295, 562, 563, 564, 702, 294, 645, 293, 565, + 292, 291, 290, 566, 289, 288, 567, 697, 646, 568, + + 646, 647, 284, 648, 648, 648, 648, 648, 648, 648, + 648, 648, 648, 279, 278, 277, 597, 598, 599, 276, + 275, 665, 665, 600, 703, 274, 273, 601, 272, 271, + 602, 270, 269, 603, 664, 664, 664, 664, 664, 664, + 664, 664, 664, 664, 665, 268, 267, 649, 665, 665, + 266, 262, 217, 259, 258, 257, 665, 665, 666, 256, + 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, + 253, 665, 252, 251, 246, 245, 244, 243, 703, 665, + 239, 236, 235, 234, 226, 225, 224, 664, 664, 664, + 664, 664, 664, 664, 664, 664, 664, 685, 685, 685, + + 685, 685, 685, 685, 685, 685, 685, 223, 222, 221, + 667, 668, 669, 220, 219, 218, 217, 670, 181, 213, + 212, 671, 211, 210, 672, 155, 207, 673, 206, 197, + 665, 665, 196, 192, 189, 126, 126, 667, 668, 669, + 173, 169, 168, 166, 670, 667, 668, 669, 671, 155, + 126, 672, 670, 665, 673, 123, 671, 122, 121, 672, + 118, 707, 673, 104, 104, 707, 707, 707, 707, 685, + 685, 685, 685, 685, 685, 685, 685, 685, 685, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 667, + 668, 669, 707, 707, 707, 707, 670, 707, 707, 707, + 671, 707, 707, 672, 707, 707, 673, 706, 706, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 707, 707, 707, 707, 707, 707, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 707, 707, 707, 707, 707, 707, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, + 51, 51, 51, 51, 51, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, + 71, 71, 71, 71, 71, 78, 78, 78, 78, 78, + + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, + + 83, 83, 83, 83, 83, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + + 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, + 90, 90, 90, 90, 90, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + 96, 96, 96, 96, 96, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 103, 103, 103, 103, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, + + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, + 44, 44, 44, 44, 44, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, + 119, 119, 119, 119, 119, 119, 119, 119, 707, 707, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 707, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 707, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 707, 119, 707, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, + 120, 120, 120, 707, 707, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 707, 120, 120, 120, + + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 707, 120, 707, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 707, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 127, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + + 707, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 707, 707, 707, + 707, 707, 707, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 707, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + + 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 156, 156, 156, 156, 156, 156, + 156, 156, 707, 707, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 707, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 707, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 158, + 707, 707, 707, 707, 707, 158, 707, 707, 158, 158, + 158, 158, 158, 158, 158, 158, 158, 158, 707, 707, + 707, 158, 707, 707, 158, 158, 158, 158, 158, 158, + + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, + 158, 707, 707, 707, 707, 707, 158, 158, 158, 158, + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, + 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, + 707, 707, 707, 707, 707, 707, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, + + 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 707, 707, + 707, 707, 707, 707, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, + 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, + 167, 167, 167, 167, 167, 167, 707, 707, 707, 707, + + 707, 707, 167, 167, 167, 167, 167, 167, 167, 167, + 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, + 167, 167, 167, 167, 167, 167, 167, 167, 170, 170, + 170, 170, 170, 170, 170, 170, 707, 707, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 707, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 707, 170, 707, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 707, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 707, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 174, 174, 174, 174, 174, 174, 174, + + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 707, 174, 707, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 119, 119, + 119, 119, 119, 119, 119, 119, 707, 707, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 707, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 707, 119, 119, 119, 119, 119, 119, 119, 119, + + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 707, 119, 707, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, + + 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, + 120, 707, 707, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 707, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 707, 120, 707, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, + 120, 120, 120, 120, 120, 120, 120, 120, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 707, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + + 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, + 124, 124, 124, 175, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 175, 175, 175, 707, 707, 707, 707, 707, + 707, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 127, 707, 707, + + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 707, + 707, 707, 707, 707, 707, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, + + 176, 176, 176, 176, 176, 176, 176, 176, 707, 707, + 707, 707, 707, 707, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 156, 156, 156, 156, 156, 156, 156, 156, 707, 707, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 707, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 707, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 158, 707, 707, 707, 707, + + 707, 158, 707, 707, 158, 158, 158, 158, 158, 158, + 158, 158, 158, 158, 707, 707, 707, 158, 707, 707, + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, + 158, 158, 158, 158, 158, 158, 158, 707, 707, 707, + 707, 707, 158, 158, 158, 158, 158, 158, 158, 158, + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, + 158, 158, 158, 158, 158, 158, 158, 158, 158, 159, + 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, + + 159, 159, 159, 159, 159, 159, 707, 707, 707, 707, + 707, 707, 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, + 159, 159, 159, 159, 159, 159, 159, 159, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 707, 707, 707, 707, 707, 707, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 162, 162, 162, 162, 162, 162, 167, 167, 167, 167, + + 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, + 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, + 167, 167, 707, 707, 707, 707, 707, 707, 167, 167, + 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, + 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, + 167, 167, 167, 167, 170, 170, 170, 170, 170, 170, + 170, 170, 707, 707, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 707, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 707, 170, 707, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, + + 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + + 171, 707, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 707, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 707, 174, 707, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 175, 175, 175, 175, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + + 707, 707, 707, 707, 707, 707, 175, 175, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 707, + 707, 707, 707, 707, 707, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 216, 216, 216, 216, 216, 216, 216, 216, 216, + + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, + 216, 216, 216, 216, 216, 216, 445, 445, 445, 445, + 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, + 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, + 445, 445, 707, 707, 707, 707, 707, 707, 445, 445, + 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, + 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, + + 445, 445, 445, 445, 487, 487, 487, 487, 487, 487, + 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, + 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, + 707, 707, 707, 707, 707, 707, 487, 487, 487, 487, + 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, + 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, + 487, 487, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 707, 707, + 707, 707, 707, 707, 569, 569, 569, 569, 569, 569, + + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, + 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, + 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, + 604, 604, 604, 604, 604, 604, 707, 707, 707, 707, + 707, 707, 604, 604, 604, 604, 604, 604, 604, 604, + 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, + 604, 604, 604, 604, 604, 604, 604, 604, 674, 674, + 674, 674, 674, 674, 674, 674, 674, 674, 674, 674, + 674, 674, 674, 674, 674, 674, 674, 674, 674, 674, + + 674, 674, 674, 674, 707, 707, 707, 707, 707, 707, + 674, 674, 674, 674, 674, 674, 674, 674, 674, 674, + 674, 674, 674, 674, 674, 674, 674, 674, 674, 674, + 674, 674, 674, 674, 674, 674, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 707, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, + 705, 43, 707, 707, 707, 707, 707, 707, 707, 707, + + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707 + } ; + +static yyconst short int yy_chk[13949] = + { 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, + 4, 5, 6, 7, 7, 11, 8, 8, 12, 9, + 9, 19, 10, 10, 20, 23, 24, 25, 26, 35, + 27, 27, 36, 28, 28, 29, 7, 5, 6, 8, + 0, 11, 9, 37, 12, 10, 38, 136, 7, 0, + 0, 8, 0, 27, 0, 0, 28, 39, 39, 39, + 39, 39, 40, 40, 40, 40, 40, 66, 66, 66, + 66, 66, 66, 66, 66, 66, 66, 75, 132, 0, + 0, 0, 132, 75, 30, 0, 0, 33, 0, 0, + 0, 0, 0, 0, 0, 0, 136, 11, 137, 75, + + 12, 137, 137, 19, 140, 139, 20, 23, 24, 25, + 26, 139, 35, 138, 140, 36, 29, 138, 133, 133, + 204, 699, 3, 4, 41, 37, 41, 7, 38, 7, + 8, 153, 8, 9, 75, 9, 10, 204, 10, 13, + 142, 133, 13, 13, 27, 153, 27, 28, 29, 28, + 29, 42, 142, 42, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 191, 30, 694, 693, 33, 13, + 191, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 30, 13, 30, + + 33, 692, 33, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 14, 133, 72, 14, 14, 79, 79, + 192, 80, 80, 689, 683, 192, 193, 193, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 72, 193, + 218, 79, 218, 14, 80, 14, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, + 14, 682, 14, 680, 679, 678, 34, 14, 14, 14, + + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, + 14, 14, 14, 14, 14, 14, 14, 15, 15, 125, + 125, 125, 125, 125, 125, 125, 125, 125, 125, 209, + 197, 677, 149, 675, 209, 673, 149, 671, 443, 72, + 15, 197, 79, 82, 82, 80, 149, 15, 144, 144, + 150, 150, 150, 15, 150, 443, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 82, 34, 150, 15, + 150, 144, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + + 15, 15, 15, 15, 15, 15, 15, 15, 15, 34, + 15, 34, 670, 669, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 16, 16, 177, 177, 205, 154, 160, 160, + 178, 178, 252, 82, 214, 214, 238, 238, 205, 144, + 300, 667, 82, 663, 284, 16, 252, 177, 134, 134, + 154, 160, 16, 178, 144, 238, 300, 214, 16, 284, + 284, 16, 16, 16, 16, 16, 16, 16, 16, 16, + 16, 134, 662, 661, 16, 658, 657, 16, 16, 16, + + 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 655, 16, 654, 653, 134, 16, + 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 17, 17, 199, + 177, 154, 160, 439, 651, 650, 178, 199, 643, 481, + 214, 220, 199, 439, 220, 161, 161, 163, 163, 481, + 17, 220, 259, 259, 134, 158, 145, 145, 147, 147, + 236, 158, 236, 248, 563, 449, 501, 637, 161, 236, + + 163, 636, 248, 449, 563, 259, 236, 158, 635, 145, + 248, 147, 501, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, 17, 17, 17, 17, 633, + 629, 625, 158, 623, 622, 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, + 17, 17, 18, 18, 145, 161, 617, 163, 310, 310, + 147, 351, 145, 616, 161, 351, 163, 311, 311, 314, + 314, 362, 362, 366, 366, 18, 259, 598, 668, 615, + + 351, 310, 145, 614, 147, 613, 610, 598, 668, 609, + 311, 603, 314, 601, 362, 378, 366, 378, 378, 378, + 378, 378, 378, 378, 378, 378, 378, 600, 18, 18, + 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, + 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, + 18, 18, 18, 18, 599, 597, 593, 591, 590, 589, + 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, + 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, + 18, 18, 18, 18, 18, 18, 18, 21, 324, 324, + 445, 445, 310, 485, 487, 487, 311, 506, 506, 588, + + 362, 587, 586, 314, 567, 584, 602, 366, 582, 672, + 485, 324, 581, 445, 580, 367, 367, 487, 507, 507, + 506, 567, 324, 602, 324, 324, 672, 324, 324, 324, + 324, 324, 324, 324, 324, 324, 324, 579, 367, 576, + 574, 507, 21, 21, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 573, 571, + 570, 324, 568, 566, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, + + 541, 541, 21, 22, 358, 358, 367, 379, 379, 379, + 379, 379, 379, 379, 379, 379, 379, 565, 564, 542, + 542, 562, 557, 541, 556, 555, 414, 358, 414, 414, + 414, 414, 414, 414, 414, 414, 414, 414, 358, 554, + 358, 358, 542, 358, 358, 358, 358, 358, 358, 358, + 358, 358, 358, 553, 551, 550, 539, 538, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 537, 536, 535, 358, 534, 533, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 382, 382, 22, 68, + 532, 424, 424, 548, 548, 436, 436, 68, 415, 415, + 415, 415, 415, 415, 415, 415, 415, 415, 531, 382, + 530, 527, 526, 525, 424, 524, 548, 522, 436, 382, + 521, 68, 68, 68, 68, 68, 68, 68, 68, 68, + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + 520, 519, 518, 517, 68, 68, 68, 68, 68, 68, + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + + 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, + 377, 377, 424, 516, 436, 436, 436, 515, 446, 446, + 514, 436, 380, 380, 513, 436, 502, 500, 436, 497, + 382, 436, 496, 377, 495, 494, 493, 413, 413, 548, + 492, 446, 491, 486, 377, 380, 377, 377, 484, 377, + 377, 377, 377, 377, 377, 377, 377, 377, 377, 380, + 413, 380, 380, 380, 380, 380, 380, 380, 380, 380, + 380, 413, 483, 413, 413, 482, 413, 413, 413, 413, + 413, 413, 413, 413, 413, 413, 480, 447, 447, 476, + 475, 418, 418, 377, 416, 416, 437, 437, 437, 437, + + 437, 437, 437, 437, 437, 437, 488, 488, 474, 473, + 447, 380, 380, 380, 418, 472, 471, 416, 380, 470, + 413, 469, 380, 468, 418, 380, 435, 435, 380, 488, + 467, 416, 446, 416, 416, 416, 416, 416, 416, 416, + 416, 416, 416, 466, 465, 463, 462, 461, 460, 435, + 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, + 459, 458, 457, 489, 489, 435, 435, 435, 435, 435, + 435, 435, 435, 435, 435, 478, 478, 455, 454, 453, + 452, 549, 549, 416, 416, 416, 489, 451, 569, 569, + 416, 552, 552, 450, 416, 604, 604, 416, 478, 444, + + 416, 447, 448, 448, 549, 418, 442, 611, 611, 441, + 440, 569, 477, 477, 552, 435, 435, 435, 604, 438, + 488, 434, 435, 433, 432, 448, 435, 431, 430, 435, + 611, 429, 435, 428, 427, 477, 448, 425, 448, 448, + 423, 448, 448, 448, 448, 448, 448, 448, 448, 448, + 448, 477, 477, 477, 477, 477, 477, 477, 477, 477, + 477, 422, 421, 420, 478, 478, 478, 419, 412, 605, + 605, 478, 607, 607, 410, 478, 409, 489, 478, 408, + 407, 478, 406, 490, 490, 448, 405, 404, 403, 402, + 401, 400, 605, 505, 505, 607, 399, 549, 398, 397, + + 396, 477, 477, 477, 569, 552, 490, 395, 477, 394, + 392, 604, 477, 391, 390, 477, 505, 490, 477, 490, + 490, 611, 490, 490, 490, 490, 490, 490, 490, 490, + 490, 490, 505, 505, 505, 505, 505, 505, 505, 505, + 505, 505, 509, 389, 509, 509, 509, 509, 509, 509, + 509, 509, 509, 509, 510, 510, 510, 510, 510, 510, + 510, 510, 510, 510, 508, 508, 490, 544, 388, 544, + 544, 544, 544, 544, 544, 544, 544, 544, 544, 511, + 511, 387, 505, 505, 505, 605, 386, 508, 607, 505, + 385, 384, 383, 505, 619, 619, 505, 376, 508, 505, + + 508, 508, 511, 508, 508, 508, 508, 508, 508, 508, + 508, 508, 508, 540, 540, 375, 511, 619, 511, 511, + 511, 511, 511, 511, 511, 511, 511, 511, 374, 373, + 372, 371, 370, 369, 368, 365, 540, 545, 545, 545, + 545, 545, 545, 545, 545, 545, 545, 508, 364, 363, + 543, 543, 540, 540, 540, 540, 540, 540, 540, 540, + 540, 540, 361, 360, 359, 620, 620, 357, 511, 511, + 511, 356, 355, 543, 354, 511, 353, 352, 350, 511, + 349, 348, 511, 347, 543, 511, 543, 543, 620, 543, + 543, 543, 543, 543, 543, 543, 543, 543, 543, 546, + + 546, 346, 540, 540, 540, 345, 344, 560, 560, 540, + 619, 640, 640, 540, 641, 641, 540, 343, 342, 540, + 341, 339, 546, 338, 337, 559, 559, 336, 335, 334, + 560, 333, 332, 543, 640, 331, 546, 641, 546, 546, + 546, 546, 546, 546, 546, 546, 546, 546, 559, 561, + 561, 561, 561, 561, 561, 561, 561, 561, 561, 330, + 595, 595, 326, 325, 559, 559, 559, 559, 559, 559, + 559, 559, 559, 559, 323, 322, 321, 320, 319, 318, + 317, 620, 316, 595, 315, 313, 674, 674, 546, 546, + 546, 312, 309, 308, 307, 546, 560, 560, 560, 546, + + 594, 594, 546, 560, 306, 546, 304, 560, 303, 674, + 560, 302, 301, 560, 559, 559, 559, 299, 298, 297, + 296, 559, 295, 594, 293, 559, 292, 640, 559, 291, + 641, 559, 684, 684, 290, 289, 288, 287, 286, 594, + 594, 594, 594, 594, 594, 594, 594, 594, 594, 595, + 595, 595, 285, 283, 282, 684, 595, 281, 280, 279, + 595, 686, 686, 595, 687, 687, 595, 596, 596, 596, + 596, 596, 596, 596, 596, 596, 596, 278, 612, 612, + 277, 696, 696, 276, 686, 275, 274, 687, 273, 594, + 594, 594, 272, 618, 618, 271, 594, 270, 269, 268, + + 594, 612, 674, 594, 696, 267, 594, 265, 698, 698, + 264, 263, 612, 262, 612, 612, 618, 612, 612, 612, + 612, 612, 612, 612, 612, 612, 612, 639, 639, 261, + 260, 698, 618, 618, 618, 618, 618, 618, 618, 618, + 618, 618, 257, 256, 255, 254, 253, 251, 684, 646, + 639, 646, 646, 646, 646, 646, 646, 646, 646, 646, + 646, 612, 702, 702, 645, 645, 639, 639, 639, 639, + 639, 639, 639, 639, 639, 639, 250, 686, 249, 247, + 687, 246, 618, 618, 618, 702, 245, 645, 244, 618, + 243, 242, 241, 618, 240, 239, 618, 696, 645, 618, + + 645, 645, 237, 645, 645, 645, 645, 645, 645, 645, + 645, 645, 645, 235, 234, 233, 639, 639, 639, 232, + 231, 648, 648, 639, 698, 230, 229, 639, 228, 227, + 639, 226, 224, 639, 647, 647, 647, 647, 647, 647, + 647, 647, 647, 647, 648, 223, 222, 645, 664, 664, + 221, 219, 216, 213, 212, 211, 665, 665, 648, 210, + 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, + 208, 664, 207, 206, 203, 202, 201, 200, 702, 665, + 198, 196, 195, 194, 190, 189, 188, 664, 664, 664, + 664, 664, 664, 664, 664, 664, 664, 666, 666, 666, + + 666, 666, 666, 666, 666, 666, 666, 187, 186, 185, + 648, 648, 648, 184, 183, 182, 181, 648, 180, 173, + 168, 648, 165, 164, 648, 155, 152, 648, 151, 148, + 685, 685, 146, 143, 141, 127, 126, 664, 664, 664, + 113, 95, 92, 85, 664, 665, 665, 665, 664, 77, + 67, 664, 665, 685, 664, 64, 665, 63, 61, 665, + 50, 43, 665, 32, 31, 0, 0, 0, 0, 685, + 685, 685, 685, 685, 685, 685, 685, 685, 685, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 685, + 685, 685, 0, 0, 0, 0, 685, 0, 0, 0, + 685, 0, 0, 685, 0, 0, 685, 704, 704, 704, + 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, + 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, + 704, 704, 704, 704, 0, 0, 0, 0, 0, 0, + 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, + 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, + 704, 704, 704, 704, 704, 704, 706, 706, 706, 706, + + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 0, 0, 0, 0, 0, 0, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, + 706, 706, 706, 706, 706, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + + 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, + 709, 709, 709, 709, 709, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, + 711, 711, 711, 711, 711, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, + 713, 713, 713, 713, 713, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, + 715, 715, 715, 715, 715, 716, 716, 716, 716, 716, + + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + 717, 717, 717, 717, 717, 717, 717, 717, 717, 717, + + 717, 717, 717, 717, 717, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 718, 718, 718, 718, 718, 718, 718, 718, 718, 718, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + + 719, 719, 719, 719, 719, 719, 719, 719, 719, 719, + 719, 719, 719, 719, 719, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, + 721, 721, 721, 721, 721, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 723, 723, 723, 723, 723, + 723, 723, 723, 723, 723, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 724, 724, 724, 724, 724, 724, 724, 724, 724, 724, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, + 725, 725, 725, 725, 725, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + 726, 726, 726, 726, 726, 726, 726, 726, 726, 726, + + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, + 727, 727, 727, 727, 727, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + + 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + 729, 729, 729, 729, 729, 729, 729, 729, 0, 0, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 0, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 0, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 0, 729, 0, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 729, 729, 729, 729, 729, + 729, 729, 729, 729, 729, 730, 730, 730, 730, 730, + 730, 730, 730, 0, 0, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 0, 730, 730, 730, + + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 0, 730, 0, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 0, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, + 731, 731, 731, 731, 731, 732, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 732, 732, 732, 732, 732, 732, 732, 732, 732, + 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, + 732, 732, 732, 732, 732, 732, 732, 0, 0, 0, + 0, 0, 0, 732, 732, 732, 732, 732, 732, 732, + 732, 732, 732, 732, 732, 732, 732, 732, 732, 732, + 732, 732, 732, 732, 732, 732, 732, 732, 732, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 0, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + + 733, 733, 733, 733, 733, 733, 733, 733, 733, 733, + 733, 733, 733, 733, 734, 734, 734, 734, 734, 734, + 734, 734, 0, 0, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 0, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 0, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 735, + 0, 0, 0, 0, 0, 735, 0, 0, 735, 735, + 735, 735, 735, 735, 735, 735, 735, 735, 0, 0, + 0, 735, 0, 0, 735, 735, 735, 735, 735, 735, + + 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, + 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, + 735, 0, 0, 0, 0, 0, 735, 735, 735, 735, + 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, + 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, + 735, 735, 735, 736, 736, 736, 736, 736, 736, 736, + 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, + 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, + 0, 0, 0, 0, 0, 0, 736, 736, 736, 736, + 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, + + 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, + 736, 736, 737, 737, 737, 737, 737, 737, 737, 737, + 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, + 737, 737, 737, 737, 737, 737, 737, 737, 0, 0, + 0, 0, 0, 0, 737, 737, 737, 737, 737, 737, + 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, + 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, + 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, + 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, + 738, 738, 738, 738, 738, 738, 0, 0, 0, 0, + + 0, 0, 738, 738, 738, 738, 738, 738, 738, 738, + 738, 738, 738, 738, 738, 738, 738, 738, 738, 738, + 738, 738, 738, 738, 738, 738, 738, 738, 739, 739, + 739, 739, 739, 739, 739, 739, 0, 0, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 0, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 0, 739, 0, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, + 739, 739, 739, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 0, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 740, 740, + 740, 740, 740, 740, 740, 740, 740, 740, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 0, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 741, 741, 741, 741, 741, 741, 741, + 741, 741, 741, 742, 742, 742, 742, 742, 742, 742, + + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 0, 742, 0, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, + 742, 742, 742, 742, 742, 742, 742, 742, 743, 743, + 743, 743, 743, 743, 743, 743, 0, 0, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 0, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 0, 743, 743, 743, 743, 743, 743, 743, 743, + + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 0, 743, 0, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, + + 743, 743, 743, 744, 744, 744, 744, 744, 744, 744, + 744, 0, 0, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 0, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 0, 744, 0, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, + 744, 744, 744, 744, 744, 744, 744, 744, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 0, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + + 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, + 745, 745, 745, 746, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + 746, 746, 746, 746, 746, 0, 0, 0, 0, 0, + 0, 746, 746, 746, 746, 746, 746, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + 746, 746, 746, 746, 746, 746, 746, 747, 0, 0, + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 747, 747, 747, 747, 747, 747, 747, + 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, + 747, 747, 747, 747, 747, 747, 747, 747, 747, 0, + 0, 0, 0, 0, 0, 747, 747, 747, 747, 747, + 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, + 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, + 747, 748, 748, 748, 748, 748, 748, 748, 748, 748, + 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, + + 748, 748, 748, 748, 748, 748, 748, 748, 0, 0, + 0, 0, 0, 0, 748, 748, 748, 748, 748, 748, + 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, + 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, + 749, 749, 749, 749, 749, 749, 749, 749, 0, 0, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 0, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 0, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, + 749, 749, 749, 749, 749, 750, 0, 0, 0, 0, + + 0, 750, 0, 0, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 750, 0, 0, 0, 750, 0, 0, + 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 750, 750, 750, 750, 0, 0, 0, + 0, 0, 750, 750, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 750, 750, 750, 750, 750, 750, 751, + 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, + 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, + + 751, 751, 751, 751, 751, 751, 0, 0, 0, 0, + 0, 0, 751, 751, 751, 751, 751, 751, 751, 751, + 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, + 751, 751, 751, 751, 751, 751, 751, 751, 752, 752, + 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, + 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, + 752, 752, 752, 752, 0, 0, 0, 0, 0, 0, + 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, + 752, 752, 752, 752, 752, 752, 752, 752, 752, 752, + 752, 752, 752, 752, 752, 752, 753, 753, 753, 753, + + 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, + 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, + 753, 753, 0, 0, 0, 0, 0, 0, 753, 753, + 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, + 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, + 753, 753, 753, 753, 754, 754, 754, 754, 754, 754, + 754, 754, 0, 0, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 0, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 0, 754, 0, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + 754, 754, 754, 754, 754, 754, 754, 754, 754, 754, + + 754, 754, 754, 754, 754, 754, 754, 754, 754, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + + 755, 0, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, + 755, 755, 755, 755, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 0, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + + 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, + 756, 756, 756, 756, 756, 756, 756, 756, 756, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 0, 757, 0, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, + 757, 757, 757, 757, 758, 758, 758, 758, 758, 758, + 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, + 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, + + 0, 0, 0, 0, 0, 0, 758, 758, 758, 758, + 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, + 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, + 758, 758, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 0, + 0, 0, 0, 0, 0, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, + 759, 760, 760, 760, 760, 760, 760, 760, 760, 760, + + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 760, 760, 760, 760, + 760, 760, 760, 760, 760, 760, 761, 761, 761, 761, + 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, + 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, + 761, 761, 0, 0, 0, 0, 0, 0, 761, 761, + 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, + 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, + + 761, 761, 761, 761, 762, 762, 762, 762, 762, 762, + 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, + 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, + 0, 0, 0, 0, 0, 0, 762, 762, 762, 762, + 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, + 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, + 762, 762, 763, 763, 763, 763, 763, 763, 763, 763, + 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, + 763, 763, 763, 763, 763, 763, 763, 763, 0, 0, + 0, 0, 0, 0, 763, 763, 763, 763, 763, 763, + + 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, + 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, + 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, + 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, + 764, 764, 764, 764, 764, 764, 0, 0, 0, 0, + 0, 0, 764, 764, 764, 764, 764, 764, 764, 764, + 764, 764, 764, 764, 764, 764, 764, 764, 764, 764, + 764, 764, 764, 764, 764, 764, 764, 764, 765, 765, + 765, 765, 765, 765, 765, 765, 765, 765, 765, 765, + 765, 765, 765, 765, 765, 765, 765, 765, 765, 765, + + 765, 765, 765, 765, 0, 0, 0, 0, 0, 0, + 765, 765, 765, 765, 765, 765, 765, 765, 765, 765, + 765, 765, 765, 765, 765, 765, 765, 765, 765, 765, + 765, 765, 765, 765, 765, 765, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 0, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, + 766, 707, 707, 707, 707, 707, 707, 707, 707, 707, + + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, + 707, 707, 707, 707, 707, 707, 707, 707 + } ; + +static yy_state_type yy_last_accepting_state; +static char *yy_last_accepting_cpos; + +static yyconst yy_state_type yy_NUL_trans[707] = + { 0, + 44, 44, 45, 45, 48, 48, 51, 51, 55, 55, + 58, 58, 62, 62, 71, 71, 78, 78, 83, 83, + 86, 86, 90, 90, 93, 93, 96, 96, 99, 99, + 103, 103, 105, 105, 109, 109, 111, 111, 44, 44, + 115, 115, 0, 0, 0, 0, 0, 0, 0, 0, + 119, 0, 0, 0, 120, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 124, 0, 0, 128, 0, 0, + 0, 0, 0, 156, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 170, 0, 0, 0, 0, + + 0, 0, 171, 0, 0, 0, 0, 0, 0, 0, + 172, 172, 0, 0, 174, 0, 0, 0, 119, 120, + 0, 0, 0, 124, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 156, 156, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 170, + 171, 172, 0, 174, 0, 0, 0, 0, 0, 0, + 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 216, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + 0, 0, 0, 705, 705, 705 + } ; + +/* The intent behind this definition is that it'll catch + * any uses of REJECT which flex missed. + */ +#define REJECT reject_used_but_not_detected +#define yymore() yymore_used_but_not_detected +#define YY_MORE_ADJ 0 +#define YY_RESTORE_YY_MORE_OFFSET +char *yytext; +#line 1 "xxx.l" +#define INITIAL 0 +#line 2 "xxx.l" +#ifndef lint +static char rcsid[] = "$Header: /p/src/local/bin/detex/RCS/detex.l,v 2.22 2007/03/01 20:22:01 trinkle Exp trinkle $"; +#endif + +/* + * Copyright (c) 1986-2007 Purdue University + * All rights reserved. + * + * Developed by: Daniel Trinkle + * Department of Computer Science, Purdue University + * http://www.cs.purdue.edu/ + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal with the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * o Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimers. + * + * o Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimers in the + * documentation and/or other materials provided with the distribution. + * + * o Neither the names of Daniel Trinkle, Purdue University, nor the + * names of its contributors may be used to endorse or promote products + * derived from this Software without specific prior written + * permission. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. + */ + + +/* + * detex [-e environment-list] [-c] [-l] [-n] [-s] [-t] [-w] [file[.tex] ] + * + * This program is used to remove TeX or LaTeX constructs from a text + * file. + */ + +#include "detex.h" +#ifdef HAVE_STRING_H +#include <string.h> +#define index strchr +#define rindex strrchr +#else +#include <strings.h> +#endif +#ifndef MAXPATHLEN +#include <sys/param.h> +#endif +#ifdef OS2 +#include <stdlib.h> +#endif + +#define LaBEGIN if (fLatex) BEGIN +#define IGNORE if (fSpace && !fWord) putchar(' ') +#define SPACE if (!fWord) putchar(' ') +#define NEWLINE if (!fWord) putchar('\n') +#define LATEX fLatex=!fForcetex +#define KILLARGS(x) cArgs=x; LaBEGIN SH +#define STRIPARGS(x) cArgs=x; LaBEGIN SG +#define CITE(x) if (fLatex && !fCite) KILLARGS(x) + +char *SafeMalloc(); +#ifndef NO_MALLOC_DECL +char *malloc(); +#endif +#ifdef OS2 +void yyless(int); +#endif + +char *rgsbEnvIgnore[MAXENVS]; /* list of environments ignored */ +char *rgsbIncList[MAXINCLIST]; /* list of includeonly files */ +char *rgsbInputPaths[MAXINPUTPATHS]; /* list of input paths in order */ +char sbCurrentEnv[CCHMAXENV]; /* current environment being ignored */ +char *sbProgName; /* name we were invoked with */ +FILE *rgfp[NOFILE+1]; /* stack of input/include files */ +int cfp = 0; /* count of files in stack */ +int cOpenBrace = 0; /* count of `{' in <SH> and <SG> */ +int cArgs = 0; /* argument connt in <LaArgs> */ +int csbEnvIgnore; /* count of environments ignored */ +int csbIncList = 0; /* count of includeonly files */ +int csbInputPaths; /* count of input paths */ +int fLatex = 0; /* flag to indicated delatex */ +int fWord = 0; /* flag for -w option */ +int fFollow = 1; /* flag to follow input/include */ +int fCite = 0; /* flag to echo \cite and \ref args */ +int fSpace = 0; /* flag to replace \cs with space */ +int fForcetex = 0; /* flag to inhibit latex mode */ + +#ifdef FLEX_SCANNER +/* flex has contexts for buffers that need to be switched when file changes + * otherwise output contains imported files in reverse order. Weird, but + * true. + */ +YY_BUFFER_STATE rgsb[NOFILE + 1]; /* flex context stack */ +int csb = 0; /* depth of flex context stack */ +#endif /* FLEX_SCANNER */ + +#define SJ 1 +#define SK 2 +#define SL 3 +#define SM 4 +#define SN 5 +#define SO 6 +#define SP 7 + +#define SA 8 +#define SB 9 +#define SC 10 +#define SD 11 +#define SE 12 +#define SF 13 + +#define SH 14 +#define ST 15 +#define SG 16 +#define SS 17 +#define SI 18 + +#define SR 19 +#define SQ 20 + +#line 3851 "lex.yy.c" + +/* Macros after this point can all be overridden by user definitions in + * section 1. + */ + +#ifndef YY_SKIP_YYWRAP +#ifdef __cplusplus +extern "C" int yywrap YY_PROTO(( void )); +#else +extern int yywrap YY_PROTO(( void )); +#endif +#endif + +#ifndef YY_NO_UNPUT +static void yyunput YY_PROTO(( int c, char *buf_ptr )); +#endif + +#ifndef yytext_ptr +static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen YY_PROTO(( yyconst char * )); +#endif + +#ifndef YY_NO_INPUT +#ifdef __cplusplus +static int yyinput YY_PROTO(( void )); +#else +static int input YY_PROTO(( void )); +#endif +#endif + +#if YY_STACK_USED +static int yy_start_stack_ptr = 0; +static int yy_start_stack_depth = 0; +static int *yy_start_stack = 0; +#ifndef YY_NO_PUSH_STATE +static void yy_push_state YY_PROTO(( int new_state )); +#endif +#ifndef YY_NO_POP_STATE +static void yy_pop_state YY_PROTO(( void )); +#endif +#ifndef YY_NO_TOP_STATE +static int yy_top_state YY_PROTO(( void )); +#endif + +#else +#define YY_NO_PUSH_STATE 1 +#define YY_NO_POP_STATE 1 +#define YY_NO_TOP_STATE 1 +#endif + +#ifdef YY_MALLOC_DECL +YY_MALLOC_DECL +#else +#if __STDC__ +#ifndef __cplusplus +#include <stdlib.h> +#endif +#else +/* Just try to get by without declaring the routines. This will fail + * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) + * or sizeof(void*) != sizeof(int). + */ +#endif +#endif + +/* Amount of stuff to slurp up with each read. */ +#ifndef YY_READ_BUF_SIZE +#define YY_READ_BUF_SIZE 8192 +#endif + +/* Copy whatever the last rule matched to the standard output. */ + +#ifndef ECHO +/* This used to be an fputs(), but since the string might contain NUL's, + * we now use fwrite(). + */ +#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) +#endif + +/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, + * is returned in "result". + */ +#ifndef YY_INPUT +#define YY_INPUT(buf,result,max_size) \ + if ( yy_current_buffer->yy_is_interactive ) \ + { \ + int c = '*', n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ + && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); +#endif + +/* No semi-colon after return; correct usage is to write "yyterminate();" - + * we don't want an extra ';' after the "return" because that will cause + * some compilers to complain about unreachable statements. + */ +#ifndef yyterminate +#define yyterminate() return YY_NULL +#endif + +/* Number of entries by which start-condition stack grows. */ +#ifndef YY_START_STACK_INCR +#define YY_START_STACK_INCR 25 +#endif + +/* Report a fatal error. */ +#ifndef YY_FATAL_ERROR +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) +#endif + +/* Default declaration of generated scanner - a define so the user can + * easily add parameters. + */ +#ifndef YY_DECL +#define YY_DECL int yylex YY_PROTO(( void )) +#endif + +/* Code executed at the beginning of each rule, after yytext and yyleng + * have been set up. + */ +#ifndef YY_USER_ACTION +#define YY_USER_ACTION +#endif + +/* Code executed at the end of each rule. */ +#ifndef YY_BREAK +#define YY_BREAK break; +#endif + +#define YY_RULE_SETUP \ + YY_USER_ACTION + +YY_DECL + { + register yy_state_type yy_current_state; + register char *yy_cp, *yy_bp; + register int yy_act; + +#line 125 "xxx.l" + +#line 4004 "lex.yy.c" + + if ( yy_init ) + { + yy_init = 0; + +#ifdef YY_USER_INIT + YY_USER_INIT; +#endif + + if ( ! yy_start ) + yy_start = 1; /* first start state */ + + if ( ! yyin ) + yyin = stdin; + + if ( ! yyout ) + yyout = stdout; + + if ( ! yy_current_buffer ) + yy_current_buffer = + yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_load_buffer_state(); + } + + while ( 1 ) /* loops until end-of-file is reached */ + { + yy_cp = yy_c_buf_p; + + /* Support of yytext. */ + *yy_cp = yy_hold_char; + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = yy_start; +yy_match: + do + { + register YY_CHAR yy_c = YY_SC_TO_UI(*yy_cp); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + ++yy_cp; + } + while ( yy_base[yy_current_state] != 13692 ); + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + if ( yy_act == 0 ) + { /* have to back up */ + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + yy_act = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + + +do_action: /* This label is used only to access EOF actions. */ + + + switch ( yy_act ) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = yy_hold_char; + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + goto yy_find_action; + +case 1: +YY_RULE_SETUP +#line 126 "xxx.l" +/* ignore comments */ ; + YY_BREAK +case 2: +YY_RULE_SETUP +#line 128 "xxx.l" +{LATEX; IGNORE;} + YY_BREAK +case 3: +YY_RULE_SETUP +#line 130 "xxx.l" +/* environment start */ {LaBEGIN SA; IGNORE;} + YY_BREAK +case 4: +YY_RULE_SETUP +#line 132 "xxx.l" +{ if (BeginEnv("verbatim")) + BEGIN SD; + else + BEGIN SI; + IGNORE; + } + YY_BREAK +case 5: +YY_RULE_SETUP +#line 139 "xxx.l" +/* verbatim mode */ {BEGIN SO; IGNORE;} + YY_BREAK +case 6: +YY_RULE_SETUP +#line 140 "xxx.l" +ECHO; + YY_BREAK +case 7: +YY_RULE_SETUP +#line 141 "xxx.l" +ECHO; + YY_BREAK +case 8: +YY_RULE_SETUP +#line 143 "xxx.l" +{ KILLARGS(1); + if (BeginEnv("minpage")) + BEGIN SD; + else + BEGIN SO; + IGNORE; + } + YY_BREAK +case 9: +YY_RULE_SETUP +#line 151 "xxx.l" +{ if (BeginEnv(yytext)) + BEGIN SD; + else + BEGIN SO; + IGNORE; + } + YY_BREAK +case 10: +YY_RULE_SETUP +#line 157 "xxx.l" +NEWLINE; + YY_BREAK +case 11: +YY_RULE_SETUP +#line 158 "xxx.l" +; + YY_BREAK +case 12: +YY_RULE_SETUP +#line 160 "xxx.l" +/* absorb some environments */ {LaBEGIN SC; IGNORE;} + YY_BREAK +case 13: +YY_RULE_SETUP +#line 161 "xxx.l" +NEWLINE; + YY_BREAK +case 14: +YY_RULE_SETUP +#line 162 "xxx.l" +; + YY_BREAK +case 15: +YY_RULE_SETUP +#line 164 "xxx.l" +/* end environment */ { if (EndEnv(yytext)) + BEGIN SO; + IGNORE; + } + YY_BREAK +case 16: +YY_RULE_SETUP +#line 168 "xxx.l" +{BEGIN SD; IGNORE;} + YY_BREAK +case 17: +YY_RULE_SETUP +#line 169 "xxx.l" +NEWLINE; + YY_BREAK +case 18: +YY_RULE_SETUP +#line 170 "xxx.l" +; + YY_BREAK +case 19: +YY_RULE_SETUP +#line 172 "xxx.l" +; + YY_BREAK +case 20: +YY_RULE_SETUP +#line 173 "xxx.l" +; + YY_BREAK +case 21: +YY_RULE_SETUP +#line 174 "xxx.l" +; + YY_BREAK +case 22: +YY_RULE_SETUP +#line 175 "xxx.l" +; + YY_BREAK +case 23: +YY_RULE_SETUP +#line 176 "xxx.l" +; + YY_BREAK +case 24: +YY_RULE_SETUP +#line 178 "xxx.l" +{ KILLARGS(1); } + YY_BREAK +case 25: +YY_RULE_SETUP +#line 179 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 26: +YY_RULE_SETUP +#line 180 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 27: +YY_RULE_SETUP +#line 181 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 28: +YY_RULE_SETUP +#line 182 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 29: +YY_RULE_SETUP +#line 183 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 30: +YY_RULE_SETUP +#line 184 "xxx.l" +{ KILLARGS(1); } + YY_BREAK +case 31: +YY_RULE_SETUP +#line 185 "xxx.l" +{ KILLARGS(1); } + YY_BREAK +case 32: +YY_RULE_SETUP +#line 186 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 33: +YY_RULE_SETUP +#line 187 "xxx.l" +{ KILLARGS(1); } + YY_BREAK +case 34: +YY_RULE_SETUP +#line 188 "xxx.l" +{ STRIPARGS(2); } + YY_BREAK +case 35: +YY_RULE_SETUP +#line 189 "xxx.l" +{ KILLARGS(1); } + YY_BREAK +case 36: +YY_RULE_SETUP +#line 190 "xxx.l" +{ STRIPARGS(2); } + YY_BREAK +case 37: +YY_RULE_SETUP +#line 191 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 38: +YY_RULE_SETUP +#line 192 "xxx.l" +; + YY_BREAK +case 39: +YY_RULE_SETUP +#line 193 "xxx.l" +{ KILLARGS(1); } + YY_BREAK +case 40: +YY_RULE_SETUP +#line 194 "xxx.l" +{ LaBEGIN SQ; } + YY_BREAK +case 41: +YY_RULE_SETUP +#line 196 "xxx.l" +; + YY_BREAK +case 42: +YY_RULE_SETUP +#line 197 "xxx.l" +{ printf("<Picture %s>", yytext); } + YY_BREAK +case 43: +YY_RULE_SETUP +#line 198 "xxx.l" +BEGIN SO; + YY_BREAK +case 44: +YY_RULE_SETUP +#line 200 "xxx.l" +{ KILLARGS(3); } + YY_BREAK +case 45: +YY_RULE_SETUP +#line 201 "xxx.l" +{ KILLARGS(1); } + YY_BREAK +case 46: +YY_RULE_SETUP +#line 202 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 47: +YY_RULE_SETUP +#line 203 "xxx.l" +{ KILLARGS(2); } + YY_BREAK +case 48: +YY_RULE_SETUP +#line 204 "xxx.l" +{ KILLARGS(3); } + YY_BREAK +case 49: +YY_RULE_SETUP +#line 205 "xxx.l" +{ KILLARGS(1); } + YY_BREAK +case 50: +YY_RULE_SETUP +#line 206 "xxx.l" +{ STRIPARGS(1); } + YY_BREAK +case 51: +YY_RULE_SETUP +#line 208 "xxx.l" +; + YY_BREAK +case 52: +YY_RULE_SETUP +#line 209 "xxx.l" +; + YY_BREAK +case 53: +YY_RULE_SETUP +#line 210 "xxx.l" +; + YY_BREAK +case 54: +YY_RULE_SETUP +#line 211 "xxx.l" +; + YY_BREAK +case 55: +YY_RULE_SETUP +#line 212 "xxx.l" +; + YY_BREAK +case 56: +YY_RULE_SETUP +#line 213 "xxx.l" +; + YY_BREAK +case 57: +YY_RULE_SETUP +#line 215 "xxx.l" +/* ignore args */ {KILLARGS(1); IGNORE;} + YY_BREAK +case 58: +YY_RULE_SETUP +#line 216 "xxx.l" +/* of these \cs */ {KILLARGS(1); IGNORE;} + YY_BREAK +case 59: +YY_RULE_SETUP +#line 217 "xxx.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 60: +YY_RULE_SETUP +#line 218 "xxx.l" +{CITE(1); IGNORE;} + YY_BREAK +case 61: +YY_RULE_SETUP +#line 219 "xxx.l" +{LATEX; KILLARGS(1); IGNORE;} + YY_BREAK +case 62: +YY_RULE_SETUP +#line 220 "xxx.l" +{LATEX; KILLARGS(1); IGNORE;} + YY_BREAK +case 63: +YY_RULE_SETUP +#line 221 "xxx.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 64: +YY_RULE_SETUP +#line 222 "xxx.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 65: +YY_RULE_SETUP +#line 223 "xxx.l" +{KILLARGS(1); SPACE;} + YY_BREAK +case 66: +YY_RULE_SETUP +#line 224 "xxx.l" +{KILLARGS(1); SPACE;} + YY_BREAK +case 67: +YY_RULE_SETUP +#line 225 "xxx.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 68: +YY_RULE_SETUP +#line 226 "xxx.l" +{CITE(1); IGNORE;} + YY_BREAK +case 69: +YY_RULE_SETUP +#line 227 "xxx.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 70: +YY_RULE_SETUP +#line 228 "xxx.l" +{CITE(1); IGNORE;} + YY_BREAK +case 71: +YY_RULE_SETUP +#line 229 "xxx.l" +{KILLARGS(1); IGNORE;} + YY_BREAK +case 72: +YY_RULE_SETUP +#line 230 "xxx.l" +/* ignore \verb<ch>...<ch> */ { if (fLatex) { + char verbchar, c; + verbchar = input(); + while ((c = input()) != verbchar) + if (c == '\n') + NEWLINE; + } + IGNORE; + } + YY_BREAK +case 73: +YY_RULE_SETUP +#line 240 "xxx.l" +{ LATEX; KILLARGS(2); } + YY_BREAK +case 74: +YY_RULE_SETUP +#line 241 "xxx.l" +{ LATEX; KILLARGS(2); } + YY_BREAK +case 75: +YY_RULE_SETUP +#line 242 "xxx.l" +{ LATEX; KILLARGS(3); } + YY_BREAK +case 76: +YY_RULE_SETUP +#line 244 "xxx.l" +/* ignore def begin */ {BEGIN SJ; IGNORE;} + YY_BREAK +case 77: +YY_RULE_SETUP +#line 245 "xxx.l" +BEGIN SO; + YY_BREAK +case 78: +YY_RULE_SETUP +#line 246 "xxx.l" +NEWLINE; + YY_BREAK +case 79: +YY_RULE_SETUP +#line 247 "xxx.l" +; + YY_BREAK +case 80: +YY_RULE_SETUP +#line 249 "xxx.l" +/* formula mode */ {LaBEGIN SE; IGNORE;} + YY_BREAK +case 81: +YY_RULE_SETUP +#line 250 "xxx.l" +BEGIN SO; + YY_BREAK +case 82: +YY_RULE_SETUP +#line 251 "xxx.l" +NEWLINE; + YY_BREAK +case 83: +YY_RULE_SETUP +#line 252 "xxx.l" +; + YY_BREAK +case 84: +YY_RULE_SETUP +#line 254 "xxx.l" +/* display mode */ {LaBEGIN SB; IGNORE;} + YY_BREAK +case 85: +YY_RULE_SETUP +#line 255 "xxx.l" +BEGIN SO; + YY_BREAK +case 86: +YY_RULE_SETUP +#line 256 "xxx.l" +NEWLINE; + YY_BREAK +case 87: +YY_RULE_SETUP +#line 257 "xxx.l" +; + YY_BREAK +case 88: +YY_RULE_SETUP +#line 259 "xxx.l" +/* display mode */ {BEGIN SK; IGNORE;} + YY_BREAK +case 89: +YY_RULE_SETUP +#line 260 "xxx.l" +BEGIN SO; + YY_BREAK +case 90: +YY_RULE_SETUP +#line 261 "xxx.l" +NEWLINE; + YY_BREAK +case 91: +YY_RULE_SETUP +#line 262 "xxx.l" +; + YY_BREAK +case 92: +YY_RULE_SETUP +#line 264 "xxx.l" +/* math mode */ {BEGIN SN; IGNORE;} + YY_BREAK +case 93: +YY_RULE_SETUP +#line 265 "xxx.l" +BEGIN SO; + YY_BREAK +case 94: +YY_RULE_SETUP +#line 266 "xxx.l" +NEWLINE; + YY_BREAK +case 95: +YY_RULE_SETUP +#line 267 "xxx.l" +; + YY_BREAK +case 96: +YY_RULE_SETUP +#line 268 "xxx.l" +; + YY_BREAK +case 97: +YY_RULE_SETUP +#line 270 "xxx.l" +/* process files */ {LaBEGIN SF; IGNORE;} + YY_BREAK +case 98: +YY_RULE_SETUP +#line 271 "xxx.l" +{ IncludeFile(yytext); + BEGIN SO; + } + YY_BREAK +case 99: +YY_RULE_SETUP +#line 274 "xxx.l" +NEWLINE; + YY_BREAK +case 100: +YY_RULE_SETUP +#line 275 "xxx.l" +; + YY_BREAK +case 101: +YY_RULE_SETUP +#line 277 "xxx.l" +{BEGIN SL; IGNORE;} + YY_BREAK +case 102: +YY_RULE_SETUP +#line 278 "xxx.l" +AddInclude(yytext); + YY_BREAK +case 103: +YY_RULE_SETUP +#line 279 "xxx.l" +{ if (csbIncList == 0) + rgsbIncList[csbIncList++] = '\0'; + BEGIN SO; + } + YY_BREAK +case 104: +YY_RULE_SETUP +#line 283 "xxx.l" +NEWLINE; + YY_BREAK +case 105: +YY_RULE_SETUP +#line 284 "xxx.l" +; + YY_BREAK +case 106: +YY_RULE_SETUP +#line 286 "xxx.l" +{BEGIN SM; IGNORE;} + YY_BREAK +case 107: +YY_RULE_SETUP +#line 287 "xxx.l" +{ InputFile(yytext); + BEGIN SO; + } + YY_BREAK +case 108: +YY_RULE_SETUP +#line 290 "xxx.l" +NEWLINE; + YY_BREAK +case 109: +YY_RULE_SETUP +#line 291 "xxx.l" +; + YY_BREAK +case 110: +YY_RULE_SETUP +#line 293 "xxx.l" +/* handle ligatures */ {(void)printf("%.2s", yytext+1);} + YY_BREAK +case 111: +YY_RULE_SETUP +#line 294 "xxx.l" +{(void)printf("%.1s", yytext+1);} + YY_BREAK +case 112: +YY_RULE_SETUP +#line 295 "xxx.l" +BEGIN SR; + YY_BREAK +case 113: +YY_RULE_SETUP +#line 297 "xxx.l" +/* ignore other \cs */ {BEGIN SP; IGNORE;} + YY_BREAK +case 114: +YY_RULE_SETUP +#line 298 "xxx.l" +SPACE; + YY_BREAK +case 115: +YY_RULE_SETUP +#line 299 "xxx.l" +NEWLINE; + YY_BREAK +case 116: +YY_RULE_SETUP +#line 300 "xxx.l" +IGNORE; + YY_BREAK +case 117: +YY_RULE_SETUP +#line 301 "xxx.l" +{ if (yytext==NULL || strlen(yytext)==0 + || atoi(yytext)==4) + NEWLINE; + BEGIN SO; + } + YY_BREAK +case 118: +YY_RULE_SETUP +#line 307 "xxx.l" +IGNORE; + YY_BREAK +case 119: +YY_RULE_SETUP +#line 308 "xxx.l" +IGNORE; + YY_BREAK +case 120: +YY_RULE_SETUP +#line 309 "xxx.l" +{BEGIN SO; NEWLINE;} + YY_BREAK +case 121: +YY_RULE_SETUP +#line 310 "xxx.l" +{BEGIN SO; IGNORE;} + YY_BREAK +case 122: +YY_RULE_SETUP +#line 311 "xxx.l" +{yyless(0);BEGIN SO;} + YY_BREAK +case 123: +YY_RULE_SETUP +#line 313 "xxx.l" +/* special characters */ IGNORE; + YY_BREAK +case 124: +YY_RULE_SETUP +#line 314 "xxx.l" +IGNORE; + YY_BREAK +case 125: +YY_RULE_SETUP +#line 315 "xxx.l" +SPACE; + YY_BREAK +case 126: +YY_RULE_SETUP +#line 317 "xxx.l" +{ if (fWord) + (void)printf("%s\n", yytext); + else + ECHO; + } + YY_BREAK +case 127: +YY_RULE_SETUP +#line 322 "xxx.l" +if (!fWord) ECHO; + YY_BREAK +case 128: +YY_RULE_SETUP +#line 323 "xxx.l" +if (!fWord) ECHO; + YY_BREAK +case 129: +YY_RULE_SETUP +#line 325 "xxx.l" +{ BEGIN ST; } + YY_BREAK +case 130: +YY_RULE_SETUP +#line 326 "xxx.l" +{ cOpenBrace++; } + YY_BREAK +case 131: +YY_RULE_SETUP +#line 327 "xxx.l" +{ cOpenBrace--; + if (cOpenBrace == 0) + { + if (--cArgs==0) + BEGIN SO; + } + } + YY_BREAK +case 132: +YY_RULE_SETUP +#line 334 "xxx.l" +; + YY_BREAK +case 133: +YY_RULE_SETUP +#line 335 "xxx.l" +BEGIN SH; + YY_BREAK +case 134: +YY_RULE_SETUP +#line 336 "xxx.l" +; + YY_BREAK +case 135: +YY_RULE_SETUP +#line 338 "xxx.l" +{ BEGIN SS; } + YY_BREAK +case 136: +YY_RULE_SETUP +#line 339 "xxx.l" +{ if (cOpenBrace == 0) + { + if (--cArgs==0) + { + BEGIN SO; + cOpenBrace--; + } + } + cOpenBrace++; + } + YY_BREAK +case 137: +YY_RULE_SETUP +#line 349 "xxx.l" +{ cOpenBrace--; } + YY_BREAK +case 138: +YY_RULE_SETUP +#line 350 "xxx.l" +; + YY_BREAK +case 139: +YY_RULE_SETUP +#line 351 "xxx.l" +BEGIN SG; + YY_BREAK +case 140: +YY_RULE_SETUP +#line 352 "xxx.l" +; + YY_BREAK +case 141: +YY_RULE_SETUP +#line 353 "xxx.l" +ECHO; + YY_BREAK +#line 4847 "lex.yy.c" +case YY_STATE_EOF(INITIAL): +case YY_STATE_EOF(SJ): +case YY_STATE_EOF(SK): +case YY_STATE_EOF(SL): +case YY_STATE_EOF(SM): +case YY_STATE_EOF(SN): +case YY_STATE_EOF(SO): +case YY_STATE_EOF(SP): +case YY_STATE_EOF(SA): +case YY_STATE_EOF(SB): +case YY_STATE_EOF(SC): +case YY_STATE_EOF(SD): +case YY_STATE_EOF(SE): +case YY_STATE_EOF(SF): +case YY_STATE_EOF(SH): +case YY_STATE_EOF(ST): +case YY_STATE_EOF(SG): +case YY_STATE_EOF(SS): +case YY_STATE_EOF(SI): +case YY_STATE_EOF(SR): +case YY_STATE_EOF(SQ): + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = yy_hold_char; + YY_RESTORE_YY_MORE_OFFSET + + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between yy_current_buffer and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + yy_n_chars = yy_current_buffer->yy_n_chars; + yy_current_buffer->yy_input_file = yyin; + yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = yytext_ptr + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++yy_c_buf_p; + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = yy_c_buf_p; + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer() ) + { + case EOB_ACT_END_OF_FILE: + { + yy_did_buffer_switch_on_eof = 0; + + if ( yywrap() ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = + yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + yy_c_buf_p = + &yy_current_buffer->yy_ch_buf[yy_n_chars]; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of yylex */ + + +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ + +static int yy_get_next_buffer() + { + register char *dest = yy_current_buffer->yy_ch_buf; + register char *source = yytext_ptr; + register int number_to_move, i; + int ret_val; + + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( yy_current_buffer->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + yy_current_buffer->yy_n_chars = yy_n_chars = 0; + + else + { + int num_to_read = + yy_current_buffer->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ +#ifdef YY_USES_REJECT + YY_FATAL_ERROR( +"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); +#else + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = yy_current_buffer; + + int yy_c_buf_p_offset = + (int) (yy_c_buf_p - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + int new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yy_flex_realloc( (void *) b->yy_ch_buf, + b->yy_buf_size + 2 ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = 0; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = yy_current_buffer->yy_buf_size - + number_to_move - 1; +#endif + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), + yy_n_chars, num_to_read ); + + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + if ( yy_n_chars == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart( yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + yy_current_buffer->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + yy_n_chars += number_to_move; + yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; + yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + + yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; + + return ret_val; + } + + +/* yy_get_previous_state - get the state just before the EOB char was reached */ + +static yy_state_type yy_get_previous_state() + { + register yy_state_type yy_current_state; + register char *yy_cp; + + yy_current_state = yy_start; + + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + { + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + if ( *yy_cp ) + { + register YY_CHAR yy_c = YY_SC_TO_UI(*yy_cp); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + } + else + yy_current_state = yy_NUL_trans[yy_current_state]; + } + + return yy_current_state; + } + + +/* yy_try_NUL_trans - try to make a transition on the NUL character + * + * synopsis + * next_state = yy_try_NUL_trans( current_state ); + */ + +#ifdef YY_USE_PROTOS +static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) +#else +static yy_state_type yy_try_NUL_trans( yy_current_state ) +yy_state_type yy_current_state; +#endif + { + register int yy_is_jam; + + yy_current_state = yy_NUL_trans[yy_current_state]; + yy_is_jam = (yy_current_state == 0); + + return yy_is_jam ? 0 : yy_current_state; + } + + +#ifndef YY_NO_UNPUT +#ifdef YY_USE_PROTOS +static void yyunput( int c, register char *yy_bp ) +#else +static void yyunput( c, yy_bp ) +int c; +register char *yy_bp; +#endif + { + register char *yy_cp = yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yy_hold_char; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + register int number_to_move = yy_n_chars + 2; + register char *dest = &yy_current_buffer->yy_ch_buf[ + yy_current_buffer->yy_buf_size + 2]; + register char *source = + &yy_current_buffer->yy_ch_buf[number_to_move]; + + while ( source > yy_current_buffer->yy_ch_buf ) + *--dest = *--source; + + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + yy_current_buffer->yy_n_chars = + yy_n_chars = yy_current_buffer->yy_buf_size; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } + + *--yy_cp = (char) c; + + + yytext_ptr = yy_bp; + yy_hold_char = *yy_cp; + yy_c_buf_p = yy_cp; + } +#endif /* ifndef YY_NO_UNPUT */ + + +#ifdef __cplusplus +static int yyinput() +#else +static int input() +#endif + { + int c; + + *yy_c_buf_p = yy_hold_char; + + if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + /* This was really a NUL. */ + *yy_c_buf_p = '\0'; + + else + { /* need more input */ + int offset = yy_c_buf_p - yytext_ptr; + ++yy_c_buf_p; + + switch ( yy_get_next_buffer() ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart( yyin ); + + /* fall through */ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap() ) + return EOF; + + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(); +#else + return input(); +#endif + } + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = yytext_ptr + offset; + break; + } + } + } + + c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ + *yy_c_buf_p = '\0'; /* preserve yytext */ + yy_hold_char = *++yy_c_buf_p; + + + return c; + } + + +#ifdef YY_USE_PROTOS +void yyrestart( FILE *input_file ) +#else +void yyrestart( input_file ) +FILE *input_file; +#endif + { + if ( ! yy_current_buffer ) + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_init_buffer( yy_current_buffer, input_file ); + yy_load_buffer_state(); + } + + +#ifdef YY_USE_PROTOS +void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) +#else +void yy_switch_to_buffer( new_buffer ) +YY_BUFFER_STATE new_buffer; +#endif + { + if ( yy_current_buffer == new_buffer ) + return; + + if ( yy_current_buffer ) + { + /* Flush out information for old buffer. */ + *yy_c_buf_p = yy_hold_char; + yy_current_buffer->yy_buf_pos = yy_c_buf_p; + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + yy_current_buffer = new_buffer; + yy_load_buffer_state(); + + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + yy_did_buffer_switch_on_eof = 1; + } + + +#ifdef YY_USE_PROTOS +void yy_load_buffer_state( void ) +#else +void yy_load_buffer_state() +#endif + { + yy_n_chars = yy_current_buffer->yy_n_chars; + yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; + yyin = yy_current_buffer->yy_input_file; + yy_hold_char = *yy_c_buf_p; + } + + +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) +#else +YY_BUFFER_STATE yy_create_buffer( file, size ) +FILE *file; +int size; +#endif + { + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_is_our_buffer = 1; + + yy_init_buffer( b, file ); + + return b; + } + + +#ifdef YY_USE_PROTOS +void yy_delete_buffer( YY_BUFFER_STATE b ) +#else +void yy_delete_buffer( b ) +YY_BUFFER_STATE b; +#endif + { + if ( ! b ) + return; + + if ( b == yy_current_buffer ) + yy_current_buffer = (YY_BUFFER_STATE) 0; + + if ( b->yy_is_our_buffer ) + yy_flex_free( (void *) b->yy_ch_buf ); + + yy_flex_free( (void *) b ); + } + + +#ifndef YY_ALWAYS_INTERACTIVE +#ifndef YY_NEVER_INTERACTIVE +extern int isatty YY_PROTO(( int )); +#endif +#endif + +#ifdef YY_USE_PROTOS +void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) +#else +void yy_init_buffer( b, file ) +YY_BUFFER_STATE b; +FILE *file; +#endif + + + { + yy_flush_buffer( b ); + + b->yy_input_file = file; + b->yy_fill_buffer = 1; + +#if YY_ALWAYS_INTERACTIVE + b->yy_is_interactive = 1; +#else +#if YY_NEVER_INTERACTIVE + b->yy_is_interactive = 0; +#else + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; +#endif +#endif + } + + +#ifdef YY_USE_PROTOS +void yy_flush_buffer( YY_BUFFER_STATE b ) +#else +void yy_flush_buffer( b ) +YY_BUFFER_STATE b; +#endif + + { + if ( ! b ) + return; + + b->yy_n_chars = 0; + + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + + b->yy_buf_pos = &b->yy_ch_buf[0]; + + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; + + if ( b == yy_current_buffer ) + yy_load_buffer_state(); + } + + +#ifndef YY_NO_SCAN_BUFFER +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) +#else +YY_BUFFER_STATE yy_scan_buffer( base, size ) +char *base; +yy_size_t size; +#endif + { + YY_BUFFER_STATE b; + + if ( size < 2 || + base[size-2] != YY_END_OF_BUFFER_CHAR || + base[size-1] != YY_END_OF_BUFFER_CHAR ) + /* They forgot to leave room for the EOB's. */ + return 0; + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + + b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = 0; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; + + yy_switch_to_buffer( b ); + + return b; + } +#endif + + +#ifndef YY_NO_SCAN_STRING +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) +#else +YY_BUFFER_STATE yy_scan_string( yy_str ) +yyconst char *yy_str; +#endif + { + int len; + for ( len = 0; yy_str[len]; ++len ) + ; + + return yy_scan_bytes( yy_str, len ); + } +#endif + + +#ifndef YY_NO_SCAN_BYTES +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) +#else +YY_BUFFER_STATE yy_scan_bytes( bytes, len ) +yyconst char *bytes; +int len; +#endif + { + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + int i; + + /* Get memory for full buffer, including space for trailing EOB's. */ + n = len + 2; + buf = (char *) yy_flex_alloc( n ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + + for ( i = 0; i < len; ++i ) + buf[i] = bytes[i]; + + buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; + + b = yy_scan_buffer( buf, n ); + if ( ! b ) + YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; + } +#endif + + +#ifndef YY_NO_PUSH_STATE +#ifdef YY_USE_PROTOS +static void yy_push_state( int new_state ) +#else +static void yy_push_state( new_state ) +int new_state; +#endif + { + if ( yy_start_stack_ptr >= yy_start_stack_depth ) + { + yy_size_t new_size; + + yy_start_stack_depth += YY_START_STACK_INCR; + new_size = yy_start_stack_depth * sizeof( int ); + + if ( ! yy_start_stack ) + yy_start_stack = (int *) yy_flex_alloc( new_size ); + + else + yy_start_stack = (int *) yy_flex_realloc( + (void *) yy_start_stack, new_size ); + + if ( ! yy_start_stack ) + YY_FATAL_ERROR( + "out of memory expanding start-condition stack" ); + } + + yy_start_stack[yy_start_stack_ptr++] = YY_START; + + BEGIN(new_state); + } +#endif + + +#ifndef YY_NO_POP_STATE +static void yy_pop_state() + { + if ( --yy_start_stack_ptr < 0 ) + YY_FATAL_ERROR( "start-condition stack underflow" ); + + BEGIN(yy_start_stack[yy_start_stack_ptr]); + } +#endif + + +#ifndef YY_NO_TOP_STATE +static int yy_top_state() + { + return yy_start_stack[yy_start_stack_ptr - 1]; + } +#endif + +#ifndef YY_EXIT_FAILURE +#define YY_EXIT_FAILURE 2 +#endif + +#ifdef YY_USE_PROTOS +static void yy_fatal_error( yyconst char msg[] ) +#else +static void yy_fatal_error( msg ) +char msg[]; +#endif + { + (void) fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); + } + + + +/* Redefine yyless() so it works in section 3 code. */ + +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + yytext[yyleng] = yy_hold_char; \ + yy_c_buf_p = yytext + n; \ + yy_hold_char = *yy_c_buf_p; \ + *yy_c_buf_p = '\0'; \ + yyleng = n; \ + } \ + while ( 0 ) + + +/* Internal utility routines. */ + +#ifndef yytext_ptr +#ifdef YY_USE_PROTOS +static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) +#else +static void yy_flex_strncpy( s1, s2, n ) +char *s1; +yyconst char *s2; +int n; +#endif + { + register int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +#endif + +#ifdef YY_NEED_STRLEN +#ifdef YY_USE_PROTOS +static int yy_flex_strlen( yyconst char *s ) +#else +static int yy_flex_strlen( s ) +yyconst char *s; +#endif + { + register int n; + for ( n = 0; s[n]; ++n ) + ; + + return n; + } +#endif + + +#ifdef YY_USE_PROTOS +static void *yy_flex_alloc( yy_size_t size ) +#else +static void *yy_flex_alloc( size ) +yy_size_t size; +#endif + { + return (void *) malloc( size ); + } + +#ifdef YY_USE_PROTOS +static void *yy_flex_realloc( void *ptr, yy_size_t size ) +#else +static void *yy_flex_realloc( ptr, size ) +void *ptr; +yy_size_t size; +#endif + { + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return (void *) realloc( (char *) ptr, size ); + } + +#ifdef YY_USE_PROTOS +static void yy_flex_free( void *ptr ) +#else +static void yy_flex_free( ptr ) +void *ptr; +#endif + { + free( ptr ); + } + +#if YY_MAIN +int main() + { + yylex(); + return 0; + } +#endif +#line 353 "xxx.l" + +/****** +** main -- +** Set sbProgName to the base of arg 0. +** Set the input paths. +** Check for options +** -c echo LaTeX \cite, \ref, and \pageref values +** -e <env-list> list of LaTeX environments to ignore +** -l force latex mode +** -n do not follow \input and \include +** -s replace control sequences with space +** -t force tex mode +** -w word only output +** Set the list of LaTeX environments to ignore. +** Process each input file. +** If no input files are specified on the command line, process stdin. +******/ + +main(cArgs,rgsbArgs) +int cArgs; +char *rgsbArgs[]; +{ + char *pch, *sbEnvList = DEFAULTENV, sbBadOpt[2]; + FILE *TexOpen(); + int fSawFile = 0, iArgs = 1; + + /* get base name and decide what we are doing, detex or delatex */ +#ifdef OS2 + char drive[_MAX_DRIVE], dir[_MAX_DIR]; + char fname[_MAX_FNAME], ext[_MAX_EXT]; +#ifdef __EMX__ + _wildcard(&cArgs, &rgsbArgs); + _response(&cArgs, &rgsbArgs); +#endif + _splitpath (rgsbArgs[0], drive, dir, fname, ext); + sbProgName = strlwr(fname); +#else + if ((sbProgName = rindex(rgsbArgs[0], '/')) != NULL) + sbProgName++; + else + sbProgName = rgsbArgs[0]; +#endif + if (strcmp("delatex",sbProgName) == 0) + fLatex = 1; + + /* set rgsbInputPaths for use with TexOpen() */ + SetInputPaths(); + + /* process command line options */ + while (iArgs < cArgs && *(pch = rgsbArgs[iArgs]) == CHOPT) { + while (*++pch) + switch (*pch) { + case CHCITEOPT: + fCite = 1; + break; + case CHENVOPT: + if (++iArgs >= cArgs) { + ErrorExit("-e option requires and argument"); + } + sbEnvList = rgsbArgs[iArgs]; + break; + case CHLATEXOPT: + fLatex = 1; + break; + case CHNOFOLLOWOPT: + fFollow = 0; + break; + case CHSPACEOPT: + fSpace = 1; + break; + case CHTEXOPT: + fForcetex = 1; + break; + case CHWORDOPT: + fWord = 1; + break; + default: +#ifdef OS2 + OS2UsageExit(); +#else + sbBadOpt[0] = *pch; + sbBadOpt[1] = '\0'; + Warning("unknown option ignored -", sbBadOpt); +#endif + } + iArgs++; + } + SetEnvIgnore(sbEnvList); + + /* process input files */ + for (; iArgs < cArgs; iArgs++) { + fSawFile++; + if ((yyin = TexOpen(rgsbArgs[iArgs])) == NULL) { + Warning("can't open file", rgsbArgs[iArgs]); + continue;; + } + BEGIN SO; + (void)yylex(); + } + + /* if there were no input files, assume stdin */ + if (!fSawFile) { + yyin = stdin; +#ifdef OS2 + if (isatty(fileno(stdin))) + OS2UsageExit(); +#endif + BEGIN SO; + (void)yylex(); + } +#ifndef FLEX_SCANNER + if (YYSTATE != SO) + ErrorExit("input contains an unterminated mode or environment"); +#endif + return(0); +} + +#ifdef FLEX_SCANNER +#undef yywrap +#endif + +/****** +** yywrap -- handles EOF for lex. Check to see if the stack of open files +** has anything on it. If it does, set yyin to the to value. If not +** return the termination signal for lex. +******/ + +yywrap() +{ + (void)fclose(yyin); +#ifdef FLEX_SCANNER + /* Pop context state */ + if (csb > 0) { + yy_delete_buffer( YY_CURRENT_BUFFER ); + yy_switch_to_buffer( rgsb[--csb] ); + } +#endif /* FLEX_SCANNER */ + if (cfp > 0) { + yyin = rgfp[--cfp]; + return(0); + } + return(1); +} + +#ifdef OS2 + +/****** +** yyless -- return characters to the input stream. Some systems don't have +** a yyless routine +******/ + +void yyless(n) +int n; +{ + int i = strlen(yytext); + + while (i > n) unput(yytext[--i]); + yytext[yyleng = n] = '\0'; +} +#endif + +/****** +** SetEnvIgnore -- sets rgsbEnvIgnore to the values indicated by the +** sbEnvList. +******/ + +SetEnvIgnore(sbEnvList) +char *sbEnvList; +{ + char *sb; + + sb = SafeMalloc(strlen(sbEnvList) + 1, "malloc for SetEnvIgnore failed"); + (void) strcpy(sb, sbEnvList); + csbEnvIgnore = SeparateList(sb, rgsbEnvIgnore, CHENVSEP, MAXENVS); + if (csbEnvIgnore == ERROR) + ErrorExit("The environtment list contains too many environments"); +} + +/****** +** BeginEnv -- checks to see if sbEnv is in the list rgsbEnvIgnore. If it +** is, sbCurrentEnv is set to sbEnv. +******/ + +BeginEnv(sbEnv) +char *sbEnv; +{ + int i; + + if (!fLatex) return(0); + for (i = 0; i < csbEnvIgnore; i++) + if (strcmp(sbEnv, rgsbEnvIgnore[i]) == 0) { + (void)strcpy(sbCurrentEnv, sbEnv); + return(1); + } + return(0); +} + +/****** +** EndEnv -- checks to see if sbEnv is the current environment being ignored. +******/ + +EndEnv(sbEnv) +char *sbEnv; +{ + if (!fLatex) return(0); + if (strcmp(sbEnv, sbCurrentEnv) == 0) + return(1); + return(0); +} + +/****** +** InputFile -- push the current yyin and open sbFile. If the open fails, +** the sbFile is ignored. +******/ + +InputFile(sbFile) +char *sbFile; +{ + FILE *TexOpen(); + + if (!fFollow) + return; + rgfp[cfp++] = yyin; + if ((yyin = TexOpen(sbFile)) == NULL) { + Warning("can't open \\input file", sbFile); + yyin = rgfp[--cfp]; + return; + } +#ifdef FLEX_SCANNER + rgsb[csb++] = YY_CURRENT_BUFFER; + yy_switch_to_buffer(yy_create_buffer( yyin, YY_BUF_SIZE ) ); +#endif /* FLEX_SCANNER */ +} + +/****** +** IncludeFile -- if sbFile is not in the rgsbIncList, push current yyin +** and open sbFile. If the open fails, the sbFile is ignored. +******/ + +IncludeFile(sbFile) +char *sbFile; +{ + FILE *TexOpen(); + + if (!fFollow) + return; + if (!InList(sbFile)) + return; + rgfp[cfp++] = yyin; + if ((yyin = TexOpen(sbFile)) == NULL) { + Warning("can't open \\include file", sbFile); + yyin = rgfp[--cfp]; + return; + } +#ifdef FLEX_SCANNER + rgsb[csb++] = YY_CURRENT_BUFFER; + yy_switch_to_buffer(yy_create_buffer( yyin, YY_BUF_SIZE ) ); +#endif /* FLEX_SCANNER */ +} + +/****** +** AddInclude -- adds sbFile to the rgsbIncList and increments csbIncList. +** If the include list is too long, sbFile is ignored. +******/ + +AddInclude(sbFile) +char *sbFile; +{ + if (!fFollow) + return; + if (csbIncList >= MAXINCLIST) + Warning("\\includeonly list is too long, ignoring", sbFile); + rgsbIncList[csbIncList] = SafeMalloc(strlen(sbFile) + 1, "malloc for AddInclude failed"); + (void)strcpy(rgsbIncList[csbIncList++], sbFile); +} + +/****** +** InList -- checks to see if sbFile is in the rgsbIncList. If there is +** no list, all files are assumed to be "in the list". +******/ + +InList(sbFile) +char *sbFile; +{ + char *pch, sbBase[MAXPATHLEN]; + int i; + + if (csbIncList == 0) /* no list */ + return(1); + (void)strcpy(sbBase, sbFile); + if ((pch = rindex(sbBase, '.')) != NULL) + *pch = '\0'; + i = 0; + while ((i < csbIncList) && rgsbIncList[i]) + if (strcmp(rgsbIncList[i++], sbBase) == 0) + return(1); + return(0); +} + +/****** +** SetInputPaths -- sets rgsbInputPaths to the values indicated by the +** TEXINPUTS environment variable if set or else DEFAULTINPUTS. If +** the user's TEXINPUTS has a leading ':' prepend the DEFAULTINPUTS +** to the path, if there is a trailing ':' append the DEFAULTINPUTS. +** This is consistent with the most recent TeX. However, this +** routine does not honor the '//' construct (expand subdirs). +******/ + +SetInputPaths() +{ + char *sb, *sbPaths, *getenv(); + int cchDefaults, cchPaths; + + cchDefaults = strlen(DEFAULTINPUTS); +#ifdef OS2 + if ((sb = getenv("TEXINPUT")) == NULL) +#endif + if ((sb = getenv("TEXINPUTS")) == NULL) + sb = DEFAULTINPUTS; + cchPaths = strlen(sb); + if (sb[0] == CHPATHSEP) + cchPaths += cchDefaults; + if (sb[strlen(sb) - 1] == CHPATHSEP) + cchPaths += cchDefaults; + sbPaths = SafeMalloc(cchPaths + 1, "malloc for SetInputPaths failed"); + sbPaths[0] = '\0'; + if (sb[0] == CHPATHSEP) + (void)strcat(sbPaths, DEFAULTINPUTS); + (void)strcat(sbPaths, sb); + if (sb[strlen(sb) - 1] == CHPATHSEP) + (void)strcat(sbPaths, DEFAULTINPUTS); + + csbInputPaths = SeparateList(sbPaths, rgsbInputPaths, CHPATHSEP, MAXINPUTPATHS); + if (csbInputPaths == ERROR) +#ifdef OS2 + ErrorExit("TEXINPUT(S) environment variable has too many paths"); +#else + ErrorExit("TEXINPUTS environment variable has too many paths"); +#endif +} + +/****** +** SeparateList -- takes a chSep separated list sbList, replaces the +** chSep's with NULLs and sets rgsbList[i] to the beginning of +** the ith word in sbList. The number of words is returned. A +** ERROR is returned if there are more than csbMax words. +******/ + +SeparateList(sbList, rgsbList, chSep, csbMax) +char *sbList, *rgsbList[], chSep; +int csbMax; +{ + int csbList = 0; + + while (sbList && *sbList && csbList < csbMax) { + rgsbList[csbList++] = sbList; + if (sbList = index(sbList, chSep)) + *sbList++ = '\0'; + } + return(sbList && *sbList ? ERROR : csbList); +} + +/****** +** TexOpen -- tries to open sbFile in each of the rgsbInputPaths in turn. +** For each input path the following order is used: +** file.tex - must be as named, if not there go to the next path +** file.ext - random extension, try it +** file - base name, add .tex and try it +** file - try it as is +** Notice that if file exists in the first path and file.tex exists in +** one of the other paths, file in the first path is what is opened. +** If the sbFile begins with a '/', no paths are searched. +******/ + +FILE * +TexOpen(sbFile) +char *sbFile; +{ + char *pch, *sbNew; + FILE *fp; + int iPath; + static char sbFullPath[MAXPATHLEN]; + + for (iPath = 0; iPath < csbInputPaths; iPath++) { +#ifdef OS2 + if (*sbFile == '/' || *sbFile == '\\' || strchr(sbFile, ':')) { /* absolute path */ +#else + if (*sbFile == '/') { /* absolute path */ +#endif + (void)sprintf(sbFullPath, "%s", sbFile); + iPath = csbInputPaths; /* only check once */ + } else + (void)sprintf(sbFullPath, "%s/%s", rgsbInputPaths[iPath], sbFile); +#ifdef OS2 + pch = sbFullPath; + while (pch = strchr(pch, '\\')) + *pch = '/'; +#endif + + /* If sbFile ends in .tex then it must be there */ + if ((pch = rindex(sbFullPath, '.')) != NULL + && (strcmp(pch, ".tex") == 0)) + if ((fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + else + continue; + + /* if .<ext> then try to open it. the '.' represents */ + /* the beginning of an extension if it is not the first */ + /* character and it does not follow a '.' or a '/' */ + if (pch != NULL && pch > &(sbFullPath[0]) + && *(pch - 1) != '.' && *(pch - 1) != '/' + && (fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + + /* just base name, add .tex to the name */ + sbNew = SafeMalloc(strlen(sbFullPath) + 5, "malloc for TexOpen failed"); + (void)strcpy(sbNew, sbFullPath); + (void)strcat(sbNew, ".tex"); + if ((fp = fopen(sbNew, "r")) != NULL) + return(fp); + + /* try sbFile regardless */ + if ((fp = fopen(sbFullPath, "r")) != NULL) + return(fp); + } + return((FILE *)NULL); +} + +/****** +** SafeMalloc -- wrapper around malloc() to check for failure. +******/ + +char * +SafeMalloc(cch, sbMessage) +int cch; +char *sbMessage; +{ + char *sb; + + if ((sb = (char *)malloc((unsigned)cch)) == NULL) + ErrorExit(sbMessage); + return(sb); +} + +/****** +** Warning -- print a warning message preceded by the program name. +******/ + +Warning(sb1, sb2) +char *sb1, *sb2; +{ + (void)fprintf(stderr, "%s: warning: %s %s\n", sbProgName, sb1, sb2); +} + +/****** +** ErrorExit -- print an error message preceded by the program name. +** Stdout is flushed and detex exits. +******/ + +ErrorExit(sb1) +char *sb1; +{ + (void)fflush(stdout); + (void)fprintf(stderr, "%s: error: %s\n", sbProgName, sb1); + exit(1); +} +#ifdef OS2 + +/****** +** OS2UsageExit -- print OS/2 usage message and exit. +******/ + +OS2UsageExit() +{ + (void)printf("\n%s [ -clnstw ] [ -e environment-list ] [ filename[.tex] ... ]\n", + sbProgName); + puts(" -c echo LaTeX \\cite, \\ref, and \\pageref values\n \ +-e <env-list> list of LaTeX environments to ignore\n \ +-l force latex mode\n \ +-n do not follow \\input and \\include\n \ +-s replace control sequences with space\n \ +-t force tex mode\n \ +-w word only output"); + exit(0); +} +#endif diff --git a/Build/source/texk/detex/detex-src/os2/README b/Build/source/texk/detex/detex-src/os2/README new file mode 100644 index 00000000000..7b0c562dd10 --- /dev/null +++ b/Build/source/texk/detex/detex-src/os2/README @@ -0,0 +1,7 @@ +This directory contains file contributed by hankedr@mail.auburn.edu +(Darrel R Hankerson) to facilitate compilation on OS/2 and DOS +systems. Use the lexout.c provided in the top level directory. + + detex.def linker definition file (16-bit versions) + detex-32.def linker definition file + Makefile.os2 makefile for MSC 6.00A or EMX/gcc (tested with dmake 3.8) diff --git a/Build/source/texk/detex/detex-src/os2/detex-32.def b/Build/source/texk/detex/detex-src/os2/detex-32.def new file mode 100644 index 00000000000..88cc9457ef3 --- /dev/null +++ b/Build/source/texk/detex/detex-src/os2/detex-32.def @@ -0,0 +1,3 @@ +NAME detex WINDOWCOMPAT NEWFILES +DESCRIPTION 'detex for OS/2 and MSDOS' +STACKSIZE 0x8000 diff --git a/Build/source/texk/detex/detex-src/os2/detex.def b/Build/source/texk/detex/detex-src/os2/detex.def new file mode 100644 index 00000000000..616c3156923 --- /dev/null +++ b/Build/source/texk/detex/detex-src/os2/detex.def @@ -0,0 +1,2 @@ +NAME detex WINDOWCOMPAT NEWFILES +DESCRIPTION 'detex for OS/2 and MSDOS' diff --git a/Build/source/texk/detex/detex-src/os2/makefile.os2 b/Build/source/texk/detex/detex-src/os2/makefile.os2 new file mode 100644 index 00000000000..daf50a0b7b5 --- /dev/null +++ b/Build/source/texk/detex/detex-src/os2/makefile.os2 @@ -0,0 +1,96 @@ +# Makefile for "detex" (tested with dmake 3.8) 22 July 1993 +# +# - for GNU gcc (emx 0.8g kit) under OS/2 (32-bit) +# - for Microsoft C 6.00 under OS/2 or MSDOS (16-bit) + +# To use, enter "{d,n}make -f makefile.os2" (this makefile depends on its +# name being "makefile.os2"). + +default: + @echo Enter "$(MAKE) -f makefile.os2 emx" + @echo Enter "$(MAKE) -f makefile.os2 emxbnd" + @echo or "$(MAKE) -f makefile.os2 msc" + @echo or "$(MAKE) -f makefile.os2 mscbnd" + +# See the original Makefile for a complete list of options. +# +# Add -DMAXPATHLEN=<length> if it is not defined in /usr/include/sys/param.h +# +#MAXPATHLEN = -DMAXPATHLEN=1024 +# +# Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration +# in detex.l (reported by pinard@iro.umontreal.ca) +# +NO_MALLOC_DECL = -DNO_MALLOC_DECL +# + +emx: + $(MAKE) -f makefile.os2 all \ + CC="gcc -Zomf -Zmtd" O=".obj" \ + CF="" \ + LDFLAGS="" \ + LDFLAGS2="" \ + DEF="detex-32.def" + +emxbnd: + $(MAKE) -f makefile.os2 all \ + CC="gcc" O=".o" \ + CF="" \ + LDFLAGS="" \ + LDFLAGS2="" \ + DEF="detex-32.def" + +msc: + $(MAKE) -f makefile.os2 all \ + CC="cl -AS " O=".obj" \ + CF="-D__STDC__ -DMAXPATHLEN=1024" \ + LDFLAGS="-Lp" \ + LDFLAGS2="setargv.obj -link /NOE" \ + DEF="detex.def" + +mscbnd: + $(MAKE) -f makefile.os2 all \ + CC="cl -AS " O=".obj" \ + CF="-D__STDC__ -DMAXPATHLEN=1024" \ + LDFLAGS="-Lp -Fb" \ + LDFLAGS2="setargv.obj -link /NOE" \ + DEF="detex.def" + + +CFLAGS = $(CF) -DOS2 -DHAVE_STRING_H $(NO_MALLOC_DECL) -DNOFILE=99 + +.c$O : + $(CC) $(CFLAGS) -c $< + +all : detex.exe + +detex.exe : detex$O $(DEF) + $(CC) $(LDFLAGS) -o $@ $< $(LDFLAGS2) + + +# Use your favorite lexical scanner +# +# flex buffered input causes problems--see flexdoc.man. +LEX = lex +LEX_YY = lex.yy +#LEX = flex +#LEX_YY = lexyy + +#LFLAGS = -8 -C + +CP = cp +FMT_CMD = groff -man + +# lexout.c obtained from lex output on sparc. + +#detex.c: +# sed -f states.sed detex.l | ${LEX} ${LFLAGS} +# mv $(LEX_YY).c detex.c + +detex.c : lexout.c + $(CP) $< $@ + +man-page: + $(FMT_CMD) detex.1l + +detex$O : detex.h diff --git a/Build/source/texk/detex/detex-src/states.sed b/Build/source/texk/detex/detex-src/states.sed new file mode 100644 index 00000000000..110f5fa6f7c --- /dev/null +++ b/Build/source/texk/detex/detex-src/states.sed @@ -0,0 +1,57 @@ +# Copyright (c) 1986-2007 Purdue University +# All rights reserved. +# +# Developed by: Daniel Trinkle +# Department of Computer Science, Purdue University +# http://www.cs.purdue.edu/ +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal with the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# o Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimers. +# +# o Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimers in the +# documentation and/or other materials provided with the distribution. +# +# o Neither the names of Daniel Trinkle, Purdue University, nor the +# names of its contributors may be used to endorse or promote products +# derived from this Software without specific prior written +# permission. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR +# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. +# +# +# convert long labels to a shorter form so lex(1) won't overflow +s/LaBegin/SA/g +s/LaDisplay/SB/g +s/LaEnd/SC/g +s/LaEnv/SD/g +s/LaFormula/SE/g +s/LaInclude/SF/g +s/LaMacro2/SG/g +s/LaMacro/SH/g +s/LaVerbatim/SI/g +s/Define/SJ/g +s/Display/SK/g +s/IncludeOnly/SL/g +s/\([ <]\)Input\([ >;]\)/\1SM\2/g +s/Math/SN/g +s/Normal/SO/g +s/Control/SP/g +s/LaPicture/SQ/g +s/LaBreak/SR/g +s/LaOptArg2/SS/g +s/LaOptArg/ST/g |