home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / flex-2.3.8 / initscan.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-21  |  65.7 KB  |  2,288 lines

  1. /* A lexical scanner generated by flex */
  2.  
  3. /* scanner skeleton version:
  4.  * $Header: /home/horse/u0/vern/flex/RCS/flex.skel,v 2.16 90/08/03 14:09:36 vern Exp Locker: vern $
  5.  */
  6.  
  7. #define FLEX_SCANNER
  8.  
  9. #include <stdio.h>
  10.  
  11.  
  12. /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  13. #ifdef c_plusplus
  14. #ifndef __cplusplus
  15. #define __cplusplus
  16. #endif
  17. #endif
  18.  
  19.  
  20. #ifdef __cplusplus
  21.  
  22. #include <stdlib.h>
  23. #include <osfcn.h>
  24.  
  25. /* use prototypes in function declarations */
  26. #define YY_USE_PROTOS
  27.  
  28. /* the "const" storage-class-modifier is valid */
  29. #define YY_USE_CONST
  30.  
  31. #else    /* ! __cplusplus */
  32.  
  33. #ifdef __STDC__
  34.  
  35. #ifdef __GNUC__
  36. #include <stddef.h>
  37. void *malloc( size_t );
  38. void free( void* );
  39. #else
  40. #include <stdlib.h>
  41. #endif    /* __GNUC__ */
  42.  
  43. #define YY_USE_PROTOS
  44. #define YY_USE_CONST
  45.  
  46. #endif    /* __STDC__ */
  47. #endif    /* ! __cplusplus */
  48.  
  49.  
  50. #ifdef __TURBOC__
  51. #define YY_USE_CONST
  52. #endif
  53.  
  54.  
  55. #ifndef YY_USE_CONST
  56. #define const
  57. #endif
  58.  
  59.  
  60. #ifdef YY_USE_PROTOS
  61. #define YY_PROTO(proto) proto
  62. #else
  63. #define YY_PROTO(proto) ()
  64. /* we can't get here if it's an ANSI C compiler, or a C++ compiler,
  65.  * so it's got to be a K&R compiler, and therefore there's no standard
  66.  * place from which to include these definitions
  67.  */
  68. char *malloc();
  69. int free();
  70. int read();
  71. #endif
  72.  
  73.  
  74. /* amount of stuff to slurp up with each read */
  75. #ifndef YY_READ_BUF_SIZE
  76. #define YY_READ_BUF_SIZE 8192
  77. #endif
  78.  
  79. /* returned upon end-of-file */
  80. #define YY_END_TOK 0
  81.  
  82. /* copy whatever the last rule matched to the standard output */
  83.  
  84. /* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
  85. /* this used to be an fputs(), but since the string might contain NUL's,
  86.  * we now use fwrite()
  87.  */
  88. #define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
  89.  
  90. /* gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  91.  * is returned in "result".
  92.  */
  93. #define YY_INPUT(buf,result,max_size) \
  94.     if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  95.         YY_FATAL_ERROR( "read() in flex scanner failed" );
  96. #define YY_NULL 0
  97.  
  98. /* no semi-colon after return; correct usage is to write "yyterminate();" -
  99.  * we don't want an extra ';' after the "return" because that will cause
  100.  * some compilers to complain about unreachable statements.
  101.  */
  102. #define yyterminate() return ( YY_NULL )
  103.  
  104. /* report a fatal error */
  105.  
  106. /* The funky do-while is used to turn this macro definition into
  107.  * a single C statement (which needs a semi-colon terminator).
  108.  * This avoids problems with code like:
  109.  *
  110.  *     if ( something_happens )
  111.  *        YY_FATAL_ERROR( "oops, the something happened" );
  112.  *    else
  113.  *        everything_okay();
  114.  *
  115.  * Prior to using the do-while the compiler would get upset at the
  116.  * "else" because it interpreted the "if" statement as being all
  117.  * done when it reached the ';' after the YY_FATAL_ERROR() call.
  118.  */
  119.  
  120. #define YY_FATAL_ERROR(msg) \
  121.     do \
  122.         { \
  123.         (void) fputs( msg, stderr ); \
  124.         (void) putc( '\n', stderr ); \
  125.         exit( 1 ); \
  126.         } \
  127.     while ( 0 )
  128.  
  129. /* default yywrap function - always treat EOF as an EOF */
  130. #define yywrap() 1
  131.  
  132. /* enter a start condition.  This macro really ought to take a parameter,
  133.  * but we do it the disgusting crufty way forced on us by the ()-less
  134.  * definition of BEGIN
  135.  */
  136. #define BEGIN yy_start = 1 + 2 *
  137.  
  138. /* action number for EOF rule of a given start state */
  139. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  140.  
  141. /* special action meaning "start processing a new file" */
  142. #define YY_NEW_FILE \
  143.     do \
  144.         { \
  145.         yy_init_buffer( yy_current_buffer, yyin ); \
  146.         yy_load_buffer_state(); \
  147.         } \
  148.     while ( 0 )
  149.  
  150. /* default declaration of generated scanner - a define so the user can
  151.  * easily add parameters
  152.  */
  153. #define YY_DECL int yylex YY_PROTO(( void )) 
  154.  
  155. /* code executed at the end of each rule */
  156. #define YY_BREAK break;
  157.  
  158. #define YY_END_OF_BUFFER_CHAR 0
  159.  
  160. #ifndef YY_BUF_SIZE
  161. #define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
  162. #endif
  163.  
  164. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  165.  
  166. #define YY_CHAR unsigned char
  167. # line 1 "scan.l"
  168. #define INITIAL 0
  169. /* scan.l - scanner for flex input */
  170. # line 5 "scan.l"
  171. /*-
  172.  * Copyright (c) 1990 The Regents of the University of California.
  173.  * All rights reserved.
  174.  *
  175.  * This code is derived from software contributed to Berkeley by
  176.  * Vern Paxson.
  177.  * 
  178.  * The United States Government has rights in this work pursuant
  179.  * to contract no. DE-AC03-76SF00098 between the United States
  180.  * Department of Energy and the University of California.
  181.  *
  182.  * Redistribution and use in source and binary forms are permitted provided
  183.  * that: (1) source distributions retain this entire copyright notice and
  184.  * comment, and (2) distributions including binaries display the following
  185.  * acknowledgement:  ``This product includes software developed by the
  186.  * University of California, Berkeley and its contributors'' in the
  187.  * documentation or other materials provided with the distribution and in
  188.  * all advertising materials mentioning features or use of this software.
  189.  * Neither the name of the University nor the names of its contributors may
  190.  * be used to endorse or promote products derived from this software without
  191.  * specific prior written permission.
  192.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  193.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  194.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  195.  */
  196.  
  197. #ifndef lint
  198. static char rcsid[] =
  199.     "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/scan.l,v 2.9 90/06/27 23:48:34 vern Exp $ (LBL)";
  200. #endif
  201.  
  202. #undef yywrap
  203.  
  204. #include "flexdef.h"
  205. #include "parse.h"
  206.  
  207. #define ACTION_ECHO fprintf( temp_action_file, "%s", yytext )
  208. #define MARK_END_OF_PROLOG fprintf( temp_action_file, "%%%% end of prolog\n" );
  209.  
  210. #undef YY_DECL
  211. #define YY_DECL \
  212.     int flexscan()
  213.  
  214. #define RETURNCHAR \
  215.     yylval = yytext[0]; \
  216.     return ( CHAR );
  217.  
  218. #define RETURNNAME \
  219.     (void) strcpy( nmstr, (char *) yytext ); \
  220.     return ( NAME );
  221.  
  222. #define PUT_BACK_STRING(str, start) \
  223.     for ( i = strlen( (char *) (str) ) - 1; i >= start; --i ) \
  224.         unput((str)[i])
  225.  
  226. #define CHECK_REJECT(str) \
  227.     if ( all_upper( str ) ) \
  228.         reject = true;
  229.  
  230. #define CHECK_YYMORE(str) \
  231.     if ( all_lower( str ) ) \
  232.         yymore_used = true;
  233. #define SECT2 1
  234. #define SECT2PROLOG 2
  235. #define SECT3 3
  236. #define CODEBLOCK 4
  237. #define PICKUPDEF 5
  238. #define SC 6
  239. #define CARETISBOL 7
  240. #define NUM 8
  241. #define QUOTE 9
  242. #define FIRSTCCL 10
  243. #define CCL 11
  244. #define ACTION 12
  245. #define RECOVER 13
  246. #define BRACEERROR 14
  247. #define C_COMMENT 15
  248. #define ACTION_COMMENT 16
  249. #define ACTION_STRING 17
  250. #define PERCENT_BRACE_ACTION 18
  251. #define USED_LIST 19
  252. #define CODEBLOCK_2 20
  253. #define XLATION 21
  254. # line 84 "scan.l"
  255.  
  256. /* done after the current pattern has been matched and before the
  257.  * corresponding action - sets up yytext
  258.  */
  259. #define YY_DO_BEFORE_ACTION \
  260.     yytext = yy_bp; \
  261.     yyleng = yy_cp - yy_bp; \
  262.     yy_hold_char = *yy_cp; \
  263.     *yy_cp = '\0'; \
  264.     yy_c_buf_p = yy_cp;
  265.  
  266. #define EOB_ACT_CONTINUE_SCAN 0
  267. #define EOB_ACT_END_OF_FILE 1
  268. #define EOB_ACT_LAST_MATCH 2
  269.  
  270. /* return all but the first 'n' matched characters back to the input stream */
  271. #define yyless(n) \
  272.     do \
  273.         { \
  274.         /* undo effects of setting up yytext */ \
  275.         *yy_cp = yy_hold_char; \
  276.         yy_c_buf_p = yy_cp = yy_bp + n; \
  277.         YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  278.         } \
  279.     while ( 0 )
  280.  
  281. #define unput(c) yyunput( c, yytext )
  282.  
  283.  
  284. struct yy_buffer_state
  285.     {
  286.     FILE *yy_input_file;
  287.  
  288.     YY_CHAR *yy_ch_buf;        /* input buffer */
  289.     YY_CHAR *yy_buf_pos;    /* current position in input buffer */
  290.  
  291.     /* size of input buffer in bytes, not including room for EOB characters */
  292.     int yy_buf_size;    
  293.  
  294.     /* number of characters read into yy_ch_buf, not including EOB characters */
  295.     int yy_n_chars;
  296.  
  297.     int yy_eof_status;        /* whether we've seen an EOF on this buffer */
  298. #define EOF_NOT_SEEN 0
  299.     /* "pending" happens when the EOF has been seen but there's still
  300.      * some text process
  301.      */
  302. #define EOF_PENDING 1
  303. #define EOF_DONE 2
  304.     };
  305.  
  306. static YY_BUFFER_STATE yy_current_buffer;
  307.  
  308. /* we provide macros for accessing buffer states in case in the
  309.  * future we want to put the buffer states in a more general
  310.  * "scanner state"
  311.  */
  312. #define YY_CURRENT_BUFFER yy_current_buffer
  313.  
  314.  
  315. /* yy_hold_char holds the character lost when yytext is formed */
  316. static YY_CHAR yy_hold_char;
  317.  
  318. static int yy_n_chars;        /* number of characters read into yy_ch_buf */
  319.  
  320.  
  321.  
  322. #ifndef YY_USER_ACTION
  323. #define YY_USER_ACTION
  324. #endif
  325.  
  326. #ifndef YY_USER_INIT
  327. #define YY_USER_INIT
  328. #endif
  329.  
  330. extern YY_CHAR *yytext;
  331. extern int yyleng;
  332. extern FILE *yyin, *yyout;
  333.  
  334. YY_CHAR *yytext;
  335. int yyleng;
  336.  
  337. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  338.  
  339. #define YY_END_OF_BUFFER 121
  340. typedef int yy_state_type;
  341. static const short int yy_accept[342] =
  342.     {   0,
  343.         0,    0,    0,    0,    0,    0,  119,  119,    0,    0,
  344.         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  345.         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  346.         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  347.         0,    0,    0,    0,  121,   19,    7,   18,   19,   16,
  348.         1,   17,   19,   19,   19,   15,   67,   59,   60,   53,
  349.        67,   66,   51,   67,   67,   67,   50,   49,   67,   52,
  350.       120,   47,  119,  119,   28,   29,   28,   28,   28,   28,
  351.        31,   30,   32,   73,  120,   69,   70,   72,   74,   88,
  352.        89,   86,   85,   87,   75,   77,   76,   75,   81,   80,
  353.  
  354.        81,   81,   83,   83,   83,   84,   99,  104,  103,  105,
  355.       105,  100,  100,  100,   97,   98,  120,   33,   91,   90,
  356.        22,   24,   23,  107,  109,  108,  111,  113,  114,  115,
  357.        95,   95,   96,   95,   95,   95,   95,   38,   35,   34,
  358.        38,   38,   44,   42,   45,   44,   44,   41,   41,   41,
  359.        40,   41,    7,   18,    0,   16,    1,   17,    0,    2,
  360.        14,    8,    0,   12,    4,    0,    0,    5,    0,    3,
  361.        15,   59,   60,    0,    0,   56,    0,    0,    0,  117,
  362.       117,  117,   55,   54,   55,   50,   49,   63,   50,    0,
  363.        47,   46,  119,  119,   28,   28,   28,   28,   28,   31,
  364.  
  365.        30,   71,   72,   85,  118,  118,  118,   78,   79,   82,
  366.        99,    0,  102,    0,  101,  100,  100,  100,    0,   33,
  367.        22,   20,  107,  106,  111,  112,   95,   95,   95,   92,
  368.        95,   95,   95,   38,   35,   38,   38,   42,    0,   43,
  369.        43,   43,   42,   40,    0,   13,   14,    8,    8,    0,
  370.        12,    4,    0,    0,    0,    5,    0,    6,   57,    0,
  371.        58,    0,   64,    0,    0,  117,  117,   55,   55,   65,
  372.        63,   28,   28,   28,   25,    0,  118,  118,  100,  100,
  373.         0,   21,   92,   92,   95,   95,   38,   38,    0,   39,
  374.        43,   43,    0,    0,   11,    4,    0,   11,    0,    0,
  375.  
  376.         5,    0,    0,    0,  117,   28,   28,  118,  100,  100,
  377.        95,   95,   38,   38,   43,    0,    9,    0,    0,    0,
  378.        28,   28,  100,  100,   95,   95,   38,   38,    0,    0,
  379.        26,   27,   93,   94,   93,   94,   36,   37,   10,   62,
  380.         0
  381.     } ;
  382.  
  383. static const YY_CHAR yy_ec[256] =
  384.     {   0,
  385.         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
  386.         1,    4,    1,    1,    1,    1,    1,    1,    1,    1,
  387.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  388.         1,    2,    1,    5,    6,    7,    8,    1,    9,   10,
  389.        10,   11,   10,   12,   13,   10,   14,   15,   15,   15,
  390.        15,   15,   15,   15,   15,   15,   15,    1,    1,   16,
  391.         1,   17,   10,    1,   23,   24,   25,   26,   27,   28,
  392.        22,   22,   22,   29,   30,   22,   31,   32,   33,   30,
  393.        22,   34,   35,   36,   37,   22,   22,   38,   39,   22,
  394.        18,   19,   20,   21,   22,    1,   23,   24,   25,   26,
  395.  
  396.        27,   28,   22,   22,   22,   29,   30,   22,   31,   32,
  397.        33,   30,   22,   34,   35,   36,   37,   22,   22,   38,
  398.        39,   22,   40,   41,   42,    1,    1,    1,    1,    1,
  399.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  400.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  401.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  402.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  403.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  404.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  405.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  406.  
  407.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  408.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  409.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  410.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  411.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  412.         1,    1,    1,    1,    1
  413.     } ;
  414.  
  415. static const YY_CHAR yy_meta[43] =
  416.     {   0,
  417.         1,    2,    3,    2,    4,    1,    1,    1,    5,    1,
  418.         6,    1,    7,    5,    8,    1,    1,    1,    9,   10,
  419.         1,   11,   12,   12,   12,   12,   12,   12,   11,   11,
  420.        11,   11,   11,   11,   11,   11,   11,   11,   11,    5,
  421.         1,   13
  422.     } ;
  423.  
  424. static const short int yy_base[405] =
  425.     {   0,
  426.         0,   42,   83,  123, 1401, 1400, 1399, 1398,  164, 1391,
  427.       101,  104,  206,    0, 1377, 1376,  106,  107,   93,  110,
  428.       132,  133,  137,  246,  266,    0, 1382, 1378,  113,  117,
  429.        89,  247,  249,  250,  306,  307,  326,    0,  367,  370,
  430.         0,    0,  373,  376, 1380, 1405,  158, 1405, 1343,    0,
  431.       252, 1405, 1360,  402, 1351,    0, 1405,  385, 1405, 1405,
  432.       260, 1405, 1345, 1338,   76,  442,  483, 1405,  103, 1405,
  433.      1353,    0, 1348, 1405,    0, 1405,    0, 1323, 1294, 1290,
  434.         0,  311, 1405, 1405, 1405, 1405, 1310,    0, 1405, 1405,
  435.      1405, 1405, 1300, 1405, 1405, 1405, 1405,  367, 1405, 1405,
  436.  
  437.       370, 1301, 1405,    0,  375, 1405,    0, 1405, 1405,  305,
  438.      1302,    0, 1274, 1250, 1405, 1405, 1282, 1405, 1405, 1405,
  439.         0, 1405, 1270,    0, 1405, 1269,    0, 1405, 1405,    0,
  440.         0,  314, 1405, 1199,    0, 1201, 1176,    0,  315, 1405,
  441.      1187, 1171, 1405,  319, 1405, 1173,  379, 1405,  396, 1169,
  442.      1189,  381,  412, 1405,  418,    0,  486, 1405, 1193, 1405,
  443.       395,  426,  429,  490,    0,  493,  351,    0, 1180, 1405,
  444.         0,  496, 1405, 1136, 1168, 1405, 1143,  383,  403, 1405,
  445.      1145,    0,    0, 1405,  537,  499, 1405,    0, 1405, 1154,
  446.         0, 1405, 1144, 1405,    0,    0, 1115, 1095,  579,    0,
  447.  
  448.       504, 1405,    0, 1110, 1405, 1097,    0, 1405, 1405, 1405,
  449.         0,  496, 1405,    0, 1405,    0, 1075, 1072, 1099, 1405,
  450.         0, 1093,    0, 1405,    0, 1405,    0,  508, 1047,  621,
  451.         0, 1047, 1032,    0,  507, 1029, 1026,  515,  518, 1405,
  452.      1029,    0,  521, 1024,  524, 1405,  527,    0,  528,  531,
  453.       662,    0,  665, 1001, 1007,    0, 1030, 1405, 1405, 1022,
  454.      1405,  966, 1405,  655,  661,  983,    0,    0,    0, 1405,
  455.         0,  946,  934,    0, 1405,  957,  940,    0,  927,  891,
  456.       920, 1405,    0,    0,  679,  672,  677,  670,  669, 1405,
  457.       687,    0,  698,  675, 1405,    0,  688, 1405,  665,  670,
  458.  
  459.         0,  667,  678,  684, 1405,  669,  631, 1405,  599,  484,
  460.       468,  411,  399,  378, 1405,  380, 1405,  303,  494,  663,
  461.       228,  230,  215,  131,  111,  111,   96,   90,   69,   72,
  462.         0,    0,    0,    0,    0,    0,    0,    0, 1405, 1405,
  463.      1405,  712,  725,  738,  751,  764,  777,  790,  803,  816,
  464.       829,  842,  855,  868,  881,  894,  907,  914,  926,  939,
  465.       945,  957,  970,  983,  996, 1009, 1022, 1029, 1041, 1048,
  466.      1060, 1073, 1086, 1099, 1109, 1116, 1128, 1141, 1154, 1167,
  467.      1180, 1193, 1200, 1212, 1225, 1238, 1241, 1243, 1255, 1268,
  468.      1274, 1286, 1298, 1304, 1316, 1322, 1334, 1341, 1347, 1352,
  469.  
  470.      1364, 1370, 1382, 1388
  471.     } ;
  472.  
  473. static const short int yy_def[405] =
  474.     {   0,
  475.       341,  341,  342,  342,  343,  343,  344,  344,  341,    9,
  476.       345,  345,  341,   13,  346,  346,  347,  347,  348,  348,
  477.       349,  349,  350,  350,  341,   25,  351,  351,  346,  346,
  478.       352,  352,  353,  353,  354,  354,  341,   37,  355,  355,
  479.        37,   37,  356,  357,  341,  341,  341,  341,  341,  358,
  480.       341,  341,  359,  360,  341,  361,  341,  341,  341,  341,
  481.       341,  341,  341,  362,  363,  341,  341,  341,  341,  341,
  482.       364,  365,  366,  341,  367,  341,  368,  368,  368,  367,
  483.       369,  341,  341,  341,  341,  341,  341,  370,  341,  341,
  484.       341,  341,  341,  341,  341,  341,  341,  363,  341,  341,
  485.  
  486.       371,  372,  341,  373,  363,  341,  374,  341,  341,  375,
  487.       341,  376,  376,  376,  341,  341,  377,  341,  341,  341,
  488.       378,  341,  341,  379,  341,  341,  380,  341,  341,  381,
  489.       382,  382,  341,  382,  383,  383,  383,  384,  341,  341,
  490.       384,  384,  341,  341,  341,  341,  385,  341,  341,  341,
  491.       341,  385,  341,  341,  341,  358,  341,  341,  359,  341,
  492.       341,  386,  341,  341,  387,  341,  341,  388,  389,  341,
  493.       361,  341,  341,  341,  390,  341,  341,  362,  362,  341,
  494.       341,  391,  392,  341,  341,  341,  341,  393,  341,  364,
  495.       365,  341,  366,  341,  367,  368,  368,  368,  341,  369,
  496.  
  497.       341,  341,  370,  341,  341,  341,  394,  341,  341,  341,
  498.       374,  375,  341,  375,  341,  376,  376,  376,  377,  341,
  499.       378,  395,  379,  341,  380,  341,  382,  382,  382,  341,
  500.       383,  383,  383,  384,  341,  384,  384,  341,  341,  341,
  501.       341,  396,  341,  341,  341,  341,  341,  386,  386,  397,
  502.       341,  398,  397,  341,  341,  399,  389,  341,  341,  390,
  503.       341,  341,  341,  362,  362,  341,  400,  392,  185,  341,
  504.       393,  368,  368,  199,  341,  401,  341,  402,  376,  376,
  505.       395,  341,  230,  403,  383,  383,  384,  384,  341,  341,
  506.       341,  404,  397,  397,  341,  398,  397,  341,  341,  341,
  507.  
  508.       399,  341,  362,  265,  341,  368,  368,  341,  376,  376,
  509.       383,  383,  384,  384,  341,  341,  341,  341,  362,  362,
  510.       368,  368,  376,  376,  383,  383,  384,  384,  341,  341,
  511.       368,  368,  376,  376,  383,  383,  384,  384,  341,  341,
  512.         0,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  513.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  514.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  515.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  516.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  517.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  518.  
  519.       341,  341,  341,  341
  520.     } ;
  521.  
  522. static const short int yy_nxt[1448] =
  523.     {   0,
  524.        46,   47,   48,   47,   46,   46,   46,   49,   46,   46,
  525.        46,   46,   46,   46,   46,   46,   46,   46,   46,   46,
  526.        46,   50,   50,   50,   50,   50,   50,   50,   50,   50,
  527.        50,   50,   50,   50,   50,   50,   50,   50,   50,   46,
  528.        46,   46,   46,   51,   52,   51,   46,   53,   46,   54,
  529.        46,   46,   46,   46,   46,   55,   46,   46,   46,   46,
  530.        46,   46,   46,   56,   56,   56,   56,   56,   56,   56,
  531.        56,   56,   56,   56,   56,   56,   56,   56,   56,   56,
  532.        56,   46,   46,   46,   58,   59,   58,   60,  340,   61,
  533.       181,  122,   62,   62,  339,   96,   62,   97,   63,  123,
  534.  
  535.        64,   65,   82,   83,   82,   82,   83,   82,   91,   91,
  536.       188,   98,   96,  182,   97,  119,  338,   92,   92,  119,
  537.        93,   93,   66,   62,   67,   68,   67,   60,   98,   61,
  538.        69,  337,   62,   62,   85,   85,   62,  336,   63,   85,
  539.        64,   65,  189,   70,  100,  100,  335,   94,   94,  104,
  540.       101,  101,  102,  102,  120,  105,  106,  334,  120,  153,
  541.       154,  153,   66,   62,   75,   75,   76,   75,   75,   75,
  542.        75,   75,   75,   75,   75,   75,   75,   75,   75,   75,
  543.        75,   75,   75,   75,   75,   77,   77,   77,   77,   77,
  544.        77,   77,   77,   77,   77,   77,   77,   78,   77,   77,
  545.  
  546.        77,   77,   79,   75,   75,   75,   84,   84,   85,   84,
  547.        84,   84,   84,   84,   84,   84,   84,   86,   84,   84,
  548.        84,   84,   87,   84,   84,   84,   84,   88,   88,   88,
  549.        88,   88,   88,   88,   88,   88,   88,   88,   88,   88,
  550.        88,   88,   88,   88,   88,   84,   84,   84,   85,  122,
  551.       333,  125,  125,  157,  158,  157,  332,  123,  104,  126,
  552.       126,  176,  176,  331,  105,  106,  107,  107,  108,  107,
  553.       109,  107,  107,  107,  110,  107,  107,  107,  107,  111,
  554.       107,  107,  107,  107,  107,  107,  107,  112,  112,  112,
  555.       112,  112,  112,  112,  112,  112,  112,  112,  112,  113,
  556.  
  557.       112,  112,  112,  112,  114,  115,  107,  116,  128,  128,
  558.       129,  129,  201,  213,  201,  228,  235,  228,  235,  330,
  559.       238,  229,  238,  214,  130,  130,  131,  132,  133,  132,
  560.       131,  131,  131,  134,  131,  131,  131,  131,  131,  131,
  561.       131,  131,  131,  131,  131,  131,  131,  135,  135,  135,
  562.       135,  135,  135,  135,  135,  135,  135,  135,  135,  136,
  563.       135,  135,  135,  135,  137,  131,  131,  131,  139,  140,
  564.       139,  139,  140,  139,  144,  145,  144,  149,  145,  149,
  565.       146,  181,  254,  150,  206,  255,  172,  173,  172,  181,
  566.       151,  147,  174,  241,  152,  241,  247,  243,  247,  243,
  567.  
  568.       141,  179,  263,  141,  182,  142,  329,  207,  142,  162,
  569.       244,  328,  182,  153,  154,  153,  242,  264,  242,  245,
  570.       246,  245,  178,  327,  163,  175,  164,  249,  163,  249,
  571.       250,  163,  250,  163,  163,  164,  165,  166,  167,  168,
  572.       265,  169,  183,  183,  326,  183,  183,  183,  183,  183,
  573.       183,  183,  183,  183,  183,  183,  184,  183,  183,  183,
  574.       183,  183,  183,  185,  185,  185,  185,  185,  185,  185,
  575.       185,  185,  185,  185,  185,  185,  185,  185,  185,  185,
  576.       185,  183,  183,  183,  186,  187,  186,  157,  158,  157,
  577.       174,  251,  325,  251,  253,  246,  253,  172,  173,  172,
  578.  
  579.       186,  187,  186,  174,  213,  201,  174,  201,  235,  228,
  580.       235,  228,  179,  263,  214,  229,  238,  324,  238,  289,
  581.       290,  289,  243,  175,  243,  245,  246,  245,  247,  249,
  582.       247,  249,  294,  295,  294,  244,  175,  268,  268,  175,
  583.       268,  268,  268,  268,  268,  268,  268,  268,  268,  269,
  584.       268,  269,  268,  268,  268,  268,  268,  268,  269,  269,
  585.       269,  269,  269,  269,  269,  269,  269,  269,  269,  269,
  586.       269,  269,  269,  269,  269,  269,  268,  268,  270,  274,
  587.       274,  275,  274,  274,  274,  274,  274,  274,  274,  274,
  588.       274,  274,  274,  274,  274,  274,  274,  274,  274,  274,
  589.  
  590.       276,  276,  276,  276,  276,  276,  276,  276,  276,  276,
  591.       276,  276,  276,  276,  276,  276,  276,  276,  274,  274,
  592.       274,  283,  283,  323,  283,  283,  283,  283,  283,  283,
  593.       283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
  594.       283,  283,  284,  284,  284,  284,  284,  284,  284,  284,
  595.       284,  284,  284,  284,  284,  284,  284,  284,  284,  284,
  596.       283,  283,  283,  251,  322,  251,  297,  298,  297,  303,
  597.       289,  290,  289,  179,  263,  304,  294,  295,  294,  179,
  598.       263,  179,  263,  304,  304,  304,  304,  304,  304,  297,
  599.       298,  297,  319,  321,  318,  317,  179,  263,  320,  316,
  600.  
  601.       295,  240,  314,  313,  312,  311,  320,  320,  320,  320,
  602.       320,  320,   57,   57,   57,   57,   57,   57,   57,   57,
  603.        57,   57,   57,   57,   57,   71,   71,   71,   71,   71,
  604.        71,   71,   71,   71,   71,   71,   71,   71,   73,   73,
  605.        73,   73,   73,   73,   73,   73,   73,   73,   73,   73,
  606.        73,   81,   81,   81,   81,   81,   81,   81,   81,   81,
  607.        81,   81,   81,   81,   85,   85,   85,   85,   85,   85,
  608.        85,   85,   85,   85,   85,   85,   85,   90,   90,   90,
  609.        90,   90,   90,   90,   90,   90,   90,   90,   90,   90,
  610.        95,   95,   95,   95,   95,   95,   95,   95,   95,   95,
  611.  
  612.        95,   95,   95,   99,   99,   99,   99,   99,   99,   99,
  613.        99,   99,   99,   99,   99,   99,  103,  103,  103,  103,
  614.       103,  103,  103,  103,  103,  103,  103,  103,  103,  117,
  615.       117,  117,  117,  117,  117,  117,  117,  117,  117,  117,
  616.       117,  117,  121,  121,  121,  121,  121,  121,  121,  121,
  617.       121,  121,  121,  121,  121,  124,  124,  124,  124,  124,
  618.       124,  124,  124,  124,  124,  124,  124,  124,  127,  127,
  619.       127,  127,  127,  127,  127,  127,  127,  127,  127,  127,
  620.       127,  138,  138,  138,  138,  138,  138,  138,  138,  138,
  621.       138,  138,  138,  138,  143,  143,  143,  143,  143,  143,
  622.  
  623.       143,  143,  143,  143,  143,  143,  143,  148,  148,  148,
  624.       148,  148,  148,  148,  148,  148,  148,  148,  148,  148,
  625.       156,  156,  282,  310,  156,  156,  159,  159,  159,  159,
  626.       159,  159,  159,  159,  159,  159,  159,  159,  159,  161,
  627.       161,  161,  161,  161,  161,  161,  161,  161,  161,  161,
  628.       161,  171,  171,  309,  205,  171,  171,  178,  178,  275,
  629.       178,  178,  178,  178,  178,  178,  307,  178,  178,  178,
  630.       180,  180,  306,  180,  180,  180,  180,  180,  180,  180,
  631.       180,  180,  180,  190,  190,  190,  190,  190,  190,  190,
  632.       190,  190,  190,  190,  190,  190,  192,  180,  302,  192,
  633.  
  634.       192,  192,  192,  192,  192,  192,  192,  192,  192,  193,
  635.       193,  193,  193,  193,  193,  193,  193,  193,  193,  193,
  636.       193,  193,  195,  195,  261,  195,  195,  195,  195,  195,
  637.       195,  195,  258,  300,  195,  196,  196,  299,  244,  196,
  638.       196,  200,  200,  291,  200,  200,  200,  200,  200,  200,
  639.       200,  200,  200,  200,  203,  203,  288,  287,  203,  203,
  640.       205,  205,  286,  205,  205,  205,  205,  205,  205,  205,
  641.       205,  205,  205,  208,  208,  285,  208,  208,  208,  208,
  642.       208,  208,  208,  208,  208,  208,  210,  210,  230,  210,
  643.       210,  210,  210,  210,  210,  282,  210,  210,  210,  211,
  644.  
  645.       211,  220,  280,  279,  211,  211,  211,  211,  211,  212,
  646.       212,  277,  212,  212,  212,  212,  212,  212,  212,  212,
  647.       212,  212,  216,  216,  204,  273,  216,  216,  219,  219,
  648.       219,  219,  219,  219,  219,  219,  219,  219,  219,  219,
  649.       219,  221,  221,  272,  221,  221,  194,  221,  221,  221,
  650.       221,  221,  221,  221,  223,  223,  191,  223,  223,  266,
  651.       223,  223,  223,  223,  223,  223,  223,  225,  225,  262,
  652.       261,  225,  225,  225,  225,  259,  225,  225,  225,  225,
  653.       226,  226,  258,  226,  226,  226,  226,  226,  226,  226,
  654.       226,  226,  226,  227,  227,  160,  227,  227,  227,  227,
  655.  
  656.       227,  227,  227,  244,  239,  227,  231,  231,  239,  237,
  657.       231,  231,  234,  236,  233,  234,  234,  234,  234,  234,
  658.       234,  234,  234,  234,  234,  240,  240,  232,  240,  240,
  659.       240,  240,  240,  240,  240,  240,  240,  240,  248,  248,
  660.       230,  248,  248,  248,  248,  248,  248,  248,  248,  248,
  661.       248,  252,  252,  256,  256,  257,  257,  257,  257,  257,
  662.       257,  257,  257,  257,  257,  257,  257,  257,  260,  260,
  663.       260,  260,  260,  260,  260,  260,  260,  260,  260,  260,
  664.       260,  267,  224,  222,  220,  267,  268,  268,  218,  268,
  665.       268,  268,  268,  268,  268,  268,  268,  268,  271,  271,
  666.  
  667.       217,  271,  271,  271,  271,  271,  271,  271,  271,  271,
  668.       271,  278,  215,  209,  204,  278,  281,  281,  281,  281,
  669.       281,  281,  281,  281,  281,  281,  281,  281,  281,  292,
  670.       202,  199,  198,  292,  293,  293,  293,  293,  293,  293,
  671.       293,  293,  293,  293,  293,  293,  293,  296,  296,  197,
  672.       194,  296,  296,  301,  301,  191,  179,  301,  301,  305,
  673.       177,  170,  160,  305,  276,  276,  276,  276,  276,  276,
  674.       276,  276,  276,  276,  276,  276,  276,  308,  155,  341,
  675.       118,  308,  284,  284,  118,  284,  284,  284,  284,  284,
  676.       284,  284,  284,  284,  284,  315,   89,   89,   80,  315,
  677.  
  678.        74,   74,   72,   72,   45,  341,  341,  341,  341,  341,
  679.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  680.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  681.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  682.       341,  341,  341,  341,  341,  341,  341
  683.     } ;
  684.  
  685. static const short int yy_chk[1448] =
  686.     {   0,
  687.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  688.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  689.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  690.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  691.         1,    1,    2,    2,    2,    2,    2,    2,    2,    2,
  692.         2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  693.         2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  694.         2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  695.         2,    2,    2,    2,    3,    3,    3,    3,  330,    3,
  696.        65,   31,    3,    3,  329,   19,    3,   19,    3,   31,
  697.  
  698.         3,    3,   11,   11,   11,   12,   12,   12,   17,   18,
  699.        69,   19,   20,   65,   20,   29,  328,   17,   18,   30,
  700.        17,   18,    3,    3,    4,    4,    4,    4,   20,    4,
  701.         4,  327,    4,    4,   21,   22,    4,  326,    4,   23,
  702.         4,    4,   69,    4,   21,   22,  325,   17,   18,   23,
  703.        21,   22,   21,   22,   29,   23,   23,  324,   30,   47,
  704.        47,   47,    4,    4,    9,    9,    9,    9,    9,    9,
  705.         9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  706.         9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  707.         9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  708.  
  709.         9,    9,    9,    9,    9,    9,   13,   13,   13,   13,
  710.        13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  711.        13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  712.        13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  713.        13,   13,   13,   13,   13,   13,   13,   13,   24,   32,
  714.       323,   33,   34,   51,   51,   51,  322,   32,   24,   33,
  715.        34,   61,   61,  321,   24,   24,   25,   25,   25,   25,
  716.        25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  717.        25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  718.        25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  719.  
  720.        25,   25,   25,   25,   25,   25,   25,   25,   35,   36,
  721.        35,   36,   82,  110,   82,  132,  139,  132,  139,  318,
  722.       144,  132,  144,  110,   35,   36,   37,   37,   37,   37,
  723.        37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  724.        37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  725.        37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  726.        37,   37,   37,   37,   37,   37,   37,   37,   39,   39,
  727.        39,   40,   40,   40,   43,   43,   43,   44,   44,   44,
  728.        43,   98,  167,   44,  101,  167,   58,   58,   58,  105,
  729.        44,   43,   58,  147,   44,  152,  161,  149,  161,  149,
  730.  
  731.        39,  178,  178,   40,   98,   39,  316,  101,   40,   54,
  732.       149,  314,  105,  153,  153,  153,  147,  179,  152,  155,
  733.       155,  155,  179,  313,   54,   58,   54,  162,   54,  162,
  734.       163,   54,  163,   54,   54,   54,   54,   54,   54,   54,
  735.       179,   54,   66,   66,  312,   66,   66,   66,   66,   66,
  736.        66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  737.        66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  738.        66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  739.        66,   66,   66,   66,   67,   67,   67,  157,  157,  157,
  740.        67,  164,  311,  164,  166,  166,  166,  172,  172,  172,
  741.  
  742.       186,  186,  186,  172,  212,  201,  186,  201,  235,  228,
  743.       235,  228,  319,  319,  212,  228,  238,  310,  238,  239,
  744.       239,  239,  243,   67,  243,  245,  245,  245,  247,  249,
  745.       247,  249,  250,  250,  250,  243,  172,  185,  185,  186,
  746.       185,  185,  185,  185,  185,  185,  185,  185,  185,  185,
  747.       185,  185,  185,  185,  185,  185,  185,  185,  185,  185,
  748.       185,  185,  185,  185,  185,  185,  185,  185,  185,  185,
  749.       185,  185,  185,  185,  185,  185,  185,  185,  185,  199,
  750.       199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  751.       199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  752.  
  753.       199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  754.       199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  755.       199,  230,  230,  309,  230,  230,  230,  230,  230,  230,
  756.       230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  757.       230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  758.       230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  759.       230,  230,  230,  251,  307,  251,  253,  253,  253,  264,
  760.       289,  289,  289,  264,  264,  265,  294,  294,  294,  265,
  761.       265,  320,  320,  265,  265,  265,  265,  265,  265,  297,
  762.       297,  297,  303,  306,  302,  300,  303,  303,  304,  299,
  763.  
  764.       293,  291,  288,  287,  286,  285,  304,  304,  304,  304,
  765.       304,  304,  342,  342,  342,  342,  342,  342,  342,  342,
  766.       342,  342,  342,  342,  342,  343,  343,  343,  343,  343,
  767.       343,  343,  343,  343,  343,  343,  343,  343,  344,  344,
  768.       344,  344,  344,  344,  344,  344,  344,  344,  344,  344,
  769.       344,  345,  345,  345,  345,  345,  345,  345,  345,  345,
  770.       345,  345,  345,  345,  346,  346,  346,  346,  346,  346,
  771.       346,  346,  346,  346,  346,  346,  346,  347,  347,  347,
  772.       347,  347,  347,  347,  347,  347,  347,  347,  347,  347,
  773.       348,  348,  348,  348,  348,  348,  348,  348,  348,  348,
  774.  
  775.       348,  348,  348,  349,  349,  349,  349,  349,  349,  349,
  776.       349,  349,  349,  349,  349,  349,  350,  350,  350,  350,
  777.       350,  350,  350,  350,  350,  350,  350,  350,  350,  351,
  778.       351,  351,  351,  351,  351,  351,  351,  351,  351,  351,
  779.       351,  351,  352,  352,  352,  352,  352,  352,  352,  352,
  780.       352,  352,  352,  352,  352,  353,  353,  353,  353,  353,
  781.       353,  353,  353,  353,  353,  353,  353,  353,  354,  354,
  782.       354,  354,  354,  354,  354,  354,  354,  354,  354,  354,
  783.       354,  355,  355,  355,  355,  355,  355,  355,  355,  355,
  784.       355,  355,  355,  355,  356,  356,  356,  356,  356,  356,
  785.  
  786.       356,  356,  356,  356,  356,  356,  356,  357,  357,  357,
  787.       357,  357,  357,  357,  357,  357,  357,  357,  357,  357,
  788.       358,  358,  281,  280,  358,  358,  359,  359,  359,  359,
  789.       359,  359,  359,  359,  359,  359,  359,  359,  359,  360,
  790.       360,  360,  360,  360,  360,  360,  360,  360,  360,  360,
  791.       360,  361,  361,  279,  277,  361,  361,  362,  362,  276,
  792.       362,  362,  362,  362,  362,  362,  273,  362,  362,  362,
  793.       363,  363,  272,  363,  363,  363,  363,  363,  363,  363,
  794.       363,  363,  363,  364,  364,  364,  364,  364,  364,  364,
  795.       364,  364,  364,  364,  364,  364,  365,  266,  262,  365,
  796.  
  797.       365,  365,  365,  365,  365,  365,  365,  365,  365,  366,
  798.       366,  366,  366,  366,  366,  366,  366,  366,  366,  366,
  799.       366,  366,  367,  367,  260,  367,  367,  367,  367,  367,
  800.       367,  367,  257,  255,  367,  368,  368,  254,  244,  368,
  801.       368,  369,  369,  241,  369,  369,  369,  369,  369,  369,
  802.       369,  369,  369,  369,  370,  370,  237,  236,  370,  370,
  803.       371,  371,  233,  371,  371,  371,  371,  371,  371,  371,
  804.       371,  371,  371,  372,  372,  232,  372,  372,  372,  372,
  805.       372,  372,  372,  372,  372,  372,  373,  373,  229,  373,
  806.       373,  373,  373,  373,  373,  222,  373,  373,  373,  374,
  807.  
  808.       374,  219,  218,  217,  374,  374,  374,  374,  374,  375,
  809.       375,  206,  375,  375,  375,  375,  375,  375,  375,  375,
  810.       375,  375,  376,  376,  204,  198,  376,  376,  377,  377,
  811.       377,  377,  377,  377,  377,  377,  377,  377,  377,  377,
  812.       377,  378,  378,  197,  378,  378,  193,  378,  378,  378,
  813.       378,  378,  378,  378,  379,  379,  190,  379,  379,  181,
  814.       379,  379,  379,  379,  379,  379,  379,  380,  380,  177,
  815.       175,  380,  380,  380,  380,  174,  380,  380,  380,  380,
  816.       381,  381,  169,  381,  381,  381,  381,  381,  381,  381,
  817.       381,  381,  381,  382,  382,  159,  382,  382,  382,  382,
  818.  
  819.       382,  382,  382,  151,  150,  382,  383,  383,  146,  142,
  820.       383,  383,  384,  141,  137,  384,  384,  384,  384,  384,
  821.       384,  384,  384,  384,  384,  385,  385,  136,  385,  385,
  822.       385,  385,  385,  385,  385,  385,  385,  385,  386,  386,
  823.       134,  386,  386,  386,  386,  386,  386,  386,  386,  386,
  824.       386,  387,  387,  388,  388,  389,  389,  389,  389,  389,
  825.       389,  389,  389,  389,  389,  389,  389,  389,  390,  390,
  826.       390,  390,  390,  390,  390,  390,  390,  390,  390,  390,
  827.       390,  391,  126,  123,  117,  391,  392,  392,  114,  392,
  828.       392,  392,  392,  392,  392,  392,  392,  392,  393,  393,
  829.  
  830.       113,  393,  393,  393,  393,  393,  393,  393,  393,  393,
  831.       393,  394,  111,  102,   93,  394,  395,  395,  395,  395,
  832.       395,  395,  395,  395,  395,  395,  395,  395,  395,  396,
  833.        87,   80,   79,  396,  397,  397,  397,  397,  397,  397,
  834.       397,  397,  397,  397,  397,  397,  397,  398,  398,   78,
  835.        73,  398,  398,  399,  399,   71,   64,  399,  399,  400,
  836.        63,   55,   53,  400,  401,  401,  401,  401,  401,  401,
  837.       401,  401,  401,  401,  401,  401,  401,  402,   49,   45,
  838.        28,  402,  403,  403,   27,  403,  403,  403,  403,  403,
  839.       403,  403,  403,  403,  403,  404,   16,   15,   10,  404,
  840.  
  841.         8,    7,    6,    5,  341,  341,  341,  341,  341,  341,
  842.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  843.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  844.       341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  845.       341,  341,  341,  341,  341,  341,  341
  846.     } ;
  847.  
  848. static yy_state_type yy_last_accepting_state;
  849. static YY_CHAR *yy_last_accepting_cpos;
  850.  
  851. /* the intent behind this definition is that it'll catch
  852.  * any uses of REJECT which flex missed
  853.  */
  854. #define REJECT reject_used_but_not_detected
  855. #define yymore() yymore_used_but_not_detected
  856. #define YY_MORE_ADJ 0
  857.  
  858. /* these variables are all declared out here so that section 3 code can
  859.  * manipulate them
  860.  */
  861. /* points to current character in buffer */
  862. static YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0;
  863. static int yy_init = 1;        /* whether we need to initialize */
  864. static int yy_start = 0;    /* start state number */
  865.  
  866. /* flag which is used to allow yywrap()'s to do buffer switches
  867.  * instead of setting up a fresh yyin.  A bit of a hack ...
  868.  */
  869. static int yy_did_buffer_switch_on_eof;
  870.  
  871. static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  872. static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  873. static int yy_get_next_buffer YY_PROTO(( void ));
  874. static void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
  875. void yyrestart YY_PROTO(( FILE *input_file ));
  876. void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  877. void yy_load_buffer_state YY_PROTO(( void ));
  878. YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  879. void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  880. void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  881.  
  882. #define yy_new_buffer yy_create_buffer
  883.  
  884. #ifdef __cplusplus
  885. static int yyinput YY_PROTO(( void ));
  886. #else
  887. static int input YY_PROTO(( void ));
  888. #endif
  889.  
  890. YY_DECL
  891.     {
  892.     register yy_state_type yy_current_state;
  893.     register YY_CHAR *yy_cp, *yy_bp;
  894.     register int yy_act;
  895.  
  896.  
  897.     static int bracelevel, didadef;
  898.     int i, indented_code, checking_used, new_xlation;
  899.     int doing_codeblock = false;
  900.     Char nmdef[MAXLINE], myesc();
  901.  
  902.  
  903.     if ( yy_init )
  904.     {
  905.     YY_USER_INIT;
  906.  
  907.     if ( ! yy_start )
  908.         yy_start = 1;    /* first start state */
  909.  
  910.     if ( ! yyin )
  911.         yyin = stdin;
  912.  
  913.     if ( ! yyout )
  914.         yyout = stdout;
  915.  
  916.     if ( yy_current_buffer )
  917.         yy_init_buffer( yy_current_buffer, yyin );
  918.     else
  919.         yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  920.  
  921.     yy_load_buffer_state();
  922.  
  923.     yy_init = 0;
  924.     }
  925.  
  926.     while ( 1 )        /* loops until end-of-file is reached */
  927.     {
  928.     yy_cp = yy_c_buf_p;
  929.  
  930.     /* support of yytext */
  931.     *yy_cp = yy_hold_char;
  932.  
  933.     /* yy_bp points to the position in yy_ch_buf of the start of the
  934.      * current run.
  935.      */
  936.     yy_bp = yy_cp;
  937.  
  938.     yy_current_state = yy_start;
  939.     if ( yy_bp[-1] == '\n' )
  940.         ++yy_current_state;
  941. yy_match:
  942.     do
  943.         {
  944.         register YY_CHAR yy_c = yy_ec[*yy_cp];
  945.         if ( yy_accept[yy_current_state] )
  946.         {
  947.         yy_last_accepting_state = yy_current_state;
  948.         yy_last_accepting_cpos = yy_cp;
  949.         }
  950.         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  951.         {
  952.         yy_current_state = yy_def[yy_current_state];
  953.         if ( yy_current_state >= 342 )
  954.             yy_c = yy_meta[yy_c];
  955.         }
  956.         yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  957.         ++yy_cp;
  958.         }
  959.     while ( yy_current_state != 341 );
  960.     yy_cp = yy_last_accepting_cpos;
  961.     yy_current_state = yy_last_accepting_state;
  962.  
  963. yy_find_action:
  964.     yy_act = yy_accept[yy_current_state];
  965.  
  966.     YY_DO_BEFORE_ACTION;
  967.     YY_USER_ACTION;
  968.  
  969. do_action:    /* this label is used only to access EOF actions */
  970.  
  971.  
  972.     switch ( yy_act )
  973.         {
  974.         case 0: /* must backtrack */
  975.         /* undo the effects of YY_DO_BEFORE_ACTION */
  976.         *yy_cp = yy_hold_char;
  977.         yy_cp = yy_last_accepting_cpos;
  978.         yy_current_state = yy_last_accepting_state;
  979.         goto yy_find_action;
  980.  
  981. case 1:
  982. # line 90 "scan.l"
  983. indented_code = true; BEGIN(CODEBLOCK);
  984.     YY_BREAK
  985. case 2:
  986. # line 91 "scan.l"
  987. ++linenum; /* treat as a comment */
  988.     YY_BREAK
  989. case 3:
  990. # line 92 "scan.l"
  991. ECHO; BEGIN(C_COMMENT);
  992.     YY_BREAK
  993. case 4:
  994. # line 93 "scan.l"
  995. return ( SCDECL );
  996.     YY_BREAK
  997. case 5:
  998. # line 94 "scan.l"
  999. return ( XSCDECL );
  1000.     YY_BREAK
  1001. case 6:
  1002. # line 95 "scan.l"
  1003. {
  1004.             ++linenum;
  1005.             line_directive_out( stdout );
  1006.             indented_code = false;
  1007.             BEGIN(CODEBLOCK);
  1008.             }
  1009.     YY_BREAK
  1010. case 7:
  1011. # line 102 "scan.l"
  1012. return ( WHITESPACE );
  1013.     YY_BREAK
  1014. case 8:
  1015. # line 104 "scan.l"
  1016. {
  1017.             sectnum = 2;
  1018.             line_directive_out( stdout );
  1019.             BEGIN(SECT2PROLOG);
  1020.             return ( SECTEND );
  1021.             }
  1022.     YY_BREAK
  1023. case 9:
  1024. # line 111 "scan.l"
  1025. {
  1026.     pinpoint_message( "warning - %%used/%%unused have been deprecated" );
  1027.             checking_used = REALLY_USED; BEGIN(USED_LIST);
  1028.             }
  1029.     YY_BREAK
  1030. case 10:
  1031. # line 115 "scan.l"
  1032. {
  1033.             checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
  1034.     pinpoint_message( "warning - %%used/%%unused have been deprecated" );
  1035.             checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
  1036.             }
  1037.     YY_BREAK
  1038. case 11:
  1039. # line 122 "scan.l"
  1040. {
  1041. #ifdef NOTDEF
  1042.             fprintf( stderr,
  1043.                  "old-style lex command at line %d ignored:\n\t%s",
  1044.                  linenum, yytext );
  1045. #endif
  1046.             ++linenum;
  1047.             }
  1048.     YY_BREAK
  1049. case 12:
  1050. # line 131 "scan.l"
  1051. /* ignore old lex directive */
  1052.     YY_BREAK
  1053. case 13:
  1054. # line 133 "scan.l"
  1055. {
  1056.             ++linenum;
  1057.             xlation =
  1058.                 (int *) malloc( sizeof( int ) * (unsigned) csize );
  1059.  
  1060.             if ( ! xlation )
  1061.                 flexfatal(
  1062.                 "dynamic memory failure building %t table" );
  1063.  
  1064.             for ( i = 0; i < csize; ++i )
  1065.                 xlation[i] = 0;
  1066.  
  1067.             num_xlations = 0;
  1068.  
  1069.             BEGIN(XLATION);
  1070.             }
  1071.     YY_BREAK
  1072. case 14:
  1073. # line 150 "scan.l"
  1074. synerr( "unrecognized '%' directive" );
  1075.     YY_BREAK
  1076. case 15:
  1077. # line 152 "scan.l"
  1078. {
  1079.             (void) strcpy( nmstr, (char *) yytext );
  1080.             didadef = false;
  1081.             BEGIN(PICKUPDEF);
  1082.             }
  1083.     YY_BREAK
  1084. case 16:
  1085. # line 158 "scan.l"
  1086. RETURNNAME;
  1087.     YY_BREAK
  1088. case 17:
  1089. # line 159 "scan.l"
  1090. ++linenum; /* allows blank lines in section 1 */
  1091.     YY_BREAK
  1092. case 18:
  1093. # line 160 "scan.l"
  1094. ++linenum; return ( '\n' );
  1095.     YY_BREAK
  1096. case 19:
  1097. # line 161 "scan.l"
  1098. synerr( "illegal character" ); BEGIN(RECOVER);
  1099.     YY_BREAK
  1100. case 20:
  1101. # line 164 "scan.l"
  1102. ECHO; BEGIN(INITIAL);
  1103.     YY_BREAK
  1104. case 21:
  1105. # line 165 "scan.l"
  1106. ++linenum; ECHO; BEGIN(INITIAL);
  1107.     YY_BREAK
  1108. case 22:
  1109. # line 166 "scan.l"
  1110. ECHO;
  1111.     YY_BREAK
  1112. case 23:
  1113. # line 167 "scan.l"
  1114. ECHO;
  1115.     YY_BREAK
  1116. case 24:
  1117. # line 168 "scan.l"
  1118. ++linenum; ECHO;
  1119.     YY_BREAK
  1120. case 25:
  1121. # line 171 "scan.l"
  1122. ++linenum; BEGIN(INITIAL);
  1123.     YY_BREAK
  1124. case 26:
  1125. # line 172 "scan.l"
  1126. ECHO; CHECK_REJECT(yytext);
  1127.     YY_BREAK
  1128. case 27:
  1129. # line 173 "scan.l"
  1130. ECHO; CHECK_YYMORE(yytext);
  1131.     YY_BREAK
  1132. case 28:
  1133. # line 174 "scan.l"
  1134. ECHO;
  1135.     YY_BREAK
  1136. case 29:
  1137. # line 175 "scan.l"
  1138. {
  1139.             ++linenum;
  1140.             ECHO;
  1141.             if ( indented_code )
  1142.                 BEGIN(INITIAL);
  1143.             }
  1144.     YY_BREAK
  1145. case 30:
  1146. # line 183 "scan.l"
  1147. /* separates name and definition */
  1148.     YY_BREAK
  1149. case 31:
  1150. # line 185 "scan.l"
  1151. {
  1152.             (void) strcpy( (char *) nmdef, (char *) yytext );
  1153.  
  1154.             for ( i = strlen( (char *) nmdef ) - 1;
  1155.                   i >= 0 &&
  1156.                   nmdef[i] == ' ' || nmdef[i] == '\t';
  1157.                   --i )
  1158.                 ;
  1159.  
  1160.             nmdef[i + 1] = '\0';
  1161.  
  1162.                         ndinstal( nmstr, nmdef );
  1163.             didadef = true;
  1164.             }
  1165.     YY_BREAK
  1166. case 32:
  1167. # line 200 "scan.l"
  1168. {
  1169.             if ( ! didadef )
  1170.                 synerr( "incomplete name definition" );
  1171.             BEGIN(INITIAL);
  1172.             ++linenum;
  1173.             }
  1174.     YY_BREAK
  1175. case 33:
  1176. # line 207 "scan.l"
  1177. ++linenum; BEGIN(INITIAL); RETURNNAME;
  1178.     YY_BREAK
  1179. case 34:
  1180. # line 210 "scan.l"
  1181. ++linenum; BEGIN(INITIAL);
  1182.     YY_BREAK
  1183. case 35:
  1184. # line 211 "scan.l"
  1185.  
  1186.     YY_BREAK
  1187. case 36:
  1188. # line 212 "scan.l"
  1189. {
  1190.             if ( all_upper( yytext ) )
  1191.                 reject_really_used = checking_used;
  1192.             else
  1193.                 synerr( "unrecognized %used/%unused construct" );
  1194.             }
  1195.     YY_BREAK
  1196. case 37:
  1197. # line 218 "scan.l"
  1198. {
  1199.             if ( all_lower( yytext ) )
  1200.                 yymore_really_used = checking_used;
  1201.             else
  1202.                 synerr( "unrecognized %used/%unused construct" );
  1203.             }
  1204.     YY_BREAK
  1205. case 38:
  1206. # line 224 "scan.l"
  1207. synerr( "unrecognized %used/%unused construct" );
  1208.     YY_BREAK
  1209. case 39:
  1210. # line 227 "scan.l"
  1211. ++linenum; BEGIN(INITIAL);
  1212.     YY_BREAK
  1213. case 40:
  1214. # line 228 "scan.l"
  1215. ++num_xlations; new_xlation = true;
  1216.     YY_BREAK
  1217. case 41:
  1218. # line 229 "scan.l"
  1219. synerr( "bad row in translation table" );
  1220.     YY_BREAK
  1221. case 42:
  1222. # line 230 "scan.l"
  1223. /* ignore whitespace */
  1224.     YY_BREAK
  1225. case 43:
  1226. # line 232 "scan.l"
  1227. {
  1228.             xlation[myesc( yytext )] =
  1229.                 (new_xlation ? num_xlations : -num_xlations);
  1230.             new_xlation = false;
  1231.             }
  1232.     YY_BREAK
  1233. case 44:
  1234. # line 237 "scan.l"
  1235. {
  1236.             xlation[yytext[0]] =
  1237.                 (new_xlation ? num_xlations : -num_xlations);
  1238.             new_xlation = false;
  1239.             }
  1240.     YY_BREAK
  1241. case 45:
  1242. # line 243 "scan.l"
  1243. ++linenum;
  1244.     YY_BREAK
  1245. case 46:
  1246. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1247. yy_c_buf_p = yy_cp -= 1;
  1248. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1249. # line 246 "scan.l"
  1250. {
  1251.             ++linenum;
  1252.             ACTION_ECHO;
  1253.             MARK_END_OF_PROLOG;
  1254.             BEGIN(SECT2);
  1255.             }
  1256.     YY_BREAK
  1257. case 47:
  1258. # line 253 "scan.l"
  1259. ++linenum; ACTION_ECHO;
  1260.     YY_BREAK
  1261. case YY_STATE_EOF(SECT2PROLOG):
  1262. # line 255 "scan.l"
  1263. MARK_END_OF_PROLOG; yyterminate();
  1264.     YY_BREAK
  1265. case 49:
  1266. # line 257 "scan.l"
  1267. ++linenum; /* allow blank lines in section 2 */
  1268.     YY_BREAK
  1269. case 50:
  1270. # line 259 "scan.l"
  1271. {
  1272.             indented_code = (yytext[0] != '%');
  1273.             doing_codeblock = true;
  1274.             bracelevel = 1;
  1275.  
  1276.             if ( indented_code )
  1277.                 ACTION_ECHO;
  1278.  
  1279.             BEGIN(CODEBLOCK_2);
  1280.             }
  1281.     YY_BREAK
  1282. case 51:
  1283. # line 270 "scan.l"
  1284. BEGIN(SC); return ( '<' );
  1285.     YY_BREAK
  1286. case 52:
  1287. # line 271 "scan.l"
  1288. return ( '^' );
  1289.     YY_BREAK
  1290. case 53:
  1291. # line 272 "scan.l"
  1292. BEGIN(QUOTE); return ( '"' );
  1293.     YY_BREAK
  1294. case 54:
  1295. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1296. yy_c_buf_p = yy_cp = yy_bp + 1;
  1297. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1298. # line 273 "scan.l"
  1299. BEGIN(NUM); return ( '{' );
  1300.     YY_BREAK
  1301. case 55:
  1302. # line 274 "scan.l"
  1303. BEGIN(BRACEERROR);
  1304.     YY_BREAK
  1305. case 56:
  1306. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1307. yy_c_buf_p = yy_cp = yy_bp + 1;
  1308. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1309. # line 275 "scan.l"
  1310. return ( '$' );
  1311.     YY_BREAK
  1312. case 57:
  1313. # line 277 "scan.l"
  1314. {
  1315.             bracelevel = 1;
  1316.             BEGIN(PERCENT_BRACE_ACTION);
  1317.             return ( '\n' );
  1318.             }
  1319.     YY_BREAK
  1320. case 58:
  1321. # line 282 "scan.l"
  1322. continued_action = true; ++linenum; return ( '\n' );
  1323.     YY_BREAK
  1324. case 59:
  1325. # line 284 "scan.l"
  1326. {
  1327.             /* this rule is separate from the one below because
  1328.              * otherwise we get variable trailing context, so
  1329.              * we can't build the scanner using -{f,F}
  1330.              */
  1331.             bracelevel = 0;
  1332.             continued_action = false;
  1333.             BEGIN(ACTION);
  1334.             return ( '\n' );
  1335.             }
  1336.     YY_BREAK
  1337. case 60:
  1338. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1339. yy_c_buf_p = yy_cp -= 1;
  1340. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1341. # line 295 "scan.l"
  1342. {
  1343.             bracelevel = 0;
  1344.             continued_action = false;
  1345.             BEGIN(ACTION);
  1346.             return ( '\n' );
  1347.             }
  1348.     YY_BREAK
  1349. case 61:
  1350. # line 302 "scan.l"
  1351. ++linenum; return ( '\n' );
  1352.     YY_BREAK
  1353. case 62:
  1354. # line 304 "scan.l"
  1355. return ( EOF_OP );
  1356.     YY_BREAK
  1357. case 63:
  1358. # line 306 "scan.l"
  1359. {
  1360.             sectnum = 3;
  1361.             BEGIN(SECT3);
  1362.             return ( EOF ); /* to stop the parser */
  1363.             }
  1364.     YY_BREAK
  1365. case 64:
  1366. # line 312 "scan.l"
  1367. {
  1368.             int cclval;
  1369.  
  1370.             (void) strcpy( nmstr, (char *) yytext );
  1371.  
  1372.             /* check to see if we've already encountered this ccl */
  1373.             if ( (cclval = ccllookup( (Char *) nmstr )) )
  1374.                 {
  1375.                 yylval = cclval;
  1376.                 ++cclreuse;
  1377.                 return ( PREVCCL );
  1378.                 }
  1379.             else
  1380.                 {
  1381.                 /* we fudge a bit.  We know that this ccl will
  1382.                  * soon be numbered as lastccl + 1 by cclinit
  1383.                  */
  1384.                 cclinstal( (Char *) nmstr, lastccl + 1 );
  1385.  
  1386.                 /* push back everything but the leading bracket
  1387.                  * so the ccl can be rescanned
  1388.                  */
  1389.                 PUT_BACK_STRING((Char *) nmstr, 1);
  1390.  
  1391.                 BEGIN(FIRSTCCL);
  1392.                 return ( '[' );
  1393.                 }
  1394.             }
  1395.     YY_BREAK
  1396. case 65:
  1397. # line 341 "scan.l"
  1398. {
  1399.             register Char *nmdefptr;
  1400.             Char *ndlookup();
  1401.  
  1402.             (void) strcpy( nmstr, (char *) yytext );
  1403.             nmstr[yyleng - 1] = '\0';  /* chop trailing brace */
  1404.  
  1405.             /* lookup from "nmstr + 1" to chop leading brace */
  1406.             if ( ! (nmdefptr = ndlookup( nmstr + 1 )) )
  1407.                 synerr( "undefined {name}" );
  1408.  
  1409.             else
  1410.                 { /* push back name surrounded by ()'s */
  1411.                 unput(')');
  1412.                 PUT_BACK_STRING(nmdefptr, 0);
  1413.                 unput('(');
  1414.                 }
  1415.             }
  1416.     YY_BREAK
  1417. case 66:
  1418. # line 360 "scan.l"
  1419. return ( yytext[0] );
  1420.     YY_BREAK
  1421. case 67:
  1422. # line 361 "scan.l"
  1423. RETURNCHAR;
  1424.     YY_BREAK
  1425. case 68:
  1426. # line 362 "scan.l"
  1427. ++linenum; return ( '\n' );
  1428.     YY_BREAK
  1429. case 69:
  1430. # line 365 "scan.l"
  1431. return ( ',' );
  1432.     YY_BREAK
  1433. case 70:
  1434. # line 366 "scan.l"
  1435. BEGIN(SECT2); return ( '>' );
  1436.     YY_BREAK
  1437. case 71:
  1438. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1439. yy_c_buf_p = yy_cp = yy_bp + 1;
  1440. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1441. # line 367 "scan.l"
  1442. BEGIN(CARETISBOL); return ( '>' );
  1443.     YY_BREAK
  1444. case 72:
  1445. # line 368 "scan.l"
  1446. RETURNNAME;
  1447.     YY_BREAK
  1448. case 73:
  1449. # line 369 "scan.l"
  1450. synerr( "bad start condition name" );
  1451.     YY_BREAK
  1452. case 74:
  1453. # line 371 "scan.l"
  1454. BEGIN(SECT2); return ( '^' );
  1455.     YY_BREAK
  1456. case 75:
  1457. # line 374 "scan.l"
  1458. RETURNCHAR;
  1459.     YY_BREAK
  1460. case 76:
  1461. # line 375 "scan.l"
  1462. BEGIN(SECT2); return ( '"' );
  1463.     YY_BREAK
  1464. case 77:
  1465. # line 377 "scan.l"
  1466. {
  1467.             synerr( "missing quote" );
  1468.             BEGIN(SECT2);
  1469.             ++linenum;
  1470.             return ( '"' );
  1471.             }
  1472.     YY_BREAK
  1473. case 78:
  1474. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1475. yy_c_buf_p = yy_cp = yy_bp + 1;
  1476. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1477. # line 385 "scan.l"
  1478. BEGIN(CCL); return ( '^' );
  1479.     YY_BREAK
  1480. case 79:
  1481. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1482. yy_c_buf_p = yy_cp = yy_bp + 1;
  1483. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1484. # line 386 "scan.l"
  1485. return ( '^' );
  1486.     YY_BREAK
  1487. case 80:
  1488. # line 387 "scan.l"
  1489. BEGIN(CCL); yylval = '-'; return ( CHAR );
  1490.     YY_BREAK
  1491. case 81:
  1492. # line 388 "scan.l"
  1493. BEGIN(CCL); RETURNCHAR;
  1494.     YY_BREAK
  1495. case 82:
  1496. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1497. yy_c_buf_p = yy_cp = yy_bp + 1;
  1498. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1499. # line 390 "scan.l"
  1500. return ( '-' );
  1501.     YY_BREAK
  1502. case 83:
  1503. # line 391 "scan.l"
  1504. RETURNCHAR;
  1505.     YY_BREAK
  1506. case 84:
  1507. # line 392 "scan.l"
  1508. BEGIN(SECT2); return ( ']' );
  1509.     YY_BREAK
  1510. case 85:
  1511. # line 395 "scan.l"
  1512. {
  1513.             yylval = myctoi( yytext );
  1514.             return ( NUMBER );
  1515.             }
  1516.     YY_BREAK
  1517. case 86:
  1518. # line 400 "scan.l"
  1519. return ( ',' );
  1520.     YY_BREAK
  1521. case 87:
  1522. # line 401 "scan.l"
  1523. BEGIN(SECT2); return ( '}' );
  1524.     YY_BREAK
  1525. case 88:
  1526. # line 403 "scan.l"
  1527. {
  1528.             synerr( "bad character inside {}'s" );
  1529.             BEGIN(SECT2);
  1530.             return ( '}' );
  1531.             }
  1532.     YY_BREAK
  1533. case 89:
  1534. # line 409 "scan.l"
  1535. {
  1536.             synerr( "missing }" );
  1537.             BEGIN(SECT2);
  1538.             ++linenum;
  1539.             return ( '}' );
  1540.             }
  1541.     YY_BREAK
  1542. case 90:
  1543. # line 417 "scan.l"
  1544. synerr( "bad name in {}'s" ); BEGIN(SECT2);
  1545.     YY_BREAK
  1546. case 91:
  1547. # line 418 "scan.l"
  1548. synerr( "missing }" ); ++linenum; BEGIN(SECT2);
  1549.     YY_BREAK
  1550. case 92:
  1551. # line 421 "scan.l"
  1552. bracelevel = 0;
  1553.     YY_BREAK
  1554. case 93:
  1555. # line 422 "scan.l"
  1556. {
  1557.             ACTION_ECHO;
  1558.             CHECK_REJECT(yytext);
  1559.             }
  1560.     YY_BREAK
  1561. case 94:
  1562. # line 426 "scan.l"
  1563. {
  1564.             ACTION_ECHO;
  1565.             CHECK_YYMORE(yytext);
  1566.             }
  1567.     YY_BREAK
  1568. case 95:
  1569. # line 430 "scan.l"
  1570. ACTION_ECHO;
  1571.     YY_BREAK
  1572. case 96:
  1573. # line 431 "scan.l"
  1574. {
  1575.             ++linenum;
  1576.             ACTION_ECHO;
  1577.             if ( bracelevel == 0 ||
  1578.                  (doing_codeblock && indented_code) )
  1579.                 {
  1580.                 if ( ! doing_codeblock )
  1581.                 fputs( "\tYY_BREAK\n", temp_action_file );
  1582.                 
  1583.                 doing_codeblock = false;
  1584.                 BEGIN(SECT2);
  1585.                 }
  1586.             }
  1587.     YY_BREAK
  1588.     /* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
  1589. case 97:
  1590. # line 447 "scan.l"
  1591. ACTION_ECHO; ++bracelevel;
  1592.     YY_BREAK
  1593. case 98:
  1594. # line 448 "scan.l"
  1595. ACTION_ECHO; --bracelevel;
  1596.     YY_BREAK
  1597. case 99:
  1598. # line 449 "scan.l"
  1599. ACTION_ECHO;
  1600.     YY_BREAK
  1601. case 100:
  1602. # line 450 "scan.l"
  1603. ACTION_ECHO;
  1604.     YY_BREAK
  1605. case 101:
  1606. # line 451 "scan.l"
  1607. ACTION_ECHO; BEGIN(ACTION_COMMENT);
  1608.     YY_BREAK
  1609. case 102:
  1610. # line 452 "scan.l"
  1611. ACTION_ECHO; /* character constant */
  1612.     YY_BREAK
  1613. case 103:
  1614. # line 453 "scan.l"
  1615. ACTION_ECHO; BEGIN(ACTION_STRING);
  1616.     YY_BREAK
  1617. case 104:
  1618. # line 454 "scan.l"
  1619. {
  1620.             ++linenum;
  1621.             ACTION_ECHO;
  1622.             if ( bracelevel == 0 )
  1623.                 {
  1624.                 fputs( "\tYY_BREAK\n", temp_action_file );
  1625.                 BEGIN(SECT2);
  1626.                 }
  1627.             }
  1628.     YY_BREAK
  1629. case 105:
  1630. # line 463 "scan.l"
  1631. ACTION_ECHO;
  1632.     YY_BREAK
  1633. case 106:
  1634. # line 465 "scan.l"
  1635. ACTION_ECHO; BEGIN(ACTION);
  1636.     YY_BREAK
  1637. case 107:
  1638. # line 466 "scan.l"
  1639. ACTION_ECHO;
  1640.     YY_BREAK
  1641. case 108:
  1642. # line 467 "scan.l"
  1643. ACTION_ECHO;
  1644.     YY_BREAK
  1645. case 109:
  1646. # line 468 "scan.l"
  1647. ++linenum; ACTION_ECHO;
  1648.     YY_BREAK
  1649. case 110:
  1650. # line 469 "scan.l"
  1651. ACTION_ECHO;
  1652.     YY_BREAK
  1653. case 111:
  1654. # line 471 "scan.l"
  1655. ACTION_ECHO;
  1656.     YY_BREAK
  1657. case 112:
  1658. # line 472 "scan.l"
  1659. ACTION_ECHO;
  1660.     YY_BREAK
  1661. case 113:
  1662. # line 473 "scan.l"
  1663. ++linenum; ACTION_ECHO;
  1664.     YY_BREAK
  1665. case 114:
  1666. # line 474 "scan.l"
  1667. ACTION_ECHO; BEGIN(ACTION);
  1668.     YY_BREAK
  1669. case 115:
  1670. # line 475 "scan.l"
  1671. ACTION_ECHO;
  1672.     YY_BREAK
  1673. case YY_STATE_EOF(ACTION):
  1674. case YY_STATE_EOF(ACTION_COMMENT):
  1675. case YY_STATE_EOF(ACTION_STRING):
  1676. # line 477 "scan.l"
  1677. {
  1678.             synerr( "EOF encountered inside an action" );
  1679.             yyterminate();
  1680.             }
  1681.     YY_BREAK
  1682. case 117:
  1683. # line 483 "scan.l"
  1684. {
  1685.             yylval = myesc( yytext );
  1686.             return ( CHAR );
  1687.             }
  1688.     YY_BREAK
  1689. case 118:
  1690. # line 488 "scan.l"
  1691. {
  1692.             yylval = myesc( yytext );
  1693.             BEGIN(CCL);
  1694.             return ( CHAR );
  1695.             }
  1696.     YY_BREAK
  1697. case 119:
  1698. # line 495 "scan.l"
  1699. ECHO;
  1700.     YY_BREAK
  1701. case 120:
  1702. # line 496 "scan.l"
  1703. YY_FATAL_ERROR( "flex scanner jammed" );
  1704.     YY_BREAK
  1705. case YY_STATE_EOF(INITIAL):
  1706. case YY_STATE_EOF(SECT2):
  1707. case YY_STATE_EOF(SECT3):
  1708. case YY_STATE_EOF(CODEBLOCK):
  1709. case YY_STATE_EOF(PICKUPDEF):
  1710. case YY_STATE_EOF(SC):
  1711. case YY_STATE_EOF(CARETISBOL):
  1712. case YY_STATE_EOF(NUM):
  1713. case YY_STATE_EOF(QUOTE):
  1714. case YY_STATE_EOF(FIRSTCCL):
  1715. case YY_STATE_EOF(CCL):
  1716. case YY_STATE_EOF(RECOVER):
  1717. case YY_STATE_EOF(BRACEERROR):
  1718. case YY_STATE_EOF(C_COMMENT):
  1719. case YY_STATE_EOF(PERCENT_BRACE_ACTION):
  1720. case YY_STATE_EOF(USED_LIST):
  1721. case YY_STATE_EOF(CODEBLOCK_2):
  1722. case YY_STATE_EOF(XLATION):
  1723.     yyterminate();
  1724.  
  1725.         case YY_END_OF_BUFFER:
  1726.         {
  1727.         /* amount of text matched not including the EOB char */
  1728.         int yy_amount_of_matched_text = yy_cp - yytext - 1;
  1729.  
  1730.         /* undo the effects of YY_DO_BEFORE_ACTION */
  1731.         *yy_cp = yy_hold_char;
  1732.  
  1733.         /* note that here we test for yy_c_buf_p "<=" to the position
  1734.          * of the first EOB in the buffer, since yy_c_buf_p will
  1735.          * already have been incremented past the NUL character
  1736.          * (since all states make transitions on EOB to the end-
  1737.          * of-buffer state).  Contrast this with the test in yyinput().
  1738.          */
  1739.         if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1740.             /* this was really a NUL */
  1741.             {
  1742.             yy_state_type yy_next_state;
  1743.  
  1744.             yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1745.  
  1746.             yy_current_state = yy_get_previous_state();
  1747.  
  1748.             /* okay, we're now positioned to make the
  1749.              * NUL transition.  We couldn't have
  1750.              * yy_get_previous_state() go ahead and do it
  1751.              * for us because it doesn't know how to deal
  1752.              * with the possibility of jamming (and we
  1753.              * don't want to build jamming into it because
  1754.              * then it will run more slowly)
  1755.              */
  1756.  
  1757.             yy_next_state = yy_try_NUL_trans( yy_current_state );
  1758.  
  1759.             yy_bp = yytext + YY_MORE_ADJ;
  1760.  
  1761.             if ( yy_next_state )
  1762.             {
  1763.             /* consume the NUL */
  1764.             yy_cp = ++yy_c_buf_p;
  1765.             yy_current_state = yy_next_state;
  1766.             goto yy_match;
  1767.             }
  1768.  
  1769.             else
  1770.             {
  1771.                 yy_cp = yy_last_accepting_cpos;
  1772.                 yy_current_state = yy_last_accepting_state;
  1773.             goto yy_find_action;
  1774.             }
  1775.             }
  1776.  
  1777.         else switch ( yy_get_next_buffer() )
  1778.             {
  1779.             case EOB_ACT_END_OF_FILE:
  1780.             {
  1781.             yy_did_buffer_switch_on_eof = 0;
  1782.  
  1783.             if ( yywrap() )
  1784.                 {
  1785.                 /* note: because we've taken care in
  1786.                  * yy_get_next_buffer() to have set up yytext,
  1787.                  * we can now set up yy_c_buf_p so that if some
  1788.                  * total hoser (like flex itself) wants
  1789.                  * to call the scanner after we return the
  1790.                  * YY_NULL, it'll still work - another YY_NULL
  1791.                  * will get returned.
  1792.                  */
  1793.                 yy_c_buf_p = yytext + YY_MORE_ADJ;
  1794.  
  1795.                 yy_act = YY_STATE_EOF((yy_start - 1) / 2);
  1796.                 goto do_action;
  1797.                 }
  1798.  
  1799.             else
  1800.                 {
  1801.                 if ( ! yy_did_buffer_switch_on_eof )
  1802.                 YY_NEW_FILE;
  1803.                 }
  1804.             }
  1805.             break;
  1806.  
  1807.             case EOB_ACT_CONTINUE_SCAN:
  1808.             yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1809.  
  1810.             yy_current_state = yy_get_previous_state();
  1811.  
  1812.             yy_cp = yy_c_buf_p;
  1813.             yy_bp = yytext + YY_MORE_ADJ;
  1814.             goto yy_match;
  1815.  
  1816.             case EOB_ACT_LAST_MATCH:
  1817.             yy_c_buf_p =
  1818.                 &yy_current_buffer->yy_ch_buf[yy_n_chars];
  1819.  
  1820.             yy_current_state = yy_get_previous_state();
  1821.  
  1822.             yy_cp = yy_c_buf_p;
  1823.             yy_bp = yytext + YY_MORE_ADJ;
  1824.             goto yy_find_action;
  1825.             }
  1826.         break;
  1827.         }
  1828.  
  1829.         default:
  1830. #ifdef FLEX_DEBUG
  1831.         printf( "action # %d\n", yy_act );
  1832. #endif
  1833.         YY_FATAL_ERROR(
  1834.             "fatal flex scanner internal error--no action found" );
  1835.         }
  1836.     }
  1837.     }
  1838.  
  1839.  
  1840. /* yy_get_next_buffer - try to read in a new buffer
  1841.  *
  1842.  * synopsis
  1843.  *     int yy_get_next_buffer();
  1844.  *     
  1845.  * returns a code representing an action
  1846.  *     EOB_ACT_LAST_MATCH - 
  1847.  *     EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1848.  *     EOB_ACT_END_OF_FILE - end of file
  1849.  */
  1850.  
  1851. static int yy_get_next_buffer()
  1852.  
  1853.     {
  1854.     register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
  1855.     register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
  1856.     register int number_to_move, i;
  1857.     int ret_val;
  1858.  
  1859.     if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  1860.     YY_FATAL_ERROR(
  1861.         "fatal flex scanner internal error--end of buffer missed" );
  1862.  
  1863.     /* try to read more data */
  1864.  
  1865.     /* first move last chars to start of buffer */
  1866.     number_to_move = yy_c_buf_p - yytext;
  1867.  
  1868.     for ( i = 0; i < number_to_move; ++i )
  1869.     *(dest++) = *(source++);
  1870.  
  1871.     if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
  1872.     /* don't do the read, it's not guaranteed to return an EOF,
  1873.      * just force an EOF
  1874.      */
  1875.     yy_n_chars = 0;
  1876.  
  1877.     else
  1878.     {
  1879.     int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1;
  1880.  
  1881.     if ( num_to_read > YY_READ_BUF_SIZE )
  1882.         num_to_read = YY_READ_BUF_SIZE;
  1883.  
  1884.     else if ( num_to_read <= 0 )
  1885.         YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
  1886.  
  1887.     /* read in more data */
  1888.     YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  1889.           yy_n_chars, num_to_read );
  1890.     }
  1891.  
  1892.     if ( yy_n_chars == 0 )
  1893.     {
  1894.     if ( number_to_move - YY_MORE_ADJ == 1 )
  1895.         {
  1896.         ret_val = EOB_ACT_END_OF_FILE;
  1897.         yy_current_buffer->yy_eof_status = EOF_DONE;
  1898.         }
  1899.  
  1900.     else
  1901.         {
  1902.         ret_val = EOB_ACT_LAST_MATCH;
  1903.         yy_current_buffer->yy_eof_status = EOF_PENDING;
  1904.         }
  1905.     }
  1906.  
  1907.     else
  1908.     ret_val = EOB_ACT_CONTINUE_SCAN;
  1909.  
  1910.     yy_n_chars += number_to_move;
  1911.     yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1912.     yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1913.  
  1914.     /* yytext begins at the second character in yy_ch_buf; the first
  1915.      * character is the one which preceded it before reading in the latest
  1916.      * buffer; it needs to be kept around in case it's a newline, so
  1917.      * yy_get_previous_state() will have with '^' rules active
  1918.      */
  1919.  
  1920.     yytext = &yy_current_buffer->yy_ch_buf[1];
  1921.  
  1922.     return ( ret_val );
  1923.     }
  1924.  
  1925.  
  1926. /* yy_get_previous_state - get the state just before the EOB char was reached
  1927.  *
  1928.  * synopsis
  1929.  *     yy_state_type yy_get_previous_state();
  1930.  */
  1931.  
  1932. static yy_state_type yy_get_previous_state()
  1933.  
  1934.     {
  1935.     register yy_state_type yy_current_state;
  1936.     register YY_CHAR *yy_cp;
  1937.  
  1938.     register YY_CHAR *yy_bp = yytext;
  1939.  
  1940.     yy_current_state = yy_start;
  1941.     if ( yy_bp[-1] == '\n' )
  1942.     ++yy_current_state;
  1943.  
  1944.     for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  1945.     {
  1946.     register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
  1947.     if ( yy_accept[yy_current_state] )
  1948.         {
  1949.         yy_last_accepting_state = yy_current_state;
  1950.         yy_last_accepting_cpos = yy_cp;
  1951.         }
  1952.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1953.         {
  1954.         yy_current_state = yy_def[yy_current_state];
  1955.         if ( yy_current_state >= 342 )
  1956.         yy_c = yy_meta[yy_c];
  1957.         }
  1958.     yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1959.     }
  1960.  
  1961.     return ( yy_current_state );
  1962.     }
  1963.  
  1964.  
  1965. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1966.  *
  1967.  * synopsis
  1968.  *     next_state = yy_try_NUL_trans( current_state );
  1969.  */
  1970.  
  1971. #ifdef YY_USE_PROTOS
  1972. static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
  1973. #else
  1974. static yy_state_type yy_try_NUL_trans( yy_current_state )
  1975. register yy_state_type yy_current_state;
  1976. #endif
  1977.  
  1978.     {
  1979.     register int yy_is_jam;
  1980.     register YY_CHAR *yy_cp = yy_c_buf_p;
  1981.  
  1982.     register YY_CHAR yy_c = 1;
  1983.     if ( yy_accept[yy_current_state] )
  1984.     {
  1985.     yy_last_accepting_state = yy_current_state;
  1986.     yy_last_accepting_cpos = yy_cp;
  1987.     }
  1988.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1989.     {
  1990.     yy_current_state = yy_def[yy_current_state];
  1991.     if ( yy_current_state >= 342 )
  1992.         yy_c = yy_meta[yy_c];
  1993.     }
  1994.     yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1995.     yy_is_jam = (yy_current_state == 341);
  1996.  
  1997.     return ( yy_is_jam ? 0 : yy_current_state );
  1998.     }
  1999.  
  2000.  
  2001. #ifdef YY_USE_PROTOS
  2002. static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
  2003. #else
  2004. static void yyunput( c, yy_bp )
  2005. YY_CHAR c;
  2006. register YY_CHAR *yy_bp;
  2007. #endif
  2008.  
  2009.     {
  2010.     register YY_CHAR *yy_cp = yy_c_buf_p;
  2011.  
  2012.     /* undo effects of setting up yytext */
  2013.     *yy_cp = yy_hold_char;
  2014.  
  2015.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  2016.     { /* need to shift things up to make room */
  2017.     register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
  2018.     register YY_CHAR *dest =
  2019.         &yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
  2020.     register YY_CHAR *source =
  2021.         &yy_current_buffer->yy_ch_buf[number_to_move];
  2022.  
  2023.     while ( source > yy_current_buffer->yy_ch_buf )
  2024.         *--dest = *--source;
  2025.  
  2026.     yy_cp += dest - source;
  2027.     yy_bp += dest - source;
  2028.     yy_n_chars = yy_current_buffer->yy_buf_size;
  2029.  
  2030.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  2031.         YY_FATAL_ERROR( "flex scanner push-back overflow" );
  2032.     }
  2033.  
  2034.     if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
  2035.     yy_cp[-2] = '\n';
  2036.  
  2037.     *--yy_cp = c;
  2038.  
  2039.     /* note: the formal parameter *must* be called "yy_bp" for this
  2040.      *       macro to now work correctly
  2041.      */
  2042.     YY_DO_BEFORE_ACTION; /* set up yytext again */
  2043.     }
  2044.  
  2045.  
  2046. #ifdef __cplusplus
  2047. static int yyinput()
  2048. #else
  2049. static int input()
  2050. #endif
  2051.  
  2052.     {
  2053.     int c;
  2054.     YY_CHAR *yy_cp = yy_c_buf_p;
  2055.  
  2056.     *yy_cp = yy_hold_char;
  2057.  
  2058.     if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  2059.     {
  2060.     /* yy_c_buf_p now points to the character we want to return.
  2061.      * If this occurs *before* the EOB characters, then it's a
  2062.      * valid NUL; if not, then we've hit the end of the buffer.
  2063.      */
  2064.     if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  2065.         /* this was really a NUL */
  2066.         *yy_c_buf_p = '\0';
  2067.  
  2068.     else
  2069.         { /* need more input */
  2070.         yytext = yy_c_buf_p;
  2071.         ++yy_c_buf_p;
  2072.  
  2073.         switch ( yy_get_next_buffer() )
  2074.         {
  2075.         case EOB_ACT_END_OF_FILE:
  2076.             {
  2077.             if ( yywrap() )
  2078.             {
  2079.             yy_c_buf_p = yytext + YY_MORE_ADJ;
  2080.             return ( EOF );
  2081.             }
  2082.  
  2083.             YY_NEW_FILE;
  2084.  
  2085. #ifdef __cplusplus
  2086.             return ( yyinput() );
  2087. #else
  2088.             return ( input() );
  2089. #endif
  2090.             }
  2091.             break;
  2092.  
  2093.         case EOB_ACT_CONTINUE_SCAN:
  2094.             yy_c_buf_p = yytext + YY_MORE_ADJ;
  2095.             break;
  2096.  
  2097.         case EOB_ACT_LAST_MATCH:
  2098. #ifdef __cplusplus
  2099.             YY_FATAL_ERROR( "unexpected last match in yyinput()" );
  2100. #else
  2101.             YY_FATAL_ERROR( "unexpected last match in input()" );
  2102. #endif
  2103.         }
  2104.         }
  2105.     }
  2106.  
  2107.     c = *yy_c_buf_p;
  2108.     yy_hold_char = *++yy_c_buf_p;
  2109.  
  2110.     return ( c );
  2111.     }
  2112.  
  2113.  
  2114. #ifdef YY_USE_PROTOS
  2115. void yyrestart( FILE *input_file )
  2116. #else
  2117. void yyrestart( input_file )
  2118. FILE *input_file;
  2119. #endif
  2120.  
  2121.     {
  2122.     yy_init_buffer( yy_current_buffer, input_file );
  2123.     yy_load_buffer_state();
  2124.     }
  2125.  
  2126.  
  2127. #ifdef YY_USE_PROTOS
  2128. void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  2129. #else
  2130. void yy_switch_to_buffer( new_buffer )
  2131. YY_BUFFER_STATE new_buffer;
  2132. #endif
  2133.  
  2134.     {
  2135.     if ( yy_current_buffer == new_buffer )
  2136.     return;
  2137.  
  2138.     if ( yy_current_buffer )
  2139.     {
  2140.     /* flush out information for old buffer */
  2141.     *yy_c_buf_p = yy_hold_char;
  2142.     yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  2143.     yy_current_buffer->yy_n_chars = yy_n_chars;
  2144.     }
  2145.  
  2146.     yy_current_buffer = new_buffer;
  2147.     yy_load_buffer_state();
  2148.  
  2149.     /* we don't actually know whether we did this switch during
  2150.      * EOF (yywrap()) processing, but the only time this flag
  2151.      * is looked at is after yywrap() is called, so it's safe
  2152.      * to go ahead and always set it.
  2153.      */
  2154.     yy_did_buffer_switch_on_eof = 1;
  2155.     }
  2156.  
  2157.  
  2158. #ifdef YY_USE_PROTOS
  2159. void yy_load_buffer_state( void )
  2160. #else
  2161. void yy_load_buffer_state()
  2162. #endif
  2163.  
  2164.     {
  2165.     yy_n_chars = yy_current_buffer->yy_n_chars;
  2166.     yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  2167.     yyin = yy_current_buffer->yy_input_file;
  2168.     yy_hold_char = *yy_c_buf_p;
  2169.     }
  2170.  
  2171.  
  2172. #ifdef YY_USE_PROTOS
  2173. YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  2174. #else
  2175. YY_BUFFER_STATE yy_create_buffer( file, size )
  2176. FILE *file;
  2177. int size;
  2178. #endif
  2179.  
  2180.     {
  2181.     YY_BUFFER_STATE b;
  2182.  
  2183.     b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
  2184.  
  2185.     if ( ! b )
  2186.     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2187.  
  2188.     b->yy_buf_size = size;
  2189.  
  2190.     /* yy_ch_buf has to be 2 characters longer than the size given because
  2191.      * we need to put in 2 end-of-buffer characters.
  2192.      */
  2193.     b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
  2194.  
  2195.     if ( ! b->yy_ch_buf )
  2196.     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2197.  
  2198.     yy_init_buffer( b, file );
  2199.  
  2200.     return ( b );
  2201.     }
  2202.  
  2203.  
  2204. #ifdef YY_USE_PROTOS
  2205. void yy_delete_buffer( YY_BUFFER_STATE b )
  2206. #else
  2207. void yy_delete_buffer( b )
  2208. YY_BUFFER_STATE b;
  2209. #endif
  2210.  
  2211.     {
  2212.     if ( b == yy_current_buffer )
  2213.     yy_current_buffer = (YY_BUFFER_STATE) 0;
  2214.  
  2215.     free( (char *) b->yy_ch_buf );
  2216.     free( (char *) b );
  2217.     }
  2218.  
  2219.  
  2220. #ifdef YY_USE_PROTOS
  2221. void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  2222. #else
  2223. void yy_init_buffer( b, file )
  2224. YY_BUFFER_STATE b;
  2225. FILE *file;
  2226. #endif
  2227.  
  2228.     {
  2229.     b->yy_input_file = file;
  2230.  
  2231.     /* we put in the '\n' and start reading from [1] so that an
  2232.      * initial match-at-newline will be true.
  2233.      */
  2234.  
  2235.     b->yy_ch_buf[0] = '\n';
  2236.     b->yy_n_chars = 1;
  2237.  
  2238.     /* we always need two end-of-buffer characters.  The first causes
  2239.      * a transition to the end-of-buffer state.  The second causes
  2240.      * a jam in that state.
  2241.      */
  2242.     b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  2243.     b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
  2244.  
  2245.     b->yy_buf_pos = &b->yy_ch_buf[1];
  2246.  
  2247.     b->yy_eof_status = EOF_NOT_SEEN;
  2248.     }
  2249. # line 496 "scan.l"
  2250.  
  2251.  
  2252.  
  2253. int yywrap()
  2254.  
  2255.     {
  2256.     if ( --num_input_files > 0 )
  2257.     {
  2258.     set_input_file( *++input_files );
  2259.     return ( 0 );
  2260.     }
  2261.  
  2262.     else
  2263.     return ( 1 );
  2264.     }
  2265.  
  2266.  
  2267. /* set_input_file - open the given file (if NULL, stdin) for scanning */
  2268.  
  2269. void set_input_file( file )
  2270. char *file;
  2271.  
  2272.     {
  2273.     if ( file )
  2274.     {
  2275.     infilename = file;
  2276.     yyin = fopen( infilename, "r" );
  2277.  
  2278.     if ( yyin == NULL )
  2279.         lerrsf( "can't open %s", file );
  2280.     }
  2281.  
  2282.     else
  2283.     {
  2284.     yyin = stdin;
  2285.     infilename = "<stdin>";
  2286.     }
  2287.     }
  2288.