home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / graphtal / lex.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-03  |  56.9 KB  |  1,943 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. #ifndef __DECCXX
  24. #include <osfcn.h>
  25. #else
  26. #include <unistd.h>
  27. #endif
  28.  
  29. /* use prototypes in function declarations */
  30. #define YY_USE_PROTOS
  31.  
  32. /* the "const" storage-class-modifier is valid */
  33. #define YY_USE_CONST
  34.  
  35. #else    /* ! __cplusplus */
  36.  
  37. #ifdef __STDC__
  38.  
  39. #include <stdlib.h>
  40.  
  41. #define YY_USE_PROTOS
  42. #define YY_USE_CONST
  43.  
  44. #endif    /* __STDC__ */
  45. #endif    /* ! __cplusplus */
  46.  
  47.  
  48. #ifdef __TURBOC__
  49. #define YY_USE_CONST
  50. #endif
  51.  
  52.  
  53. #ifndef YY_USE_CONST
  54. #define const
  55. #endif
  56.  
  57.  
  58. #ifdef YY_USE_PROTOS
  59. #define YY_PROTO(proto) proto
  60. #else
  61. #define YY_PROTO(proto) ()
  62. /* we can't get here if it's an ANSI C compiler, or a C++ compiler,
  63.  * so it's got to be a K&R compiler, and therefore there's no standard
  64.  * place from which to include these definitions
  65.  */
  66. char *malloc();
  67. int free();
  68. int read();
  69. #endif
  70.  
  71.  
  72. /* amount of stuff to slurp up with each read */
  73. #ifndef YY_READ_BUF_SIZE
  74. #define YY_READ_BUF_SIZE 8192
  75. #endif
  76.  
  77. /* returned upon end-of-file */
  78. #define YY_END_TOK 0
  79.  
  80. /* copy whatever the last rule matched to the standard output */
  81.  
  82. /* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
  83. /* this used to be an fputs(), but since the string might contain NUL's,
  84.  * we now use fwrite()
  85.  */
  86. #define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
  87.  
  88. /* gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  89.  * is returned in "result".
  90.  */
  91. #define YY_INPUT(buf,result,max_size) \
  92.     if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  93.         YY_FATAL_ERROR( "read() in flex scanner failed" );
  94. #define YY_NULL 0
  95.  
  96. /* no semi-colon after return; correct usage is to write "yyterminate();" -
  97.  * we don't want an extra ';' after the "return" because that will cause
  98.  * some compilers to complain about unreachable statements.
  99.  */
  100. #define yyterminate() return ( YY_NULL )
  101.  
  102. /* report a fatal error */
  103.  
  104. /* The funky do-while is used to turn this macro definition into
  105.  * a single C statement (which needs a semi-colon terminator).
  106.  * This avoids problems with code like:
  107.  *
  108.  *     if ( something_happens )
  109.  *        YY_FATAL_ERROR( "oops, the something happened" );
  110.  *    else
  111.  *        everything_okay();
  112.  *
  113.  * Prior to using the do-while the compiler would get upset at the
  114.  * "else" because it interpreted the "if" statement as being all
  115.  * done when it reached the ';' after the YY_FATAL_ERROR() call.
  116.  */
  117.  
  118. #define YY_FATAL_ERROR(msg) \
  119.     do \
  120.         { \
  121.         (void) fputs( msg, stderr ); \
  122.         (void) putc( '\n', stderr ); \
  123.         exit( 1 ); \
  124.         } \
  125.     while ( 0 )
  126.  
  127. /* default yywrap function - always treat EOF as an EOF */
  128. #define yywrap() 1
  129.  
  130. /* enter a start condition.  This macro really ought to take a parameter,
  131.  * but we do it the disgusting crufty way forced on us by the ()-less
  132.  * definition of BEGIN
  133.  */
  134. #define BEGIN yy_start = 1 + 2 *
  135.  
  136. /* action number for EOF rule of a given start state */
  137. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  138.  
  139. /* special action meaning "start processing a new file" */
  140. #define YY_NEW_FILE \
  141.     do \
  142.         { \
  143.         yy_init_buffer( yy_current_buffer, yyin ); \
  144.         yy_load_buffer_state(); \
  145.         } \
  146.     while ( 0 )
  147.  
  148. /* default declaration of generated scanner - a define so the user can
  149.  * easily add parameters
  150.  */
  151. #define YY_DECL int yylex YY_PROTO(( void )) 
  152.  
  153. /* code executed at the end of each rule */
  154. #define YY_BREAK break;
  155.  
  156. #define YY_END_OF_BUFFER_CHAR 0
  157.  
  158. #ifndef YY_BUF_SIZE
  159. #define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
  160. #endif
  161.  
  162. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  163.  
  164. #define YY_CHAR char
  165. # line 1 "lex.l"
  166. #define INITIAL 0
  167. # line 2 "lex.l"
  168. /*
  169.  * lex.l - lexical analyser for graphtal.
  170.  *
  171.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  172.  * All rights reserved.
  173.  *
  174.  * This software may be freely copied, modified, and redistributed
  175.  * provided that this copyright notice is preserved on all copies.
  176.  *
  177.  * You may not distribute this software, in whole or in part, as part of
  178.  * any commercial product without the express consent of the authors.
  179.  *
  180.  * There is no warranty or other guarantee of fitness of this software
  181.  * for any purpose.  It is provided solely "as is".
  182.  *
  183.  */
  184.  
  185. #include <math.h>
  186.  
  187. #include "rcString.h"
  188. #include "LSystem.h"
  189. #include "Value.h"
  190. #include "Hull.h"
  191. #include "yacc.tab.h"
  192. #include "yyerror.h"
  193.  
  194. int lineno = 1;
  195. #define C_COMMENT 1
  196. #define CPP_COMMENT 2
  197. #define EXTFILE 3
  198. # line 41 "lex.l"
  199.  
  200. /* done after the current pattern has been matched and before the
  201.  * corresponding action - sets up yytext
  202.  */
  203. #define YY_DO_BEFORE_ACTION \
  204.     yytext = yy_bp; \
  205.     yyleng = yy_cp - yy_bp; \
  206.     yy_hold_char = *yy_cp; \
  207.     *yy_cp = '\0'; \
  208.     yy_c_buf_p = yy_cp;
  209.  
  210. #define EOB_ACT_CONTINUE_SCAN 0
  211. #define EOB_ACT_END_OF_FILE 1
  212. #define EOB_ACT_LAST_MATCH 2
  213.  
  214. /* return all but the first 'n' matched characters back to the input stream */
  215. #define yyless(n) \
  216.     do \
  217.         { \
  218.         /* undo effects of setting up yytext */ \
  219.         *yy_cp = yy_hold_char; \
  220.         yy_c_buf_p = yy_cp = yy_bp + n; \
  221.         YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  222.         } \
  223.     while ( 0 )
  224.  
  225. #define unput(c) yyunput( c, yytext )
  226.  
  227.  
  228. struct yy_buffer_state
  229.     {
  230.     FILE *yy_input_file;
  231.  
  232.     YY_CHAR *yy_ch_buf;        /* input buffer */
  233.     YY_CHAR *yy_buf_pos;    /* current position in input buffer */
  234.  
  235.     /* size of input buffer in bytes, not including room for EOB characters*/
  236.     int yy_buf_size;    
  237.  
  238.     /* number of characters read into yy_ch_buf, not including EOB characters */
  239.     int yy_n_chars;
  240.  
  241.     int yy_eof_status;        /* whether we've seen an EOF on this buffer */
  242. #define EOF_NOT_SEEN 0
  243.     /* "pending" happens when the EOF has been seen but there's still
  244.      * some text process
  245.      */
  246. #define EOF_PENDING 1
  247. #define EOF_DONE 2
  248.     };
  249.  
  250. static YY_BUFFER_STATE yy_current_buffer;
  251.  
  252. /* we provide macros for accessing buffer states in case in the
  253.  * future we want to put the buffer states in a more general
  254.  * "scanner state"
  255.  */
  256. #define YY_CURRENT_BUFFER yy_current_buffer
  257.  
  258.  
  259. /* yy_hold_char holds the character lost when yytext is formed */
  260. static YY_CHAR yy_hold_char;
  261.  
  262. static int yy_n_chars;        /* number of characters read into yy_ch_buf */
  263.  
  264.  
  265.  
  266. #ifndef YY_USER_ACTION
  267. #define YY_USER_ACTION
  268. #endif
  269.  
  270. #ifndef YY_USER_INIT
  271. #define YY_USER_INIT
  272. #endif
  273.  
  274. extern YY_CHAR *yytext;
  275. extern int yyleng;
  276. extern FILE *yyin, *yyout;
  277.  
  278. YY_CHAR *yytext;
  279. int yyleng;
  280.  
  281. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  282.  
  283. #define YY_END_OF_BUFFER 117
  284. typedef int yy_state_type;
  285. static const short int yy_acclist[665] =
  286.     {   0,
  287.       117,  107,  116,  105,  107,  116,  106,  116,   22,  107,
  288.       116,  107,  116,   28,  107,  116,   21,  107,  116,   25,
  289.       107,  116,   11,  107,  116,   12,  107,  116,   19,  107,
  290.       116,   17,  107,  116,    8,  107,  116,   18,  107,  116,
  291.        29,  107,  116,   20,  107,  116,  104,  107,  116,   23,
  292.       107,  116,    9,  107,  116,   39,  107,  116,   10,  107,
  293.       116,   40,  107,  116,  100,  107,  116,16483,  100,  107,
  294.       116,16483,   13,  107,  116,   26,  107,  116,   14,  107,
  295.       116,   24,  107,  116,  100,  107,  116,16483,  100,  107,
  296.       116,16483,  100,  107,  116,16483,  100,  107,  116,16483,
  297.  
  298.       100,  107,  116,16483,  100,  107,  116,16483,  100,  107,
  299.       116,16483,  100,  107,  116,16483,  100,  107,  116,16483,
  300.       100,  107,  116,16483,  100,  107,  116,16483,  100,  107,
  301.       116,16483,  100,  107,  116,16483,  100,  107,  116,16483,
  302.       100,  107,  116,16483,   15,  107,  116,   27,  107,  116,
  303.        16,  107,  116,   30,  107,  116,    1,  107,  116,  111,
  304.       116,  110,  116,  111,  116,  111,  116,  114,  116,  113,
  305.       116,    4,  116,    5,  116,    4,  116,    4,  116,    2,
  306.         4,  116,    3,    4,  116,  105,   36,  101,   33,   32,
  307.        41,  102,    6,    7,  103,  104,   31,   38,   35,   37,
  308.  
  309.       100,16483,  100,16483,  100,16483,  100,16483,  100,16483,
  310.       100,16483,  100,16483,  100,16483,  100,16483,  100,16483,
  311.       100,16483,  100,16483,  100,16483,  100,16483,  100,16483,
  312.       100,16483,  100,16483,   55,  100,16483,  100,16483,  100,
  313.     16483,  100,16483,  100,16483,  100,16483,  100,16483,  100,
  314.     16483,  100,16483,  100,16483,  100,16483,  100,16483,  100,
  315.     16483,  100,16483,  100,16483,   65,  100,16483,   66,  100,
  316.     16483,   67,  100,16483,   85,  100,16483,  100,16483,   34,
  317.       108,  109,    3,    2,    3,    3,  102,  103,  104, 8291,
  318.        59,  100,16483,  100,16483,  100,16483,  100,16483,   48,
  319.  
  320.       100,16483,  100,16483,  100,16483,  100,16483,  100,16483,
  321.       100,16483,  100,16483,  100,16483,   43,  100,16483,  100,
  322.     16483,  100,16483,   50,  100,16483,   83,  100,16483,  100,
  323.     16483,  100,16483,   86,  100,16483,  100,16483,  100,16483,
  324.       100,16483,   51,  100,16483,  100,16483,  100,16483,  100,
  325.     16483,  100,16483,  100,16483,  100,16483,  100,16483,  100,
  326.     16483,   42,  100,16483,  100,16483,  100,16483,  100,16483,
  327.        44,  100,16483,  100,16483,  100,16483,  100,16483,  100,
  328.     16483,  100,16483,  100,16483,  102,  103,  100,16483,   56,
  329.       100,16483,  100,16483,   46,  100,16483,  100,16483,   45,
  330.  
  331.       100,16483,   47,  100,16483,  100,16483,  100,16483,   92,
  332.       100,16483,  100,16483,  100,16483,  100,16483,  100,16483,
  333.       100,16483,  100,16483,   87,  100,16483,  100,16483,  100,
  334.     16483,  100,16483,  100,16483,  100,16483,  100,16483,   53,
  335.       100,16483,   76,  100,16483,  100,16483,  100,16483,  100,
  336.     16483,   49,  100,16483,  100,16483,  100,16483,  100,16483,
  337.       100,16483,   63,  100,16483,   77,  100,16483,  100,16483,
  338.       102,  103,  100,16483,   61,  100,16483,  100,16483,  100,
  339.     16483,   78,  100,16483,  100,16483,   74,  100,16483,  100,
  340.     16483,   71,  100,16483,  100,16483,  100,16483,   64,  100,
  341.  
  342.     16483,  100,16483,   54,  100,16483,  100,16483,   52,  100,
  343.     16483,  100,16483,  100,16483,   75,  100,16483,   90,  100,
  344.     16483,  100,16483,  100,16483,   96,  100,16483,  100,16483,
  345.        70,  100,16483,  100,16483,  100,16483,  100,16483,  100,
  346.     16483,   62,  100,16483,   57,  100,16483,   58,  100,16483,
  347.       100,16483,  100,16483,  100,16483,  100,16483,  100,16483,
  348.       100,16483,  100,16483,   84,  100,16483,  100,16483,  100,
  349.     16483,   97,  100,16483,   88,  100,16483,  100,16483,  100,
  350.     16483,  100,16483,  100,16483,   82,  100,16483,   60,  100,
  351.     16483,  100,16483,   93,  100,16483,  100,16483,  100,16483,
  352.  
  353.        79,  100,16483,  100,16483,   69,  100,16483,  100,16483,
  354.       100,16483,  100,16483,  100,16483,  100,16483,   81,  100,
  355.     16483,  100,16483,   91,  100,16483,  100,16483,   68,  100,
  356.     16483,  100,16483,  100,16483,  100,16483,  100,16483,   89,
  357.       100,16483,  100,16483,  100,16483,   80,  100,16483,   94,
  358.       100,16483,   98,  100,16483,   95,  100,16483,   72,  100,
  359.     16483,   73,  100,16483
  360.     } ;
  361.  
  362. static const short int yy_accept[312] =
  363.     {   0,
  364.         1,    1,    1,    1,    1,    1,    1,    1,    1,    2,
  365.         4,    7,    9,   12,   14,   17,   20,   23,   26,   29,
  366.        32,   35,   38,   41,   44,   47,   50,   53,   56,   59,
  367.        62,   65,   69,   73,   76,   79,   82,   85,   89,   93,
  368.        97,  101,  105,  109,  113,  117,  121,  125,  129,  133,
  369.       137,  141,  145,  148,  151,  154,  157,  160,  162,  164,
  370.       166,  168,  170,  172,  174,  176,  178,  180,  183,  186,
  371.       187,  188,  188,  189,  190,  191,  192,  193,  194,  195,
  372.       196,  197,  197,  198,  199,  200,  201,  201,  203,  203,
  373.       205,  207,  209,  211,  213,  215,  217,  219,  221,  223,
  374.  
  375.       225,  227,  229,  231,  233,  235,  238,  240,  242,  244,
  376.       246,  248,  250,  252,  254,  256,  258,  260,  262,  264,
  377.       266,  269,  272,  275,  278,  280,  281,  282,  283,  283,
  378.       283,  283,  283,  284,  285,  286,  287,  287,  289,  289,
  379.       289,  290,  291,  294,  296,  298,  300,  303,  305,  307,
  380.       309,  311,  313,  315,  317,  320,  322,  324,  327,  330,
  381.       332,  334,  337,  339,  341,  343,  346,  348,  350,  352,
  382.       354,  356,  358,  360,  362,  365,  367,  369,  371,  374,
  383.       376,  378,  380,  382,  384,  386,  386,  386,  387,  387,
  384.       387,  388,  390,  393,  395,  398,  400,  403,  406,  408,
  385.  
  386.       410,  413,  415,  417,  419,  421,  423,  425,  428,  430,
  387.       432,  434,  436,  438,  440,  443,  446,  448,  450,  452,
  388.       455,  457,  459,  461,  463,  466,  469,  471,  471,  473,
  389.       475,  478,  480,  482,  485,  487,  490,  492,  495,  497,
  390.       499,  502,  504,  507,  509,  512,  514,  516,  519,  522,
  391.       524,  526,  529,  531,  534,  536,  538,  540,  542,  545,
  392.       548,  551,  553,  555,  557,  559,  561,  563,  565,  568,
  393.       570,  572,  575,  578,  580,  582,  584,  586,  589,  592,
  394.       594,  597,  599,  601,  604,  606,  609,  611,  613,  615,
  395.       617,  619,  622,  624,  627,  629,  632,  634,  636,  638,
  396.  
  397.       640,  643,  645,  647,  650,  653,  656,  659,  662,  665,
  398.       665
  399.     } ;
  400.  
  401. static const YY_CHAR yy_ec[128] =
  402.     {   0,
  403.         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
  404.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  405.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  406.         1,    2,    4,    5,    6,    7,    8,    9,    1,   10,
  407.        11,   12,   13,   14,   15,   16,   17,   18,   19,   20,
  408.        21,   22,   21,   21,   21,   21,   21,   23,   24,   25,
  409.        26,   27,    1,    1,   28,   28,   28,   28,   29,   28,
  410.        28,   28,   30,   28,   28,   31,   32,   33,   28,   34,
  411.        35,   36,   37,   38,   28,   28,   28,   28,   28,   28,
  412.        39,   40,   41,   42,   43,    1,   44,   45,   46,   47,
  413.  
  414.        48,   49,   50,   51,   52,   28,   53,   54,   55,   56,
  415.        57,   58,   59,   60,   61,   62,   63,   64,   65,   66,
  416.        67,   68,   69,   70,   71,   72,    1
  417.     } ;
  418.  
  419. static const YY_CHAR yy_meta[73] =
  420.     {   0,
  421.         1,    2,    3,    1,    1,    1,    1,    1,    1,    1,
  422.         1,    1,    1,    1,    4,    5,    5,    6,    6,    6,
  423.         6,    6,    1,    1,    1,    7,    1,    8,    8,    8,
  424.         8,    8,    8,    8,    8,    8,    8,    8,    1,    1,
  425.         1,    1,    8,    8,    8,    8,    8,    8,    8,    8,
  426.         8,    8,    8,    8,    8,    8,    8,    8,    8,    8,
  427.         8,    8,    8,    8,    8,    8,    8,    8,    1,    1,
  428.         1,    1
  429.     } ;
  430.  
  431. static const short int yy_base[318] =
  432.     {   0,
  433.         0,  384,   70,   71,  384,  374,   88,    0,  364, 1067,
  434.       342, 1067,  287,  305, 1067, 1067,  274, 1067, 1067,  267,
  435.      1067, 1067,  227,   57,   68,  145,  210, 1067,  190,  182,
  436.       180,  160,  166, 1067, 1067, 1067, 1067,  168,  169,  170,
  437.       171,  175,  173,  176,  179,  185,  189,  196,  205,  218,
  438.       201,  219, 1067,  134, 1067, 1067, 1067, 1067, 1067,  168,
  439.       157, 1067, 1067, 1067, 1067,  163,  166,  250,  167,   84,
  440.      1067,   79, 1067, 1067, 1067, 1067,  269, 1067, 1067,  274,
  441.       286,  305, 1067, 1067, 1067, 1067,  174,  186,    0,  221,
  442.       271,  223,  307,  309,  275,  310,  312,  274,  314,  273,
  443.  
  444.       319,  327,  328,  337,  339,  340,  345,  346,  344,  350,
  445.       353,  349,  354,  357,  358,  356,  376,  383,  389,  384,
  446.       387,  393,  396,  397,  404, 1067, 1067, 1067,   64,  173,
  447.       244,  249,  231,  429,  239,  326,  440,  445,  457,  462,
  448.       467, 1067,  416,  466,  443,  469,  488,  489,  492,  495,
  449.       496,  494,  498,  499,  500,  501,  504,  503,  505,  506,
  450.       507,  508,  509,  510,  511,  539,  536,  514,  540,  517,
  451.       543,  542,  555,  557,  559,  569,  572,  574,  575,  576,
  452.       577,  578,  582,  586,  589,  333,  604,  625,  635,  640,
  453.       645,  590,  592,  605,  580,  603,  611,  612,  647,  650,
  454.  
  455.       666,  667,  668,  669,  670,  672,  675,  676,  678,  682,
  456.       677,  680,  681,  683,  684,  685,  686,  687,  689,  688,
  457.       717,  718,  720,  721,  725,  726,  735,  735,  748,  756,
  458.       736,  758,  737,  738,  757,  769,  770,  775,  779,  783,
  459.       785,  786,  787,  788,  789,  790,  791,  795,  796,  798,
  460.       797,  802,  806,  804,  808,  805,  817,  818,  823,  833,
  461.       834,  845,  835,  840,  846,  848,  849,  856,  861,  862,
  462.       867,  865,  866,  871,  877,  879,  874,  881,  882,  883,
  463.       887,  888,  897,  904,  909,  910,  913,  914,  918,  920,
  464.       925,  929,  932,  930,  935,  939,  940,  941,  945,  948,
  465.  
  466.       951,  957,  958,  961,  967,  968,  973,  977,  983, 1067,
  467.      1018, 1026, 1034, 1041, 1045, 1050, 1058
  468.     } ;
  469.  
  470. static const short int yy_def[318] =
  471.     {   0,
  472.       310,    1,  311,  311,  312,  312,  310,    7,  310,  310,
  473.       310,  310,  310,  313,  310,  310,  310,  310,  310,  310,
  474.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  475.       310,  314,  314,  310,  310,  310,  310,  314,  314,  314,
  476.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  477.       314,  314,  310,  310,  310,  310,  310,  310,  310,  310,
  478.       310,  310,  310,  310,  310,  310,  315,  310,  316,  310,
  479.       310,  313,  310,  310,  310,  310,  310,  310,  310,  310,
  480.       310,  310,  310,  310,  310,  310,  310,  314,  317,  314,
  481.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  482.  
  483.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  484.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  485.       314,  314,  314,  314,  314,  310,  310,  310,  310,  315,
  486.       310,  315,  316,  310,  316,  316,  310,  310,  310,  310,
  487.       310,  310,  314,  314,  314,  314,  314,  314,  314,  314,
  488.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  489.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  490.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  491.       314,  314,  314,  314,  314,  315,  310,  310,  310,  310,
  492.       310,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  493.  
  494.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  495.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  496.       314,  314,  314,  314,  314,  314,  314,  310,  310,  314,
  497.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  498.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  499.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  500.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  501.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  502.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  503.       314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
  504.  
  505.       314,  314,  314,  314,  314,  314,  314,  314,  314,    0,
  506.       310,  310,  310,  310,  310,  310,  310
  507.     } ;
  508.  
  509. static const short int yy_nxt[1140] =
  510.     {   0,
  511.        10,   11,   12,   13,   14,   10,   15,   16,   17,   18,
  512.        19,   20,   21,   22,   23,   24,   25,   26,   26,   26,
  513.        26,   26,   27,   28,   29,   30,   31,   32,   32,   32,
  514.        32,   33,   32,   32,   32,   32,   32,   32,   34,   35,
  515.        36,   37,   32,   38,   32,   39,   40,   41,   42,   43,
  516.        44,   45,   32,   46,   32,   32,   32,   47,   32,   48,
  517.        49,   50,   51,   32,   52,   32,   32,   32,   53,   54,
  518.        55,   56,   59,   59,   77,   77,   77,   77,   77,   78,
  519.       130,   60,   60,   73,   79,   70,   61,   61,   64,   64,
  520.        65,   64,   64,   64,   64,   64,   64,   64,   64,   64,
  521.  
  522.        64,   64,   64,   66,   67,   68,   68,   68,   68,   68,
  523.        64,   64,   64,   64,   64,   69,   69,   69,   69,   69,
  524.        69,   69,   69,   69,   69,   69,   64,   64,   64,   64,
  525.        69,   69,   69,   69,   69,   69,   69,   69,   69,   69,
  526.        69,   69,   69,   69,   69,   69,   69,   69,   69,   69,
  527.        69,   69,   69,   69,   69,   69,   64,   64,   64,   64,
  528.        80,   87,   81,   81,   81,   81,   81,   87,  128,   87,
  529.        87,   87,   87,   82,   87,   87,   87,   87,  129,  130,
  530.        87,  131,  132,  130,  127,   89,   87,   87,  131,  310,
  531.        87,   89,   82,   89,   89,   89,   89,   87,   89,   89,
  532.  
  533.        89,   89,   87,  126,   89,   86,   87,   85,   90,  136,
  534.        89,   89,   91,   92,   89,   84,  104,   99,  102,   87,
  535.        87,   89,   87,   93,   87,   97,   89,  106,   94,   95,
  536.        89,  103,   83,   96,  107,   98,  100,  101,  105,  112,
  537.       110,  108,  111,   89,   89,  109,   89,  130,   89,  143,
  538.       114,  144,  113,   76,  145,  130,  115,  146,  124,  129,
  539.       130,  118,  116,  117,  131,  186,  125,  134,  134,  134,
  540.       134,  134,   87,  136,   87,   87,   87,  119,   75,  148,
  541.       120,  136,   74,  121,  122,  123,   77,   77,   77,   77,
  542.        77,  138,  138,  138,  138,  138,   89,  137,   89,   89,
  543.  
  544.        89,   80,  139,   81,   81,   81,   81,   81,   87,   73,
  545.        87,   87,   71,   87,   82,   87,  137,  140,  151,  140,
  546.        87,  139,  141,  141,  141,  141,  141,  156,   87,   87,
  547.       158,  147,   89,   82,   89,   89,  152,   89,   87,   89,
  548.        87,   87,  130,   70,   89,   87,   87,   87,  131,  310,
  549.        87,   87,   89,   89,   87,   87,  149,   87,   87,   87,
  550.       150,  153,   89,  310,   89,   89,  159,  154,  136,   89,
  551.        89,   89,  155,  157,   89,   89,   63,   87,   89,   89,
  552.       160,   89,   89,   89,   87,   87,   63,  161,   87,   57,
  553.        87,  162,  164,  165,   87,  166,  170,   87,   87,  163,
  554.  
  555.       174,   89,  167,  310,  171,   87,  176,  172,   89,   89,
  556.       168,  169,   89,  175,   89,  173,  310,   87,   89,  310,
  557.       310,   89,   89,  310,  310,  310,  310,  178,  310,   89,
  558.       310,  310,  180,  310,  310,  177,  310,  310,  179,  310,
  559.       181,   89,  310,  184,   87,  182,  134,  134,  134,  134,
  560.       134,  183,  187,  310,  187,  185,  310,  188,  188,  188,
  561.       188,  188,  138,  138,  138,  138,  138,   87,   89,  190,
  562.        87,  190,  193,  189,  191,  191,  191,  191,  191,  141,
  563.       141,  141,  141,  141,  141,  141,  141,  141,  141,   87,
  564.        87,   89,  189,   87,   89,   87,   87,   87,  192,   87,
  565.  
  566.        87,   87,   87,  194,   87,   87,   87,   87,   87,   87,
  567.        87,   87,   87,   89,   89,   87,  310,   89,   87,   89,
  568.        89,   89,  310,   89,   89,   89,   89,  310,   89,   89,
  569.        89,   89,   89,   89,   89,   89,   89,   87,  310,   89,
  570.        87,   87,   89,   87,   87,  196,  201,  310,  310,  195,
  571.       197,  198,  203,  199,  200,  204,   87,  210,   87,  202,
  572.        87,   89,  209,  208,   89,   89,  205,   89,   89,  207,
  573.        87,  206,  214,   87,  212,   87,   87,   87,   87,   87,
  574.        89,   87,   89,   87,   89,  213,  310,   87,  211,  215,
  575.        87,   87,  310,   87,   89,  216,  310,   89,  217,   89,
  576.  
  577.        89,   89,   89,   89,   87,   89,   87,   89,  230,  231,
  578.       218,   89,   87,   87,   89,   89,  219,   89,  310,  310,
  579.       223,  188,  188,  188,  188,  188,  310,  221,   89,  225,
  580.        89,  222,  310,  220,  232,  224,   89,   89,  227,  310,
  581.       233,  226,  188,  188,  188,  188,  188,  228,   87,  228,
  582.       234,   87,  229,  229,  229,  229,  229,  191,  191,  191,
  583.       191,  191,  191,  191,  191,  191,  191,   87,   87,   87,
  584.        87,   87,   89,   87,  310,   89,   87,   87,   87,   87,
  585.       310,   87,   87,   87,   87,   87,   87,   87,   87,   87,
  586.        87,   89,   89,   89,   89,   89,  310,   89,  235,  245,
  587.  
  588.        89,   89,   89,   89,  236,   89,   89,   89,   89,   89,
  589.        89,   89,   89,   89,   89,  242,  310,  241,   87,   87,
  590.       246,   87,   87,  239,  310,  237,   87,   87,  238,  310,
  591.       249,  248,  240,  244,  252,  243,   87,   87,   87,   87,
  592.       250,  247,   89,   89,  310,   89,   89,  251,  253,  310,
  593.        89,   89,  229,  229,  229,  229,  229,   87,   87,   87,
  594.        89,   89,   89,   89,  254,  229,  229,  229,  229,  229,
  595.        87,   87,  257,  259,  262,  256,   87,  260,  255,  261,
  596.        87,   89,   89,   89,   87,  258,   87,   87,   87,   87,
  597.        87,   87,   87,  310,   89,   89,   87,   87,   87,   87,
  598.  
  599.        89,  263,  310,   87,   89,   87,   87,   87,   89,   87,
  600.        89,   89,   89,   89,   89,   89,   89,  264,   87,   87,
  601.        89,   89,   89,   89,   87,  265,  266,   89,  310,   89,
  602.        89,   89,  310,   89,   87,   87,   87,  310,  270,  268,
  603.       310,   87,   89,   89,  272,  267,   87,   87,   89,   87,
  604.        87,  269,  271,  273,  276,  310,  274,   87,   89,   89,
  605.        89,  275,   87,   87,  279,   89,   87,   87,   87,  310,
  606.        89,   89,   87,   89,   89,   87,  310,  277,   87,  278,
  607.        87,   89,   87,   87,   87,  310,   89,   89,   87,   87,
  608.        89,   89,   89,  282,  310,  284,   89,  280,   87,   89,
  609.  
  610.       281,  310,   89,  310,   89,   87,   89,   89,   89,  283,
  611.        87,   87,   89,   89,   87,   87,  286,  285,  287,   87,
  612.       290,   87,   89,  310,  310,  288,   87,  289,  292,   89,
  613.        87,   87,  291,   87,   89,   89,   87,  310,   89,   89,
  614.        87,   87,   87,   89,  293,   89,   87,  294,  295,   87,
  615.        89,  310,   87,  310,   89,   89,  310,   89,   87,   87,
  616.        89,  298,   87,  310,   89,   89,   89,  310,   87,   87,
  617.        89,  310,  301,   89,   87,  296,   89,  299,   87,  302,
  618.       297,  300,   89,   89,   87,  310,   89,  304,  310,  310,
  619.       310,  303,   89,   89,  310,  307,  310,  310,   89,  306,
  620.  
  621.       310,  305,   89,  310,  310,  310,  310,  310,   89,  310,
  622.       310,  310,  310,  309,  310,  310,  310,  308,   58,   58,
  623.        58,   58,   58,   58,   58,   58,   62,   62,   62,   62,
  624.        62,   62,   62,   62,   72,   72,  310,   72,   72,   72,
  625.        72,   72,   88,  310,  310,  310,   88,   88,   88,  133,
  626.       310,  310,  133,  135,  135,  135,  310,  135,  142,  142,
  627.       142,  142,  142,  142,  310,  142,    9,  310,  310,  310,
  628.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  629.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  630.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  631.  
  632.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  633.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  634.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  635.       310,  310,  310,  310,  310,  310,  310,  310,  310
  636.     } ;
  637.  
  638. static const short int yy_chk[1140] =
  639.     {   0,
  640.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  641.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  642.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  643.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  644.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  645.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  646.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  647.         1,    1,    3,    4,   24,   24,   24,   24,   24,   25,
  648.       129,    3,    4,   72,   25,   70,    3,    4,    7,    7,
  649.         7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
  650.  
  651.         7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
  652.         7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
  653.         7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
  654.         7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
  655.         7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
  656.         7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
  657.        26,   32,   26,   26,   26,   26,   26,   33,   61,   38,
  658.        39,   40,   41,   26,   43,   87,   42,   44,   66,   66,
  659.        45,   67,   67,   69,   60,   32,   46,   88,  130,  130,
  660.        47,   33,   26,   38,   39,   40,   41,   48,   43,   87,
  661.  
  662.        42,   44,   51,   54,   45,   31,   49,   30,   33,   69,
  663.        46,   88,   38,   38,   47,   29,   43,   40,   42,   50,
  664.        52,   48,   90,   38,   92,   39,   51,   45,   38,   38,
  665.        49,   42,   27,   38,   45,   39,   41,   41,   44,   48,
  666.        47,   46,   47,   50,   52,   46,   90,  133,   92,   90,
  667.        49,   90,   48,   23,   90,  135,   49,   90,   51,  131,
  668.       131,   50,   49,   49,  132,  132,   52,   68,   68,   68,
  669.        68,   68,   91,  133,  100,   98,   95,   50,   20,   92,
  670.        50,  135,   17,   50,   50,   50,   77,   77,   77,   77,
  671.        77,   80,   80,   80,   80,   80,   91,   77,  100,   98,
  672.  
  673.        95,   81,   80,   81,   81,   81,   81,   81,   93,   14,
  674.        94,   96,   13,   97,   81,   99,   77,   82,   95,   82,
  675.       101,   80,   82,   82,   82,   82,   82,   98,  102,  103,
  676.       100,   91,   93,   81,   94,   96,   95,   97,  104,   99,
  677.       105,  106,  136,   11,  101,  109,  107,  108,  186,  186,
  678.       112,  110,  102,  103,  111,  113,   93,  116,  114,  115,
  679.        94,   96,  104,    9,  105,  106,  101,   97,  136,  109,
  680.       107,  108,   97,   99,  112,  110,    6,  117,  111,  113,
  681.       102,  116,  114,  115,  118,  120,    5,  103,  121,    2,
  682.       119,  103,  105,  107,  122,  108,  111,  123,  124,  104,
  683.  
  684.       114,  117,  108,    0,  112,  125,  116,  113,  118,  120,
  685.       109,  110,  121,  115,  119,  113,    0,  143,  122,    0,
  686.         0,  123,  124,    0,    0,    0,    0,  118,    0,  125,
  687.         0,    0,  119,    0,    0,  117,    0,    0,  118,    0,
  688.       119,  143,    0,  120,  145,  119,  134,  134,  134,  134,
  689.       134,  119,  137,    0,  137,  125,    0,  137,  137,  137,
  690.       137,  137,  138,  138,  138,  138,  138,  144,  145,  139,
  691.       146,  139,  145,  138,  139,  139,  139,  139,  139,  140,
  692.       140,  140,  140,  140,  141,  141,  141,  141,  141,  147,
  693.       148,  144,  138,  149,  146,  152,  150,  151,  144,  153,
  694.  
  695.       154,  155,  156,  146,  158,  157,  159,  160,  161,  162,
  696.       163,  164,  165,  147,  148,  168,    0,  149,  170,  152,
  697.       150,  151,    0,  153,  154,  155,  156,    0,  158,  157,
  698.       159,  160,  161,  162,  163,  164,  165,  167,    0,  168,
  699.       166,  169,  170,  172,  171,  149,  154,    0,    0,  148,
  700.       150,  151,  156,  152,  153,  157,  173,  166,  174,  154,
  701.       175,  167,  165,  164,  166,  169,  160,  172,  171,  163,
  702.       176,  161,  170,  177,  168,  178,  179,  180,  181,  182,
  703.       173,  195,  174,  183,  175,  169,    0,  184,  167,  171,
  704.       185,  192,    0,  193,  176,  172,    0,  177,  173,  178,
  705.  
  706.       179,  180,  181,  182,  196,  195,  194,  183,  192,  192,
  707.       174,  184,  197,  198,  185,  192,  176,  193,    0,    0,
  708.       181,  187,  187,  187,  187,  187,    0,  178,  196,  183,
  709.       194,  180,    0,  177,  193,  182,  197,  198,  185,    0,
  710.       194,  184,  188,  188,  188,  188,  188,  189,  199,  189,
  711.       196,  200,  189,  189,  189,  189,  189,  190,  190,  190,
  712.       190,  190,  191,  191,  191,  191,  191,  201,  202,  203,
  713.       204,  205,  199,  206,    0,  200,  207,  208,  211,  209,
  714.         0,  212,  213,  210,  214,  215,  216,  217,  218,  220,
  715.       219,  201,  202,  203,  204,  205,    0,  206,  199,  210,
  716.  
  717.       207,  208,  211,  209,  200,  212,  213,  210,  214,  215,
  718.       216,  217,  218,  220,  219,  206,    0,  205,  221,  222,
  719.       211,  223,  224,  203,    0,  201,  225,  226,  202,    0,
  720.       214,  213,  204,  209,  218,  207,  227,  231,  233,  234,
  721.       215,  212,  221,  222,    0,  223,  224,  217,  219,    0,
  722.       225,  226,  228,  228,  228,  228,  228,  230,  235,  232,
  723.       227,  231,  233,  234,  221,  229,  229,  229,  229,  229,
  724.       236,  237,  224,  230,  233,  223,  238,  232,  222,  232,
  725.       239,  230,  235,  232,  240,  227,  241,  242,  243,  244,
  726.       245,  246,  247,    0,  236,  237,  248,  249,  251,  250,
  727.  
  728.       238,  235,    0,  252,  239,  254,  256,  253,  240,  255,
  729.       241,  242,  243,  244,  245,  246,  247,  237,  257,  258,
  730.       248,  249,  251,  250,  259,  239,  240,  252,    0,  254,
  731.       256,  253,    0,  255,  260,  261,  263,    0,  247,  244,
  732.         0,  264,  257,  258,  251,  242,  262,  265,  259,  266,
  733.       267,  246,  250,  253,  256,    0,  255,  268,  260,  261,
  734.       263,  255,  269,  270,  262,  264,  272,  273,  271,    0,
  735.       262,  265,  274,  266,  267,  277,    0,  257,  275,  258,
  736.       276,  268,  278,  279,  280,    0,  269,  270,  281,  282,
  737.       272,  273,  271,  265,    0,  267,  274,  263,  283,  277,
  738.  
  739.       264,    0,  275,    0,  276,  284,  278,  279,  280,  266,
  740.       285,  286,  281,  282,  287,  288,  270,  268,  271,  289,
  741.       275,  290,  283,    0,    0,  273,  291,  274,  277,  284,
  742.       292,  294,  276,  293,  285,  286,  295,    0,  287,  288,
  743.       296,  297,  298,  289,  280,  290,  299,  282,  283,  300,
  744.       291,    0,  301,    0,  292,  294,    0,  293,  302,  303,
  745.       295,  288,  304,    0,  296,  297,  298,    0,  305,  306,
  746.       299,    0,  291,  300,  307,  285,  301,  289,  308,  293,
  747.       287,  290,  302,  303,  309,    0,  304,  297,    0,    0,
  748.         0,  295,  305,  306,    0,  300,    0,    0,  307,  299,
  749.  
  750.         0,  298,  308,    0,    0,    0,    0,    0,  309,    0,
  751.         0,    0,    0,  303,    0,    0,    0,  302,  311,  311,
  752.       311,  311,  311,  311,  311,  311,  312,  312,  312,  312,
  753.       312,  312,  312,  312,  313,  313,    0,  313,  313,  313,
  754.       313,  313,  314,    0,    0,    0,  314,  314,  314,  315,
  755.         0,    0,  315,  316,  316,  316,    0,  316,  317,  317,
  756.       317,  317,  317,  317,    0,  317,  310,  310,  310,  310,
  757.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  758.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  759.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  760.  
  761.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  762.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  763.       310,  310,  310,  310,  310,  310,  310,  310,  310,  310,
  764.       310,  310,  310,  310,  310,  310,  310,  310,  310
  765.     } ;
  766.  
  767. static yy_state_type yy_last_accepting_state;
  768. static YY_CHAR *yy_last_accepting_cpos;
  769.  
  770. static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
  771. static YY_CHAR *yy_full_match;
  772. static int yy_lp;
  773. static int yy_looking_for_trail_begin = 0;
  774. static int yy_full_lp;
  775. static int *yy_full_state;
  776. #define YY_TRAILING_MASK 0x2000
  777. #define YY_TRAILING_HEAD_MASK 0x4000
  778. #define REJECT \
  779. { \
  780. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
  781. yy_cp = yy_full_match; /* restore poss. backed-over text */ \
  782. yy_lp = yy_full_lp; /* restore orig. accepting pos. */ \
  783. yy_state_ptr = yy_full_state; /* restore orig. state */ \
  784. yy_current_state = *yy_state_ptr; /* restore curr. state */ \
  785. ++yy_lp; \
  786. goto find_rule; \
  787. }
  788. #define yymore() yymore_used_but_not_detected
  789. #define YY_MORE_ADJ 0
  790.  
  791. /* these variables are all declared out here so that section 3 code can
  792.  * manipulate them
  793.  */
  794. /* points to current character in buffer */
  795. static YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0;
  796. static int yy_init = 1;        /* whether we need to initialize */
  797. static int yy_start = 0;    /* start state number */
  798.  
  799. /* flag which is used to allow yywrap()'s to do buffer switches
  800.  * instead of setting up a fresh yyin.  A bit of a hack ...
  801.  */
  802. static int yy_did_buffer_switch_on_eof;
  803.  
  804. static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  805. static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  806. static int yy_get_next_buffer YY_PROTO(( void ));
  807. static void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
  808. void yyrestart YY_PROTO(( FILE *input_file ));
  809. void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  810. void yy_load_buffer_state YY_PROTO(( void ));
  811. YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  812. void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  813. void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  814.  
  815. #define yy_new_buffer yy_create_buffer
  816.  
  817. #ifdef __cplusplus
  818. static int yyinput YY_PROTO(( void ));
  819. #else
  820. static int input YY_PROTO(( void ));
  821. #endif
  822.  
  823. YY_DECL
  824.     {
  825.     register yy_state_type yy_current_state;
  826.     register YY_CHAR *yy_cp, *yy_bp;
  827.     register int yy_act;
  828.  
  829.  
  830.  
  831.  
  832.     if ( yy_init )
  833.     {
  834.     YY_USER_INIT;
  835.  
  836.     if ( ! yy_start )
  837.         yy_start = 1;    /* first start state */
  838.  
  839.     if ( ! yyin )
  840.         yyin = stdin;
  841.  
  842.     if ( ! yyout )
  843.         yyout = stdout;
  844.  
  845.     if ( yy_current_buffer )
  846.         yy_init_buffer( yy_current_buffer, yyin );
  847.     else
  848.         yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  849.  
  850.     yy_load_buffer_state();
  851.  
  852.     yy_init = 0;
  853.     }
  854.  
  855.     while ( 1 )        /* loops until end-of-file is reached */
  856.     {
  857.     yy_cp = yy_c_buf_p;
  858.  
  859.     /* support of yytext */
  860.     *yy_cp = yy_hold_char;
  861.  
  862.     /* yy_bp points to the position in yy_ch_buf of the start of the
  863.      * current run.
  864.      */
  865.     yy_bp = yy_cp;
  866.  
  867.     yy_current_state = yy_start;
  868.     if ( yy_bp[-1] == '\n' )
  869.         ++yy_current_state;
  870.     yy_state_ptr = yy_state_buf;
  871.     *yy_state_ptr++ = yy_current_state;
  872. yy_match:
  873.     do
  874.         {
  875.         register YY_CHAR yy_c = yy_ec[*yy_cp];
  876.         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  877.         {
  878.         yy_current_state = yy_def[yy_current_state];
  879.         if ( yy_current_state >= 311 )
  880.             yy_c = yy_meta[yy_c];
  881.         }
  882.         yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  883.         *yy_state_ptr++ = yy_current_state;
  884.         ++yy_cp;
  885.         }
  886.     while ( yy_current_state != 310 );
  887.  
  888. yy_find_action:
  889.     yy_current_state = *--yy_state_ptr;
  890.     yy_lp = yy_accept[yy_current_state];
  891. find_rule: /* we branch to this label when backtracking */
  892.     for ( ; ; ) /* until we find what rule we matched */
  893.         {
  894.         if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
  895.         {
  896.         yy_act = yy_acclist[yy_lp];
  897.         if ( yy_act & YY_TRAILING_HEAD_MASK ||
  898.              yy_looking_for_trail_begin )
  899.             {
  900.             if ( yy_act == yy_looking_for_trail_begin )
  901.             {
  902.             yy_looking_for_trail_begin = 0;
  903.             yy_act &= ~YY_TRAILING_HEAD_MASK;
  904.             break;
  905.             }
  906.             }
  907.         else if ( yy_act & YY_TRAILING_MASK )
  908.             {
  909.             yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
  910.             yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
  911.             }
  912.         else
  913.             {
  914.             yy_full_match = yy_cp;
  915.             yy_full_state = yy_state_ptr;
  916.             yy_full_lp = yy_lp;
  917.             break;
  918.             }
  919.         ++yy_lp;
  920.         goto find_rule;
  921.         }
  922.         --yy_cp;
  923.         yy_current_state = *--yy_state_ptr;
  924.         yy_lp = yy_accept[yy_current_state];
  925.         }
  926.  
  927.     YY_DO_BEFORE_ACTION;
  928.     YY_USER_ACTION;
  929.  
  930. do_action:    /* this label is used only to access EOF actions */
  931.  
  932.  
  933.     switch ( yy_act )
  934.         {
  935. case 1:
  936. # line 43 "lex.l"
  937. BEGIN(EXTFILE);
  938.     YY_BREAK
  939. case 2:
  940. # line 44 "lex.l"
  941. lineno = atoi(yytext); 
  942.     YY_BREAK
  943. case 3:
  944. # line 45 "lex.l"
  945. currentFilename = yytext; 
  946.     YY_BREAK
  947. case 4:
  948. # line 46 "lex.l"
  949. ;
  950.     YY_BREAK
  951. case 5:
  952. # line 47 "lex.l"
  953. BEGIN 0;
  954.     YY_BREAK
  955. case 6:
  956. # line 49 "lex.l"
  957. BEGIN(C_COMMENT);
  958.     YY_BREAK
  959. case 7:
  960. # line 50 "lex.l"
  961. BEGIN(CPP_COMMENT); 
  962.     YY_BREAK
  963. case 8:
  964. # line 52 "lex.l"
  965. { return *yytext; }   
  966.     YY_BREAK
  967. case 9:
  968. # line 53 "lex.l"
  969. { return *yytext; }  
  970.     YY_BREAK
  971. case 10:
  972. # line 54 "lex.l"
  973. { return *yytext; }
  974.     YY_BREAK
  975. case 11:
  976. # line 55 "lex.l"
  977. { return *yytext; }
  978.     YY_BREAK
  979. case 12:
  980. # line 56 "lex.l"
  981. { return *yytext; }
  982.     YY_BREAK
  983. case 13:
  984. # line 57 "lex.l"
  985. { return *yytext; }
  986.     YY_BREAK
  987. case 14:
  988. # line 58 "lex.l"
  989. { return *yytext; }
  990.     YY_BREAK
  991. case 15:
  992. # line 59 "lex.l"
  993. { return *yytext; }
  994.     YY_BREAK
  995. case 16:
  996. # line 60 "lex.l"
  997. { return *yytext; }
  998.     YY_BREAK
  999. case 17:
  1000. # line 61 "lex.l"
  1001. { return *yytext; }
  1002.     YY_BREAK
  1003. case 18:
  1004. # line 62 "lex.l"
  1005. { return *yytext; }
  1006.     YY_BREAK
  1007. case 19:
  1008. # line 63 "lex.l"
  1009. { return *yytext; }
  1010.     YY_BREAK
  1011. case 20:
  1012. # line 64 "lex.l"
  1013. { return *yytext; }
  1014.     YY_BREAK
  1015. case 21:
  1016. # line 65 "lex.l"
  1017. { return *yytext; }
  1018.     YY_BREAK
  1019. case 22:
  1020. # line 66 "lex.l"
  1021. { return *yytext; }
  1022.     YY_BREAK
  1023. case 23:
  1024. # line 67 "lex.l"
  1025. { return *yytext; }
  1026.     YY_BREAK
  1027. case 24:
  1028. # line 68 "lex.l"
  1029. { return *yytext; }
  1030.     YY_BREAK
  1031. case 25:
  1032. # line 69 "lex.l"
  1033. { return *yytext; }
  1034.     YY_BREAK
  1035. case 26:
  1036. # line 70 "lex.l"
  1037. { return *yytext; }
  1038.     YY_BREAK
  1039. case 27:
  1040. # line 71 "lex.l"
  1041. { return *yytext; }
  1042.     YY_BREAK
  1043. case 28:
  1044. # line 72 "lex.l"
  1045. { return *yytext; }
  1046.     YY_BREAK
  1047. case 29:
  1048. # line 73 "lex.l"
  1049. { return *yytext; }
  1050.     YY_BREAK
  1051. case 30:
  1052. # line 74 "lex.l"
  1053. { return *yytext; }
  1054.     YY_BREAK
  1055. case 31:
  1056. # line 76 "lex.l"
  1057. { return tSCOPE;  }
  1058.     YY_BREAK
  1059. case 32:
  1060. # line 77 "lex.l"
  1061. { return tPOW;    }
  1062.     YY_BREAK
  1063. case 33:
  1064. # line 78 "lex.l"
  1065. { return tAND;    }
  1066.     YY_BREAK
  1067. case 34:
  1068. # line 79 "lex.l"
  1069. { return tOR;     }        
  1070.     YY_BREAK
  1071. case 35:
  1072. # line 80 "lex.l"
  1073. { return tEQ;     }    
  1074.     YY_BREAK
  1075. case 36:
  1076. # line 81 "lex.l"
  1077. { return tNEQ;    } 
  1078.     YY_BREAK
  1079. case 37:
  1080. # line 82 "lex.l"
  1081. { return tGEQ;    } 
  1082.     YY_BREAK
  1083. case 38:
  1084. # line 83 "lex.l"
  1085. { return tLEQ;    } 
  1086.     YY_BREAK
  1087. case 39:
  1088. # line 84 "lex.l"
  1089. { return *yytext; }
  1090.     YY_BREAK
  1091. case 40:
  1092. # line 85 "lex.l"
  1093. { return *yytext; }
  1094.     YY_BREAK
  1095. case 41:
  1096. # line 86 "lex.l"
  1097. { return tARROW;  } 
  1098.     YY_BREAK
  1099. case 42:
  1100. # line 88 "lex.l"
  1101. { return tSIN;   }
  1102.     YY_BREAK
  1103. case 43:
  1104. # line 89 "lex.l"
  1105. { return tCOS;   }   
  1106.     YY_BREAK
  1107. case 44:
  1108. # line 90 "lex.l"
  1109. { return tTAN;   } 
  1110.     YY_BREAK
  1111. case 45:
  1112. # line 91 "lex.l"
  1113. { return tASIN;  } 
  1114.     YY_BREAK
  1115. case 46:
  1116. # line 92 "lex.l"
  1117. { return tACOS;  } 
  1118.     YY_BREAK
  1119. case 47:
  1120. # line 93 "lex.l"
  1121. { return tATAN;  } 
  1122.     YY_BREAK
  1123. case 48:
  1124. # line 94 "lex.l"
  1125. { return tABS;   }
  1126.     YY_BREAK
  1127. case 49:
  1128. # line 95 "lex.l"
  1129. { return tSQRT;  }
  1130.     YY_BREAK
  1131. case 50:
  1132. # line 96 "lex.l"
  1133. { return tEXP;   }
  1134.     YY_BREAK
  1135. case 51:
  1136. # line 97 "lex.l"
  1137. { return tLOG;   }
  1138.     YY_BREAK
  1139. case 52:
  1140. # line 98 "lex.l"
  1141. { return tLOG10; }
  1142.     YY_BREAK
  1143. case 53:
  1144. # line 99 "lex.l"
  1145. { return tRAND;  }
  1146.     YY_BREAK
  1147. case 54:
  1148. # line 100 "lex.l"
  1149. { return tGAUSS; }
  1150.     YY_BREAK
  1151. case 55:
  1152. # line 101 "lex.l"
  1153. { return tIF;    }
  1154.     YY_BREAK
  1155. case 56:
  1156. # line 103 "lex.l"
  1157. { yylval.value = new Value(M_PI);    return tVALUE; }
  1158.     YY_BREAK
  1159. case 57:
  1160. # line 104 "lex.l"
  1161. { yylval.value = new Value(M_PI_2);  return tVALUE; }
  1162.     YY_BREAK
  1163. case 58:
  1164. # line 105 "lex.l"
  1165. { yylval.value = new Value(M_PI_4);  return tVALUE; }
  1166.     YY_BREAK
  1167. case 59:
  1168. # line 106 "lex.l"
  1169. { yylval.value = new Value(M_E);     return tVALUE; }
  1170.     YY_BREAK
  1171. case 60:
  1172. # line 107 "lex.l"
  1173. { yylval.value = new Value(M_SQRT2); return tVALUE; }
  1174.     YY_BREAK
  1175. case 61:
  1176. # line 108 "lex.l"
  1177. { yylval.value = new Value(M_LN2);   return tVALUE; }
  1178.     YY_BREAK
  1179. case 62:
  1180. # line 109 "lex.l"
  1181. { yylval.value = new Value(M_LN10);  return tVALUE; }
  1182.     YY_BREAK
  1183. case 63:
  1184. # line 110 "lex.l"
  1185. { yylval.value = new Value(1.0);     return tVALUE; }
  1186.     YY_BREAK
  1187. case 64:
  1188. # line 111 "lex.l"
  1189. { yylval.value = new Value(0.0);     return tVALUE; }
  1190.     YY_BREAK
  1191. case 65:
  1192. # line 112 "lex.l"
  1193. { return tTURTLEX; }
  1194.     YY_BREAK
  1195. case 66:
  1196. # line 113 "lex.l"
  1197. { return tTURTLEY; }
  1198.     YY_BREAK
  1199. case 67:
  1200. # line 114 "lex.l"
  1201. { return tTURTLEZ; }
  1202.     YY_BREAK
  1203. case 68:
  1204. # line 116 "lex.l"
  1205. { return tINFINITY; } 
  1206.     YY_BREAK
  1207. case 69:
  1208. # line 118 "lex.l"
  1209. { return tLSYSTEM; }
  1210.     YY_BREAK
  1211. case 70:
  1212. # line 119 "lex.l"
  1213. { return tTABLE; } 
  1214.     YY_BREAK
  1215. case 71:
  1216. # line 120 "lex.l"
  1217. { return tCONST; }  
  1218.     YY_BREAK
  1219. case 72:
  1220. # line 121 "lex.l"
  1221. { return tATTRIBUTES; }
  1222.     YY_BREAK
  1223. case 73:
  1224. # line 122 "lex.l"
  1225. { return tDERIVATION; }
  1226.     YY_BREAK
  1227. case 74:
  1228. # line 123 "lex.l"
  1229. { return tAXIOM; }
  1230.     YY_BREAK
  1231. case 75:
  1232. # line 124 "lex.l"
  1233. { return tPITCH; }
  1234.     YY_BREAK
  1235. case 76:
  1236. # line 125 "lex.l"
  1237. { return tROLL; }
  1238.     YY_BREAK
  1239. case 77:
  1240. # line 126 "lex.l"
  1241. { return tTURN;    }
  1242.     YY_BREAK
  1243. case 78:
  1244. # line 127 "lex.l"
  1245. { return tANGLE; }
  1246.     YY_BREAK
  1247. case 79:
  1248. # line 128 "lex.l"
  1249. { return tFORWARD; }
  1250.     YY_BREAK
  1251. case 80:
  1252. # line 129 "lex.l"
  1253. { return tRANDOMIZE; }
  1254.     YY_BREAK
  1255. case 81:
  1256. # line 130 "lex.l"
  1257. { return tTROPISM; }
  1258.     YY_BREAK
  1259. case 82:
  1260. # line 131 "lex.l"
  1261. { return tWEIGHT; }
  1262.     YY_BREAK
  1263. case 83:
  1264. # line 132 "lex.l"
  1265. { return tEYE; }
  1266.     YY_BREAK
  1267. case 84:
  1268. # line 133 "lex.l"
  1269. { return tLOOKAT; }
  1270.     YY_BREAK
  1271. case 85:
  1272. # line 134 "lex.l"
  1273. { return tUP; }
  1274.     YY_BREAK
  1275. case 86:
  1276. # line 135 "lex.l"
  1277. { return tFOV; }
  1278.     YY_BREAK
  1279. case 87:
  1280. # line 137 "lex.l"
  1281. { return tHULL;     }
  1282.     YY_BREAK
  1283. case 88:
  1284. # line 138 "lex.l"
  1285. { return tSPHERE;   }
  1286.     YY_BREAK
  1287. case 89:
  1288. # line 139 "lex.l"
  1289. { return tTRIANGLE; }
  1290.     YY_BREAK
  1291. case 90:
  1292. # line 140 "lex.l"
  1293. { return tPLANE;    }
  1294.     YY_BREAK
  1295. case 91:
  1296. # line 141 "lex.l"
  1297. { return tCYLINDER; }
  1298.     YY_BREAK
  1299. case 92:
  1300. # line 142 "lex.l"
  1301. { return tCONE;     }
  1302.     YY_BREAK
  1303. case 93:
  1304. # line 143 "lex.l"
  1305. { return tCONERES;  }
  1306.     YY_BREAK
  1307. case 94:
  1308. # line 144 "lex.l"
  1309. { return tSPHERERES;}
  1310.     YY_BREAK
  1311. case 95:
  1312. # line 146 "lex.l"
  1313. { return tTRANSLATE; }
  1314.     YY_BREAK
  1315. case 96:
  1316. # line 147 "lex.l"
  1317. { return tSCALE;     }
  1318.     YY_BREAK
  1319. case 97:
  1320. # line 148 "lex.l"
  1321. { return tROTATE;    }
  1322.     YY_BREAK
  1323. case 98:
  1324. # line 149 "lex.l"
  1325. { return tTRANSFORM; }
  1326.     YY_BREAK
  1327. case 99:
  1328. # line 151 "lex.l"
  1329. {
  1330.                  yylval.name = new rcString(yytext);
  1331.                  return tCONSTANT; 
  1332.                   }
  1333.     YY_BREAK
  1334. case 100:
  1335. # line 156 "lex.l"
  1336. { yylval.name = new rcString(yytext);
  1337.                 return tNAME; 
  1338.                   }
  1339.     YY_BREAK
  1340. case 101:
  1341. # line 160 "lex.l"
  1342. { rcString str(yytext);
  1343.          yylval.value = new Value(str(1, str.length()-1));
  1344.                  return tVALUE;
  1345.                }
  1346.     YY_BREAK
  1347. case 102:
  1348. # line 166 "lex.l"
  1349. case 103:
  1350. # line 167 "lex.l"
  1351. case 104:
  1352. # line 167 "lex.l"
  1353. {
  1354.                  yylval.value = new Value(atof(yytext));
  1355.                  return tVALUE;
  1356.            }
  1357.     YY_BREAK
  1358. case 105:
  1359. # line 172 "lex.l"
  1360. ;
  1361.     YY_BREAK
  1362. case 106:
  1363. # line 174 "lex.l"
  1364. lineno++;
  1365.     YY_BREAK
  1366. case 107:
  1367. # line 176 "lex.l"
  1368. { // eat the bad characters 
  1369.                 cerr << "[WARNING] : '" << *yytext 
  1370.              << "' is a bad character found at line "
  1371.                      << lineno << "\n";
  1372.               }
  1373.     YY_BREAK
  1374. case 108:
  1375. # line 183 "lex.l"
  1376. BEGIN(0);
  1377.     YY_BREAK
  1378. case 109:
  1379. # line 184 "lex.l"
  1380. {
  1381.                         yyerror("Found '/*' while looking for '*/'");
  1382.                         BEGIN(0);
  1383.                       }
  1384.     YY_BREAK
  1385. case 110:
  1386. # line 188 "lex.l"
  1387. lineno++;
  1388.     YY_BREAK
  1389. case 111:
  1390. # line 189 "lex.l"
  1391. ;
  1392.     YY_BREAK
  1393. case YY_STATE_EOF(C_COMMENT):
  1394. # line 190 "lex.l"
  1395. {
  1396.                         yyerror("EOF while looking for '*/'");
  1397.                         BEGIN(0);
  1398.                       }
  1399.     YY_BREAK
  1400. case 113:
  1401. # line 195 "lex.l"
  1402. {
  1403.                         lineno++;
  1404.                         BEGIN(0);
  1405.               }
  1406.     YY_BREAK
  1407. case 114:
  1408. # line 199 "lex.l"
  1409. ;
  1410.     YY_BREAK
  1411. case YY_STATE_EOF(CPP_COMMENT):
  1412. # line 200 "lex.l"
  1413. {
  1414.                         yyerror("Unexpected EOF");
  1415.                         BEGIN(0);
  1416.                       }
  1417.     YY_BREAK
  1418. case 116:
  1419. # line 204 "lex.l"
  1420. ECHO;
  1421.     YY_BREAK
  1422.         case YY_STATE_EOF(INITIAL):
  1423.         case YY_STATE_EOF(EXTFILE):
  1424.         yyterminate();
  1425.  
  1426.         case YY_END_OF_BUFFER:
  1427.         {
  1428.         /* amount of text matched not including the EOB char */
  1429.         int yy_amount_of_matched_text = yy_cp - yytext - 1;
  1430.  
  1431.         /* undo the effects of YY_DO_BEFORE_ACTION */
  1432.         *yy_cp = yy_hold_char;
  1433.  
  1434.         /* note that here we test for yy_c_buf_p "<=" to the position
  1435.          * of the first EOB in the buffer, since yy_c_buf_p will
  1436.          * already have been incremented past the NUL character
  1437.          * (since all states make transitions on EOB to the end-
  1438.          * of-buffer state).  Contrast this with the test in yyinput().
  1439.          */
  1440.         if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1441.             /* this was really a NUL */
  1442.             {
  1443.             yy_state_type yy_next_state;
  1444.  
  1445.             yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1446.  
  1447.             yy_current_state = yy_get_previous_state();
  1448.  
  1449.             /* okay, we're now positioned to make the
  1450.              * NUL transition.  We couldn't have
  1451.              * yy_get_previous_state() go ahead and do it
  1452.              * for us because it doesn't know how to deal
  1453.              * with the possibility of jamming (and we
  1454.              * don't want to build jamming into it because
  1455.              * then it will run more slowly)
  1456.              */
  1457.  
  1458.             yy_next_state = yy_try_NUL_trans( yy_current_state );
  1459.  
  1460.             yy_bp = yytext + YY_MORE_ADJ;
  1461.  
  1462.             if ( yy_next_state )
  1463.             {
  1464.             /* consume the NUL */
  1465.             yy_cp = ++yy_c_buf_p;
  1466.             yy_current_state = yy_next_state;
  1467.             goto yy_match;
  1468.             }
  1469.  
  1470.             else
  1471.             {
  1472.             goto yy_find_action;
  1473.             }
  1474.             }
  1475.  
  1476.         else switch ( yy_get_next_buffer() )
  1477.             {
  1478.             case EOB_ACT_END_OF_FILE:
  1479.             {
  1480.             yy_did_buffer_switch_on_eof = 0;
  1481.  
  1482.             if ( yywrap() )
  1483.                 {
  1484.                 /* note: because we've taken care in
  1485.                  * yy_get_next_buffer() to have set up yytext,
  1486.                  * we can now set up yy_c_buf_p so that if some
  1487.                  * total hoser (like flex itself) wants
  1488.                  * to call the scanner after we return the
  1489.                  * YY_NULL, it'll still work - another YY_NULL
  1490.                  * will get returned.
  1491.                  */
  1492.                 yy_c_buf_p = yytext + YY_MORE_ADJ;
  1493.  
  1494.                 yy_act = YY_STATE_EOF((yy_start - 1) / 2);
  1495.                 goto do_action;
  1496.                 }
  1497.  
  1498.             else
  1499.                 {
  1500.                 if ( ! yy_did_buffer_switch_on_eof )
  1501.                 YY_NEW_FILE;
  1502.                 }
  1503.             }
  1504.             break;
  1505.  
  1506.             case EOB_ACT_CONTINUE_SCAN:
  1507.             yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1508.  
  1509.             yy_current_state = yy_get_previous_state();
  1510.  
  1511.             yy_cp = yy_c_buf_p;
  1512.             yy_bp = yytext + YY_MORE_ADJ;
  1513.             goto yy_match;
  1514.  
  1515.             case EOB_ACT_LAST_MATCH:
  1516.             yy_c_buf_p =
  1517.                 &yy_current_buffer->yy_ch_buf[yy_n_chars];
  1518.  
  1519.             yy_current_state = yy_get_previous_state();
  1520.  
  1521.             yy_cp = yy_c_buf_p;
  1522.             yy_bp = yytext + YY_MORE_ADJ;
  1523.             goto yy_find_action;
  1524.             }
  1525.         break;
  1526.         }
  1527.  
  1528.         default:
  1529. #ifdef FLEX_DEBUG
  1530.         printf( "action # %d\n", yy_act );
  1531. #endif
  1532.         YY_FATAL_ERROR(
  1533.             "fatal flex scanner internal error--no action found" );
  1534.         }
  1535.     }
  1536.     }
  1537.  
  1538.  
  1539. /* yy_get_next_buffer - try to read in a new buffer
  1540.  *
  1541.  * synopsis
  1542.  *     int yy_get_next_buffer();
  1543.  *     
  1544.  * returns a code representing an action
  1545.  *     EOB_ACT_LAST_MATCH - 
  1546.  *     EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1547.  *     EOB_ACT_END_OF_FILE - end of file
  1548.  */
  1549.  
  1550. static int yy_get_next_buffer()
  1551.  
  1552.     {
  1553.     register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
  1554.     register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
  1555.     register int number_to_move, i;
  1556.     int ret_val;
  1557.  
  1558.     if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  1559.     YY_FATAL_ERROR(
  1560.         "fatal flex scanner internal error--end of buffer missed" );
  1561.  
  1562.     /* try to read more data */
  1563.  
  1564.     /* first move last chars to start of buffer */
  1565.     number_to_move = yy_c_buf_p - yytext;
  1566.  
  1567.     for ( i = 0; i < number_to_move; ++i )
  1568.     *(dest++) = *(source++);
  1569.  
  1570.     if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
  1571.     /* don't do the read, it's not guaranteed to return an EOF,
  1572.      * just force an EOF
  1573.      */
  1574.     yy_n_chars = 0;
  1575.  
  1576.     else
  1577.     {
  1578.     int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1;
  1579.  
  1580.     if ( num_to_read > YY_READ_BUF_SIZE )
  1581.         num_to_read = YY_READ_BUF_SIZE;
  1582.  
  1583.     else if ( num_to_read <= 0 )
  1584.         YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
  1585.  
  1586.     /* read in more data */
  1587.     YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  1588.           yy_n_chars, num_to_read );
  1589.     }
  1590.  
  1591.     if ( yy_n_chars == 0 )
  1592.     {
  1593.     if ( number_to_move == 1 )
  1594.         {
  1595.         ret_val = EOB_ACT_END_OF_FILE;
  1596.         yy_current_buffer->yy_eof_status = EOF_DONE;
  1597.         }
  1598.  
  1599.     else
  1600.         {
  1601.         ret_val = EOB_ACT_LAST_MATCH;
  1602.         yy_current_buffer->yy_eof_status = EOF_PENDING;
  1603.         }
  1604.     }
  1605.  
  1606.     else
  1607.     ret_val = EOB_ACT_CONTINUE_SCAN;
  1608.  
  1609.     yy_n_chars += number_to_move;
  1610.     yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1611.     yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1612.  
  1613.     /* yytext begins at the second character in yy_ch_buf; the first
  1614.      * character is the one which preceded it before reading in the latest
  1615.      * buffer; it needs to be kept around in case it's a newline, so
  1616.      * yy_get_previous_state() will have with '^' rules active
  1617.      */
  1618.  
  1619.     yytext = &yy_current_buffer->yy_ch_buf[1];
  1620.  
  1621.     return ( ret_val );
  1622.     }
  1623.  
  1624.  
  1625. /* yy_get_previous_state - get the state just before the EOB char was reached
  1626.  *
  1627.  * synopsis
  1628.  *     yy_state_type yy_get_previous_state();
  1629.  */
  1630.  
  1631. static yy_state_type yy_get_previous_state()
  1632.  
  1633.     {
  1634.     register yy_state_type yy_current_state;
  1635.     register YY_CHAR *yy_cp;
  1636.  
  1637.     register YY_CHAR *yy_bp = yytext;
  1638.  
  1639.     yy_current_state = yy_start;
  1640.     if ( yy_bp[-1] == '\n' )
  1641.     ++yy_current_state;
  1642.     yy_state_ptr = yy_state_buf;
  1643.     *yy_state_ptr++ = yy_current_state;
  1644.  
  1645.     for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  1646.     {
  1647.     register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
  1648.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1649.         {
  1650.         yy_current_state = yy_def[yy_current_state];
  1651.         if ( yy_current_state >= 311 )
  1652.         yy_c = yy_meta[yy_c];
  1653.         }
  1654.     yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1655.     *yy_state_ptr++ = yy_current_state;
  1656.     }
  1657.  
  1658.     return ( yy_current_state );
  1659.     }
  1660.  
  1661.  
  1662. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1663.  *
  1664.  * synopsis
  1665.  *     next_state = yy_try_NUL_trans( current_state );
  1666.  */
  1667.  
  1668. #ifdef YY_USE_PROTOS
  1669. static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
  1670. #else
  1671. static yy_state_type yy_try_NUL_trans( yy_current_state )
  1672. register yy_state_type yy_current_state;
  1673. #endif
  1674.  
  1675.     {
  1676.     register int yy_is_jam;
  1677.  
  1678.     register YY_CHAR yy_c = 1;
  1679.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1680.     {
  1681.     yy_current_state = yy_def[yy_current_state];
  1682.     if ( yy_current_state >= 311 )
  1683.         yy_c = yy_meta[yy_c];
  1684.     }
  1685.     yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1686.     *yy_state_ptr++ = yy_current_state;
  1687.     yy_is_jam = (yy_current_state == 310);
  1688.  
  1689.     return ( yy_is_jam ? 0 : yy_current_state );
  1690.     }
  1691.  
  1692.  
  1693. #ifdef YY_USE_PROTOS
  1694. static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
  1695. #else
  1696. static void yyunput( c, yy_bp )
  1697. YY_CHAR c;
  1698. register YY_CHAR *yy_bp;
  1699. #endif
  1700.  
  1701.     {
  1702.     register YY_CHAR *yy_cp = yy_c_buf_p;
  1703.  
  1704.     /* undo effects of setting up yytext */
  1705.     *yy_cp = yy_hold_char;
  1706.  
  1707.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1708.     { /* need to shift things up to make room */
  1709.     register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
  1710.     register YY_CHAR *dest =
  1711.         &yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
  1712.     register YY_CHAR *source =
  1713.         &yy_current_buffer->yy_ch_buf[number_to_move];
  1714.  
  1715.     while ( source > yy_current_buffer->yy_ch_buf )
  1716.         *--dest = *--source;
  1717.  
  1718.     yy_cp += dest - source;
  1719.     yy_bp += dest - source;
  1720.     yy_n_chars = yy_current_buffer->yy_buf_size;
  1721.  
  1722.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1723.         YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1724.     }
  1725.  
  1726.     if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
  1727.     yy_cp[-2] = '\n';
  1728.  
  1729.     *--yy_cp = c;
  1730.  
  1731.     /* note: the formal parameter *must* be called "yy_bp" for this
  1732.      *       macro to now work correctly
  1733.      */
  1734.     YY_DO_BEFORE_ACTION; /* set up yytext again */
  1735.     }
  1736.  
  1737.  
  1738. #ifdef __cplusplus
  1739. static int yyinput()
  1740. #else
  1741. static int input()
  1742. #endif
  1743.  
  1744.     {
  1745.     int c;
  1746.     YY_CHAR *yy_cp = yy_c_buf_p;
  1747.  
  1748.     *yy_cp = yy_hold_char;
  1749.  
  1750.     if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  1751.     {
  1752.     /* yy_c_buf_p now points to the character we want to return.
  1753.      * If this occurs *before* the EOB characters, then it's a
  1754.      * valid NUL; if not, then we've hit the end of the buffer.
  1755.      */
  1756.     if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1757.         /* this was really a NUL */
  1758.         *yy_c_buf_p = '\0';
  1759.  
  1760.     else
  1761.         { /* need more input */
  1762.         yytext = yy_c_buf_p;
  1763.         ++yy_c_buf_p;
  1764.  
  1765.         switch ( yy_get_next_buffer() )
  1766.         {
  1767.         case EOB_ACT_END_OF_FILE:
  1768.             {
  1769.             if ( yywrap() )
  1770.             {
  1771.             yy_c_buf_p = yytext + YY_MORE_ADJ;
  1772.             return ( EOF );
  1773.             }
  1774.  
  1775.             YY_NEW_FILE;
  1776.  
  1777. #ifdef __cplusplus
  1778.             return ( yyinput() );
  1779. #else
  1780.             return ( input() );
  1781. #endif
  1782.             }
  1783.             break;
  1784.  
  1785.         case EOB_ACT_CONTINUE_SCAN:
  1786.             yy_c_buf_p = yytext + YY_MORE_ADJ;
  1787.             break;
  1788.  
  1789.         case EOB_ACT_LAST_MATCH:
  1790. #ifdef __cplusplus
  1791.             YY_FATAL_ERROR( "unexpected last match in yyinput()" );
  1792. #else
  1793.             YY_FATAL_ERROR( "unexpected last match in input()" );
  1794. #endif
  1795.         }
  1796.         }
  1797.     }
  1798.  
  1799.     c = *yy_c_buf_p;
  1800.     yy_hold_char = *++yy_c_buf_p;
  1801.  
  1802.     return ( c );
  1803.     }
  1804.  
  1805.  
  1806. #ifdef YY_USE_PROTOS
  1807. void yyrestart( FILE *input_file )
  1808. #else
  1809. void yyrestart( input_file )
  1810. FILE *input_file;
  1811. #endif
  1812.  
  1813.     {
  1814.     yy_init_buffer( yy_current_buffer, input_file );
  1815.     yy_load_buffer_state();
  1816.     }
  1817.  
  1818.  
  1819. #ifdef YY_USE_PROTOS
  1820. void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  1821. #else
  1822. void yy_switch_to_buffer( new_buffer )
  1823. YY_BUFFER_STATE new_buffer;
  1824. #endif
  1825.  
  1826.     {
  1827.     if ( yy_current_buffer == new_buffer )
  1828.     return;
  1829.  
  1830.     if ( yy_current_buffer )
  1831.     {
  1832.     /* flush out information for old buffer */
  1833.     *yy_c_buf_p = yy_hold_char;
  1834.     yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  1835.     yy_current_buffer->yy_n_chars = yy_n_chars;
  1836.     }
  1837.  
  1838.     yy_current_buffer = new_buffer;
  1839.     yy_load_buffer_state();
  1840.  
  1841.     /* we don't actually know whether we did this switch during
  1842.      * EOF (yywrap()) processing, but the only time this flag
  1843.      * is looked at is after yywrap() is called, so it's safe
  1844.      * to go ahead and always set it.
  1845.      */
  1846.     yy_did_buffer_switch_on_eof = 1;
  1847.     }
  1848.  
  1849.  
  1850. #ifdef YY_USE_PROTOS
  1851. void yy_load_buffer_state( void )
  1852. #else
  1853. void yy_load_buffer_state()
  1854. #endif
  1855.  
  1856.     {
  1857.     yy_n_chars = yy_current_buffer->yy_n_chars;
  1858.     yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  1859.     yyin = yy_current_buffer->yy_input_file;
  1860.     yy_hold_char = *yy_c_buf_p;
  1861.     }
  1862.  
  1863.  
  1864. #ifdef YY_USE_PROTOS
  1865. YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  1866. #else
  1867. YY_BUFFER_STATE yy_create_buffer( file, size )
  1868. FILE *file;
  1869. int size;
  1870. #endif
  1871.  
  1872.     {
  1873.     YY_BUFFER_STATE b;
  1874.  
  1875.     b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
  1876.  
  1877.     if ( ! b )
  1878.     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1879.  
  1880.     b->yy_buf_size = size;
  1881.  
  1882.     /* yy_ch_buf has to be 2 characters longer than the size given because
  1883.      * we need to put in 2 end-of-buffer characters.
  1884.      */
  1885.     b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
  1886.  
  1887.     if ( ! b->yy_ch_buf )
  1888.     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1889.  
  1890.     yy_init_buffer( b, file );
  1891.  
  1892.     return ( b );
  1893.     }
  1894.  
  1895.  
  1896. #ifdef YY_USE_PROTOS
  1897. void yy_delete_buffer( YY_BUFFER_STATE b )
  1898. #else
  1899. void yy_delete_buffer( b )
  1900. YY_BUFFER_STATE b;
  1901. #endif
  1902.  
  1903.     {
  1904.     if ( b == yy_current_buffer )
  1905.     yy_current_buffer = (YY_BUFFER_STATE) 0;
  1906.  
  1907.     free( (char *) b->yy_ch_buf );
  1908.     free( (char *) b );
  1909.     }
  1910.  
  1911.  
  1912. #ifdef YY_USE_PROTOS
  1913. void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  1914. #else
  1915. void yy_init_buffer( b, file )
  1916. YY_BUFFER_STATE b;
  1917. FILE *file;
  1918. #endif
  1919.  
  1920.     {
  1921.     b->yy_input_file = file;
  1922.  
  1923.     /* we put in the '\n' and start reading from [1] so that an
  1924.      * initial match-at-newline will be true.
  1925.      */
  1926.  
  1927.     b->yy_ch_buf[0] = '\n';
  1928.     b->yy_n_chars = 1;
  1929.  
  1930.     /* we always need two end-of-buffer characters.  The first causes
  1931.      * a transition to the end-of-buffer state.  The second causes
  1932.      * a jam in that state.
  1933.      */
  1934.     b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1935.     b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
  1936.  
  1937.     b->yy_buf_pos = &b->yy_ch_buf[1];
  1938.  
  1939.     b->yy_eof_status = EOF_NOT_SEEN;
  1940.     }
  1941. # line 204 "lex.l"
  1942.  
  1943.