Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. #line 3 "arlex.c"
  3.  
  4. #define  YY_INT_ALIGNED short int
  5.  
  6. /* A lexical scanner generated by flex */
  7.  
  8. #define FLEX_SCANNER
  9. #define YY_FLEX_MAJOR_VERSION 2
  10. #define YY_FLEX_MINOR_VERSION 5
  11. #define YY_FLEX_SUBMINOR_VERSION 35
  12. #if YY_FLEX_SUBMINOR_VERSION > 0
  13. #define FLEX_BETA
  14. #endif
  15.  
  16. /* First, we deal with  platform-specific or compiler-specific issues. */
  17.  
  18. /* begin standard C headers. */
  19. #include <stdio.h>
  20. #include <string.h>
  21. #include <errno.h>
  22. #include <stdlib.h>
  23.  
  24. /* end standard C headers. */
  25.  
  26. /* flex integer type definitions */
  27.  
  28. #ifndef FLEXINT_H
  29. #define FLEXINT_H
  30.  
  31. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  32.  
  33. #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  34.  
  35. /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  36.  * if you want the limit (max/min) macros for int types.
  37.  */
  38. #ifndef __STDC_LIMIT_MACROS
  39. #define __STDC_LIMIT_MACROS 1
  40. #endif
  41.  
  42. #include <inttypes.h>
  43. typedef int8_t flex_int8_t;
  44. typedef uint8_t flex_uint8_t;
  45. typedef int16_t flex_int16_t;
  46. typedef uint16_t flex_uint16_t;
  47. typedef int32_t flex_int32_t;
  48. typedef uint32_t flex_uint32_t;
  49. typedef uint64_t flex_uint64_t;
  50. #else
  51. typedef signed char flex_int8_t;
  52. typedef short int flex_int16_t;
  53. typedef int flex_int32_t;
  54. typedef unsigned char flex_uint8_t;
  55. typedef unsigned short int flex_uint16_t;
  56. typedef unsigned int flex_uint32_t;
  57. #endif /* ! C99 */
  58.  
  59. /* Limits of integral types. */
  60. #ifndef INT8_MIN
  61. #define INT8_MIN               (-128)
  62. #endif
  63. #ifndef INT16_MIN
  64. #define INT16_MIN              (-32767-1)
  65. #endif
  66. #ifndef INT32_MIN
  67. #define INT32_MIN              (-2147483647-1)
  68. #endif
  69. #ifndef INT8_MAX
  70. #define INT8_MAX               (127)
  71. #endif
  72. #ifndef INT16_MAX
  73. #define INT16_MAX              (32767)
  74. #endif
  75. #ifndef INT32_MAX
  76. #define INT32_MAX              (2147483647)
  77. #endif
  78. #ifndef UINT8_MAX
  79. #define UINT8_MAX              (255U)
  80. #endif
  81. #ifndef UINT16_MAX
  82. #define UINT16_MAX             (65535U)
  83. #endif
  84. #ifndef UINT32_MAX
  85. #define UINT32_MAX             (4294967295U)
  86. #endif
  87.  
  88. #endif /* ! FLEXINT_H */
  89.  
  90. #ifdef __cplusplus
  91.  
  92. /* The "const" storage-class-modifier is valid. */
  93. #define YY_USE_CONST
  94.  
  95. #else   /* ! __cplusplus */
  96.  
  97. /* C99 requires __STDC__ to be defined as 1. */
  98. #if defined (__STDC__)
  99.  
  100. #define YY_USE_CONST
  101.  
  102. #endif  /* defined (__STDC__) */
  103. #endif  /* ! __cplusplus */
  104.  
  105. #ifdef YY_USE_CONST
  106. #define yyconst const
  107. #else
  108. #define yyconst
  109. #endif
  110.  
  111. /* Returned upon end-of-file. */
  112. #define YY_NULL 0
  113.  
  114. /* Promotes a possibly negative, possibly signed char to an unsigned
  115.  * integer for use as an array index.  If the signed char is negative,
  116.  * we want to instead treat it as an 8-bit unsigned char, hence the
  117.  * double cast.
  118.  */
  119. #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  120.  
  121. /* Enter a start condition.  This macro really ought to take a parameter,
  122.  * but we do it the disgusting crufty way forced on us by the ()-less
  123.  * definition of BEGIN.
  124.  */
  125. #define BEGIN (yy_start) = 1 + 2 *
  126.  
  127. /* Translate the current start state into a value that can be later handed
  128.  * to BEGIN to return to the state.  The YYSTATE alias is for lex
  129.  * compatibility.
  130.  */
  131. #define YY_START (((yy_start) - 1) / 2)
  132. #define YYSTATE YY_START
  133.  
  134. /* Action number for EOF rule of a given start state. */
  135. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  136.  
  137. /* Special action meaning "start processing a new file". */
  138. #define YY_NEW_FILE yyrestart(yyin  )
  139.  
  140. #define YY_END_OF_BUFFER_CHAR 0
  141.  
  142. /* Size of default input buffer. */
  143. #ifndef YY_BUF_SIZE
  144. #define YY_BUF_SIZE 16384
  145. #endif
  146.  
  147. /* The state buf must be large enough to hold one state per character in the main buffer.
  148.  */
  149. #define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  150.  
  151. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  152. #define YY_TYPEDEF_YY_BUFFER_STATE
  153. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  154. #endif
  155.  
  156. #ifndef YY_TYPEDEF_YY_SIZE_T
  157. #define YY_TYPEDEF_YY_SIZE_T
  158. typedef size_t yy_size_t;
  159. #endif
  160.  
  161. extern yy_size_t yyleng;
  162.  
  163. extern FILE *yyin, *yyout;
  164.  
  165. #define EOB_ACT_CONTINUE_SCAN 0
  166. #define EOB_ACT_END_OF_FILE 1
  167. #define EOB_ACT_LAST_MATCH 2
  168.  
  169.     #define YY_LESS_LINENO(n)
  170.    
  171. /* Return all but the first "n" matched characters back to the input stream. */
  172. #define yyless(n) \
  173.         do \
  174.                 { \
  175.                 /* Undo effects of setting up yytext. */ \
  176.         int yyless_macro_arg = (n); \
  177.         YY_LESS_LINENO(yyless_macro_arg);\
  178.                 *yy_cp = (yy_hold_char); \
  179.                 YY_RESTORE_YY_MORE_OFFSET \
  180.                 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  181.                 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  182.                 } \
  183.         while ( 0 )
  184.  
  185. #define unput(c) yyunput( c, (yytext_ptr)  )
  186.  
  187. #ifndef YY_STRUCT_YY_BUFFER_STATE
  188. #define YY_STRUCT_YY_BUFFER_STATE
  189. struct yy_buffer_state
  190.         {
  191.         FILE *yy_input_file;
  192.  
  193.         char *yy_ch_buf;                /* input buffer */
  194.         char *yy_buf_pos;               /* current position in input buffer */
  195.  
  196.         /* Size of input buffer in bytes, not including room for EOB
  197.          * characters.
  198.          */
  199.         yy_size_t yy_buf_size;
  200.  
  201.         /* Number of characters read into yy_ch_buf, not including EOB
  202.          * characters.
  203.          */
  204.         yy_size_t yy_n_chars;
  205.  
  206.         /* Whether we "own" the buffer - i.e., we know we created it,
  207.          * and can realloc() it to grow it, and should free() it to
  208.          * delete it.
  209.          */
  210.         int yy_is_our_buffer;
  211.  
  212.         /* Whether this is an "interactive" input source; if so, and
  213.          * if we're using stdio for input, then we want to use getc()
  214.          * instead of fread(), to make sure we stop fetching input after
  215.          * each newline.
  216.          */
  217.         int yy_is_interactive;
  218.  
  219.         /* Whether we're considered to be at the beginning of a line.
  220.          * If so, '^' rules will be active on the next match, otherwise
  221.          * not.
  222.          */
  223.         int yy_at_bol;
  224.  
  225.     int yy_bs_lineno; /**< The line count. */
  226.     int yy_bs_column; /**< The column count. */
  227.    
  228.         /* Whether to try to fill the input buffer when we reach the
  229.          * end of it.
  230.          */
  231.         int yy_fill_buffer;
  232.  
  233.         int yy_buffer_status;
  234.  
  235. #define YY_BUFFER_NEW 0
  236. #define YY_BUFFER_NORMAL 1
  237.         /* When an EOF's been seen but there's still some text to process
  238.          * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  239.          * shouldn't try reading from the input source any more.  We might
  240.          * still have a bunch of tokens to match, though, because of
  241.          * possible backing-up.
  242.          *
  243.          * When we actually see the EOF, we change the status to "new"
  244.          * (via yyrestart()), so that the user can continue scanning by
  245.          * just pointing yyin at a new input file.
  246.          */
  247. #define YY_BUFFER_EOF_PENDING 2
  248.  
  249.         };
  250. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  251.  
  252. /* Stack of input buffers. */
  253. static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  254. static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  255. static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  256.  
  257. /* We provide macros for accessing buffer states in case in the
  258.  * future we want to put the buffer states in a more general
  259.  * "scanner state".
  260.  *
  261.  * Returns the top of the stack, or NULL.
  262.  */
  263. #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  264.                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  265.                           : NULL)
  266.  
  267. /* Same as previous macro, but useful when we know that the buffer stack is not
  268.  * NULL or when we need an lvalue. For internal use only.
  269.  */
  270. #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  271.  
  272. /* yy_hold_char holds the character lost when yytext is formed. */
  273. static char yy_hold_char;
  274. static yy_size_t yy_n_chars;            /* number of characters read into yy_ch_buf */
  275. yy_size_t yyleng;
  276.  
  277. /* Points to current character in buffer. */
  278. static char *yy_c_buf_p = (char *) 0;
  279. static int yy_init = 0;         /* whether we need to initialize */
  280. static int yy_start = 0;        /* start state number */
  281.  
  282. /* Flag which is used to allow yywrap()'s to do buffer switches
  283.  * instead of setting up a fresh yyin.  A bit of a hack ...
  284.  */
  285. static int yy_did_buffer_switch_on_eof;
  286.  
  287. void yyrestart (FILE *input_file  );
  288. void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer  );
  289. YY_BUFFER_STATE yy_create_buffer (FILE *file,int size  );
  290. void yy_delete_buffer (YY_BUFFER_STATE b  );
  291. void yy_flush_buffer (YY_BUFFER_STATE b  );
  292. void yypush_buffer_state (YY_BUFFER_STATE new_buffer  );
  293. void yypop_buffer_state (void );
  294.  
  295. static void yyensure_buffer_stack (void );
  296. static void yy_load_buffer_state (void );
  297. static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file  );
  298.  
  299. #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  300.  
  301. YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size  );
  302. YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str  );
  303. YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len  );
  304.  
  305. void *yyalloc (yy_size_t  );
  306. void *yyrealloc (void *,yy_size_t  );
  307. void yyfree (void *  );
  308.  
  309. #define yy_new_buffer yy_create_buffer
  310.  
  311. #define yy_set_interactive(is_interactive) \
  312.         { \
  313.         if ( ! YY_CURRENT_BUFFER ){ \
  314.         yyensure_buffer_stack (); \
  315.                 YY_CURRENT_BUFFER_LVALUE =    \
  316.             yy_create_buffer(yyin,YY_BUF_SIZE ); \
  317.         } \
  318.         YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  319.         }
  320.  
  321. #define yy_set_bol(at_bol) \
  322.         { \
  323.         if ( ! YY_CURRENT_BUFFER ){\
  324.         yyensure_buffer_stack (); \
  325.                 YY_CURRENT_BUFFER_LVALUE =    \
  326.             yy_create_buffer(yyin,YY_BUF_SIZE ); \
  327.         } \
  328.         YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  329.         }
  330.  
  331. #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  332.  
  333. /* Begin user sect3 */
  334.  
  335. typedef unsigned char YY_CHAR;
  336.  
  337. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  338.  
  339. typedef int yy_state_type;
  340.  
  341. extern int yylineno;
  342.  
  343. int yylineno = 1;
  344.  
  345. extern char *yytext;
  346. #define yytext_ptr yytext
  347.  
  348. static yy_state_type yy_get_previous_state (void );
  349. static yy_state_type yy_try_NUL_trans (yy_state_type current_state  );
  350. static int yy_get_next_buffer (void );
  351. static void yy_fatal_error (yyconst char msg[]  );
  352.  
  353. /* Done after the current pattern has been matched and before the
  354.  * corresponding action - sets up yytext.
  355.  */
  356. #define YY_DO_BEFORE_ACTION \
  357.         (yytext_ptr) = yy_bp; \
  358.         yyleng = (yy_size_t) (yy_cp - yy_bp); \
  359.         (yy_hold_char) = *yy_cp; \
  360.         *yy_cp = '\0'; \
  361.         (yy_c_buf_p) = yy_cp;
  362.  
  363. #define YY_NUM_RULES 40
  364. #define YY_END_OF_BUFFER 41
  365. /* This struct is not used in this scanner,
  366.    but its presence is necessary. */
  367. struct yy_trans_info
  368.         {
  369.         flex_int32_t yy_verify;
  370.         flex_int32_t yy_nxt;
  371.         };
  372. static yyconst flex_int16_t yy_accept[177] =
  373.     {   0,
  374.         0,    0,   41,   40,   39,   38,   35,   32,   33,   36,
  375.        40,   34,   37,   35,   35,   35,   35,   35,   35,   35,
  376.        35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
  377.        35,   35,   35,   35,   35,   35,   36,   31,   37,   35,
  378.        35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
  379.        35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
  380.        35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
  381.        35,   35,    7,   35,   35,   35,   35,   35,   35,   35,
  382.        35,   35,   35,   35,   35,   35,   22,   35,   35,   35,
  383.        35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
  384.  
  385.        35,   35,   35,   10,   11,   12,   35,   15,   35,   35,
  386.        35,   35,   35,   35,   35,   35,   35,   25,   26,   27,
  387.        35,   30,   35,   35,   35,    3,   35,   35,   35,   35,
  388.        35,   35,   35,   35,   35,   18,   35,   35,   35,   35,
  389.        35,   35,   35,    1,    2,    4,    5,   35,   35,   35,
  390.        35,   35,   16,   17,   19,   20,   35,   35,   35,   35,
  391.        35,   35,    8,    9,   13,   14,   35,   23,   24,   28,
  392.        29,   35,   35,    6,   21,    0
  393.     } ;
  394.  
  395. static yyconst flex_int32_t yy_ec[256] =
  396.     {   0,
  397.         1,    1,    1,    1,    1,    1,    1,    1,    1,    2,
  398.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  399.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  400.         1,    3,    1,    1,    1,    4,    1,    1,    1,    5,
  401.         6,    7,    8,    9,    4,    4,    4,    4,    4,    4,
  402.         4,    4,    4,    4,    4,    4,    4,    4,   10,    1,
  403.         1,    1,    1,    1,   11,   12,   13,   14,   15,   16,
  404.         4,   17,   18,    4,    4,   19,   20,   21,   22,   23,
  405.         4,   24,   25,   26,   27,   28,    4,   29,   30,    4,
  406.         1,    4,    1,    1,    4,    1,   31,   32,   33,   34,
  407.  
  408.        35,   36,    4,   37,   38,    4,    4,   39,   40,   41,
  409.        42,   43,    4,   44,   45,   46,   47,   48,    4,   49,
  410.        50,    4,    1,    1,    1,    1,    1,    1,    1,    1,
  411.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  412.         1,    1,    1,    1,    1,    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,    1,    1,    1,    1,    1,
  418.  
  419.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  420.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  421.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  422.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  423.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  424.         1,    1,    1,    1,    1
  425.     } ;
  426.  
  427. static yyconst flex_int32_t yy_meta[51] =
  428.     {   0,
  429.         1,    2,    1,    3,    1,    1,    1,    1,    1,    1,
  430.         3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
  431.         3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
  432.         3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
  433.         3,    3,    3,    3,    3,    3,    3,    3,    3,    3
  434.     } ;
  435.  
  436. static yyconst flex_int16_t yy_base[180] =
  437.     {   0,
  438.         0,    0,  193,  194,  194,  194,    0,  194,  194,    0,
  439.       190,  194,    0,  177,   32,   37,   32,  163,  174,  170,
  440.       164,  171,  174,  169,  149,   15,   22,   17,  135,  146,
  441.       142,  136,  143,  146,  141,    0,    0,  194,    0,  161,
  442.       159,  158,  153,  147,  156,  143,  149,  148,  141,  150,
  443.       141,  135,  138,  127,  125,  124,  119,  113,  122,  109,
  444.       115,  114,  107,  116,  107,  101,  104,   43,  136,  135,
  445.       130,  129,    0,  119,  123,  118,  114,  118,  119,  122,
  446.       124,   25,  104,  103,   98,   97,    0,   87,   91,   86,
  447.        82,   86,   87,   90,   92,  105,  100,   97,   94,   93,
  448.  
  449.       105,  106,  102,    0,    0,    0,  104,    0,   92,   75,
  450.        70,   67,   64,   63,   75,   76,   72,    0,    0,    0,
  451.        74,    0,   62,   91,   88,    0,   86,   85,   73,   85,
  452.        79,   83,   70,   62,   59,    0,   57,   56,   44,   56,
  453.        50,   54,   41,    0,    0,    0,    0,   63,   58,   59,
  454.        67,   66,    0,    0,    0,    0,   38,   33,   34,   42,
  455.        41,   51,    0,    0,    0,    0,   30,    0,    0,    0,
  456.         0,   43,   21,    0,    0,  194,   65,   66,   69
  457.     } ;
  458.  
  459. static yyconst flex_int16_t yy_def[180] =
  460.     {   0,
  461.       176,    1,  176,  176,  176,  176,  177,  176,  176,  178,
  462.       176,  176,  179,  177,  177,  177,  177,  177,  177,  177,
  463.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  464.       177,  177,  177,  177,  177,  177,  178,  176,  179,  177,
  465.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  466.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  467.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  468.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  469.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  470.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  471.  
  472.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  473.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  474.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  475.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  476.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  477.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  478.       177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
  479.       177,  177,  177,  177,  177,    0,  176,  176,  176
  480.     } ;
  481.  
  482. static yyconst flex_int16_t yy_nxt[245] =
  483.     {   0,
  484.         4,    5,    6,    7,    8,    9,   10,   11,   12,   13,
  485.        14,    7,   15,   16,   17,   18,   19,    7,   20,    7,
  486.         7,   21,    7,   22,   23,    7,    7,   24,    7,    7,
  487.        25,    7,   26,   27,   28,   29,   30,    7,   31,    7,
  488.         7,   32,    7,   33,   34,    7,    7,   35,    7,    7,
  489.        41,   43,   45,   55,   44,   42,   57,   59,   56,   58,
  490.        46,   96,   97,  110,  111,   60,   37,   36,   37,   39,
  491.       175,   39,  174,  173,  172,  171,  170,  169,  168,  167,
  492.       166,  165,  164,  163,  162,  161,  160,  159,  158,  157,
  493.       156,  155,  154,  153,  152,  151,  150,  149,  148,  147,
  494.  
  495.       146,  145,  144,  143,  142,  141,  140,  139,  138,  137,
  496.       136,  135,  134,  133,  132,  131,  130,  129,  128,  127,
  497.       126,  125,  124,  123,  122,  121,  120,  119,  118,  117,
  498.       116,  115,  114,  113,  112,  109,  108,  107,  106,  105,
  499.       104,  103,  102,  101,  100,   99,   98,   95,   94,   93,
  500.        92,   91,   90,   89,   88,   87,   86,   85,   84,   83,
  501.        82,   81,   80,   79,   78,   77,   76,   75,   74,   73,
  502.        72,   71,   70,   69,   68,   67,   66,   65,   64,   63,
  503.        62,   61,   54,   53,   52,   51,   50,   49,   48,   47,
  504.        40,   38,  176,    3,  176,  176,  176,  176,  176,  176,
  505.  
  506.       176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  507.       176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  508.       176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  509.       176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  510.       176,  176,  176,  176
  511.     } ;
  512.  
  513. static yyconst flex_int16_t yy_chk[245] =
  514.     {   0,
  515.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  516.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  517.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  518.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  519.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  520.        15,   16,   17,   26,   16,   15,   27,   28,   26,   27,
  521.        17,   68,   68,   82,   82,   28,  178,  177,  178,  179,
  522.       173,  179,  172,  167,  162,  161,  160,  159,  158,  157,
  523.       152,  151,  150,  149,  148,  143,  142,  141,  140,  139,
  524.       138,  137,  135,  134,  133,  132,  131,  130,  129,  128,
  525.  
  526.       127,  125,  124,  123,  121,  117,  116,  115,  114,  113,
  527.       112,  111,  110,  109,  107,  103,  102,  101,  100,   99,
  528.        98,   97,   96,   95,   94,   93,   92,   91,   90,   89,
  529.        88,   86,   85,   84,   83,   81,   80,   79,   78,   77,
  530.        76,   75,   74,   72,   71,   70,   69,   67,   66,   65,
  531.        64,   63,   62,   61,   60,   59,   58,   57,   56,   55,
  532.        54,   53,   52,   51,   50,   49,   48,   47,   46,   45,
  533.        44,   43,   42,   41,   40,   35,   34,   33,   32,   31,
  534.        30,   29,   25,   24,   23,   22,   21,   20,   19,   18,
  535.        14,   11,    3,  176,  176,  176,  176,  176,  176,  176,
  536.  
  537.       176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  538.       176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  539.       176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  540.       176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  541.       176,  176,  176,  176
  542.     } ;
  543.  
  544. static yy_state_type yy_last_accepting_state;
  545. static char *yy_last_accepting_cpos;
  546.  
  547. extern int yy_flex_debug;
  548. int yy_flex_debug = 0;
  549.  
  550. /* The intent behind this definition is that it'll catch
  551.  * any uses of REJECT which flex missed.
  552.  */
  553. #define REJECT reject_used_but_not_detected
  554. #define yymore() yymore_used_but_not_detected
  555. #define YY_MORE_ADJ 0
  556. #define YY_RESTORE_YY_MORE_OFFSET
  557. char *yytext;
  558. #line 1 "arlex.l"
  559. #define YY_NO_INPUT 1
  560. #line 4 "arlex.l"
  561. /* arlex.l - Strange script language lexer */
  562.  
  563. /* Copyright 1992, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2011
  564.    Free Software Foundation, Inc.
  565.  
  566.    This file is part of GNU Binutils.
  567.  
  568.    This program is free software; you can redistribute it and/or modify
  569.    it under the terms of the GNU General Public License as published by
  570.    the Free Software Foundation; either version 3 of the License, or
  571.    (at your option) any later version.
  572.  
  573.    This program is distributed in the hope that it will be useful,
  574.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  575.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  576.    GNU General Public License for more details.
  577.  
  578.    You should have received a copy of the GNU General Public License
  579.    along with this program; if not, write to the Free Software
  580.    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  581.    MA 02110-1301, USA.  */
  582.  
  583.  
  584. /* Contributed by Steve Chamberlain <sac@cygnus.com>.  */
  585.  
  586. #define DONTDECLARE_MALLOC
  587. #include "ansidecl.h"
  588. #include "libiberty.h"
  589. #include "arparse.h"
  590.  
  591. #ifndef YY_NO_UNPUT
  592. #define YY_NO_UNPUT
  593. #endif
  594.  
  595. extern int yylex (void);
  596.  
  597. int linenumber;
  598. #line 599 "arlex.c"
  599.  
  600. #define INITIAL 0
  601.  
  602. #ifndef YY_NO_UNISTD_H
  603. /* Special case for "unistd.h", since it is non-ANSI. We include it way
  604.  * down here because we want the user's section 1 to have been scanned first.
  605.  * The user has a chance to override it with an option.
  606.  */
  607. #include <unistd.h>
  608. #endif
  609.  
  610. #ifndef YY_EXTRA_TYPE
  611. #define YY_EXTRA_TYPE void *
  612. #endif
  613.  
  614. static int yy_init_globals (void );
  615.  
  616. /* Accessor methods to globals.
  617.    These are made visible to non-reentrant scanners for convenience. */
  618.  
  619. int yylex_destroy (void );
  620.  
  621. int yyget_debug (void );
  622.  
  623. void yyset_debug (int debug_flag  );
  624.  
  625. YY_EXTRA_TYPE yyget_extra (void );
  626.  
  627. void yyset_extra (YY_EXTRA_TYPE user_defined  );
  628.  
  629. FILE *yyget_in (void );
  630.  
  631. void yyset_in  (FILE * in_str  );
  632.  
  633. FILE *yyget_out (void );
  634.  
  635. void yyset_out  (FILE * out_str  );
  636.  
  637. yy_size_t yyget_leng (void );
  638.  
  639. char *yyget_text (void );
  640.  
  641. int yyget_lineno (void );
  642.  
  643. void yyset_lineno (int line_number  );
  644.  
  645. /* Macros after this point can all be overridden by user definitions in
  646.  * section 1.
  647.  */
  648.  
  649. #ifndef YY_SKIP_YYWRAP
  650. #ifdef __cplusplus
  651. extern "C" int yywrap (void );
  652. #else
  653. extern int yywrap (void );
  654. #endif
  655. #endif
  656.  
  657. #ifndef yytext_ptr
  658. static void yy_flex_strncpy (char *,yyconst char *,int );
  659. #endif
  660.  
  661. #ifdef YY_NEED_STRLEN
  662. static int yy_flex_strlen (yyconst char * );
  663. #endif
  664.  
  665. #ifndef YY_NO_INPUT
  666.  
  667. #ifdef __cplusplus
  668. static int yyinput (void );
  669. #else
  670. static int input (void );
  671. #endif
  672.  
  673. #endif
  674.  
  675. /* Amount of stuff to slurp up with each read. */
  676. #ifndef YY_READ_BUF_SIZE
  677. #define YY_READ_BUF_SIZE 8192
  678. #endif
  679.  
  680. /* Copy whatever the last rule matched to the standard output. */
  681. #ifndef ECHO
  682. /* This used to be an fputs(), but since the string might contain NUL's,
  683.  * we now use fwrite().
  684.  */
  685. #define ECHO fwrite( yytext, yyleng, 1, yyout )
  686. #endif
  687.  
  688. /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  689.  * is returned in "result".
  690.  */
  691. #ifndef YY_INPUT
  692. #define YY_INPUT(buf,result,max_size) \
  693.         if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  694.                 { \
  695.                 int c = '*'; \
  696.                 yy_size_t n; \
  697.                 for ( n = 0; n < max_size && \
  698.                              (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  699.                         buf[n] = (char) c; \
  700.                 if ( c == '\n' ) \
  701.                         buf[n++] = (char) c; \
  702.                 if ( c == EOF && ferror( yyin ) ) \
  703.                         YY_FATAL_ERROR( "input in flex scanner failed" ); \
  704.                 result = n; \
  705.                 } \
  706.         else \
  707.                 { \
  708.                 errno=0; \
  709.                 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  710.                         { \
  711.                         if( errno != EINTR) \
  712.                                 { \
  713.                                 YY_FATAL_ERROR( "input in flex scanner failed" ); \
  714.                                 break; \
  715.                                 } \
  716.                         errno=0; \
  717.                         clearerr(yyin); \
  718.                         } \
  719.                 }\
  720. \
  721.  
  722. #endif
  723.  
  724. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  725.  * we don't want an extra ';' after the "return" because that will cause
  726.  * some compilers to complain about unreachable statements.
  727.  */
  728. #ifndef yyterminate
  729. #define yyterminate() return YY_NULL
  730. #endif
  731.  
  732. /* Number of entries by which start-condition stack grows. */
  733. #ifndef YY_START_STACK_INCR
  734. #define YY_START_STACK_INCR 25
  735. #endif
  736.  
  737. /* Report a fatal error. */
  738. #ifndef YY_FATAL_ERROR
  739. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  740. #endif
  741.  
  742. /* end tables serialization structures and prototypes */
  743.  
  744. /* Default declaration of generated scanner - a define so the user can
  745.  * easily add parameters.
  746.  */
  747. #ifndef YY_DECL
  748. #define YY_DECL_IS_OURS 1
  749.  
  750. extern int yylex (void);
  751.  
  752. #define YY_DECL int yylex (void)
  753. #endif /* !YY_DECL */
  754.  
  755. /* Code executed at the beginning of each rule, after yytext and yyleng
  756.  * have been set up.
  757.  */
  758. #ifndef YY_USER_ACTION
  759. #define YY_USER_ACTION
  760. #endif
  761.  
  762. /* Code executed at the end of each rule. */
  763. #ifndef YY_BREAK
  764. #define YY_BREAK break;
  765. #endif
  766.  
  767. #define YY_RULE_SETUP \
  768.         YY_USER_ACTION
  769.  
  770. /** The main scanner function which does all the work.
  771.  */
  772. YY_DECL
  773. {
  774.         register yy_state_type yy_current_state;
  775.         register char *yy_cp, *yy_bp;
  776.         register int yy_act;
  777.    
  778. #line 46 "arlex.l"
  779.  
  780.  
  781. #line 782 "arlex.c"
  782.  
  783.         if ( !(yy_init) )
  784.                 {
  785.                 (yy_init) = 1;
  786.  
  787. #ifdef YY_USER_INIT
  788.                 YY_USER_INIT;
  789. #endif
  790.  
  791.                 if ( ! (yy_start) )
  792.                         (yy_start) = 1; /* first start state */
  793.  
  794.                 if ( ! yyin )
  795.                         yyin = stdin;
  796.  
  797.                 if ( ! yyout )
  798.                         yyout = stdout;
  799.  
  800.                 if ( ! YY_CURRENT_BUFFER ) {
  801.                         yyensure_buffer_stack ();
  802.                         YY_CURRENT_BUFFER_LVALUE =
  803.                                 yy_create_buffer(yyin,YY_BUF_SIZE );
  804.                 }
  805.  
  806.                 yy_load_buffer_state( );
  807.                 }
  808.  
  809.         while ( 1 )             /* loops until end-of-file is reached */
  810.                 {
  811.                 yy_cp = (yy_c_buf_p);
  812.  
  813.                 /* Support of yytext. */
  814.                 *yy_cp = (yy_hold_char);
  815.  
  816.                 /* yy_bp points to the position in yy_ch_buf of the start of
  817.                  * the current run.
  818.                  */
  819.                 yy_bp = yy_cp;
  820.  
  821.                 yy_current_state = (yy_start);
  822. yy_match:
  823.                 do
  824.                         {
  825.                         register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  826.                         if ( yy_accept[yy_current_state] )
  827.                                 {
  828.                                 (yy_last_accepting_state) = yy_current_state;
  829.                                 (yy_last_accepting_cpos) = yy_cp;
  830.                                 }
  831.                         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  832.                                 {
  833.                                 yy_current_state = (int) yy_def[yy_current_state];
  834.                                 if ( yy_current_state >= 177 )
  835.                                         yy_c = yy_meta[(unsigned int) yy_c];
  836.                                 }
  837.                         yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  838.                         ++yy_cp;
  839.                         }
  840.                 while ( yy_base[yy_current_state] != 194 );
  841.  
  842. yy_find_action:
  843.                 yy_act = yy_accept[yy_current_state];
  844.                 if ( yy_act == 0 )
  845.                         { /* have to back up */
  846.                         yy_cp = (yy_last_accepting_cpos);
  847.                         yy_current_state = (yy_last_accepting_state);
  848.                         yy_act = yy_accept[yy_current_state];
  849.                         }
  850.  
  851.                 YY_DO_BEFORE_ACTION;
  852.  
  853. do_action:      /* This label is used only to access EOF actions. */
  854.  
  855.                 switch ( yy_act )
  856.         { /* beginning of action switch */
  857.                         case 0: /* must back up */
  858.                         /* undo the effects of YY_DO_BEFORE_ACTION */
  859.                         *yy_cp = (yy_hold_char);
  860.                         yy_cp = (yy_last_accepting_cpos);
  861.                         yy_current_state = (yy_last_accepting_state);
  862.                         goto yy_find_action;
  863.  
  864. case 1:
  865. YY_RULE_SETUP
  866. #line 48 "arlex.l"
  867. { return ADDLIB; }
  868.         YY_BREAK
  869. case 2:
  870. YY_RULE_SETUP
  871. #line 49 "arlex.l"
  872. { return ADDMOD; }
  873.         YY_BREAK
  874. case 3:
  875. YY_RULE_SETUP
  876. #line 50 "arlex.l"
  877. { return CLEAR; }
  878.         YY_BREAK
  879. case 4:
  880. YY_RULE_SETUP
  881. #line 51 "arlex.l"
  882. { return CREATE; }
  883.         YY_BREAK
  884. case 5:
  885. YY_RULE_SETUP
  886. #line 52 "arlex.l"
  887. { return DELETE; }
  888.         YY_BREAK
  889. case 6:
  890. YY_RULE_SETUP
  891. #line 53 "arlex.l"
  892. { return DIRECTORY; }
  893.         YY_BREAK
  894. case 7:
  895. YY_RULE_SETUP
  896. #line 54 "arlex.l"
  897. { return END; }
  898.         YY_BREAK
  899. case 8:
  900. YY_RULE_SETUP
  901. #line 55 "arlex.l"
  902. { return EXTRACT; }
  903.         YY_BREAK
  904. case 9:
  905. YY_RULE_SETUP
  906. #line 56 "arlex.l"
  907. { return FULLDIR; }
  908.         YY_BREAK
  909. case 10:
  910. YY_RULE_SETUP
  911. #line 57 "arlex.l"
  912. { return HELP; }
  913.         YY_BREAK
  914. case 11:
  915. YY_RULE_SETUP
  916. #line 58 "arlex.l"
  917. { return LIST; }
  918.         YY_BREAK
  919. case 12:
  920. YY_RULE_SETUP
  921. #line 59 "arlex.l"
  922. { return OPEN; }
  923.         YY_BREAK
  924. case 13:
  925. YY_RULE_SETUP
  926. #line 60 "arlex.l"
  927. { return REPLACE; }
  928.         YY_BREAK
  929. case 14:
  930. YY_RULE_SETUP
  931. #line 61 "arlex.l"
  932. { return VERBOSE; }
  933.         YY_BREAK
  934. case 15:
  935. YY_RULE_SETUP
  936. #line 62 "arlex.l"
  937. { return SAVE; }
  938.         YY_BREAK
  939. case 16:
  940. YY_RULE_SETUP
  941. #line 63 "arlex.l"
  942. { return ADDLIB; }
  943.         YY_BREAK
  944. case 17:
  945. YY_RULE_SETUP
  946. #line 64 "arlex.l"
  947. { return ADDMOD; }
  948.         YY_BREAK
  949. case 18:
  950. YY_RULE_SETUP
  951. #line 65 "arlex.l"
  952. { return CLEAR; }
  953.         YY_BREAK
  954. case 19:
  955. YY_RULE_SETUP
  956. #line 66 "arlex.l"
  957. { return CREATE; }
  958.         YY_BREAK
  959. case 20:
  960. YY_RULE_SETUP
  961. #line 67 "arlex.l"
  962. { return DELETE; }
  963.         YY_BREAK
  964. case 21:
  965. YY_RULE_SETUP
  966. #line 68 "arlex.l"
  967. { return DIRECTORY; }
  968.         YY_BREAK
  969. case 22:
  970. YY_RULE_SETUP
  971. #line 69 "arlex.l"
  972. { return END; }
  973.         YY_BREAK
  974. case 23:
  975. YY_RULE_SETUP
  976. #line 70 "arlex.l"
  977. { return EXTRACT; }
  978.         YY_BREAK
  979. case 24:
  980. YY_RULE_SETUP
  981. #line 71 "arlex.l"
  982. { return FULLDIR; }
  983.         YY_BREAK
  984. case 25:
  985. YY_RULE_SETUP
  986. #line 72 "arlex.l"
  987. { return HELP; }
  988.         YY_BREAK
  989. case 26:
  990. YY_RULE_SETUP
  991. #line 73 "arlex.l"
  992. { return LIST; }
  993.         YY_BREAK
  994. case 27:
  995. YY_RULE_SETUP
  996. #line 74 "arlex.l"
  997. { return OPEN; }
  998.         YY_BREAK
  999. case 28:
  1000. YY_RULE_SETUP
  1001. #line 75 "arlex.l"
  1002. { return REPLACE; }
  1003.         YY_BREAK
  1004. case 29:
  1005. YY_RULE_SETUP
  1006. #line 76 "arlex.l"
  1007. { return VERBOSE; }
  1008.         YY_BREAK
  1009. case 30:
  1010. YY_RULE_SETUP
  1011. #line 77 "arlex.l"
  1012. { return SAVE; }
  1013.         YY_BREAK
  1014. case 31:
  1015. /* rule 31 can match eol */
  1016. YY_RULE_SETUP
  1017. #line 78 "arlex.l"
  1018. { linenumber ++; }
  1019.         YY_BREAK
  1020. case 32:
  1021. YY_RULE_SETUP
  1022. #line 79 "arlex.l"
  1023. { return '('; }
  1024.         YY_BREAK
  1025. case 33:
  1026. YY_RULE_SETUP
  1027. #line 80 "arlex.l"
  1028. { return ')'; }
  1029.         YY_BREAK
  1030. case 34:
  1031. YY_RULE_SETUP
  1032. #line 81 "arlex.l"
  1033. { return ','; }
  1034.         YY_BREAK
  1035. case 35:
  1036. YY_RULE_SETUP
  1037. #line 82 "arlex.l"
  1038. {      
  1039.                 yylval.name =  xstrdup (yytext);
  1040.                 return FILENAME;
  1041.                 }
  1042.         YY_BREAK
  1043. case 36:
  1044. YY_RULE_SETUP
  1045. #line 86 "arlex.l"
  1046. { }
  1047.         YY_BREAK
  1048. case 37:
  1049. YY_RULE_SETUP
  1050. #line 87 "arlex.l"
  1051. { }
  1052.         YY_BREAK
  1053. case 38:
  1054. YY_RULE_SETUP
  1055. #line 88 "arlex.l"
  1056. { }
  1057.         YY_BREAK
  1058. case 39:
  1059. /* rule 39 can match eol */
  1060. YY_RULE_SETUP
  1061. #line 89 "arlex.l"
  1062. { linenumber ++; return NEWLINE; }     
  1063.         YY_BREAK
  1064. case 40:
  1065. YY_RULE_SETUP
  1066. #line 91 "arlex.l"
  1067. ECHO;
  1068.         YY_BREAK
  1069. #line 1070 "arlex.c"
  1070. case YY_STATE_EOF(INITIAL):
  1071.         yyterminate();
  1072.  
  1073.         case YY_END_OF_BUFFER:
  1074.                 {
  1075.                 /* Amount of text matched not including the EOB char. */
  1076.                 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  1077.  
  1078.                 /* Undo the effects of YY_DO_BEFORE_ACTION. */
  1079.                 *yy_cp = (yy_hold_char);
  1080.                 YY_RESTORE_YY_MORE_OFFSET
  1081.  
  1082.                 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  1083.                         {
  1084.                         /* We're scanning a new file or input source.  It's
  1085.                          * possible that this happened because the user
  1086.                          * just pointed yyin at a new source and called
  1087.                          * yylex().  If so, then we have to assure
  1088.                          * consistency between YY_CURRENT_BUFFER and our
  1089.                          * globals.  Here is the right place to do so, because
  1090.                          * this is the first action (other than possibly a
  1091.                          * back-up) that will match for the new input source.
  1092.                          */
  1093.                         (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1094.                         YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  1095.                         YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  1096.                         }
  1097.  
  1098.                 /* Note that here we test for yy_c_buf_p "<=" to the position
  1099.                  * of the first EOB in the buffer, since yy_c_buf_p will
  1100.                  * already have been incremented past the NUL character
  1101.                  * (since all states make transitions on EOB to the
  1102.                  * end-of-buffer state).  Contrast this with the test
  1103.                  * in input().
  1104.                  */
  1105.                 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  1106.                         { /* This was really a NUL. */
  1107.                         yy_state_type yy_next_state;
  1108.  
  1109.                         (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  1110.  
  1111.                         yy_current_state = yy_get_previous_state(  );
  1112.  
  1113.                         /* Okay, we're now positioned to make the NUL
  1114.                          * transition.  We couldn't have
  1115.                          * yy_get_previous_state() go ahead and do it
  1116.                          * for us because it doesn't know how to deal
  1117.                          * with the possibility of jamming (and we don't
  1118.                          * want to build jamming into it because then it
  1119.                          * will run more slowly).
  1120.                          */
  1121.  
  1122.                         yy_next_state = yy_try_NUL_trans( yy_current_state );
  1123.  
  1124.                         yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1125.  
  1126.                         if ( yy_next_state )
  1127.                                 {
  1128.                                 /* Consume the NUL. */
  1129.                                 yy_cp = ++(yy_c_buf_p);
  1130.                                 yy_current_state = yy_next_state;
  1131.                                 goto yy_match;
  1132.                                 }
  1133.  
  1134.                         else
  1135.                                 {
  1136.                                 yy_cp = (yy_c_buf_p);
  1137.                                 goto yy_find_action;
  1138.                                 }
  1139.                         }
  1140.  
  1141.                 else switch ( yy_get_next_buffer(  ) )
  1142.                         {
  1143.                         case EOB_ACT_END_OF_FILE:
  1144.                                 {
  1145.                                 (yy_did_buffer_switch_on_eof) = 0;
  1146.  
  1147.                                 if ( yywrap( ) )
  1148.                                         {
  1149.                                         /* Note: because we've taken care in
  1150.                                          * yy_get_next_buffer() to have set up
  1151.                                          * yytext, we can now set up
  1152.                                          * yy_c_buf_p so that if some total
  1153.                                          * hoser (like flex itself) wants to
  1154.                                          * call the scanner after we return the
  1155.                                          * YY_NULL, it'll still work - another
  1156.                                          * YY_NULL will get returned.
  1157.                                          */
  1158.                                         (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  1159.  
  1160.                                         yy_act = YY_STATE_EOF(YY_START);
  1161.                                         goto do_action;
  1162.                                         }
  1163.  
  1164.                                 else
  1165.                                         {
  1166.                                         if ( ! (yy_did_buffer_switch_on_eof) )
  1167.                                                 YY_NEW_FILE;
  1168.                                         }
  1169.                                 break;
  1170.                                 }
  1171.  
  1172.                         case EOB_ACT_CONTINUE_SCAN:
  1173.                                 (yy_c_buf_p) =
  1174.                                         (yytext_ptr) + yy_amount_of_matched_text;
  1175.  
  1176.                                 yy_current_state = yy_get_previous_state(  );
  1177.  
  1178.                                 yy_cp = (yy_c_buf_p);
  1179.                                 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1180.                                 goto yy_match;
  1181.  
  1182.                         case EOB_ACT_LAST_MATCH:
  1183.                                 (yy_c_buf_p) =
  1184.                                 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  1185.  
  1186.                                 yy_current_state = yy_get_previous_state(  );
  1187.  
  1188.                                 yy_cp = (yy_c_buf_p);
  1189.                                 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1190.                                 goto yy_find_action;
  1191.                         }
  1192.                 break;
  1193.                 }
  1194.  
  1195.         default:
  1196.                 YY_FATAL_ERROR(
  1197.                         "fatal flex scanner internal error--no action found" );
  1198.         } /* end of action switch */
  1199.                 } /* end of scanning one token */
  1200. } /* end of yylex */
  1201.  
  1202. /* yy_get_next_buffer - try to read in a new buffer
  1203.  *
  1204.  * Returns a code representing an action:
  1205.  *      EOB_ACT_LAST_MATCH -
  1206.  *      EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1207.  *      EOB_ACT_END_OF_FILE - end of file
  1208.  */
  1209. static int yy_get_next_buffer (void)
  1210. {
  1211.         register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  1212.         register char *source = (yytext_ptr);
  1213.         register int number_to_move, i;
  1214.         int ret_val;
  1215.  
  1216.         if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  1217.                 YY_FATAL_ERROR(
  1218.                 "fatal flex scanner internal error--end of buffer missed" );
  1219.  
  1220.         if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  1221.                 { /* Don't try to fill the buffer, so this is an EOF. */
  1222.                 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  1223.                         {
  1224.                         /* We matched a single character, the EOB, so
  1225.                          * treat this as a final EOF.
  1226.                          */
  1227.                         return EOB_ACT_END_OF_FILE;
  1228.                         }
  1229.  
  1230.                 else
  1231.                         {
  1232.                         /* We matched some text prior to the EOB, first
  1233.                          * process it.
  1234.                          */
  1235.                         return EOB_ACT_LAST_MATCH;
  1236.                         }
  1237.                 }
  1238.  
  1239.         /* Try to read more data. */
  1240.  
  1241.         /* First move last chars to start of buffer. */
  1242.         number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  1243.  
  1244.         for ( i = 0; i < number_to_move; ++i )
  1245.                 *(dest++) = *(source++);
  1246.  
  1247.         if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1248.                 /* don't do the read, it's not guaranteed to return an EOF,
  1249.                  * just force an EOF
  1250.                  */
  1251.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  1252.  
  1253.         else
  1254.                 {
  1255.                         yy_size_t num_to_read =
  1256.                         YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  1257.  
  1258.                 while ( num_to_read <= 0 )
  1259.                         { /* Not enough room in the buffer - grow it. */
  1260.  
  1261.                         /* just a shorter name for the current buffer */
  1262.                         YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
  1263.  
  1264.                         int yy_c_buf_p_offset =
  1265.                                 (int) ((yy_c_buf_p) - b->yy_ch_buf);
  1266.  
  1267.                         if ( b->yy_is_our_buffer )
  1268.                                 {
  1269.                                 yy_size_t new_size = b->yy_buf_size * 2;
  1270.  
  1271.                                 if ( new_size <= 0 )
  1272.                                         b->yy_buf_size += b->yy_buf_size / 8;
  1273.                                 else
  1274.                                         b->yy_buf_size *= 2;
  1275.  
  1276.                                 b->yy_ch_buf = (char *)
  1277.                                         /* Include room in for 2 EOB chars. */
  1278.                                         yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2  );
  1279.                                 }
  1280.                         else
  1281.                                 /* Can't grow it, we don't own it. */
  1282.                                 b->yy_ch_buf = 0;
  1283.  
  1284.                         if ( ! b->yy_ch_buf )
  1285.                                 YY_FATAL_ERROR(
  1286.                                 "fatal error - scanner input buffer overflow" );
  1287.  
  1288.                         (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
  1289.  
  1290.                         num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  1291.                                                 number_to_move - 1;
  1292.  
  1293.                         }
  1294.  
  1295.                 if ( num_to_read > YY_READ_BUF_SIZE )
  1296.                         num_to_read = YY_READ_BUF_SIZE;
  1297.  
  1298.                 /* Read in more data. */
  1299.                 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  1300.                         (yy_n_chars), num_to_read );
  1301.  
  1302.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1303.                 }
  1304.  
  1305.         if ( (yy_n_chars) == 0 )
  1306.                 {
  1307.                 if ( number_to_move == YY_MORE_ADJ )
  1308.                         {
  1309.                         ret_val = EOB_ACT_END_OF_FILE;
  1310.                         yyrestart(yyin  );
  1311.                         }
  1312.  
  1313.                 else
  1314.                         {
  1315.                         ret_val = EOB_ACT_LAST_MATCH;
  1316.                         YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  1317.                                 YY_BUFFER_EOF_PENDING;
  1318.                         }
  1319.                 }
  1320.  
  1321.         else
  1322.                 ret_val = EOB_ACT_CONTINUE_SCAN;
  1323.  
  1324.         if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  1325.                 /* Extend the array by 50%, plus the number we really need. */
  1326.                 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  1327.                 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size  );
  1328.                 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1329.                         YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  1330.         }
  1331.  
  1332.         (yy_n_chars) += number_to_move;
  1333.         YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  1334.         YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  1335.  
  1336.         (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  1337.  
  1338.         return ret_val;
  1339. }
  1340.  
  1341. /* yy_get_previous_state - get the state just before the EOB char was reached */
  1342.  
  1343.     static yy_state_type yy_get_previous_state (void)
  1344. {
  1345.         register yy_state_type yy_current_state;
  1346.         register char *yy_cp;
  1347.    
  1348.         yy_current_state = (yy_start);
  1349.  
  1350.         for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  1351.                 {
  1352.                 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1353.                 if ( yy_accept[yy_current_state] )
  1354.                         {
  1355.                         (yy_last_accepting_state) = yy_current_state;
  1356.                         (yy_last_accepting_cpos) = yy_cp;
  1357.                         }
  1358.                 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1359.                         {
  1360.                         yy_current_state = (int) yy_def[yy_current_state];
  1361.                         if ( yy_current_state >= 177 )
  1362.                                 yy_c = yy_meta[(unsigned int) yy_c];
  1363.                         }
  1364.                 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1365.                 }
  1366.  
  1367.         return yy_current_state;
  1368. }
  1369.  
  1370. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1371.  *
  1372.  * synopsis
  1373.  *      next_state = yy_try_NUL_trans( current_state );
  1374.  */
  1375.     static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
  1376. {
  1377.         register int yy_is_jam;
  1378.         register char *yy_cp = (yy_c_buf_p);
  1379.  
  1380.         register YY_CHAR yy_c = 1;
  1381.         if ( yy_accept[yy_current_state] )
  1382.                 {
  1383.                 (yy_last_accepting_state) = yy_current_state;
  1384.                 (yy_last_accepting_cpos) = yy_cp;
  1385.                 }
  1386.         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1387.                 {
  1388.                 yy_current_state = (int) yy_def[yy_current_state];
  1389.                 if ( yy_current_state >= 177 )
  1390.                         yy_c = yy_meta[(unsigned int) yy_c];
  1391.                 }
  1392.         yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1393.         yy_is_jam = (yy_current_state == 176);
  1394.  
  1395.         return yy_is_jam ? 0 : yy_current_state;
  1396. }
  1397.  
  1398. #ifndef YY_NO_INPUT
  1399. #ifdef __cplusplus
  1400.     static int yyinput (void)
  1401. #else
  1402.     static int input  (void)
  1403. #endif
  1404.  
  1405. {
  1406.         int c;
  1407.    
  1408.         *(yy_c_buf_p) = (yy_hold_char);
  1409.  
  1410.         if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  1411.                 {
  1412.                 /* yy_c_buf_p now points to the character we want to return.
  1413.                  * If this occurs *before* the EOB characters, then it's a
  1414.                  * valid NUL; if not, then we've hit the end of the buffer.
  1415.                  */
  1416.                 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  1417.                         /* This was really a NUL. */
  1418.                         *(yy_c_buf_p) = '\0';
  1419.  
  1420.                 else
  1421.                         { /* need more input */
  1422.                         yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
  1423.                         ++(yy_c_buf_p);
  1424.  
  1425.                         switch ( yy_get_next_buffer(  ) )
  1426.                                 {
  1427.                                 case EOB_ACT_LAST_MATCH:
  1428.                                         /* This happens because yy_g_n_b()
  1429.                                          * sees that we've accumulated a
  1430.                                          * token and flags that we need to
  1431.                                          * try matching the token before
  1432.                                          * proceeding.  But for input(),
  1433.                                          * there's no matching to consider.
  1434.                                          * So convert the EOB_ACT_LAST_MATCH
  1435.                                          * to EOB_ACT_END_OF_FILE.
  1436.                                          */
  1437.  
  1438.                                         /* Reset buffer status. */
  1439.                                         yyrestart(yyin );
  1440.  
  1441.                                         /*FALLTHROUGH*/
  1442.  
  1443.                                 case EOB_ACT_END_OF_FILE:
  1444.                                         {
  1445.                                         if ( yywrap( ) )
  1446.                                                 return 0;
  1447.  
  1448.                                         if ( ! (yy_did_buffer_switch_on_eof) )
  1449.                                                 YY_NEW_FILE;
  1450. #ifdef __cplusplus
  1451.                                         return yyinput();
  1452. #else
  1453.                                         return input();
  1454. #endif
  1455.                                         }
  1456.  
  1457.                                 case EOB_ACT_CONTINUE_SCAN:
  1458.                                         (yy_c_buf_p) = (yytext_ptr) + offset;
  1459.                                         break;
  1460.                                 }
  1461.                         }
  1462.                 }
  1463.  
  1464.         c = *(unsigned char *) (yy_c_buf_p);    /* cast for 8-bit char's */
  1465.         *(yy_c_buf_p) = '\0';   /* preserve yytext */
  1466.         (yy_hold_char) = *++(yy_c_buf_p);
  1467.  
  1468.         return c;
  1469. }
  1470. #endif  /* ifndef YY_NO_INPUT */
  1471.  
  1472. /** Immediately switch to a different input stream.
  1473.  * @param input_file A readable stream.
  1474.  *
  1475.  * @note This function does not reset the start condition to @c INITIAL .
  1476.  */
  1477.     void yyrestart  (FILE * input_file )
  1478. {
  1479.    
  1480.         if ( ! YY_CURRENT_BUFFER ){
  1481.         yyensure_buffer_stack ();
  1482.                 YY_CURRENT_BUFFER_LVALUE =
  1483.             yy_create_buffer(yyin,YY_BUF_SIZE );
  1484.         }
  1485.  
  1486.         yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  1487.         yy_load_buffer_state( );
  1488. }
  1489.  
  1490. /** Switch to a different input buffer.
  1491.  * @param new_buffer The new input buffer.
  1492.  *
  1493.  */
  1494.     void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
  1495. {
  1496.    
  1497.         /* TODO. We should be able to replace this entire function body
  1498.          * with
  1499.          *              yypop_buffer_state();
  1500.          *              yypush_buffer_state(new_buffer);
  1501.      */
  1502.         yyensure_buffer_stack ();
  1503.         if ( YY_CURRENT_BUFFER == new_buffer )
  1504.                 return;
  1505.  
  1506.         if ( YY_CURRENT_BUFFER )
  1507.                 {
  1508.                 /* Flush out information for old buffer. */
  1509.                 *(yy_c_buf_p) = (yy_hold_char);
  1510.                 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  1511.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1512.                 }
  1513.  
  1514.         YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1515.         yy_load_buffer_state( );
  1516.  
  1517.         /* We don't actually know whether we did this switch during
  1518.          * EOF (yywrap()) processing, but the only time this flag
  1519.          * is looked at is after yywrap() is called, so it's safe
  1520.          * to go ahead and always set it.
  1521.          */
  1522.         (yy_did_buffer_switch_on_eof) = 1;
  1523. }
  1524.  
  1525. static void yy_load_buffer_state  (void)
  1526. {
  1527.         (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1528.         (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  1529.         yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  1530.         (yy_hold_char) = *(yy_c_buf_p);
  1531. }
  1532.  
  1533. /** Allocate and initialize an input buffer state.
  1534.  * @param file A readable stream.
  1535.  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  1536.  *
  1537.  * @return the allocated buffer state.
  1538.  */
  1539.     YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
  1540. {
  1541.         YY_BUFFER_STATE b;
  1542.    
  1543.         b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
  1544.         if ( ! b )
  1545.                 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1546.  
  1547.         b->yy_buf_size = size;
  1548.  
  1549.         /* yy_ch_buf has to be 2 characters longer than the size given because
  1550.          * we need to put in 2 end-of-buffer characters.
  1551.          */
  1552.         b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2  );
  1553.         if ( ! b->yy_ch_buf )
  1554.                 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1555.  
  1556.         b->yy_is_our_buffer = 1;
  1557.  
  1558.         yy_init_buffer(b,file );
  1559.  
  1560.         return b;
  1561. }
  1562.  
  1563. /** Destroy the buffer.
  1564.  * @param b a buffer created with yy_create_buffer()
  1565.  *
  1566.  */
  1567.     void yy_delete_buffer (YY_BUFFER_STATE  b )
  1568. {
  1569.    
  1570.         if ( ! b )
  1571.                 return;
  1572.  
  1573.         if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  1574.                 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  1575.  
  1576.         if ( b->yy_is_our_buffer )
  1577.                 yyfree((void *) b->yy_ch_buf  );
  1578.  
  1579.         yyfree((void *) b  );
  1580. }
  1581.  
  1582. #ifndef __cplusplus
  1583. extern int isatty (int );
  1584. #endif /* __cplusplus */
  1585.    
  1586. /* Initializes or reinitializes a buffer.
  1587.  * This function is sometimes called more than once on the same buffer,
  1588.  * such as during a yyrestart() or at EOF.
  1589.  */
  1590.     static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file )
  1591.  
  1592. {
  1593.         int oerrno = errno;
  1594.    
  1595.         yy_flush_buffer(b );
  1596.  
  1597.         b->yy_input_file = file;
  1598.         b->yy_fill_buffer = 1;
  1599.  
  1600.     /* If b is the current buffer, then yy_init_buffer was _probably_
  1601.      * called from yyrestart() or through yy_get_next_buffer.
  1602.      * In that case, we don't want to reset the lineno or column.
  1603.      */
  1604.     if (b != YY_CURRENT_BUFFER){
  1605.         b->yy_bs_lineno = 1;
  1606.         b->yy_bs_column = 0;
  1607.     }
  1608.  
  1609.         b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  1610.    
  1611.         errno = oerrno;
  1612. }
  1613.  
  1614. /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  1615.  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  1616.  *
  1617.  */
  1618.     void yy_flush_buffer (YY_BUFFER_STATE  b )
  1619. {
  1620.         if ( ! b )
  1621.                 return;
  1622.  
  1623.         b->yy_n_chars = 0;
  1624.  
  1625.         /* We always need two end-of-buffer characters.  The first causes
  1626.          * a transition to the end-of-buffer state.  The second causes
  1627.          * a jam in that state.
  1628.          */
  1629.         b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  1630.         b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1631.  
  1632.         b->yy_buf_pos = &b->yy_ch_buf[0];
  1633.  
  1634.         b->yy_at_bol = 1;
  1635.         b->yy_buffer_status = YY_BUFFER_NEW;
  1636.  
  1637.         if ( b == YY_CURRENT_BUFFER )
  1638.                 yy_load_buffer_state( );
  1639. }
  1640.  
  1641. /** Pushes the new state onto the stack. The new state becomes
  1642.  *  the current state. This function will allocate the stack
  1643.  *  if necessary.
  1644.  *  @param new_buffer The new state.
  1645.  *  
  1646.  */
  1647. void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  1648. {
  1649.         if (new_buffer == NULL)
  1650.                 return;
  1651.  
  1652.         yyensure_buffer_stack();
  1653.  
  1654.         /* This block is copied from yy_switch_to_buffer. */
  1655.         if ( YY_CURRENT_BUFFER )
  1656.                 {
  1657.                 /* Flush out information for old buffer. */
  1658.                 *(yy_c_buf_p) = (yy_hold_char);
  1659.                 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  1660.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1661.                 }
  1662.  
  1663.         /* Only push if top exists. Otherwise, replace top. */
  1664.         if (YY_CURRENT_BUFFER)
  1665.                 (yy_buffer_stack_top)++;
  1666.         YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1667.  
  1668.         /* copied from yy_switch_to_buffer. */
  1669.         yy_load_buffer_state( );
  1670.         (yy_did_buffer_switch_on_eof) = 1;
  1671. }
  1672.  
  1673. /** Removes and deletes the top of the stack, if present.
  1674.  *  The next element becomes the new top.
  1675.  *  
  1676.  */
  1677. void yypop_buffer_state (void)
  1678. {
  1679.         if (!YY_CURRENT_BUFFER)
  1680.                 return;
  1681.  
  1682.         yy_delete_buffer(YY_CURRENT_BUFFER );
  1683.         YY_CURRENT_BUFFER_LVALUE = NULL;
  1684.         if ((yy_buffer_stack_top) > 0)
  1685.                 --(yy_buffer_stack_top);
  1686.  
  1687.         if (YY_CURRENT_BUFFER) {
  1688.                 yy_load_buffer_state( );
  1689.                 (yy_did_buffer_switch_on_eof) = 1;
  1690.         }
  1691. }
  1692.  
  1693. /* Allocates the stack if it does not exist.
  1694.  *  Guarantees space for at least one push.
  1695.  */
  1696. static void yyensure_buffer_stack (void)
  1697. {
  1698.         yy_size_t num_to_alloc;
  1699.    
  1700.         if (!(yy_buffer_stack)) {
  1701.  
  1702.                 /* First allocation is just for 2 elements, since we don't know if this
  1703.                  * scanner will even need a stack. We use 2 instead of 1 to avoid an
  1704.                  * immediate realloc on the next call.
  1705.          */
  1706.                 num_to_alloc = 1;
  1707.                 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  1708.                                                                 (num_to_alloc * sizeof(struct yy_buffer_state*)
  1709.                                                                 );
  1710.                 if ( ! (yy_buffer_stack) )
  1711.                         YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  1712.                                                                  
  1713.                 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  1714.                                
  1715.                 (yy_buffer_stack_max) = num_to_alloc;
  1716.                 (yy_buffer_stack_top) = 0;
  1717.                 return;
  1718.         }
  1719.  
  1720.         if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  1721.  
  1722.                 /* Increase the buffer to prepare for a possible push. */
  1723.                 int grow_size = 8 /* arbitrary grow size */;
  1724.  
  1725.                 num_to_alloc = (yy_buffer_stack_max) + grow_size;
  1726.                 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  1727.                                                                 ((yy_buffer_stack),
  1728.                                                                 num_to_alloc * sizeof(struct yy_buffer_state*)
  1729.                                                                 );
  1730.                 if ( ! (yy_buffer_stack) )
  1731.                         YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  1732.  
  1733.                 /* zero only the new slots.*/
  1734.                 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  1735.                 (yy_buffer_stack_max) = num_to_alloc;
  1736.         }
  1737. }
  1738.  
  1739. /** Setup the input buffer state to scan directly from a user-specified character buffer.
  1740.  * @param base the character buffer
  1741.  * @param size the size in bytes of the character buffer
  1742.  *
  1743.  * @return the newly allocated buffer state object.
  1744.  */
  1745. YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
  1746. {
  1747.         YY_BUFFER_STATE b;
  1748.    
  1749.         if ( size < 2 ||
  1750.              base[size-2] != YY_END_OF_BUFFER_CHAR ||
  1751.              base[size-1] != YY_END_OF_BUFFER_CHAR )
  1752.                 /* They forgot to leave room for the EOB's. */
  1753.                 return 0;
  1754.  
  1755.         b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
  1756.         if ( ! b )
  1757.                 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  1758.  
  1759.         b->yy_buf_size = size - 2;      /* "- 2" to take care of EOB's */
  1760.         b->yy_buf_pos = b->yy_ch_buf = base;
  1761.         b->yy_is_our_buffer = 0;
  1762.         b->yy_input_file = 0;
  1763.         b->yy_n_chars = b->yy_buf_size;
  1764.         b->yy_is_interactive = 0;
  1765.         b->yy_at_bol = 1;
  1766.         b->yy_fill_buffer = 0;
  1767.         b->yy_buffer_status = YY_BUFFER_NEW;
  1768.  
  1769.         yy_switch_to_buffer(b  );
  1770.  
  1771.         return b;
  1772. }
  1773.  
  1774. /** Setup the input buffer state to scan a string. The next call to yylex() will
  1775.  * scan from a @e copy of @a str.
  1776.  * @param yystr a NUL-terminated string to scan
  1777.  *
  1778.  * @return the newly allocated buffer state object.
  1779.  * @note If you want to scan bytes that may contain NUL values, then use
  1780.  *       yy_scan_bytes() instead.
  1781.  */
  1782. YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
  1783. {
  1784.    
  1785.         return yy_scan_bytes(yystr,strlen(yystr) );
  1786. }
  1787.  
  1788. /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  1789.  * scan from a @e copy of @a bytes.
  1790.  * @param bytes the byte buffer to scan
  1791.  * @param len the number of bytes in the buffer pointed to by @a bytes.
  1792.  *
  1793.  * @return the newly allocated buffer state object.
  1794.  */
  1795. YY_BUFFER_STATE yy_scan_bytes  (yyconst char * yybytes, yy_size_t  _yybytes_len )
  1796. {
  1797.         YY_BUFFER_STATE b;
  1798.         char *buf;
  1799.         yy_size_t n, i;
  1800.    
  1801.         /* Get memory for full buffer, including space for trailing EOB's. */
  1802.         n = _yybytes_len + 2;
  1803.         buf = (char *) yyalloc(n  );
  1804.         if ( ! buf )
  1805.                 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  1806.  
  1807.         for ( i = 0; i < _yybytes_len; ++i )
  1808.                 buf[i] = yybytes[i];
  1809.  
  1810.         buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  1811.  
  1812.         b = yy_scan_buffer(buf,n );
  1813.         if ( ! b )
  1814.                 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  1815.  
  1816.         /* It's okay to grow etc. this buffer, and we should throw it
  1817.          * away when we're done.
  1818.          */
  1819.         b->yy_is_our_buffer = 1;
  1820.  
  1821.         return b;
  1822. }
  1823.  
  1824. #ifndef YY_EXIT_FAILURE
  1825. #define YY_EXIT_FAILURE 2
  1826. #endif
  1827.  
  1828. static void yy_fatal_error (yyconst char* msg )
  1829. {
  1830.         (void) fprintf( stderr, "%s\n", msg );
  1831.         exit( YY_EXIT_FAILURE );
  1832. }
  1833.  
  1834. /* Redefine yyless() so it works in section 3 code. */
  1835.  
  1836. #undef yyless
  1837. #define yyless(n) \
  1838.         do \
  1839.                 { \
  1840.                 /* Undo effects of setting up yytext. */ \
  1841.         int yyless_macro_arg = (n); \
  1842.         YY_LESS_LINENO(yyless_macro_arg);\
  1843.                 yytext[yyleng] = (yy_hold_char); \
  1844.                 (yy_c_buf_p) = yytext + yyless_macro_arg; \
  1845.                 (yy_hold_char) = *(yy_c_buf_p); \
  1846.                 *(yy_c_buf_p) = '\0'; \
  1847.                 yyleng = yyless_macro_arg; \
  1848.                 } \
  1849.         while ( 0 )
  1850.  
  1851. /* Accessor  methods (get/set functions) to struct members. */
  1852.  
  1853. /** Get the current line number.
  1854.  *
  1855.  */
  1856. int yyget_lineno  (void)
  1857. {
  1858.        
  1859.     return yylineno;
  1860. }
  1861.  
  1862. /** Get the input stream.
  1863.  *
  1864.  */
  1865. FILE *yyget_in  (void)
  1866. {
  1867.         return yyin;
  1868. }
  1869.  
  1870. /** Get the output stream.
  1871.  *
  1872.  */
  1873. FILE *yyget_out  (void)
  1874. {
  1875.         return yyout;
  1876. }
  1877.  
  1878. /** Get the length of the current token.
  1879.  *
  1880.  */
  1881. yy_size_t yyget_leng  (void)
  1882. {
  1883.         return yyleng;
  1884. }
  1885.  
  1886. /** Get the current token.
  1887.  *
  1888.  */
  1889.  
  1890. char *yyget_text  (void)
  1891. {
  1892.         return yytext;
  1893. }
  1894.  
  1895. /** Set the current line number.
  1896.  * @param line_number
  1897.  *
  1898.  */
  1899. void yyset_lineno (int  line_number )
  1900. {
  1901.    
  1902.     yylineno = line_number;
  1903. }
  1904.  
  1905. /** Set the input stream. This does not discard the current
  1906.  * input buffer.
  1907.  * @param in_str A readable stream.
  1908.  *
  1909.  * @see yy_switch_to_buffer
  1910.  */
  1911. void yyset_in (FILE *  in_str )
  1912. {
  1913.         yyin = in_str ;
  1914. }
  1915.  
  1916. void yyset_out (FILE *  out_str )
  1917. {
  1918.         yyout = out_str ;
  1919. }
  1920.  
  1921. int yyget_debug  (void)
  1922. {
  1923.         return yy_flex_debug;
  1924. }
  1925.  
  1926. void yyset_debug (int  bdebug )
  1927. {
  1928.         yy_flex_debug = bdebug ;
  1929. }
  1930.  
  1931. static int yy_init_globals (void)
  1932. {
  1933.         /* Initialization is the same as for the non-reentrant scanner.
  1934.      * This function is called from yylex_destroy(), so don't allocate here.
  1935.      */
  1936.  
  1937.     (yy_buffer_stack) = 0;
  1938.     (yy_buffer_stack_top) = 0;
  1939.     (yy_buffer_stack_max) = 0;
  1940.     (yy_c_buf_p) = (char *) 0;
  1941.     (yy_init) = 0;
  1942.     (yy_start) = 0;
  1943.  
  1944. /* Defined in main.c */
  1945. #ifdef YY_STDINIT
  1946.     yyin = stdin;
  1947.     yyout = stdout;
  1948. #else
  1949.     yyin = (FILE *) 0;
  1950.     yyout = (FILE *) 0;
  1951. #endif
  1952.  
  1953.     /* For future reference: Set errno on error, since we are called by
  1954.      * yylex_init()
  1955.      */
  1956.     return 0;
  1957. }
  1958.  
  1959. /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  1960. int yylex_destroy  (void)
  1961. {
  1962.    
  1963.     /* Pop the buffer stack, destroying each element. */
  1964.         while(YY_CURRENT_BUFFER){
  1965.                 yy_delete_buffer(YY_CURRENT_BUFFER  );
  1966.                 YY_CURRENT_BUFFER_LVALUE = NULL;
  1967.                 yypop_buffer_state();
  1968.         }
  1969.  
  1970.         /* Destroy the stack itself. */
  1971.         yyfree((yy_buffer_stack) );
  1972.         (yy_buffer_stack) = NULL;
  1973.  
  1974.     /* Reset the globals. This is important in a non-reentrant scanner so the next time
  1975.      * yylex() is called, initialization will occur. */
  1976.     yy_init_globals( );
  1977.  
  1978.     return 0;
  1979. }
  1980.  
  1981. /*
  1982.  * Internal utility routines.
  1983.  */
  1984.  
  1985. #ifndef yytext_ptr
  1986. static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  1987. {
  1988.         register int i;
  1989.         for ( i = 0; i < n; ++i )
  1990.                 s1[i] = s2[i];
  1991. }
  1992. #endif
  1993.  
  1994. #ifdef YY_NEED_STRLEN
  1995. static int yy_flex_strlen (yyconst char * s )
  1996. {
  1997.         register int n;
  1998.         for ( n = 0; s[n]; ++n )
  1999.                 ;
  2000.  
  2001.         return n;
  2002. }
  2003. #endif
  2004.  
  2005. void *yyalloc (yy_size_t  size )
  2006. {
  2007.         return (void *) malloc( size );
  2008. }
  2009.  
  2010. void *yyrealloc  (void * ptr, yy_size_t  size )
  2011. {
  2012.         /* The cast to (char *) in the following accommodates both
  2013.          * implementations that use char* generic pointers, and those
  2014.          * that use void* generic pointers.  It works with the latter
  2015.          * because both ANSI C and C++ allow castless assignment from
  2016.          * any pointer type to void*, and deal with argument conversions
  2017.          * as though doing an assignment.
  2018.          */
  2019.         return (void *) realloc( (char *) ptr, size );
  2020. }
  2021.  
  2022. void yyfree (void * ptr )
  2023. {
  2024.         free( (char *) ptr );   /* see yyrealloc() for (char *) cast */
  2025. }
  2026.  
  2027. #define YYTABLES_NAME "yytables"
  2028.  
  2029. #line 91 "arlex.l"
  2030.  
  2031.  
  2032. #ifndef yywrap
  2033. /* Needed for lex, though not flex. */
  2034. int yywrap(void) { return 1; }
  2035. #endif
  2036.  
  2037.