home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / GNU / FLE236AS.ZIP / INITSCAN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-22  |  68.6 KB  |  2,301 lines

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