Coverage Report

Created: 2026-09-14 06:43

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/LexerParser/cmFortranLexer.cxx
Line
Count
Source
1
#include "cmStandardLexer.h"
2
3
#define FLEXINT_H 1
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 6
11
#define YY_FLEX_SUBMINOR_VERSION 4
12
#if YY_FLEX_SUBMINOR_VERSION > 0
13
#define FLEX_BETA
14
#endif
15
16
#ifdef yy_create_buffer
17
#define cmFortran_yy_create_buffer_ALREADY_DEFINED
18
#else
19
0
#define yy_create_buffer cmFortran_yy_create_buffer
20
#endif
21
22
#ifdef yy_delete_buffer
23
#define cmFortran_yy_delete_buffer_ALREADY_DEFINED
24
#else
25
3.61k
#define yy_delete_buffer cmFortran_yy_delete_buffer
26
#endif
27
28
#ifdef yy_scan_buffer
29
#define cmFortran_yy_scan_buffer_ALREADY_DEFINED
30
#else
31
0
#define yy_scan_buffer cmFortran_yy_scan_buffer
32
#endif
33
34
#ifdef yy_scan_string
35
#define cmFortran_yy_scan_string_ALREADY_DEFINED
36
#else
37
#define yy_scan_string cmFortran_yy_scan_string
38
#endif
39
40
#ifdef yy_scan_bytes
41
#define cmFortran_yy_scan_bytes_ALREADY_DEFINED
42
#else
43
0
#define yy_scan_bytes cmFortran_yy_scan_bytes
44
#endif
45
46
#ifdef yy_init_buffer
47
#define cmFortran_yy_init_buffer_ALREADY_DEFINED
48
#else
49
14.5k
#define yy_init_buffer cmFortran_yy_init_buffer
50
#endif
51
52
#ifdef yy_flush_buffer
53
#define cmFortran_yy_flush_buffer_ALREADY_DEFINED
54
#else
55
14.5k
#define yy_flush_buffer cmFortran_yy_flush_buffer
56
#endif
57
58
#ifdef yy_load_buffer_state
59
#define cmFortran_yy_load_buffer_state_ALREADY_DEFINED
60
#else
61
29.1k
#define yy_load_buffer_state cmFortran_yy_load_buffer_state
62
#endif
63
64
#ifdef yy_switch_to_buffer
65
#define cmFortran_yy_switch_to_buffer_ALREADY_DEFINED
66
#else
67
0
#define yy_switch_to_buffer cmFortran_yy_switch_to_buffer
68
#endif
69
70
#ifdef yypush_buffer_state
71
#define cmFortran_yypush_buffer_state_ALREADY_DEFINED
72
#else
73
#define yypush_buffer_state cmFortran_yypush_buffer_state
74
#endif
75
76
#ifdef yypop_buffer_state
77
#define cmFortran_yypop_buffer_state_ALREADY_DEFINED
78
#else
79
3.61k
#define yypop_buffer_state cmFortran_yypop_buffer_state
80
#endif
81
82
#ifdef yyensure_buffer_stack
83
#define cmFortran_yyensure_buffer_stack_ALREADY_DEFINED
84
#else
85
10.9k
#define yyensure_buffer_stack cmFortran_yyensure_buffer_stack
86
#endif
87
88
#ifdef yylex
89
#define cmFortran_yylex_ALREADY_DEFINED
90
#else
91
#define yylex cmFortran_yylex
92
#endif
93
94
#ifdef yyrestart
95
#define cmFortran_yyrestart_ALREADY_DEFINED
96
#else
97
7.28k
#define yyrestart cmFortran_yyrestart
98
#endif
99
100
#ifdef yylex_init
101
#define cmFortran_yylex_init_ALREADY_DEFINED
102
#else
103
#define yylex_init cmFortran_yylex_init
104
#endif
105
106
#ifdef yylex_init_extra
107
#define cmFortran_yylex_init_extra_ALREADY_DEFINED
108
#else
109
#define yylex_init_extra cmFortran_yylex_init_extra
110
#endif
111
112
#ifdef yylex_destroy
113
#define cmFortran_yylex_destroy_ALREADY_DEFINED
114
#else
115
#define yylex_destroy cmFortran_yylex_destroy
116
#endif
117
118
#ifdef yyget_debug
119
#define cmFortran_yyget_debug_ALREADY_DEFINED
120
#else
121
#define yyget_debug cmFortran_yyget_debug
122
#endif
123
124
#ifdef yyset_debug
125
#define cmFortran_yyset_debug_ALREADY_DEFINED
126
#else
127
#define yyset_debug cmFortran_yyset_debug
128
#endif
129
130
#ifdef yyget_extra
131
#define cmFortran_yyget_extra_ALREADY_DEFINED
132
#else
133
#define yyget_extra cmFortran_yyget_extra
134
#endif
135
136
#ifdef yyset_extra
137
#define cmFortran_yyset_extra_ALREADY_DEFINED
138
#else
139
0
#define yyset_extra cmFortran_yyset_extra
140
#endif
141
142
#ifdef yyget_in
143
#define cmFortran_yyget_in_ALREADY_DEFINED
144
#else
145
#define yyget_in cmFortran_yyget_in
146
#endif
147
148
#ifdef yyset_in
149
#define cmFortran_yyset_in_ALREADY_DEFINED
150
#else
151
#define yyset_in cmFortran_yyset_in
152
#endif
153
154
#ifdef yyget_out
155
#define cmFortran_yyget_out_ALREADY_DEFINED
156
#else
157
#define yyget_out cmFortran_yyget_out
158
#endif
159
160
#ifdef yyset_out
161
#define cmFortran_yyset_out_ALREADY_DEFINED
162
#else
163
#define yyset_out cmFortran_yyset_out
164
#endif
165
166
#ifdef yyget_leng
167
#define cmFortran_yyget_leng_ALREADY_DEFINED
168
#else
169
#define yyget_leng cmFortran_yyget_leng
170
#endif
171
172
#ifdef yyget_text
173
#define cmFortran_yyget_text_ALREADY_DEFINED
174
#else
175
#define yyget_text cmFortran_yyget_text
176
#endif
177
178
#ifdef yyget_lineno
179
#define cmFortran_yyget_lineno_ALREADY_DEFINED
180
#else
181
#define yyget_lineno cmFortran_yyget_lineno
182
#endif
183
184
#ifdef yyset_lineno
185
#define cmFortran_yyset_lineno_ALREADY_DEFINED
186
#else
187
#define yyset_lineno cmFortran_yyset_lineno
188
#endif
189
190
#ifdef yyget_column
191
#define cmFortran_yyget_column_ALREADY_DEFINED
192
#else
193
#define yyget_column cmFortran_yyget_column
194
#endif
195
196
#ifdef yyset_column
197
#define cmFortran_yyset_column_ALREADY_DEFINED
198
#else
199
#define yyset_column cmFortran_yyset_column
200
#endif
201
202
#ifdef yywrap
203
#define cmFortran_yywrap_ALREADY_DEFINED
204
#else
205
7.28k
#define yywrap cmFortran_yywrap
206
#endif
207
208
#ifdef yyalloc
209
#define cmFortran_yyalloc_ALREADY_DEFINED
210
#else
211
21.7k
#define yyalloc cmFortran_yyalloc
212
#endif
213
214
#ifdef yyrealloc
215
#define cmFortran_yyrealloc_ALREADY_DEFINED
216
#else
217
3.80k
#define yyrealloc cmFortran_yyrealloc
218
#endif
219
220
#ifdef yyfree
221
#define cmFortran_yyfree_ALREADY_DEFINED
222
#else
223
25.4k
#define yyfree cmFortran_yyfree
224
#endif
225
226
/* First, we deal with  platform-specific or compiler-specific issues. */
227
228
/* begin standard C headers. */
229
#include <stdio.h>
230
#include <string.h>
231
#include <errno.h>
232
#include <stdlib.h>
233
234
/* end standard C headers. */
235
236
/* flex integer type definitions */
237
238
#ifndef FLEXINT_H
239
#define FLEXINT_H
240
241
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
242
243
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
244
245
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
246
 * if you want the limit (max/min) macros for int types.
247
 */
248
#ifndef __STDC_LIMIT_MACROS
249
#define __STDC_LIMIT_MACROS 1
250
#endif
251
252
#include <inttypes.h>
253
typedef int8_t flex_int8_t;
254
typedef uint8_t flex_uint8_t;
255
typedef int16_t flex_int16_t;
256
typedef uint16_t flex_uint16_t;
257
typedef int32_t flex_int32_t;
258
typedef uint32_t flex_uint32_t;
259
#else
260
typedef signed char flex_int8_t;
261
typedef short int flex_int16_t;
262
typedef int flex_int32_t;
263
typedef unsigned char flex_uint8_t;
264
typedef unsigned short int flex_uint16_t;
265
typedef unsigned int flex_uint32_t;
266
267
/* Limits of integral types. */
268
#ifndef INT8_MIN
269
#define INT8_MIN               (-128)
270
#endif
271
#ifndef INT16_MIN
272
#define INT16_MIN              (-32767-1)
273
#endif
274
#ifndef INT32_MIN
275
#define INT32_MIN              (-2147483647-1)
276
#endif
277
#ifndef INT8_MAX
278
#define INT8_MAX               (127)
279
#endif
280
#ifndef INT16_MAX
281
#define INT16_MAX              (32767)
282
#endif
283
#ifndef INT32_MAX
284
#define INT32_MAX              (2147483647)
285
#endif
286
#ifndef UINT8_MAX
287
#define UINT8_MAX              (255U)
288
#endif
289
#ifndef UINT16_MAX
290
#define UINT16_MAX             (65535U)
291
#endif
292
#ifndef UINT32_MAX
293
#define UINT32_MAX             (4294967295U)
294
#endif
295
296
#ifndef SIZE_MAX
297
#define SIZE_MAX               (~(size_t)0)
298
#endif
299
300
#endif /* ! C99 */
301
302
#endif /* ! FLEXINT_H */
303
304
/* begin standard C++ headers. */
305
306
/* TODO: this is always defined, so inline it */
307
#define yyconst const
308
309
#if defined(__GNUC__) && __GNUC__ >= 3
310
#define yynoreturn __attribute__((__noreturn__))
311
#else
312
#define yynoreturn
313
#endif
314
315
/* Returned upon end-of-file. */
316
3.61k
#define YY_NULL 0
317
318
/* Promotes a possibly negative, possibly signed char to an
319
 *   integer in range [0..255] for use as an array index.
320
 */
321
774M
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
322
323
/* An opaque pointer. */
324
#ifndef YY_TYPEDEF_YY_SCANNER_T
325
#define YY_TYPEDEF_YY_SCANNER_T
326
typedef void* yyscan_t;
327
#endif
328
329
/* For convenience, these vars (plus the bison vars far below)
330
   are macros in the reentrant scanner. */
331
58.1k
#define yyin yyg->yyin_r
332
14.4k
#define yyout yyg->yyout_r
333
9.19M
#define yyextra yyg->yyextra_r
334
45.4M
#define yyleng yyg->yyleng_r
335
22.9M
#define yytext yyg->yytext_r
336
0
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
337
0
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
338
0
#define yy_flex_debug yyg->yy_flex_debug_r
339
340
/* Enter a start condition.  This macro really ought to take a parameter,
341
 * but we do it the disgusting crufty way forced on us by the ()-less
342
 * definition of BEGIN.
343
 */
344
988k
#define BEGIN yyg->yy_start = 1 + 2 *
345
/* Translate the current start state into a value that can be later handed
346
 * to BEGIN to return to the state.  The YYSTATE alias is for lex
347
 * compatibility.
348
 */
349
494k
#define YY_START ((yyg->yy_start - 1) / 2)
350
#define YYSTATE YY_START
351
/* Action number for EOF rule of a given start state. */
352
43.5k
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
353
/* Special action meaning "start processing a new file". */
354
0
#define YY_NEW_FILE yyrestart( yyin , yyscanner )
355
69.9k
#define YY_END_OF_BUFFER_CHAR 0
356
357
/* Size of default input buffer. */
358
#ifndef YY_BUF_SIZE
359
#ifdef __ia64__
360
/* On IA-64, the buffer size is 16k, not 8k.
361
 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
362
 * Ditto for the __ia64__ case accordingly.
363
 */
364
#define YY_BUF_SIZE 32768
365
#else
366
0
#define YY_BUF_SIZE 16384
367
#endif /* __ia64__ */
368
#endif
369
370
/* The state buf must be large enough to hold one state per character in the main buffer.
371
 */
372
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
373
374
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
375
#define YY_TYPEDEF_YY_BUFFER_STATE
376
typedef struct yy_buffer_state *YY_BUFFER_STATE;
377
#endif
378
379
#ifndef YY_TYPEDEF_YY_SIZE_T
380
#define YY_TYPEDEF_YY_SIZE_T
381
typedef size_t yy_size_t;
382
#endif
383
384
20.7k
#define EOB_ACT_CONTINUE_SCAN 0
385
14.5k
#define EOB_ACT_END_OF_FILE 1
386
5.57k
#define EOB_ACT_LAST_MATCH 2
387
388
    #define YY_LESS_LINENO(n)
389
    #define YY_LINENO_REWIND_TO(ptr)
390
391
/* Return all but the first "n" matched characters back to the input stream. */
392
#define yyless(n) \
393
  do \
394
    { \
395
    /* Undo effects of setting up yytext. */ \
396
        int yyless_macro_arg = (n); \
397
        YY_LESS_LINENO(yyless_macro_arg);\
398
    *yy_cp = yyg->yy_hold_char; \
399
    YY_RESTORE_YY_MORE_OFFSET \
400
    yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
401
    YY_DO_BEFORE_ACTION; /* set up yytext again */ \
402
    } \
403
  while ( 0 )
404
118k
#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
405
406
#ifndef YY_STRUCT_YY_BUFFER_STATE
407
#define YY_STRUCT_YY_BUFFER_STATE
408
struct yy_buffer_state
409
  {
410
  FILE *yy_input_file;
411
412
  char *yy_ch_buf;    /* input buffer */
413
  char *yy_buf_pos;   /* current position in input buffer */
414
415
  /* Size of input buffer in bytes, not including room for EOB
416
   * characters.
417
   */
418
  int yy_buf_size;
419
420
  /* Number of characters read into yy_ch_buf, not including EOB
421
   * characters.
422
   */
423
  int yy_n_chars;
424
425
  /* Whether we "own" the buffer - i.e., we know we created it,
426
   * and can realloc() it to grow it, and should free() it to
427
   * delete it.
428
   */
429
  int yy_is_our_buffer;
430
431
  /* Whether this is an "interactive" input source; if so, and
432
   * if we're using stdio for input, then we want to use getc()
433
   * instead of fread(), to make sure we stop fetching input after
434
   * each newline.
435
   */
436
  int yy_is_interactive;
437
438
  /* Whether we're considered to be at the beginning of a line.
439
   * If so, '^' rules will be active on the next match, otherwise
440
   * not.
441
   */
442
  int yy_at_bol;
443
444
    int yy_bs_lineno; /**< The line count. */
445
    int yy_bs_column; /**< The column count. */
446
447
  /* Whether to try to fill the input buffer when we reach the
448
   * end of it.
449
   */
450
  int yy_fill_buffer;
451
452
  int yy_buffer_status;
453
454
1.19M
#define YY_BUFFER_NEW 0
455
7.28k
#define YY_BUFFER_NORMAL 1
456
  /* When an EOF's been seen but there's still some text to process
457
   * then we mark the buffer as YY_EOF_PENDING, to indicate that we
458
   * shouldn't try reading from the input source any more.  We might
459
   * still have a bunch of tokens to match, though, because of
460
   * possible backing-up.
461
   *
462
   * When we actually see the EOF, we change the status to "new"
463
   * (via yyrestart()), so that the user can continue scanning by
464
   * just pointing yyin at a new input file.
465
   */
466
23.2k
#define YY_BUFFER_EOF_PENDING 2
467
468
  };
469
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
470
471
/* We provide macros for accessing buffer states in case in the
472
 * future we want to put the buffer states in a more general
473
 * "scanner state".
474
 *
475
 * Returns the top of the stack, or NULL.
476
 */
477
98.2k
#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
478
98.2k
                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
479
98.2k
                          : NULL)
480
/* Same as previous macro, but useful when we know that the buffer stack is not
481
 * NULL or when we need an lvalue. For internal use only.
482
 */
483
33.8M
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
484
485
void yyrestart ( FILE *input_file , yyscan_t yyscanner );
486
void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
487
YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner );
488
void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
489
void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
490
void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
491
void yypop_buffer_state ( yyscan_t yyscanner );
492
493
static void yyensure_buffer_stack ( yyscan_t yyscanner );
494
static void yy_load_buffer_state ( yyscan_t yyscanner );
495
static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner );
496
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner)
497
498
YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
499
YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
500
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
501
502
void *yyalloc ( yy_size_t , yyscan_t yyscanner );
503
void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
504
void yyfree ( void * , yyscan_t yyscanner );
505
506
#define yy_new_buffer yy_create_buffer
507
#define yy_set_interactive(is_interactive) \
508
  { \
509
  if ( ! YY_CURRENT_BUFFER ){ \
510
        yyensure_buffer_stack (yyscanner); \
511
    YY_CURRENT_BUFFER_LVALUE =    \
512
            yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
513
  } \
514
  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
515
  }
516
#define yy_set_bol(at_bol) \
517
  { \
518
  if ( ! YY_CURRENT_BUFFER ){\
519
        yyensure_buffer_stack (yyscanner); \
520
    YY_CURRENT_BUFFER_LVALUE =    \
521
            yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
522
  } \
523
  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
524
  }
525
15.9M
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
526
527
/* Begin user sect3 */
528
529
7.28k
#define cmFortran_yywrap(yyscanner) (/*CONSTCOND*/1)
530
#define YY_SKIP_YYWRAP
531
typedef flex_uint8_t YY_CHAR;
532
533
typedef int yy_state_type;
534
535
20.9M
#define yytext_ptr yytext_r
536
537
static yy_state_type yy_get_previous_state ( yyscan_t yyscanner );
538
static yy_state_type yy_try_NUL_trans ( yy_state_type current_state  , yyscan_t yyscanner);
539
static int yy_get_next_buffer ( yyscan_t yyscanner );
540
static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );
541
542
/* Done after the current pattern has been matched and before the
543
 * corresponding action - sets up yytext.
544
 */
545
#define YY_DO_BEFORE_ACTION \
546
15.9M
  yyg->yytext_ptr = yy_bp; \
547
15.9M
  yyleng = (int) (yy_cp - yy_bp); \
548
15.9M
  yyg->yy_hold_char = *yy_cp; \
549
15.9M
  *yy_cp = '\0'; \
550
15.9M
  yyg->yy_c_buf_p = yy_cp;
551
#define YY_NUM_RULES 55
552
1.21M
#define YY_END_OF_BUFFER 56
553
/* This struct is not used in this scanner,
554
   but its presence is necessary. */
555
struct yy_trans_info
556
  {
557
  flex_int32_t yy_verify;
558
  flex_int32_t yy_nxt;
559
  };
560
static const flex_int16_t yy_accept[216] =
561
    {   0,
562
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
563
       56,   50,   52,   51,   54,    1,   50,   34,    2,   48,
564
       49,   36,   38,   51,   40,   50,   47,   47,   47,   47,
565
       47,   47,   50,   47,   52,   50,   51,   52,   50,   47,
566
        9,    8,    9,    9,    4,    3,   50,    0,   10,    0,
567
        0,    0,    0,    0,   34,   34,   35,   37,   40,   50,
568
       47,   47,   47,   47,   47,   47,    0,   53,    0,   47,
569
        0,    0,    0,   12,    0,    0,    0,    0,    0,    0,
570
        0,   50,    0,   11,   47,    0,    0,    0,    5,    0,
571
        0,    0,    0,    0,   30,    0,   34,   34,   34,   34,
572
573
        0,    0,   41,   47,   47,   47,   47,   46,   12,   12,
574
        0,    0,    0,   24,    0,    0,    0,    0,    0,    0,
575
        6,    0,    0,    0,    0,    0,    0,    0,    0,    0,
576
       47,   47,   47,   47,    0,    0,    0,    0,    0,    0,
577
        0,    0,    0,    0,    0,    0,    0,   31,   32,    0,
578
        0,    0,    0,    0,   47,   47,   47,   47,    0,   25,
579
       26,    0,    0,    0,    0,   13,    0,    0,    0,    0,
580
       21,   33,   28,    0,    0,    0,   47,   47,   44,   47,
581
        0,   27,   22,    0,    0,   13,   20,    0,    0,   19,
582
       29,    0,    0,   42,   47,   47,   18,   23,    0,    7,
583
584
       39,    7,   16,    0,   47,   47,   15,   17,   43,   45,
585
        0,    0,    0,   14,    0
586
    } ;
587
588
static const YY_CHAR yy_ec[256] =
589
    {   0,
590
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
591
        1,    1,    4,    1,    1,    1,    1,    1,    1,    1,
592
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
593
        1,    5,    6,    7,    8,    9,    1,   10,   11,   12,
594
       13,   14,    1,   15,    1,    1,    1,   16,   16,   16,
595
       16,   16,   16,   16,   16,   16,   16,   17,   18,   19,
596
       20,   21,   22,    1,   23,   24,   25,   26,   27,   28,
597
       29,   29,   30,   29,   29,   31,   32,   33,   34,   29,
598
       29,   35,   36,   37,   38,   29,   29,   29,   29,   29,
599
        1,   39,    1,    1,   40,    1,   23,   24,   41,   42,
600
601
       43,   44,   29,   29,   45,   29,   29,   46,   32,   47,
602
       34,   29,   29,   35,   48,   37,   49,   29,   29,   29,
603
       29,   29,    1,    1,    1,    1,    1,    1,    1,    1,
604
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
605
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
606
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
607
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
608
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
609
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
610
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
611
612
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
613
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
614
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
615
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
616
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
617
        1,    1,    1,    1,    1
618
    } ;
619
620
static const YY_CHAR yy_meta[50] =
621
    {   0,
622
        1,    2,    2,    2,    3,    4,    4,    1,    1,    4,
623
        4,    4,    4,    1,    4,    5,    4,    4,    1,    4,
624
        6,    1,    7,    7,    7,    7,    7,    7,    7,    7,
625
        7,    7,    7,    7,    7,    7,    7,    7,    1,    5,
626
        7,    7,    7,    7,    7,    7,    7,    7,    7
627
    } ;
628
629
static const flex_int16_t yy_base[225] =
630
    {   0,
631
        0,   48,    0,   49,   55,   58,   64,   66,   75,   83,
632
      491,    0,  492,  492,  487,  492,   86,   92,  492,  492,
633
      492,  492,  472,  492,  467,  465,    0,   56,   59,  452,
634
       66,   16,  105,  131,  109,  170,  480,  481,  219,  259,
635
      492,  478,  479,  116,  492,  492,    0,  478,  492,  111,
636
      453,  446,   34,   78,  155,  174,  492,  492,  492,  121,
637
        0,   29,  105,  101,  454,  101,  131,  492,  474,    0,
638
      180,  307,    0,  146,  433,  117,   94,  430,  427,  468,
639
      467,  356,  468,  492,    0,  465,  464,  187,  191,  465,
640
      439,  440,  149,  423,  126,  423,  200,  240,  311,  322,
641
642
      206,  416,    0,  152,  180,  176,  430,    0,  216,  224,
643
      417,  186,  418,  127,  418,  411,  415,  451,  450,  247,
644
      492,  423,  416,  398,  393,  373,  364,  364,  359,  353,
645
      198,  358,  178,  358,  346,  346,  346,  343,  344,  344,
646
      338,  340,  339,  376,  374,  343,  346,  492,  492,  329,
647
      325,  324,  313,  315,  211,  211,  291,  293,  313,  492,
648
      492,  314,  304,  304,  261,  328,  212,  249,  243,  203,
649
      492,  492,  492,  173,  158,  150,  293,  172,    0,  273,
650
      144,  492,  492,  137,  125,  335,  492,  339,    0,  492,
651
      492,  112,   63,    0,  304,  300,  492,  492,   58,  492,
652
653
      492,  492,  492,   30,  311,  312,  361,  492,    0,    0,
654
      366,    0,   44,  492,  492,  396,  403,  409,  412,  419,
655
      426,  433,  440,  447
656
    } ;
657
658
static const flex_int16_t yy_def[225] =
659
    {   0,
660
      215,    1,    1,    1,    1,    1,  216,  216,  216,  216,
661
      215,  217,  215,  215,  218,  215,  217,  215,  215,  215,
662
      215,  215,  215,  215,  215,  217,  219,  219,  219,  219,
663
      219,  219,  217,  219,  215,  217,  215,  215,  220,  215,
664
      215,  215,  215,  215,  215,  215,  217,  218,  215,  215,
665
      215,  215,  215,  215,  215,  221,  215,  215,  215,  217,
666
      219,  219,  219,  219,  219,  219,  215,  215,  215,   34,
667
      215,  215,   72,  217,  215,  215,  215,  215,  215,  215,
668
      215,  220,  220,  215,   40,  215,  215,  215,  215,  215,
669
      215,  215,  215,  215,  215,  215,  221,  221,  221,  221,
670
671
      215,  215,  219,  219,  219,  219,  219,  219,  215,  215,
672
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
673
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
674
      219,  219,  219,  219,  215,  215,  215,  215,  215,  215,
675
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
676
      215,  215,  215,  215,  219,  219,  219,  219,  215,  215,
677
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
678
      215,  215,  215,  215,  215,  215,  219,  219,  219,  219,
679
      215,  215,  215,  215,  215,  215,  215,  222,  223,  215,
680
      215,  215,  215,  219,  219,  219,  215,  215,  215,  215,
681
682
      215,  215,  215,  215,  219,  219,  215,  215,  219,  219,
683
      215,  224,  224,  215,    0,  215,  215,  215,  215,  215,
684
      215,  215,  215,  215
685
    } ;
686
687
static const flex_int16_t yy_nxt[542] =
688
    {   0,
689
       12,   13,   14,   13,   13,   15,   16,   12,   17,   18,
690
       19,   20,   21,   12,   22,   12,   23,   24,   12,   25,
691
       12,   26,   27,   27,   27,   27,   28,   27,   27,   29,
692
       27,   30,   27,   27,   27,   31,   27,   32,   33,   34,
693
       27,   27,   28,   27,   29,   27,   27,   31,   32,   35,
694
       35,   66,   35,   35,  103,   36,   36,   37,   38,   35,
695
       37,   38,   35,   66,  214,   36,   42,   43,   42,   43,
696
      103,   39,  208,   44,   45,   44,   45,   42,   43,   93,
697
       94,   46,   40,   40,   44,   42,   43,   50,   62,   46,
698
       50,   63,   44,   55,   55,   55,   55,   56,   40,   40,
699
700
      207,   57,   62,   65,  204,   63,   67,   68,   69,   67,
701
       71,   51,   50,   71,   65,   50,   72,   88,   89,   90,
702
       88,   95,  101,   52,   96,  101,  106,  108,   53,  104,
703
       54,   47,   67,   68,   69,   67,   51,  114,   47,   47,
704
      115,  105,  106,  108,   47,  104,   70,  110,   52,   47,
705
      110,   47,   47,   53,  203,   54,   55,   55,   55,   55,
706
       56,   74,  112,  113,   57,  102,  199,  127,  139,   47,
707
       70,   73,  128,  140,   73,   98,   55,   98,   98,   99,
708
      198,   71,  131,  100,   71,   74,  197,   72,   88,   89,
709
       90,   88,  120,  124,  195,  120,  125,  131,  193,  192,
710
711
      121,   98,   55,   98,   98,   99,  132,  101,  157,  100,
712
      101,   75,   76,  133,   77,   78,  191,  110,   79,   82,
713
      110,   84,  132,  157,  133,  110,   82,   82,  110,  190,
714
      136,  109,   82,  137,   82,  155,  177,   82,  178,   82,
715
       82,   98,   55,   98,   98,   99,  155,  189,  120,  100,
716
      102,  120,  177,  188,  178,  187,  121,   82,   82,   83,
717
       83,   84,   83,   83,   83,   83,   83,   83,   83,   83,
718
       83,   83,   83,   83,   85,   83,   83,   83,   83,   83,
719
       83,   85,   85,   85,   85,   85,   85,   85,   85,   85,
720
       85,   85,   85,   85,   85,   85,   85,   83,   85,   85,
721
722
       85,   85,   85,   85,   85,   85,   85,   85,   73,  185,
723
      196,   73,   98,   55,   98,   98,   99,  179,  180,  194,
724
      100,  196,  109,   98,   55,   98,   98,   99,  205,  186,
725
      206,  100,  186,  179,  180,  194,  186,  209,  210,  186,
726
      201,  201,  201,  109,  205,  206,  184,  183,   75,   76,
727
      109,   77,   78,  209,  210,   79,   82,  182,   84,  181,
728
      176,  175,  211,   82,   82,  211,  174,  211,  173,   82,
729
      211,   82,  172,  171,   82,  170,   82,   82,  169,  212,
730
      168,  167,  166,  165,  212,  164,  163,  162,  161,  160,
731
      159,  158,  156,  154,   82,   82,   41,   41,   41,   41,
732
733
       41,   41,   41,   47,  153,  152,  151,   47,   47,   48,
734
       48,   48,   48,   48,   48,   48,   61,  150,   61,   83,
735
       83,   83,   83,   83,   83,   83,   97,   97,   97,   97,
736
       97,   97,   97,  200,  200,  149,  200,  200,  200,  200,
737
      202,  148,  147,  202,  202,  202,  202,  213,  213,  213,
738
      213,  213,  146,  213,  145,  144,  143,  142,  141,  138,
739
      135,  134,  130,  129,  126,  123,  122,   89,   86,  119,
740
       84,   80,  118,  117,  116,  111,   68,  107,   92,   91,
741
       49,   87,   86,   81,   80,   64,   60,   59,   58,   49,
742
      215,   11,  215,  215,  215,  215,  215,  215,  215,  215,
743
744
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
745
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
746
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
747
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
748
      215
749
    } ;
750
751
static const flex_int16_t yy_chk[542] =
752
    {   0,
753
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
754
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
755
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
756
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
757
        1,    1,    1,    1,    1,    1,    1,    1,    1,    2,
758
        4,   32,    2,    4,   62,    2,    4,    5,    5,    6,
759
        6,    6,    6,   32,  213,    6,    7,    7,    8,    8,
760
       62,    6,  204,    7,    7,    8,    8,    9,    9,   53,
761
       53,    9,    6,    6,    9,   10,   10,   17,   28,   10,
762
       17,   29,   10,   18,   18,   18,   18,   18,    6,    6,
763
764
      199,   18,   28,   31,  193,   29,   33,   33,   33,   33,
765
       35,   17,   50,   35,   31,   50,   35,   44,   44,   44,
766
       44,   54,   60,   17,   54,   60,   64,   66,   17,   63,
767
       17,   34,   67,   67,   67,   67,   50,   77,   34,   34,
768
       77,   63,   64,   66,   34,   63,   34,   74,   50,   34,
769
       74,   34,   34,   50,  192,   50,   55,   55,   55,   55,
770
       55,   74,   76,   76,   55,   60,  185,   95,  114,   34,
771
       34,   36,   95,  114,   36,   56,   56,   56,   56,   56,
772
      184,   71,  104,   56,   71,   36,  181,   71,   88,   88,
773
       88,   88,   89,   93,  178,   89,   93,  104,  176,  175,
774
775
       89,   97,   97,   97,   97,   97,  105,  101,  133,   97,
776
      101,   36,   36,  106,   36,   36,  174,  109,   36,   39,
777
      109,   39,  105,  133,  106,  110,   39,   39,  110,  170,
778
      112,  109,   39,  112,   39,  131,  155,   39,  156,   39,
779
       39,   98,   98,   98,   98,   98,  131,  169,  120,   98,
780
      101,  120,  155,  168,  156,  167,  120,   39,   39,   40,
781
       40,   40,   40,   40,   40,   40,   40,   40,   40,   40,
782
       40,   40,   40,   40,   40,   40,   40,   40,   40,   40,
783
       40,   40,   40,   40,   40,   40,   40,   40,   40,   40,
784
       40,   40,   40,   40,   40,   40,   40,   40,   40,   40,
785
786
       40,   40,   40,   40,   40,   40,   40,   40,   72,  165,
787
      180,   72,   99,   99,   99,   99,   99,  157,  158,  177,
788
       99,  180,   72,  100,  100,  100,  100,  100,  195,  166,
789
      196,  100,  166,  157,  158,  177,  186,  205,  206,  186,
790
      188,  188,  188,  166,  195,  196,  164,  163,   72,   72,
791
      186,   72,   72,  205,  206,   72,   82,  162,   82,  159,
792
      154,  153,  207,   82,   82,  207,  152,  211,  151,   82,
793
      211,   82,  150,  147,   82,  146,   82,   82,  145,  207,
794
      144,  143,  142,  141,  211,  140,  139,  138,  137,  136,
795
      135,  134,  132,  130,   82,   82,  216,  216,  216,  216,
796
797
      216,  216,  216,  217,  129,  128,  127,  217,  217,  218,
798
      218,  218,  218,  218,  218,  218,  219,  126,  219,  220,
799
      220,  220,  220,  220,  220,  220,  221,  221,  221,  221,
800
      221,  221,  221,  222,  222,  125,  222,  222,  222,  222,
801
      223,  124,  123,  223,  223,  223,  223,  224,  224,  224,
802
      224,  224,  122,  224,  119,  118,  117,  116,  115,  113,
803
      111,  107,  102,   96,   94,   92,   91,   90,   87,   86,
804
       83,   81,   80,   79,   78,   75,   69,   65,   52,   51,
805
       48,   43,   42,   38,   37,   30,   26,   25,   23,   15,
806
       11,  215,  215,  215,  215,  215,  215,  215,  215,  215,
807
808
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
809
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
810
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
811
      215,  215,  215,  215,  215,  215,  215,  215,  215,  215,
812
      215
813
    } ;
814
815
/* The intent behind this definition is that it'll catch
816
 * any uses of REJECT which flex missed.
817
 */
818
#define REJECT reject_used_but_not_detected
819
#define yymore() yymore_used_but_not_detected
820
2.35M
#define YY_MORE_ADJ 0
821
#define YY_RESTORE_YY_MORE_OFFSET
822
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
823
   file LICENSE.rst or https://cmake.org/licensing for details.  */
824
/*-------------------------------------------------------------------------
825
  Portions of this source have been derived from makedepf90 version 2.8.8,
826
827
   Copyright (C) 2000--2006 Erik Edelmann <erik.edelmann@iki.fi>
828
829
  The code was originally distributed under the GPL but permission
830
  from the copyright holder has been obtained to distribute this
831
  derived work under the CMake license.
832
-------------------------------------------------------------------------*/
833
834
/*
835
836
This file must be translated to C++ and modified to build everywhere.
837
838
Run flex >= 2.6 like this:
839
840
  flex -i --nounistd -DFLEXINT_H --noline --header-file=cmFortranLexer.h -ocmFortranLexer.cxx cmFortranLexer.in.l
841
842
Modify cmFortranLexer.cxx:
843
  - remove trailing whitespace:              sed -i 's/\s*$//' cmFortranLexer.h cmFortranLexer.cxx
844
  - remove blank lines at end of file:       sed -i '${/^$/d;}' cmFortranLexer.h cmFortranLexer.cxx
845
  - #include "cmStandardLexer.h" at the top: sed -i '1i#include "cmStandardLexer.h"' cmFortranLexer.cxx
846
*/
847
848
/* IWYU pragma: no_forward_declare yyguts_t */
849
850
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
851
852
#undef YY_NO_UNPUT
853
854
#define cmFortranLexer_cxx
855
#include "cmFortranParser.h" /* Interface to parser object.  */
856
857
/* Replace the lexer input function.  */
858
#undef YY_INPUT
859
#define YY_INPUT(buf, result, max_size) \
860
17.6k
  do { result = cmFortranParser_Input(yyextra, buf, max_size); } while (0)
861
862
/* Include the set of tokens from the parser.  */
863
#include "cmFortranParserTokens.h"
864
865
/*--------------------------------------------------------------------------*/
866
867
118k
#define INITIAL 0
868
#define free_fmt 1
869
587
#define fixed_fmt 2
870
406k
#define str_sq 3
871
87.4k
#define str_dq 4
872
873
#ifndef YY_EXTRA_TYPE
874
#define YY_EXTRA_TYPE void *
875
#endif
876
877
/* Holds the entire state of the reentrant scanner. */
878
struct yyguts_t
879
    {
880
881
    /* User-defined. Not touched by flex. */
882
    YY_EXTRA_TYPE yyextra_r;
883
884
    /* The rest are the same as the globals declared in the non-reentrant scanner. */
885
    FILE *yyin_r, *yyout_r;
886
    size_t yy_buffer_stack_top; /**< index of top of stack. */
887
    size_t yy_buffer_stack_max; /**< capacity of stack. */
888
    YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
889
    char yy_hold_char;
890
    int yy_n_chars;
891
    int yyleng_r;
892
    char *yy_c_buf_p;
893
    int yy_init;
894
    int yy_start;
895
    int yy_did_buffer_switch_on_eof;
896
    int yy_start_stack_ptr;
897
    int yy_start_stack_depth;
898
    int *yy_start_stack;
899
    yy_state_type yy_last_accepting_state;
900
    char* yy_last_accepting_cpos;
901
902
    int yylineno_r;
903
    int yy_flex_debug_r;
904
905
    char *yytext_r;
906
    int yy_more_flag;
907
    int yy_more_len;
908
909
    }; /* end struct yyguts_t */
910
911
static int yy_init_globals ( yyscan_t yyscanner );
912
913
int yylex_init (yyscan_t* scanner);
914
915
int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);
916
917
/* Accessor methods to globals.
918
   These are made visible to non-reentrant scanners for convenience. */
919
920
int yylex_destroy ( yyscan_t yyscanner );
921
922
int yyget_debug ( yyscan_t yyscanner );
923
924
void yyset_debug ( int debug_flag , yyscan_t yyscanner );
925
926
YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
927
928
void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
929
930
FILE *yyget_in ( yyscan_t yyscanner );
931
932
void yyset_in  ( FILE * _in_str , yyscan_t yyscanner );
933
934
FILE *yyget_out ( yyscan_t yyscanner );
935
936
void yyset_out  ( FILE * _out_str , yyscan_t yyscanner );
937
938
      int yyget_leng ( yyscan_t yyscanner );
939
940
char *yyget_text ( yyscan_t yyscanner );
941
942
int yyget_lineno ( yyscan_t yyscanner );
943
944
void yyset_lineno ( int _line_number , yyscan_t yyscanner );
945
946
int yyget_column  ( yyscan_t yyscanner );
947
948
void yyset_column ( int _column_no , yyscan_t yyscanner );
949
950
/* Macros after this point can all be overridden by user definitions in
951
 * section 1.
952
 */
953
954
#ifndef YY_SKIP_YYWRAP
955
#ifdef __cplusplus
956
extern "C" int yywrap ( yyscan_t yyscanner );
957
#else
958
extern int yywrap ( yyscan_t yyscanner );
959
#endif
960
#endif
961
962
#ifndef YY_NO_UNPUT
963
964
    static void yyunput ( int c, char *buf_ptr  , yyscan_t yyscanner);
965
966
#endif
967
968
#ifndef yytext_ptr
969
static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
970
#endif
971
972
#ifdef YY_NEED_STRLEN
973
static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
974
#endif
975
976
#ifndef YY_NO_INPUT
977
#ifdef __cplusplus
978
static int yyinput ( yyscan_t yyscanner );
979
#else
980
static int input ( yyscan_t yyscanner );
981
#endif
982
983
#endif
984
985
/* Amount of stuff to slurp up with each read. */
986
#ifndef YY_READ_BUF_SIZE
987
#ifdef __ia64__
988
/* On IA-64, the buffer size is 16k, not 8k */
989
#define YY_READ_BUF_SIZE 16384
990
#else
991
31.3k
#define YY_READ_BUF_SIZE 8192
992
#endif /* __ia64__ */
993
#endif
994
995
/* Copy whatever the last rule matched to the standard output. */
996
#ifndef ECHO
997
/* This used to be an fputs(), but since the string might contain NUL's,
998
 * we now use fwrite().
999
 */
1000
#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
1001
#endif
1002
1003
/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
1004
 * is returned in "result".
1005
 */
1006
#ifndef YY_INPUT
1007
#define YY_INPUT(buf,result,max_size) \
1008
  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1009
    { \
1010
    int c = '*'; \
1011
    int n; \
1012
    for ( n = 0; n < max_size && \
1013
           (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1014
      buf[n] = (char) c; \
1015
    if ( c == '\n' ) \
1016
      buf[n++] = (char) c; \
1017
    if ( c == EOF && ferror( yyin ) ) \
1018
      YY_FATAL_ERROR( "input in flex scanner failed" ); \
1019
    result = n; \
1020
    } \
1021
  else \
1022
    { \
1023
    errno=0; \
1024
    while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1025
      { \
1026
      if( errno != EINTR) \
1027
        { \
1028
        YY_FATAL_ERROR( "input in flex scanner failed" ); \
1029
        break; \
1030
        } \
1031
      errno=0; \
1032
      clearerr(yyin); \
1033
      } \
1034
    }\
1035
\
1036
1037
#endif
1038
1039
/* No semi-colon after return; correct usage is to write "yyterminate();" -
1040
 * we don't want an extra ';' after the "return" because that will cause
1041
 * some compilers to complain about unreachable statements.
1042
 */
1043
#ifndef yyterminate
1044
#define yyterminate() return YY_NULL
1045
#endif
1046
1047
/* Number of entries by which start-condition stack grows. */
1048
#ifndef YY_START_STACK_INCR
1049
#define YY_START_STACK_INCR 25
1050
#endif
1051
1052
/* Report a fatal error. */
1053
#ifndef YY_FATAL_ERROR
1054
0
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1055
#endif
1056
1057
/* end tables serialization structures and prototypes */
1058
1059
/* Default declaration of generated scanner - a define so the user can
1060
 * easily add parameters.
1061
 */
1062
#ifndef YY_DECL
1063
#define YY_DECL_IS_OURS 1
1064
1065
extern int yylex (yyscan_t yyscanner);
1066
1067
#define YY_DECL int yylex (yyscan_t yyscanner)
1068
#endif /* !YY_DECL */
1069
1070
/* Code executed at the beginning of each rule, after yytext and yyleng
1071
 * have been set up.
1072
 */
1073
#ifndef YY_USER_ACTION
1074
#define YY_USER_ACTION
1075
#endif
1076
1077
/* Code executed at the end of each rule. */
1078
#ifndef YY_BREAK
1079
9.02M
#define YY_BREAK /*LINTED*/break;
1080
#endif
1081
1082
#define YY_RULE_SETUP \
1083
14.7M
  if ( yyleng > 0 ) \
1084
14.7M
    YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1085
14.7M
        (yytext[yyleng - 1] == '\n'); \
1086
14.7M
  YY_USER_ACTION
1087
1088
/** The main scanner function which does all the work.
1089
 */
1090
YY_DECL
1091
5.74M
{
1092
5.74M
  yy_state_type yy_current_state;
1093
5.74M
  char *yy_cp, *yy_bp;
1094
5.74M
  int yy_act;
1095
5.74M
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1096
1097
5.74M
  if ( !yyg->yy_init )
1098
3.61k
    {
1099
3.61k
    yyg->yy_init = 1;
1100
1101
#ifdef YY_USER_INIT
1102
    YY_USER_INIT;
1103
#endif
1104
1105
3.61k
    if ( ! yyg->yy_start )
1106
3.61k
      yyg->yy_start = 1; /* first start state */
1107
1108
3.61k
    if ( ! yyin )
1109
3.61k
      yyin = stdin;
1110
1111
3.61k
    if ( ! yyout )
1112
3.61k
      yyout = stdout;
1113
1114
3.61k
    if ( ! YY_CURRENT_BUFFER ) {
1115
0
      yyensure_buffer_stack (yyscanner);
1116
0
      YY_CURRENT_BUFFER_LVALUE =
1117
0
        yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
1118
0
    }
1119
1120
3.61k
    yy_load_buffer_state( yyscanner );
1121
3.61k
    }
1122
1123
5.74M
  {
1124
1125
14.7M
  while ( /*CONSTCOND*/1 )    /* loops until end-of-file is reached */
1126
14.7M
    {
1127
14.7M
    yy_cp = yyg->yy_c_buf_p;
1128
1129
    /* Support of yytext. */
1130
14.7M
    *yy_cp = yyg->yy_hold_char;
1131
1132
    /* yy_bp points to the position in yy_ch_buf of the start of
1133
     * the current run.
1134
     */
1135
14.7M
    yy_bp = yy_cp;
1136
1137
14.7M
    yy_current_state = yyg->yy_start;
1138
14.7M
    yy_current_state += YY_AT_BOL();
1139
15.6M
yy_match:
1140
15.6M
    do
1141
46.6M
      {
1142
46.6M
      YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1143
46.6M
      if ( yy_accept[yy_current_state] )
1144
20.1M
        {
1145
20.1M
        yyg->yy_last_accepting_state = yy_current_state;
1146
20.1M
        yyg->yy_last_accepting_cpos = yy_cp;
1147
20.1M
        }
1148
82.6M
      while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1149
35.9M
        {
1150
35.9M
        yy_current_state = (int) yy_def[yy_current_state];
1151
35.9M
        if ( yy_current_state >= 216 )
1152
30.3M
          yy_c = yy_meta[yy_c];
1153
35.9M
        }
1154
46.6M
      yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1155
46.6M
      ++yy_cp;
1156
46.6M
      }
1157
46.6M
    while ( yy_base[yy_current_state] != 492 );
1158
1159
15.9M
yy_find_action:
1160
15.9M
    yy_act = yy_accept[yy_current_state];
1161
15.9M
    if ( yy_act == 0 )
1162
4.88M
      { /* have to back up */
1163
4.88M
      yy_cp = yyg->yy_last_accepting_cpos;
1164
4.88M
      yy_current_state = yyg->yy_last_accepting_state;
1165
4.88M
      yy_act = yy_accept[yy_current_state];
1166
4.88M
      }
1167
1168
15.9M
    YY_DO_BEFORE_ACTION;
1169
1170
15.9M
do_action:  /* This label is used only to access EOF actions. */
1171
1172
15.9M
    switch ( yy_act )
1173
15.9M
  { /* beginning of action switch */
1174
0
      case 0: /* must back up */
1175
      /* undo the effects of YY_DO_BEFORE_ACTION */
1176
0
      *yy_cp = yyg->yy_hold_char;
1177
0
      yy_cp = yyg->yy_last_accepting_cpos;
1178
0
      yy_current_state = yyg->yy_last_accepting_state;
1179
0
      goto yy_find_action;
1180
1181
87.4k
case 1:
1182
87.4k
YY_RULE_SETUP
1183
87.4k
{
1184
87.4k
  cmFortranParser_StringStart(yyextra);
1185
87.4k
  cmFortranParser_SetOldStartcond(yyextra, YY_START);
1186
87.4k
  BEGIN(str_dq);
1187
87.4k
}
1188
87.4k
  YY_BREAK
1189
406k
case 2:
1190
406k
YY_RULE_SETUP
1191
406k
{
1192
406k
  cmFortranParser_StringStart(yyextra);
1193
406k
  cmFortranParser_SetOldStartcond(yyextra, YY_START);
1194
406k
  BEGIN(str_sq);
1195
406k
}
1196
406k
  YY_BREAK
1197
42.3k
case 3:
1198
375k
case 4:
1199
375k
YY_RULE_SETUP
1200
375k
{
1201
375k
  BEGIN(cmFortranParser_GetOldStartcond(yyextra) );
1202
375k
  yylvalp->string = strdup(cmFortranParser_StringEnd(yyextra));
1203
375k
  return STRING;
1204
42.3k
}
1205
0
  YY_BREAK
1206
1.69k
case 5:
1207
/* rule 5 can match eol */
1208
2.12k
case 6:
1209
/* rule 6 can match eol */
1210
2.12k
YY_RULE_SETUP
1211
/* Ignore (continued strings, free fmt) */
1212
2.12k
  YY_BREAK
1213
587
case 7:
1214
/* rule 7 can match eol */
1215
587
YY_RULE_SETUP
1216
587
{
1217
587
  if (cmFortranParser_GetOldStartcond(yyextra) == fixed_fmt)
1218
0
    ; /* Ignore (cont. strings, fixed fmt) */
1219
587
  else
1220
587
    {
1221
587
    unput(yytext[strlen(yytext)-1]);
1222
587
    }
1223
587
}
1224
587
  YY_BREAK
1225
118k
case 8:
1226
/* rule 8 can match eol */
1227
118k
YY_RULE_SETUP
1228
118k
{
1229
118k
  unput ('\n');
1230
118k
  BEGIN(INITIAL);
1231
118k
  return UNTERMINATED_STRING;
1232
1.69k
}
1233
0
  YY_BREAK
1234
6.54M
case 9:
1235
6.54M
YY_RULE_SETUP
1236
6.54M
{
1237
6.54M
  cmFortranParser_StringAppend(yyextra, yytext[0]);
1238
6.54M
}
1239
6.54M
  YY_BREAK
1240
15.1k
case 10:
1241
/* rule 10 can match eol */
1242
15.1k
YY_RULE_SETUP
1243
15.1k
{ return EOSTMT; } /* Treat comments like */
1244
0
  YY_BREAK
1245
0
case 11:
1246
/* rule 11 can match eol */
1247
0
YY_RULE_SETUP
1248
0
{ return EOSTMT; } /* empty lines */
1249
0
  YY_BREAK
1250
57.3k
case 12:
1251
57.3k
YY_RULE_SETUP
1252
57.3k
{ return CPP_LINE_DIRECTIVE; }
1253
0
  YY_BREAK
1254
578
case 13:
1255
578
YY_RULE_SETUP
1256
578
{ return CPP_LINE_DIRECTIVE; }
1257
0
  YY_BREAK
1258
836
case 14:
1259
/* rule 14 can match eol */
1260
836
YY_RULE_SETUP
1261
836
{
1262
836
  yytext[yyleng-1] = 0;
1263
836
  yylvalp->string = strdup(strchr(yytext, '<')+1);
1264
836
  return CPP_INCLUDE_ANGLE;
1265
1.69k
}
1266
0
  YY_BREAK
1267
39.4k
case 15:
1268
39.4k
YY_RULE_SETUP
1269
39.4k
{ return CPP_INCLUDE; }
1270
0
  YY_BREAK
1271
979
case 16:
1272
979
YY_RULE_SETUP
1273
979
{ return F90PPR_INCLUDE; }
1274
0
  YY_BREAK
1275
204
case 17:
1276
204
YY_RULE_SETUP
1277
204
{ return COCO_INCLUDE; }
1278
0
  YY_BREAK
1279
76.8k
case 18:
1280
76.8k
YY_RULE_SETUP
1281
76.8k
{ return CPP_DEFINE; }
1282
0
  YY_BREAK
1283
0
case 19:
1284
0
YY_RULE_SETUP
1285
0
{ return F90PPR_DEFINE; }
1286
0
  YY_BREAK
1287
70.2k
case 20:
1288
70.2k
YY_RULE_SETUP
1289
70.2k
{ return CPP_UNDEF; }
1290
0
  YY_BREAK
1291
0
case 21:
1292
0
YY_RULE_SETUP
1293
0
{ return F90PPR_UNDEF; }
1294
0
  YY_BREAK
1295
21.3k
case 22:
1296
21.3k
YY_RULE_SETUP
1297
21.3k
{ return CPP_IFDEF; }
1298
0
  YY_BREAK
1299
225k
case 23:
1300
225k
YY_RULE_SETUP
1301
225k
{ return CPP_IFNDEF; }
1302
0
  YY_BREAK
1303
81.1k
case 24:
1304
81.1k
YY_RULE_SETUP
1305
81.1k
{ return CPP_IF; }
1306
0
  YY_BREAK
1307
2.68k
case 25:
1308
2.68k
YY_RULE_SETUP
1309
2.68k
{ return CPP_ELIF; }
1310
0
  YY_BREAK
1311
14.5k
case 26:
1312
14.5k
YY_RULE_SETUP
1313
14.5k
{ return CPP_ELSE; }
1314
0
  YY_BREAK
1315
7.94k
case 27:
1316
7.94k
YY_RULE_SETUP
1317
7.94k
{ return CPP_ENDIF; }
1318
0
  YY_BREAK
1319
268
case 28:
1320
268
YY_RULE_SETUP
1321
268
{ return F90PPR_IFDEF; }
1322
0
  YY_BREAK
1323
395
case 29:
1324
395
YY_RULE_SETUP
1325
395
{ return F90PPR_IFNDEF; }
1326
0
  YY_BREAK
1327
1.20k
case 30:
1328
1.20k
YY_RULE_SETUP
1329
1.20k
{ return F90PPR_IF; }
1330
0
  YY_BREAK
1331
749
case 31:
1332
749
YY_RULE_SETUP
1333
749
{ return F90PPR_ELIF; }
1334
0
  YY_BREAK
1335
889
case 32:
1336
889
YY_RULE_SETUP
1337
889
{ return F90PPR_ELSE; }
1338
0
  YY_BREAK
1339
659
case 33:
1340
659
YY_RULE_SETUP
1341
659
{ return F90PPR_ENDIF; }
1342
0
  YY_BREAK
1343
/* Line continuations, possible involving comments.  */
1344
18.3k
case 34:
1345
/* rule 34 can match eol */
1346
18.3k
YY_RULE_SETUP
1347
1348
18.3k
  YY_BREAK
1349
2.03k
case 35:
1350
/* rule 35 can match eol */
1351
2.03k
YY_RULE_SETUP
1352
1353
2.03k
  YY_BREAK
1354
14.8k
case 36:
1355
14.8k
YY_RULE_SETUP
1356
14.8k
{ return COMMA; }
1357
0
  YY_BREAK
1358
220k
case 37:
1359
220k
YY_RULE_SETUP
1360
220k
{ return DCOLON; }
1361
0
  YY_BREAK
1362
46.2k
case 38:
1363
46.2k
YY_RULE_SETUP
1364
46.2k
{ return COLON; }
1365
0
  YY_BREAK
1366
0
case 39:
1367
/* rule 39 can match eol */
1368
0
YY_RULE_SETUP
1369
0
{ return GARBAGE; }
1370
0
  YY_BREAK
1371
4.14k
case 40:
1372
4.14k
YY_RULE_SETUP
1373
4.14k
{ return ASSIGNMENT_OP; }
1374
0
  YY_BREAK
1375
8.23k
case 41:
1376
8.23k
YY_RULE_SETUP
1377
8.23k
{ return END; }
1378
0
  YY_BREAK
1379
3.45k
case 42:
1380
3.45k
YY_RULE_SETUP
1381
3.45k
{ return INCLUDE; }
1382
0
  YY_BREAK
1383
8
case 43:
1384
8
YY_RULE_SETUP
1385
8
{ return INTERFACE; }
1386
0
  YY_BREAK
1387
9.46k
case 44:
1388
9.46k
YY_RULE_SETUP
1389
9.46k
{ return MODULE; }
1390
0
  YY_BREAK
1391
48.1k
case 45:
1392
48.1k
YY_RULE_SETUP
1393
48.1k
{ return SUBMODULE; }
1394
0
  YY_BREAK
1395
41.9k
case 46:
1396
41.9k
YY_RULE_SETUP
1397
41.9k
{ return USE; }
1398
0
  YY_BREAK
1399
1.63M
case 47:
1400
1.63M
YY_RULE_SETUP
1401
1.63M
{
1402
1.63M
  yylvalp->string = strdup(yytext);
1403
1.63M
  return WORD;
1404
1.69k
}
1405
0
  YY_BREAK
1406
78.1k
case 48:
1407
78.1k
YY_RULE_SETUP
1408
78.1k
{ return LPAREN; }
1409
0
  YY_BREAK
1410
55.4k
case 49:
1411
55.4k
YY_RULE_SETUP
1412
55.4k
{ return RPAREN; }
1413
0
  YY_BREAK
1414
1.41M
case 50:
1415
1.41M
YY_RULE_SETUP
1416
1.41M
{ return GARBAGE; }
1417
0
  YY_BREAK
1418
1.05M
case 51:
1419
/* rule 51 can match eol */
1420
1.05M
YY_RULE_SETUP
1421
1.05M
{ return EOSTMT; }
1422
0
  YY_BREAK
1423
1.94M
case 52:
1424
1.94M
YY_RULE_SETUP
1425
/* Ignore */
1426
1.94M
  YY_BREAK
1427
369
case 53:
1428
/* rule 53 can match eol */
1429
369
YY_RULE_SETUP
1430
/* Ignore line-endings preceded by \ */
1431
369
  YY_BREAK
1432
0
case 54:
1433
0
YY_RULE_SETUP
1434
0
{ return *yytext; }
1435
0
  YY_BREAK
1436
7.23k
case YY_STATE_EOF(INITIAL):
1437
7.23k
case YY_STATE_EOF(free_fmt):
1438
7.23k
case YY_STATE_EOF(fixed_fmt):
1439
7.27k
case YY_STATE_EOF(str_sq):
1440
7.28k
case YY_STATE_EOF(str_dq):
1441
7.28k
{
1442
7.28k
  if(!cmFortranParser_FilePop(yyextra) )
1443
3.61k
    {
1444
3.61k
    return YY_NULL;
1445
3.61k
    }
1446
7.28k
}
1447
3.66k
  YY_BREAK
1448
3.66k
case 55:
1449
0
YY_RULE_SETUP
1450
0
ECHO;
1451
0
  YY_BREAK
1452
1453
1.17M
  case YY_END_OF_BUFFER:
1454
1.17M
    {
1455
    /* Amount of text matched not including the EOB char. */
1456
1.17M
    int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1457
1458
    /* Undo the effects of YY_DO_BEFORE_ACTION. */
1459
1.17M
    *yy_cp = yyg->yy_hold_char;
1460
1.17M
    YY_RESTORE_YY_MORE_OFFSET
1461
1462
1.17M
    if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1463
7.28k
      {
1464
      /* We're scanning a new file or input source.  It's
1465
       * possible that this happened because the user
1466
       * just pointed yyin at a new source and called
1467
       * yylex().  If so, then we have to assure
1468
       * consistency between YY_CURRENT_BUFFER and our
1469
       * globals.  Here is the right place to do so, because
1470
       * this is the first action (other than possibly a
1471
       * back-up) that will match for the new input source.
1472
       */
1473
7.28k
      yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1474
7.28k
      YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1475
7.28k
      YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1476
7.28k
      }
1477
1478
    /* Note that here we test for yy_c_buf_p "<=" to the position
1479
     * of the first EOB in the buffer, since yy_c_buf_p will
1480
     * already have been incremented past the NUL character
1481
     * (since all states make transitions on EOB to the
1482
     * end-of-buffer state).  Contrast this with the test
1483
     * in input().
1484
     */
1485
1.17M
    if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1486
1.15M
      { /* This was really a NUL. */
1487
1.15M
      yy_state_type yy_next_state;
1488
1489
1.15M
      yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1490
1491
1.15M
      yy_current_state = yy_get_previous_state( yyscanner );
1492
1493
      /* Okay, we're now positioned to make the NUL
1494
       * transition.  We couldn't have
1495
       * yy_get_previous_state() go ahead and do it
1496
       * for us because it doesn't know how to deal
1497
       * with the possibility of jamming (and we don't
1498
       * want to build jamming into it because then it
1499
       * will run more slowly).
1500
       */
1501
1502
1.15M
      yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1503
1504
1.15M
      yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1505
1506
1.15M
      if ( yy_next_state )
1507
885k
        {
1508
        /* Consume the NUL. */
1509
885k
        yy_cp = ++yyg->yy_c_buf_p;
1510
885k
        yy_current_state = yy_next_state;
1511
885k
        goto yy_match;
1512
885k
        }
1513
1514
270k
      else
1515
270k
        {
1516
270k
        yy_cp = yyg->yy_c_buf_p;
1517
270k
        goto yy_find_action;
1518
270k
        }
1519
1.15M
      }
1520
1521
20.4k
    else switch ( yy_get_next_buffer( yyscanner ) )
1522
20.4k
      {
1523
7.28k
      case EOB_ACT_END_OF_FILE:
1524
7.28k
        {
1525
7.28k
        yyg->yy_did_buffer_switch_on_eof = 0;
1526
1527
7.28k
        if ( yywrap( yyscanner ) )
1528
7.28k
          {
1529
          /* Note: because we've taken care in
1530
           * yy_get_next_buffer() to have set up
1531
           * yytext, we can now set up
1532
           * yy_c_buf_p so that if some total
1533
           * hoser (like flex itself) wants to
1534
           * call the scanner after we return the
1535
           * YY_NULL, it'll still work - another
1536
           * YY_NULL will get returned.
1537
           */
1538
7.28k
          yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1539
1540
7.28k
          yy_act = YY_STATE_EOF(YY_START);
1541
7.28k
          goto do_action;
1542
7.28k
          }
1543
1544
0
        else
1545
0
          {
1546
0
          if ( ! yyg->yy_did_buffer_switch_on_eof )
1547
0
            YY_NEW_FILE;
1548
0
          }
1549
0
        break;
1550
7.28k
        }
1551
1552
10.3k
      case EOB_ACT_CONTINUE_SCAN:
1553
10.3k
        yyg->yy_c_buf_p =
1554
10.3k
          yyg->yytext_ptr + yy_amount_of_matched_text;
1555
1556
10.3k
        yy_current_state = yy_get_previous_state( yyscanner );
1557
1558
10.3k
        yy_cp = yyg->yy_c_buf_p;
1559
10.3k
        yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1560
10.3k
        goto yy_match;
1561
1562
2.78k
      case EOB_ACT_LAST_MATCH:
1563
2.78k
        yyg->yy_c_buf_p =
1564
2.78k
        &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1565
1566
2.78k
        yy_current_state = yy_get_previous_state( yyscanner );
1567
1568
2.78k
        yy_cp = yyg->yy_c_buf_p;
1569
2.78k
        yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1570
2.78k
        goto yy_find_action;
1571
20.4k
      }
1572
0
    break;
1573
1.17M
    }
1574
1575
0
  default:
1576
0
    YY_FATAL_ERROR(
1577
15.9M
      "fatal flex scanner internal error--no action found" );
1578
15.9M
  } /* end of action switch */
1579
15.9M
    } /* end of scanning one token */
1580
5.74M
  } /* end of user's declarations */
1581
5.74M
} /* end of yylex */
1582
1583
/* yy_get_next_buffer - try to read in a new buffer
1584
 *
1585
 * Returns a code representing an action:
1586
 *  EOB_ACT_LAST_MATCH -
1587
 *  EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1588
 *  EOB_ACT_END_OF_FILE - end of file
1589
 */
1590
static int yy_get_next_buffer (yyscan_t yyscanner)
1591
20.4k
{
1592
20.4k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1593
20.4k
  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1594
20.4k
  char *source = yyg->yytext_ptr;
1595
20.4k
  int number_to_move, i;
1596
20.4k
  int ret_val;
1597
1598
20.4k
  if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1599
0
    YY_FATAL_ERROR(
1600
20.4k
    "fatal flex scanner internal error--end of buffer missed" );
1601
1602
20.4k
  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1603
0
    { /* Don't try to fill the buffer, so this is an EOF. */
1604
0
    if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1605
0
      {
1606
      /* We matched a single character, the EOB, so
1607
       * treat this as a final EOF.
1608
       */
1609
0
      return EOB_ACT_END_OF_FILE;
1610
0
      }
1611
1612
0
    else
1613
0
      {
1614
      /* We matched some text prior to the EOB, first
1615
       * process it.
1616
       */
1617
0
      return EOB_ACT_LAST_MATCH;
1618
0
      }
1619
0
    }
1620
1621
  /* Try to read more data. */
1622
1623
  /* First move last chars to start of buffer. */
1624
20.4k
  number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
1625
1626
45.5M
  for ( i = 0; i < number_to_move; ++i )
1627
45.5M
    *(dest++) = *(source++);
1628
1629
20.4k
  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1630
    /* don't do the read, it's not guaranteed to return an EOF,
1631
     * just force an EOF
1632
     */
1633
2.78k
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1634
1635
17.6k
  else
1636
17.6k
    {
1637
17.6k
      int num_to_read =
1638
17.6k
      YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1639
1640
17.8k
    while ( num_to_read <= 0 )
1641
188
      { /* Not enough room in the buffer - grow it. */
1642
1643
      /* just a shorter name for the current buffer */
1644
188
      YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
1645
1646
188
      int yy_c_buf_p_offset =
1647
188
        (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1648
1649
188
      if ( b->yy_is_our_buffer )
1650
188
        {
1651
188
        int new_size = b->yy_buf_size * 2;
1652
1653
188
        if ( new_size <= 0 )
1654
0
          b->yy_buf_size += b->yy_buf_size / 8;
1655
188
        else
1656
188
          b->yy_buf_size *= 2;
1657
1658
188
        b->yy_ch_buf = (char *)
1659
          /* Include room in for 2 EOB chars. */
1660
188
          yyrealloc( (void *) b->yy_ch_buf,
1661
188
               (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
1662
188
        }
1663
0
      else
1664
        /* Can't grow it, we don't own it. */
1665
0
        b->yy_ch_buf = NULL;
1666
1667
188
      if ( ! b->yy_ch_buf )
1668
0
        YY_FATAL_ERROR(
1669
188
        "fatal error - scanner input buffer overflow" );
1670
1671
188
      yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1672
1673
188
      num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1674
188
            number_to_move - 1;
1675
1676
188
      }
1677
1678
17.6k
    if ( num_to_read > YY_READ_BUF_SIZE )
1679
13.7k
      num_to_read = YY_READ_BUF_SIZE;
1680
1681
    /* Read in more data. */
1682
17.6k
    YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1683
17.6k
      yyg->yy_n_chars, num_to_read );
1684
1685
17.6k
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1686
17.6k
    }
1687
1688
20.4k
  if ( yyg->yy_n_chars == 0 )
1689
10.0k
    {
1690
10.0k
    if ( number_to_move == YY_MORE_ADJ )
1691
7.28k
      {
1692
7.28k
      ret_val = EOB_ACT_END_OF_FILE;
1693
7.28k
      yyrestart( yyin  , yyscanner);
1694
7.28k
      }
1695
1696
2.78k
    else
1697
2.78k
      {
1698
2.78k
      ret_val = EOB_ACT_LAST_MATCH;
1699
2.78k
      YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1700
2.78k
        YY_BUFFER_EOF_PENDING;
1701
2.78k
      }
1702
10.0k
    }
1703
1704
10.3k
  else
1705
10.3k
    ret_val = EOB_ACT_CONTINUE_SCAN;
1706
1707
20.4k
  if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1708
    /* Extend the array by 50%, plus the number we really need. */
1709
0
    int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1710
0
    YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1711
0
      (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
1712
0
    if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1713
0
      YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1714
    /* "- 2" to take care of EOB's */
1715
0
    YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1716
0
  }
1717
1718
20.4k
  yyg->yy_n_chars += number_to_move;
1719
20.4k
  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1720
20.4k
  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1721
1722
20.4k
  yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1723
1724
20.4k
  return ret_val;
1725
20.4k
}
1726
1727
/* yy_get_previous_state - get the state just before the EOB char was reached */
1728
1729
    static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1730
1.16M
{
1731
1.16M
  yy_state_type yy_current_state;
1732
1.16M
  char *yy_cp;
1733
1.16M
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1734
1735
1.16M
  yy_current_state = yyg->yy_start;
1736
1.16M
  yy_current_state += YY_AT_BOL();
1737
1738
852M
  for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1739
851M
    {
1740
851M
    YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1741
851M
    if ( yy_accept[yy_current_state] )
1742
132M
      {
1743
132M
      yyg->yy_last_accepting_state = yy_current_state;
1744
132M
      yyg->yy_last_accepting_cpos = yy_cp;
1745
132M
      }
1746
1.70G
    while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1747
849M
      {
1748
849M
      yy_current_state = (int) yy_def[yy_current_state];
1749
849M
      if ( yy_current_state >= 216 )
1750
849M
        yy_c = yy_meta[yy_c];
1751
849M
      }
1752
851M
    yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1753
851M
    }
1754
1755
1.16M
  return yy_current_state;
1756
1.16M
}
1757
1758
/* yy_try_NUL_trans - try to make a transition on the NUL character
1759
 *
1760
 * synopsis
1761
 *  next_state = yy_try_NUL_trans( current_state );
1762
 */
1763
    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state , yyscan_t yyscanner)
1764
1.15M
{
1765
1.15M
  int yy_is_jam;
1766
1.15M
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
1767
1.15M
  char *yy_cp = yyg->yy_c_buf_p;
1768
1769
1.15M
  YY_CHAR yy_c = 1;
1770
1.15M
  if ( yy_accept[yy_current_state] )
1771
658k
    {
1772
658k
    yyg->yy_last_accepting_state = yy_current_state;
1773
658k
    yyg->yy_last_accepting_cpos = yy_cp;
1774
658k
    }
1775
2.29M
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1776
1.13M
    {
1777
1.13M
    yy_current_state = (int) yy_def[yy_current_state];
1778
1.13M
    if ( yy_current_state >= 216 )
1779
837k
      yy_c = yy_meta[yy_c];
1780
1.13M
    }
1781
1.15M
  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1782
1.15M
  yy_is_jam = (yy_current_state == 215);
1783
1784
1.15M
  (void)yyg;
1785
1.15M
  return yy_is_jam ? 0 : yy_current_state;
1786
1.15M
}
1787
1788
#ifndef YY_NO_UNPUT
1789
1790
    static void yyunput (int c, char * yy_bp , yyscan_t yyscanner)
1791
118k
{
1792
118k
  char *yy_cp;
1793
118k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1794
1795
118k
    yy_cp = yyg->yy_c_buf_p;
1796
1797
  /* undo effects of setting up yytext */
1798
118k
  *yy_cp = yyg->yy_hold_char;
1799
1800
118k
  if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1801
527
    { /* need to shift things up to make room */
1802
    /* +2 for EOB chars. */
1803
527
    int number_to_move = yyg->yy_n_chars + 2;
1804
527
    char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
1805
527
          YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1806
527
    char *source =
1807
527
        &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1808
1809
290k
    while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1810
289k
      *--dest = *--source;
1811
1812
527
    yy_cp += (int) (dest - source);
1813
527
    yy_bp += (int) (dest - source);
1814
527
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
1815
527
      yyg->yy_n_chars = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1816
1817
527
    if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1818
0
      YY_FATAL_ERROR( "flex scanner push-back overflow" );
1819
527
    }
1820
1821
118k
  *--yy_cp = (char) c;
1822
1823
118k
  yyg->yytext_ptr = yy_bp;
1824
118k
  yyg->yy_hold_char = *yy_cp;
1825
118k
  yyg->yy_c_buf_p = yy_cp;
1826
118k
}
1827
1828
#endif
1829
1830
#ifndef YY_NO_INPUT
1831
#ifdef __cplusplus
1832
    static int yyinput (yyscan_t yyscanner)
1833
#else
1834
    static int input  (yyscan_t yyscanner)
1835
#endif
1836
1837
{
1838
  int c;
1839
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1840
1841
  *yyg->yy_c_buf_p = yyg->yy_hold_char;
1842
1843
  if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1844
    {
1845
    /* yy_c_buf_p now points to the character we want to return.
1846
     * If this occurs *before* the EOB characters, then it's a
1847
     * valid NUL; if not, then we've hit the end of the buffer.
1848
     */
1849
    if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1850
      /* This was really a NUL. */
1851
      *yyg->yy_c_buf_p = '\0';
1852
1853
    else
1854
      { /* need more input */
1855
      int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr);
1856
      ++yyg->yy_c_buf_p;
1857
1858
      switch ( yy_get_next_buffer( yyscanner ) )
1859
        {
1860
        case EOB_ACT_LAST_MATCH:
1861
          /* This happens because yy_g_n_b()
1862
           * sees that we've accumulated a
1863
           * token and flags that we need to
1864
           * try matching the token before
1865
           * proceeding.  But for input(),
1866
           * there's no matching to consider.
1867
           * So convert the EOB_ACT_LAST_MATCH
1868
           * to EOB_ACT_END_OF_FILE.
1869
           */
1870
1871
          /* Reset buffer status. */
1872
          yyrestart( yyin , yyscanner);
1873
1874
          /*FALLTHROUGH*/
1875
1876
        case EOB_ACT_END_OF_FILE:
1877
          {
1878
          if ( yywrap( yyscanner ) )
1879
            return 0;
1880
1881
          if ( ! yyg->yy_did_buffer_switch_on_eof )
1882
            YY_NEW_FILE;
1883
#ifdef __cplusplus
1884
          return yyinput(yyscanner);
1885
#else
1886
          return input(yyscanner);
1887
#endif
1888
          }
1889
1890
        case EOB_ACT_CONTINUE_SCAN:
1891
          yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
1892
          break;
1893
        }
1894
      }
1895
    }
1896
1897
  c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
1898
  *yyg->yy_c_buf_p = '\0';  /* preserve yytext */
1899
  yyg->yy_hold_char = *++yyg->yy_c_buf_p;
1900
1901
  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
1902
1903
  return c;
1904
}
1905
#endif  /* ifndef YY_NO_INPUT */
1906
1907
/** Immediately switch to a different input stream.
1908
 * @param input_file A readable stream.
1909
 * @param yyscanner The scanner object.
1910
 * @note This function does not reset the start condition to @c INITIAL .
1911
 */
1912
    void yyrestart  (FILE * input_file , yyscan_t yyscanner)
1913
7.28k
{
1914
7.28k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1915
1916
7.28k
  if ( ! YY_CURRENT_BUFFER ){
1917
0
        yyensure_buffer_stack (yyscanner);
1918
0
    YY_CURRENT_BUFFER_LVALUE =
1919
0
            yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
1920
0
  }
1921
1922
7.28k
  yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner);
1923
7.28k
  yy_load_buffer_state( yyscanner );
1924
7.28k
}
1925
1926
/** Switch to a different input buffer.
1927
 * @param new_buffer The new input buffer.
1928
 * @param yyscanner The scanner object.
1929
 */
1930
    void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer , yyscan_t yyscanner)
1931
10.9k
{
1932
10.9k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1933
1934
  /* TODO. We should be able to replace this entire function body
1935
   * with
1936
   *    yypop_buffer_state();
1937
   *    yypush_buffer_state(new_buffer);
1938
     */
1939
10.9k
  yyensure_buffer_stack (yyscanner);
1940
10.9k
  if ( YY_CURRENT_BUFFER == new_buffer )
1941
0
    return;
1942
1943
10.9k
  if ( YY_CURRENT_BUFFER )
1944
3.66k
    {
1945
    /* Flush out information for old buffer. */
1946
3.66k
    *yyg->yy_c_buf_p = yyg->yy_hold_char;
1947
3.66k
    YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
1948
3.66k
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1949
3.66k
    }
1950
1951
10.9k
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1952
10.9k
  yy_load_buffer_state( yyscanner );
1953
1954
  /* We don't actually know whether we did this switch during
1955
   * EOF (yywrap()) processing, but the only time this flag
1956
   * is looked at is after yywrap() is called, so it's safe
1957
   * to go ahead and always set it.
1958
   */
1959
10.9k
  yyg->yy_did_buffer_switch_on_eof = 1;
1960
10.9k
}
1961
1962
static void yy_load_buffer_state  (yyscan_t yyscanner)
1963
29.1k
{
1964
29.1k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1965
29.1k
  yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1966
29.1k
  yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1967
29.1k
  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1968
29.1k
  yyg->yy_hold_char = *yyg->yy_c_buf_p;
1969
29.1k
}
1970
1971
/** Allocate and initialize an input buffer state.
1972
 * @param file A readable stream.
1973
 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1974
 * @param yyscanner The scanner object.
1975
 * @return the allocated buffer state.
1976
 */
1977
    YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
1978
7.28k
{
1979
7.28k
  YY_BUFFER_STATE b;
1980
1981
7.28k
  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
1982
7.28k
  if ( ! b )
1983
0
    YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1984
1985
7.28k
  b->yy_buf_size = size;
1986
1987
  /* yy_ch_buf has to be 2 characters longer than the size given because
1988
   * we need to put in 2 end-of-buffer characters.
1989
   */
1990
7.28k
  b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
1991
7.28k
  if ( ! b->yy_ch_buf )
1992
0
    YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1993
1994
7.28k
  b->yy_is_our_buffer = 1;
1995
1996
7.28k
  yy_init_buffer( b, file , yyscanner);
1997
1998
7.28k
  return b;
1999
7.28k
}
2000
2001
/** Destroy the buffer.
2002
 * @param b a buffer created with yy_create_buffer()
2003
 * @param yyscanner The scanner object.
2004
 */
2005
    void yy_delete_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
2006
7.28k
{
2007
7.28k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2008
2009
7.28k
  if ( ! b )
2010
0
    return;
2011
2012
7.28k
  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2013
7.28k
    YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2014
2015
7.28k
  if ( b->yy_is_our_buffer )
2016
7.28k
    yyfree( (void *) b->yy_ch_buf , yyscanner );
2017
2018
7.28k
  yyfree( (void *) b , yyscanner );
2019
7.28k
}
2020
2021
/* Initializes or reinitializes a buffer.
2022
 * This function is sometimes called more than once on the same buffer,
2023
 * such as during a yyrestart() or at EOF.
2024
 */
2025
    static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file , yyscan_t yyscanner)
2026
2027
14.5k
{
2028
14.5k
  int oerrno = errno;
2029
14.5k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2030
2031
14.5k
  yy_flush_buffer( b , yyscanner);
2032
2033
14.5k
  b->yy_input_file = file;
2034
14.5k
  b->yy_fill_buffer = 1;
2035
2036
    /* If b is the current buffer, then yy_init_buffer was _probably_
2037
     * called from yyrestart() or through yy_get_next_buffer.
2038
     * In that case, we don't want to reset the lineno or column.
2039
     */
2040
14.5k
    if (b != YY_CURRENT_BUFFER){
2041
7.28k
        b->yy_bs_lineno = 1;
2042
7.28k
        b->yy_bs_column = 0;
2043
7.28k
    }
2044
2045
14.5k
        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2046
2047
14.5k
  errno = oerrno;
2048
14.5k
}
2049
2050
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2051
 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2052
 * @param yyscanner The scanner object.
2053
 */
2054
    void yy_flush_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
2055
14.5k
{
2056
14.5k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2057
14.5k
  if ( ! b )
2058
0
    return;
2059
2060
14.5k
  b->yy_n_chars = 0;
2061
2062
  /* We always need two end-of-buffer characters.  The first causes
2063
   * a transition to the end-of-buffer state.  The second causes
2064
   * a jam in that state.
2065
   */
2066
14.5k
  b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2067
14.5k
  b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2068
2069
14.5k
  b->yy_buf_pos = &b->yy_ch_buf[0];
2070
2071
14.5k
  b->yy_at_bol = 1;
2072
14.5k
  b->yy_buffer_status = YY_BUFFER_NEW;
2073
2074
14.5k
  if ( b == YY_CURRENT_BUFFER )
2075
7.28k
    yy_load_buffer_state( yyscanner );
2076
14.5k
}
2077
2078
/** Pushes the new state onto the stack. The new state becomes
2079
 *  the current state. This function will allocate the stack
2080
 *  if necessary.
2081
 *  @param new_buffer The new state.
2082
 *  @param yyscanner The scanner object.
2083
 */
2084
void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2085
0
{
2086
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2087
0
  if (new_buffer == NULL)
2088
0
    return;
2089
2090
0
  yyensure_buffer_stack(yyscanner);
2091
2092
  /* This block is copied from yy_switch_to_buffer. */
2093
0
  if ( YY_CURRENT_BUFFER )
2094
0
    {
2095
    /* Flush out information for old buffer. */
2096
0
    *yyg->yy_c_buf_p = yyg->yy_hold_char;
2097
0
    YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2098
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2099
0
    }
2100
2101
  /* Only push if top exists. Otherwise, replace top. */
2102
0
  if (YY_CURRENT_BUFFER)
2103
0
    yyg->yy_buffer_stack_top++;
2104
0
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2105
2106
  /* copied from yy_switch_to_buffer. */
2107
0
  yy_load_buffer_state( yyscanner );
2108
0
  yyg->yy_did_buffer_switch_on_eof = 1;
2109
0
}
2110
2111
/** Removes and deletes the top of the stack, if present.
2112
 *  The next element becomes the new top.
2113
 *  @param yyscanner The scanner object.
2114
 */
2115
void yypop_buffer_state (yyscan_t yyscanner)
2116
3.61k
{
2117
3.61k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2118
3.61k
  if (!YY_CURRENT_BUFFER)
2119
3.61k
    return;
2120
2121
0
  yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner);
2122
0
  YY_CURRENT_BUFFER_LVALUE = NULL;
2123
0
  if (yyg->yy_buffer_stack_top > 0)
2124
0
    --yyg->yy_buffer_stack_top;
2125
2126
0
  if (YY_CURRENT_BUFFER) {
2127
0
    yy_load_buffer_state( yyscanner );
2128
0
    yyg->yy_did_buffer_switch_on_eof = 1;
2129
0
  }
2130
0
}
2131
2132
/* Allocates the stack if it does not exist.
2133
 *  Guarantees space for at least one push.
2134
 */
2135
static void yyensure_buffer_stack (yyscan_t yyscanner)
2136
10.9k
{
2137
10.9k
  yy_size_t num_to_alloc;
2138
10.9k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2139
2140
10.9k
  if (!yyg->yy_buffer_stack) {
2141
2142
    /* First allocation is just for 2 elements, since we don't know if this
2143
     * scanner will even need a stack. We use 2 instead of 1 to avoid an
2144
     * immediate realloc on the next call.
2145
         */
2146
3.61k
      num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
2147
3.61k
    yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
2148
3.61k
                (num_to_alloc * sizeof(struct yy_buffer_state*)
2149
3.61k
                , yyscanner);
2150
3.61k
    if ( ! yyg->yy_buffer_stack )
2151
0
      YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2152
2153
3.61k
    memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2154
2155
3.61k
    yyg->yy_buffer_stack_max = num_to_alloc;
2156
3.61k
    yyg->yy_buffer_stack_top = 0;
2157
3.61k
    return;
2158
3.61k
  }
2159
2160
7.33k
  if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2161
2162
    /* Increase the buffer to prepare for a possible push. */
2163
3.61k
    yy_size_t grow_size = 8 /* arbitrary grow size */;
2164
2165
3.61k
    num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
2166
3.61k
    yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
2167
3.61k
                (yyg->yy_buffer_stack,
2168
3.61k
                num_to_alloc * sizeof(struct yy_buffer_state*)
2169
3.61k
                , yyscanner);
2170
3.61k
    if ( ! yyg->yy_buffer_stack )
2171
0
      YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2172
2173
    /* zero only the new slots.*/
2174
3.61k
    memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
2175
3.61k
    yyg->yy_buffer_stack_max = num_to_alloc;
2176
3.61k
  }
2177
7.33k
}
2178
2179
/** Setup the input buffer state to scan directly from a user-specified character buffer.
2180
 * @param base the character buffer
2181
 * @param size the size in bytes of the character buffer
2182
 * @param yyscanner The scanner object.
2183
 * @return the newly allocated buffer state object.
2184
 */
2185
YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size , yyscan_t yyscanner)
2186
0
{
2187
0
  YY_BUFFER_STATE b;
2188
2189
0
  if ( size < 2 ||
2190
0
       base[size-2] != YY_END_OF_BUFFER_CHAR ||
2191
0
       base[size-1] != YY_END_OF_BUFFER_CHAR )
2192
    /* They forgot to leave room for the EOB's. */
2193
0
    return NULL;
2194
2195
0
  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
2196
0
  if ( ! b )
2197
0
    YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2198
2199
0
  b->yy_buf_size = (int) (size - 2);  /* "- 2" to take care of EOB's */
2200
0
  b->yy_buf_pos = b->yy_ch_buf = base;
2201
0
  b->yy_is_our_buffer = 0;
2202
0
  b->yy_input_file = NULL;
2203
0
  b->yy_n_chars = b->yy_buf_size;
2204
0
  b->yy_is_interactive = 0;
2205
0
  b->yy_at_bol = 1;
2206
0
  b->yy_fill_buffer = 0;
2207
0
  b->yy_buffer_status = YY_BUFFER_NEW;
2208
2209
0
  yy_switch_to_buffer( b , yyscanner );
2210
2211
0
  return b;
2212
0
}
2213
2214
/** Setup the input buffer state to scan a string. The next call to yylex() will
2215
 * scan from a @e copy of @a str.
2216
 * @param yystr a NUL-terminated string to scan
2217
 * @param yyscanner The scanner object.
2218
 * @return the newly allocated buffer state object.
2219
 * @note If you want to scan bytes that may contain NUL values, then use
2220
 *       yy_scan_bytes() instead.
2221
 */
2222
YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner)
2223
0
{
2224
2225
0
  return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
2226
0
}
2227
2228
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
2229
 * scan from a @e copy of @a bytes.
2230
 * @param yybytes the byte buffer to scan
2231
 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
2232
 * @param yyscanner The scanner object.
2233
 * @return the newly allocated buffer state object.
2234
 */
2235
YY_BUFFER_STATE yy_scan_bytes  (const char * yybytes, int  _yybytes_len , yyscan_t yyscanner)
2236
0
{
2237
0
  YY_BUFFER_STATE b;
2238
0
  char *buf;
2239
0
  yy_size_t n;
2240
0
  int i;
2241
2242
  /* Get memory for full buffer, including space for trailing EOB's. */
2243
0
  n = (yy_size_t) (_yybytes_len + 2);
2244
0
  buf = (char *) yyalloc( n , yyscanner );
2245
0
  if ( ! buf )
2246
0
    YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2247
2248
0
  for ( i = 0; i < _yybytes_len; ++i )
2249
0
    buf[i] = yybytes[i];
2250
2251
0
  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2252
2253
0
  b = yy_scan_buffer( buf, n , yyscanner);
2254
0
  if ( ! b )
2255
0
    YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2256
2257
  /* It's okay to grow etc. this buffer, and we should throw it
2258
   * away when we're done.
2259
   */
2260
0
  b->yy_is_our_buffer = 1;
2261
2262
0
  return b;
2263
0
}
2264
2265
#ifndef YY_EXIT_FAILURE
2266
0
#define YY_EXIT_FAILURE 2
2267
#endif
2268
2269
static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
2270
0
{
2271
0
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2272
0
  (void)yyg;
2273
0
  fprintf( stderr, "%s\n", msg );
2274
0
  exit( YY_EXIT_FAILURE );
2275
0
}
2276
2277
/* Redefine yyless() so it works in section 3 code. */
2278
2279
#undef yyless
2280
#define yyless(n) \
2281
  do \
2282
    { \
2283
    /* Undo effects of setting up yytext. */ \
2284
        int yyless_macro_arg = (n); \
2285
        YY_LESS_LINENO(yyless_macro_arg);\
2286
    yytext[yyleng] = yyg->yy_hold_char; \
2287
    yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2288
    yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2289
    *yyg->yy_c_buf_p = '\0'; \
2290
    yyleng = yyless_macro_arg; \
2291
    } \
2292
  while ( 0 )
2293
2294
/* Accessor  methods (get/set functions) to struct members. */
2295
2296
/** Get the user-defined data for this scanner.
2297
 * @param yyscanner The scanner object.
2298
 */
2299
YY_EXTRA_TYPE yyget_extra  (yyscan_t yyscanner)
2300
880k
{
2301
880k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2302
880k
    return yyextra;
2303
880k
}
2304
2305
/** Get the current line number.
2306
 * @param yyscanner The scanner object.
2307
 */
2308
int yyget_lineno  (yyscan_t yyscanner)
2309
0
{
2310
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2311
2312
0
        if (! YY_CURRENT_BUFFER)
2313
0
            return 0;
2314
2315
0
    return yylineno;
2316
0
}
2317
2318
/** Get the current column number.
2319
 * @param yyscanner The scanner object.
2320
 */
2321
int yyget_column  (yyscan_t yyscanner)
2322
0
{
2323
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2324
2325
0
        if (! YY_CURRENT_BUFFER)
2326
0
            return 0;
2327
2328
0
    return yycolumn;
2329
0
}
2330
2331
/** Get the input stream.
2332
 * @param yyscanner The scanner object.
2333
 */
2334
FILE *yyget_in  (yyscan_t yyscanner)
2335
0
{
2336
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2337
0
    return yyin;
2338
0
}
2339
2340
/** Get the output stream.
2341
 * @param yyscanner The scanner object.
2342
 */
2343
FILE *yyget_out  (yyscan_t yyscanner)
2344
0
{
2345
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2346
0
    return yyout;
2347
0
}
2348
2349
/** Get the length of the current token.
2350
 * @param yyscanner The scanner object.
2351
 */
2352
int yyget_leng  (yyscan_t yyscanner)
2353
0
{
2354
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2355
0
    return yyleng;
2356
0
}
2357
2358
/** Get the current token.
2359
 * @param yyscanner The scanner object.
2360
 */
2361
2362
char *yyget_text  (yyscan_t yyscanner)
2363
0
{
2364
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2365
0
    return yytext;
2366
0
}
2367
2368
/** Set the user-defined data. This data is never touched by the scanner.
2369
 * @param user_defined The data to be associated with this scanner.
2370
 * @param yyscanner The scanner object.
2371
 */
2372
void yyset_extra (YY_EXTRA_TYPE  user_defined , yyscan_t yyscanner)
2373
3.61k
{
2374
3.61k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2375
3.61k
    yyextra = user_defined ;
2376
3.61k
}
2377
2378
/** Set the current line number.
2379
 * @param _line_number line number
2380
 * @param yyscanner The scanner object.
2381
 */
2382
void yyset_lineno (int  _line_number , yyscan_t yyscanner)
2383
0
{
2384
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2385
2386
        /* lineno is only valid if an input buffer exists. */
2387
0
        if (! YY_CURRENT_BUFFER )
2388
0
           YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
2389
2390
0
    yylineno = _line_number;
2391
0
}
2392
2393
/** Set the current column.
2394
 * @param _column_no column number
2395
 * @param yyscanner The scanner object.
2396
 */
2397
void yyset_column (int  _column_no , yyscan_t yyscanner)
2398
0
{
2399
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2400
2401
        /* column is only valid if an input buffer exists. */
2402
0
        if (! YY_CURRENT_BUFFER )
2403
0
           YY_FATAL_ERROR( "yyset_column called with no buffer" );
2404
2405
0
    yycolumn = _column_no;
2406
0
}
2407
2408
/** Set the input stream. This does not discard the current
2409
 * input buffer.
2410
 * @param _in_str A readable stream.
2411
 * @param yyscanner The scanner object.
2412
 * @see yy_switch_to_buffer
2413
 */
2414
void yyset_in (FILE *  _in_str , yyscan_t yyscanner)
2415
0
{
2416
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2417
0
    yyin = _in_str ;
2418
0
}
2419
2420
void yyset_out (FILE *  _out_str , yyscan_t yyscanner)
2421
0
{
2422
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2423
0
    yyout = _out_str ;
2424
0
}
2425
2426
int yyget_debug  (yyscan_t yyscanner)
2427
0
{
2428
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2429
0
    return yy_flex_debug;
2430
0
}
2431
2432
void yyset_debug (int  _bdebug , yyscan_t yyscanner)
2433
0
{
2434
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2435
0
    yy_flex_debug = _bdebug ;
2436
0
}
2437
2438
/* Accessor methods for yylval and yylloc */
2439
2440
/* User-visible API */
2441
2442
/* yylex_init is special because it creates the scanner itself, so it is
2443
 * the ONLY reentrant function that doesn't take the scanner as the last argument.
2444
 * That's why we explicitly handle the declaration, instead of using our macros.
2445
 */
2446
int yylex_init(yyscan_t* ptr_yy_globals)
2447
3.61k
{
2448
3.61k
    if (ptr_yy_globals == NULL){
2449
0
        errno = EINVAL;
2450
0
        return 1;
2451
0
    }
2452
2453
3.61k
    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
2454
2455
3.61k
    if (*ptr_yy_globals == NULL){
2456
0
        errno = ENOMEM;
2457
0
        return 1;
2458
0
    }
2459
2460
    /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
2461
3.61k
    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2462
2463
3.61k
    return yy_init_globals ( *ptr_yy_globals );
2464
3.61k
}
2465
2466
/* yylex_init_extra has the same functionality as yylex_init, but follows the
2467
 * convention of taking the scanner as the last argument. Note however, that
2468
 * this is a *pointer* to a scanner, as it will be allocated by this call (and
2469
 * is the reason, too, why this function also must handle its own declaration).
2470
 * The user defined value in the first argument will be available to yyalloc in
2471
 * the yyextra field.
2472
 */
2473
int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )
2474
0
{
2475
0
    struct yyguts_t dummy_yyguts;
2476
2477
0
    yyset_extra (yy_user_defined, &dummy_yyguts);
2478
2479
0
    if (ptr_yy_globals == NULL){
2480
0
        errno = EINVAL;
2481
0
        return 1;
2482
0
    }
2483
2484
0
    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2485
2486
0
    if (*ptr_yy_globals == NULL){
2487
0
        errno = ENOMEM;
2488
0
        return 1;
2489
0
    }
2490
2491
    /* By setting to 0xAA, we expose bugs in
2492
    yy_init_globals. Leave at 0x00 for releases. */
2493
0
    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2494
2495
0
    yyset_extra (yy_user_defined, *ptr_yy_globals);
2496
2497
0
    return yy_init_globals ( *ptr_yy_globals );
2498
0
}
2499
2500
static int yy_init_globals (yyscan_t yyscanner)
2501
7.22k
{
2502
7.22k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2503
    /* Initialization is the same as for the non-reentrant scanner.
2504
     * This function is called from yylex_destroy(), so don't allocate here.
2505
     */
2506
2507
7.22k
    yyg->yy_buffer_stack = NULL;
2508
7.22k
    yyg->yy_buffer_stack_top = 0;
2509
7.22k
    yyg->yy_buffer_stack_max = 0;
2510
7.22k
    yyg->yy_c_buf_p = NULL;
2511
7.22k
    yyg->yy_init = 0;
2512
7.22k
    yyg->yy_start = 0;
2513
2514
7.22k
    yyg->yy_start_stack_ptr = 0;
2515
7.22k
    yyg->yy_start_stack_depth = 0;
2516
7.22k
    yyg->yy_start_stack =  NULL;
2517
2518
/* Defined in main.c */
2519
#ifdef YY_STDINIT
2520
    yyin = stdin;
2521
    yyout = stdout;
2522
#else
2523
7.22k
    yyin = NULL;
2524
7.22k
    yyout = NULL;
2525
7.22k
#endif
2526
2527
    /* For future reference: Set errno on error, since we are called by
2528
     * yylex_init()
2529
     */
2530
7.22k
    return 0;
2531
7.22k
}
2532
2533
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
2534
int yylex_destroy  (yyscan_t yyscanner)
2535
3.61k
{
2536
3.61k
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2537
2538
    /* Pop the buffer stack, destroying each element. */
2539
7.22k
  while(YY_CURRENT_BUFFER){
2540
3.61k
    yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner );
2541
3.61k
    YY_CURRENT_BUFFER_LVALUE = NULL;
2542
3.61k
    yypop_buffer_state(yyscanner);
2543
3.61k
  }
2544
2545
  /* Destroy the stack itself. */
2546
3.61k
  yyfree(yyg->yy_buffer_stack , yyscanner);
2547
3.61k
  yyg->yy_buffer_stack = NULL;
2548
2549
    /* Destroy the start condition stack. */
2550
3.61k
        yyfree( yyg->yy_start_stack , yyscanner );
2551
3.61k
        yyg->yy_start_stack = NULL;
2552
2553
    /* Reset the globals. This is important in a non-reentrant scanner so the next time
2554
     * yylex() is called, initialization will occur. */
2555
3.61k
    yy_init_globals( yyscanner);
2556
2557
    /* Destroy the main struct (reentrant only). */
2558
3.61k
    yyfree ( yyscanner , yyscanner );
2559
3.61k
    yyscanner = NULL;
2560
3.61k
    return 0;
2561
3.61k
}
2562
2563
/*
2564
 * Internal utility routines.
2565
 */
2566
2567
#ifndef yytext_ptr
2568
static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner)
2569
{
2570
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2571
  (void)yyg;
2572
2573
  int i;
2574
  for ( i = 0; i < n; ++i )
2575
    s1[i] = s2[i];
2576
}
2577
#endif
2578
2579
#ifdef YY_NEED_STRLEN
2580
static int yy_flex_strlen (const char * s , yyscan_t yyscanner)
2581
{
2582
  int n;
2583
  for ( n = 0; s[n]; ++n )
2584
    ;
2585
2586
  return n;
2587
}
2588
#endif
2589
2590
void *yyalloc (yy_size_t  size , yyscan_t yyscanner)
2591
21.7k
{
2592
21.7k
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2593
21.7k
  (void)yyg;
2594
21.7k
  return malloc(size);
2595
21.7k
}
2596
2597
void *yyrealloc  (void * ptr, yy_size_t  size , yyscan_t yyscanner)
2598
3.80k
{
2599
3.80k
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2600
3.80k
  (void)yyg;
2601
2602
  /* The cast to (char *) in the following accommodates both
2603
   * implementations that use char* generic pointers, and those
2604
   * that use void* generic pointers.  It works with the latter
2605
   * because both ANSI C and C++ allow castless assignment from
2606
   * any pointer type to void*, and deal with argument conversions
2607
   * as though doing an assignment.
2608
   */
2609
3.80k
  return realloc(ptr, size);
2610
3.80k
}
2611
2612
void yyfree (void * ptr , yyscan_t yyscanner)
2613
25.4k
{
2614
25.4k
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2615
25.4k
  (void)yyg;
2616
25.4k
  free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2617
25.4k
}
2618
2619
#define YYTABLES_NAME "yytables"
2620
2621
/*--------------------------------------------------------------------------*/
2622
YY_BUFFER_STATE cmFortranLexer_GetCurrentBuffer(yyscan_t yyscanner)
2623
7.33k
{
2624
  /* Hack into the internal flex-generated scanner to get the buffer.  */
2625
7.33k
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2626
  return YY_CURRENT_BUFFER;
2627
7.33k
}
2628
2629
#endif /* __clang_analyzer__ */