summaryrefslogtreecommitdiffstats
path: root/src/code.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/code.cpp')
-rw-r--r--src/code.cpp3534
1 files changed, 3534 insertions, 0 deletions
diff --git a/src/code.cpp b/src/code.cpp
new file mode 100644
index 0000000..c71b3f6
--- /dev/null
+++ b/src/code.cpp
@@ -0,0 +1,3534 @@
+#define yy_create_buffer codeYY_create_buffer
+#define yy_delete_buffer codeYY_delete_buffer
+#define yy_scan_buffer codeYY_scan_buffer
+#define yy_scan_string codeYY_scan_string
+#define yy_scan_bytes codeYY_scan_bytes
+#define yy_flex_debug codeYY_flex_debug
+#define yy_init_buffer codeYY_init_buffer
+#define yy_flush_buffer codeYY_flush_buffer
+#define yy_load_buffer_state codeYY_load_buffer_state
+#define yy_switch_to_buffer codeYY_switch_to_buffer
+#define yyin codeYYin
+#define yyleng codeYYleng
+#define yylex codeYYlex
+#define yyout codeYYout
+#define yyrestart codeYYrestart
+#define yytext codeYYtext
+
+/* A lexical scanner generated by flex */
+
+/* Scanner skeleton version:
+ * $Header$
+ */
+
+#define FLEX_SCANNER
+#define YY_FLEX_MAJOR_VERSION 2
+#define YY_FLEX_MINOR_VERSION 5
+
+#include <stdio.h>
+
+
+/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
+#ifdef c_plusplus
+#ifndef __cplusplus
+#define __cplusplus
+#endif
+#endif
+
+
+#ifdef __cplusplus
+
+#include <stdlib.h>
+#include <unistd.h>
+
+/* Use prototypes in function declarations. */
+#define YY_USE_PROTOS
+
+/* The "const" storage-class-modifier is valid. */
+#define YY_USE_CONST
+
+#else /* ! __cplusplus */
+
+#if __STDC__
+
+#define YY_USE_PROTOS
+#define YY_USE_CONST
+
+#endif /* __STDC__ */
+#endif /* ! __cplusplus */
+
+#ifdef __TURBOC__
+ #pragma warn -rch
+ #pragma warn -use
+#include <io.h>
+#include <stdlib.h>
+#define YY_USE_CONST
+#define YY_USE_PROTOS
+#endif
+
+#ifdef YY_USE_CONST
+#define yyconst const
+#else
+#define yyconst
+#endif
+
+
+#ifdef YY_USE_PROTOS
+#define YY_PROTO(proto) proto
+#else
+#define YY_PROTO(proto) ()
+#endif
+
+/* Returned upon end-of-file. */
+#define YY_NULL 0
+
+/* Promotes a possibly negative, possibly signed char to an unsigned
+ * integer for use as an array index. If the signed char is negative,
+ * we want to instead treat it as an 8-bit unsigned char, hence the
+ * double cast.
+ */
+#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
+
+/* Enter a start condition. This macro really ought to take a parameter,
+ * but we do it the disgusting crufty way forced on us by the ()-less
+ * definition of BEGIN.
+ */
+#define BEGIN yy_start = 1 + 2 *
+
+/* Translate the current start state into a value that can be later handed
+ * to BEGIN to return to the state. The YYSTATE alias is for lex
+ * compatibility.
+ */
+#define YY_START ((yy_start - 1) / 2)
+#define YYSTATE YY_START
+
+/* Action number for EOF rule of a given start state. */
+#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
+
+/* Special action meaning "start processing a new file". */
+#define YY_NEW_FILE yyrestart( yyin )
+
+#define YY_END_OF_BUFFER_CHAR 0
+
+/* Size of default input buffer. */
+#define YY_BUF_SIZE 16384
+
+typedef struct yy_buffer_state *YY_BUFFER_STATE;
+
+extern int yyleng;
+extern FILE *yyin, *yyout;
+
+#define EOB_ACT_CONTINUE_SCAN 0
+#define EOB_ACT_END_OF_FILE 1
+#define EOB_ACT_LAST_MATCH 2
+
+/* The funky do-while in the following #define is used to turn the definition
+ * int a single C statement (which needs a semi-colon terminator). This
+ * avoids problems with code like:
+ *
+ * if ( condition_holds )
+ * yyless( 5 );
+ * else
+ * do_something_else();
+ *
+ * Prior to using the do-while the compiler would get upset at the
+ * "else" because it interpreted the "if" statement as being all
+ * done when it reached the ';' after the yyless() call.
+ */
+
+/* Return all but the first 'n' matched characters back to the input stream. */
+
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ *yy_cp = yy_hold_char; \
+ YY_RESTORE_YY_MORE_OFFSET \
+ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
+ YY_DO_BEFORE_ACTION; /* set up yytext again */ \
+ } \
+ while ( 0 )
+
+#define unput(c) yyunput( c, yytext_ptr )
+
+/* The following is because we cannot portably get our hands on size_t
+ * (without autoconf's help, which isn't available because we want
+ * flex-generated scanners to compile on their own).
+ */
+typedef unsigned int yy_size_t;
+
+
+struct yy_buffer_state
+ {
+ FILE *yy_input_file;
+
+ char *yy_ch_buf; /* input buffer */
+ char *yy_buf_pos; /* current position in input buffer */
+
+ /* Size of input buffer in bytes, not including room for EOB
+ * characters.
+ */
+ yy_size_t yy_buf_size;
+
+ /* Number of characters read into yy_ch_buf, not including EOB
+ * characters.
+ */
+ int yy_n_chars;
+
+ /* Whether we "own" the buffer - i.e., we know we created it,
+ * and can realloc() it to grow it, and should free() it to
+ * delete it.
+ */
+ int yy_is_our_buffer;
+
+ /* Whether this is an "interactive" input source; if so, and
+ * if we're using stdio for input, then we want to use getc()
+ * instead of fread(), to make sure we stop fetching input after
+ * each newline.
+ */
+ int yy_is_interactive;
+
+ /* Whether we're considered to be at the beginning of a line.
+ * If so, '^' rules will be active on the next match, otherwise
+ * not.
+ */
+ int yy_at_bol;
+
+ /* Whether to try to fill the input buffer when we reach the
+ * end of it.
+ */
+ int yy_fill_buffer;
+
+ int yy_buffer_status;
+#define YY_BUFFER_NEW 0
+#define YY_BUFFER_NORMAL 1
+ /* When an EOF's been seen but there's still some text to process
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
+ * shouldn't try reading from the input source any more. We might
+ * still have a bunch of tokens to match, though, because of
+ * possible backing-up.
+ *
+ * When we actually see the EOF, we change the status to "new"
+ * (via yyrestart()), so that the user can continue scanning by
+ * just pointing yyin at a new input file.
+ */
+#define YY_BUFFER_EOF_PENDING 2
+ };
+
+static YY_BUFFER_STATE yy_current_buffer = 0;
+
+/* We provide macros for accessing buffer states in case in the
+ * future we want to put the buffer states in a more general
+ * "scanner state".
+ */
+#define YY_CURRENT_BUFFER yy_current_buffer
+
+
+/* yy_hold_char holds the character lost when yytext is formed. */
+static char yy_hold_char;
+
+static int yy_n_chars; /* number of characters read into yy_ch_buf */
+
+
+int yyleng;
+
+/* Points to current character in buffer. */
+static char *yy_c_buf_p = (char *) 0;
+static int yy_init = 1; /* whether we need to initialize */
+static int yy_start = 0; /* start state number */
+
+/* Flag which is used to allow yywrap()'s to do buffer switches
+ * instead of setting up a fresh yyin. A bit of a hack ...
+ */
+static int yy_did_buffer_switch_on_eof;
+
+void yyrestart YY_PROTO(( FILE *input_file ));
+
+void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
+void yy_load_buffer_state YY_PROTO(( void ));
+YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
+void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
+void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
+void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
+#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
+
+YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
+YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
+YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
+
+static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
+static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
+static void yy_flex_free YY_PROTO(( void * ));
+
+#define yy_new_buffer yy_create_buffer
+
+#define yy_set_interactive(is_interactive) \
+ { \
+ if ( ! yy_current_buffer ) \
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
+ yy_current_buffer->yy_is_interactive = is_interactive; \
+ }
+
+#define yy_set_bol(at_bol) \
+ { \
+ if ( ! yy_current_buffer ) \
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
+ yy_current_buffer->yy_at_bol = at_bol; \
+ }
+
+#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
+
+
+#define YY_USES_REJECT
+
+#define yywrap() 1
+#define YY_SKIP_YYWRAP
+typedef unsigned char YY_CHAR;
+FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
+typedef int yy_state_type;
+extern char *yytext;
+#define yytext_ptr yytext
+
+static yy_state_type yy_get_previous_state YY_PROTO(( void ));
+static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
+static int yy_get_next_buffer YY_PROTO(( void ));
+static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
+
+/* Done after the current pattern has been matched and before the
+ * corresponding action - sets up yytext.
+ */
+#define YY_DO_BEFORE_ACTION \
+ yytext_ptr = yy_bp; \
+ yyleng = (int) (yy_cp - yy_bp); \
+ yy_hold_char = *yy_cp; \
+ *yy_cp = '\0'; \
+ yy_c_buf_p = yy_cp;
+
+#define YY_NUM_RULES 76
+#define YY_END_OF_BUFFER 77
+static yyconst short int yy_acclist[760] =
+ { 0,
+ 31, 31, 77, 75, 76, 66, 74, 76, 1, 75,
+ 76, 75, 76, 75, 76, 75, 76, 31, 75, 76,
+ 31, 66, 74, 76, 1, 31, 75, 76, 33, 75,
+ 76, 31, 75, 76, 75, 76, 31, 75, 76, 31,
+ 75, 76, 6, 75, 76, 8, 66, 74, 76, 1,
+ 6, 75, 76, 6, 75, 76, 6, 75, 76, 6,
+ 75, 76, 6, 75, 76, 56, 75, 76, 56, 75,
+ 76, 1, 56, 75, 76, 75, 76, 75, 76, 56,
+ 75, 76, 75, 76, 75, 76, 58, 66, 74, 76,
+ 1, 75, 76, 75, 76, 75, 76, 75, 76, 62,
+
+ 65, 75, 76, 64, 66, 74, 76, 1, 62, 65,
+ 75, 76, 65, 75, 76, 62, 65, 75, 76, 62,
+ 65, 75, 76, 62, 65, 75, 76, 75, 76, 66,
+ 74, 76, 1, 75, 76, 30, 75, 76, 75, 76,
+ 40, 75, 76, 75, 76, 37, 75, 76, 41, 75,
+ 76, 35, 75, 76, 8220, 75, 76,16412,16413, 8220,
+ 75, 76,16412,16413, 8220, 75, 76,16412,16413, 8220,
+ 75, 76,16412,16413, 8220, 75, 76,16412,16413, 8220,
+ 75, 76,16412,16413, 8220, 75, 76,16412,16413, 8220,
+ 75, 76,16412,16413, 8220, 75, 76,16412,16413, 8220,
+
+ 75, 76,16412,16413, 8220, 75, 76,16412,16413, 8220,
+ 75, 76,16412,16413, 8220, 75, 76,16412,16413, 8220,
+ 75, 76,16412,16413, 8220, 75, 76,16412,16413, 10,
+ 75, 76, 11, 75, 76, 75, 76, 75, 76, 5,
+ 75, 76, 44, 75, 76, 45, 75, 76, 43, 75,
+ 76, 42, 75, 76,16436, 39, 75, 76, 39, 75,
+ 76, 66, 74, 76, 1, 39, 75, 76, 30, 39,
+ 75, 76, 39, 75, 76, 39, 75, 76, 75, 76,
+ 16422, 39, 75, 76, 39, 75, 76, 39, 75, 76,
+ 42, 75, 76,16437,16438, 50, 75, 76, 49, 75,
+
+ 76, 75, 76, 66, 74, 76, 13, 75, 76, 15,
+ 75, 76, 12, 75, 76, 14, 75, 76, 16, 75,
+ 76, 75, 76, 75, 76, 25, 75, 76, 22, 75,
+ 76, 21, 75, 76, 21, 75, 76, 21, 75, 76,
+ 75, 76, 23, 75, 76, 24, 75, 76, 75, 76,
+ 16388, 72, 73, 72, 73, 31, 31, 31, 31, 32,
+ 72, 31, 32, 73, 34, 31, 31, 31, 32, 72,
+ 31, 32, 73, 9, 73, 7, 9, 73, 56, 56,
+ 57, 55, 73, 56, 55, 73, 58, 72, 73, 72,
+ 73, 62, 61, 63, 72, 62, 63, 73, 62, 62,
+
+ 63, 72, 62, 63, 73, 37, 41, 8220, 8220, 8221,
+ 8220,16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,
+ 16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,16412,
+ 16413, 8220,16412,16413, 27, 8220,16412,16413, 8220,16412,
+ 16413, 8220,16412,16413, 8220,16412,16413, 8220,16412,16413,
+ 8220,16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,
+ 16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,16412,
+ 16413, 8220,16412,16413, 8220,16412,16413, 5, 48, 46,
+ 47, 51, 8244, 42,16436, 42, 8230,16422,16422, 8245,
+ 8246, 42,16437,16438, 50, 15, 16, 13, 15, 14,
+
+ 16, 21, 21, 21, 21, 8196,16388, 31, 31, 31,
+ 31, 31, 31, 31, 31, 60, 62, 62, 62, 36,
+ 8220,16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,
+ 16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,16412,
+ 16413, 8220,16412,16413, 8220,16412,16413, 27, 8220, 27,
+ 8220, 26, 8221, 8220,16412,16413, 8220,16412,16413, 8220,
+ 16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,16412,
+ 16413, 8220,16412,16413, 8220,16412,16413, 8220,16412,16413,
+ 8220,16412,16413, 8220, 8220, 8220,16412,16413,16422,16422,
+ 21, 21, 21, 21,16388, 71, 68, 70, 71, 67,
+
+ 68, 31, 31, 31, 71, 31, 31, 68, 31, 31,
+ 31, 70, 71, 31, 31, 67, 68, 71, 58, 71,
+ 58, 68, 70, 71, 58, 70, 71, 58, 67, 68,
+ 60, 62, 62, 62, 8220,16412,16413, 8220,16412,16413,
+ 8220,16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,
+ 16412,16413, 26, 8220,16412,16413, 8220,16412,16413, 8220,
+ 16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,16412,
+ 16413, 8220,16412,16413, 21, 21, 21, 21, 69, 66,
+ 70, 67, 31, 69, 31, 31, 66, 31, 70, 31,
+ 31, 67, 70, 58, 70, 58, 67, 62, 8220,16412,
+
+ 16413, 8220,16412,16413, 8220,16412,16413, 8220,16412,16413,
+ 8220,16412,16413, 8220,16412,16413, 8220,16412,16413, 8220,
+ 16412,16413, 21, 21, 21, 21, 31, 31, 3, 8220,
+ 3, 8220, 8220,16412,16413, 8220,16412,16413, 8220,16412,
+ 16413, 21, 21, 18, 21, 21, 59, 8220,16412,16413,
+ 20, 21, 21, 17, 21, 21, 19, 21, 2
+ } ;
+
+static yyconst short int yy_accept[446] =
+ { 0,
+ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 4, 6, 9, 12, 14, 16, 18,
+ 21, 25, 29, 32, 35, 37, 40, 43, 46, 50,
+ 54, 57, 60, 63, 66, 69, 72, 76, 78, 80,
+ 83, 85, 87, 91, 94, 96, 98, 100, 104, 108,
+ 113, 116, 120, 124, 128, 130, 133, 136, 139, 141,
+ 144, 146, 149, 152, 155, 160, 165, 170, 175, 180,
+ 185, 190, 195, 200, 205, 210, 215, 220, 225, 230,
+
+ 233, 236, 238, 240, 243, 246, 249, 252, 256, 259,
+ 262, 265, 269, 273, 276, 279, 282, 285, 288, 291,
+ 296, 299, 302, 304, 307, 310, 313, 316, 319, 322,
+ 324, 326, 329, 332, 335, 338, 341, 343, 346, 349,
+ 352, 352, 352, 353, 354, 354, 354, 355, 356, 357,
+ 358, 359, 362, 365, 366, 367, 368, 371, 374, 376,
+ 377, 379, 380, 381, 381, 382, 384, 385, 387, 387,
+ 388, 389, 390, 390, 390, 391, 392, 393, 394, 396,
+ 399, 400, 401, 403, 406, 406, 406, 406, 406, 407,
+ 408, 408, 409, 410, 411, 414, 417, 420, 423, 426,
+
+ 429, 432, 435, 439, 442, 445, 448, 451, 454, 457,
+ 460, 463, 466, 469, 472, 475, 475, 478, 478, 479,
+ 479, 479, 480, 481, 482, 483, 483, 484, 486, 487,
+ 487, 487, 487, 487, 487, 488, 489, 489, 490, 490,
+ 490, 491, 491, 492, 495, 496, 496, 496, 497, 498,
+ 498, 499, 500, 501, 502, 502, 502, 503, 504, 505,
+ 506, 506, 507, 508, 508, 508, 508, 508, 508, 508,
+ 508, 508, 508, 509, 510, 511, 512, 513, 514, 515,
+ 516, 516, 516, 516, 516, 516, 516, 516, 517, 518,
+ 519, 520, 521, 521, 524, 524, 527, 530, 533, 536,
+
+ 539, 542, 545, 548, 550, 552, 554, 557, 560, 563,
+ 566, 569, 572, 575, 578, 581, 584, 585, 586, 589,
+ 589, 589, 590, 590, 590, 591, 592, 593, 594, 595,
+ 596, 596, 596, 597, 597, 598, 598, 598, 600, 600,
+ 602, 603, 604, 606, 607, 609, 610, 611, 614, 615,
+ 618, 619, 621, 621, 623, 623, 623, 625, 628, 628,
+ 631, 631, 632, 632, 633, 634, 635, 638, 641, 644,
+ 647, 650, 653, 654, 657, 660, 663, 666, 669, 672,
+ 675, 675, 676, 677, 678, 679, 680, 680, 681, 682,
+ 682, 683, 685, 686, 688, 690, 691, 693, 694, 696,
+
+ 696, 698, 698, 699, 702, 705, 708, 711, 714, 717,
+ 720, 723, 723, 724, 725, 726, 727, 727, 727, 728,
+ 729, 729, 731, 733, 736, 739, 742, 742, 743, 744,
+ 746, 747, 748, 751, 751, 753, 754, 756, 756, 757,
+ 757, 759, 759, 760, 760
+ } ;
+
+static yyconst int yy_ec[256] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 2, 5, 6, 7, 1, 1, 8, 9, 10,
+ 11, 12, 1, 13, 14, 15, 16, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 18, 19, 20,
+ 21, 22, 1, 1, 23, 23, 23, 23, 23, 23,
+ 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
+ 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
+ 21, 24, 1, 1, 23, 1, 25, 26, 27, 28,
+
+ 29, 30, 31, 32, 33, 23, 34, 35, 36, 37,
+ 38, 39, 23, 40, 41, 42, 43, 44, 45, 23,
+ 46, 23, 47, 1, 48, 49, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1
+ } ;
+
+static yyconst int yy_meta[50] =
+ { 0,
+ 1, 2, 3, 4, 1, 5, 1, 1, 1, 6,
+ 1, 7, 1, 8, 9, 10, 11, 12, 1, 1,
+ 1, 13, 14, 15, 14, 14, 14, 14, 14, 14,
+ 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
+ 14, 14, 14, 14, 14, 14, 1, 1, 16
+ } ;
+
+static yyconst short int yy_base[499] =
+ { 0,
+ 0, 3, 5, 11, 20, 29, 35, 38, 45, 53,
+ 55, 60, 62, 71, 87, 18, 136, 10, 185, 44,
+ 229, 66, 275, 68, 324, 234, 373, 235, 420, 423,
+ 445, 237, 1494, 2018, 428, 2018, 6, 493, 65, 0,
+ 494, 0, 2018, 67, 0, 495, 226, 2018, 496, 2018,
+ 228, 1490, 497, 229, 0, 426, 0, 1476, 231, 502,
+ 417, 1487, 499, 1482, 504, 503, 505, 0, 520, 0,
+ 1466, 419, 521, 425, 522, 525, 528, 2018, 0, 2018,
+ 1457, 2018, 1459, 1457, 545, 548, 513, 532, 531, 536,
+ 501, 521, 535, 539, 552, 542, 556, 549, 562, 2018,
+
+ 2018, 531, 604, 1472, 2018, 598, 2018, 600, 2018, 621,
+ 624, 628, 2018, 597, 1455, 631, 634, 648, 631, 653,
+ 0, 2018, 651, 656, 636, 83, 2018, 0, 1470, 659,
+ 498, 2018, 2018, 0, 206, 1438, 663, 2018, 2018, 654,
+ 596, 666, 668, 676, 681, 672, 681, 680, 0, 685,
+ 678, 690, 684, 2018, 689, 687, 699, 702, 703, 2018,
+ 704, 0, 617, 1454, 2018, 707, 712, 710, 1466, 2018,
+ 722, 726, 714, 729, 732, 733, 0, 500, 728, 734,
+ 741, 735, 741, 743, 752, 1450, 758, 1454, 2018, 1443,
+ 761, 765, 769, 2018, 391, 741, 747, 737, 750, 756,
+
+ 757, 766, 801, 765, 772, 775, 778, 783, 787, 796,
+ 800, 804, 793, 805, 816, 849, 852, 861, 1457, 1425,
+ 864, 2018, 2018, 2018, 2018, 1435, 2018, 860, 0, 869,
+ 1437, 882, 886, 889, 2018, 892, 910, 0, 913, 918,
+ 2018, 1416, 2018, 924, 0, 858, 906, 719, 1424, 934,
+ 823, 783, 0, 1420, 938, 711, 0, 868, 1371, 1354,
+ 928, 2018, 937, 0, 790, 853, 0, 1387, 913, 941,
+ 0, 1371, 943, 942, 954, 958, 957, 958, 965, 962,
+ 964, 1367, 985, 988, 980, 1357, 878, 992, 40, 968,
+ 802, 2018, 996, 779, 999, 968, 980, 981, 985, 908,
+
+ 974, 988, 989, 1031, 1034, 2018, 1010, 1005, 984, 999,
+ 1013, 1016, 1020, 1021, 1027, 1031, 1073, 920, 1075, 1221,
+ 1077, 1084, 1087, 977, 1082, 1213, 1213, 1219, 1211, 1087,
+ 0, 1248, 2018, 1220, 2018, 0, 1218, 2018, 1213, 2018,
+ 1092, 1093, 0, 1094, 0, 1095, 1107, 0, 1109, 0,
+ 1211, 2018, 1187, 2018, 1057, 1172, 1146, 2018, 1127, 2018,
+ 1118, 1120, 1112, 1102, 1125, 1126, 1098, 1103, 1084, 1107,
+ 1102, 1110, 2018, 1114, 1115, 1120, 1119, 1131, 1128, 1137,
+ 1079, 1057, 1042, 1034, 1004, 2018, 1017, 1165, 2018, 1016,
+ 2018, 0, 1167, 1166, 0, 1173, 0, 1004, 2018, 969,
+
+ 2018, 1172, 1180, 1183, 1152, 1153, 1158, 1161, 1164, 1168,
+ 1174, 910, 877, 876, 870, 831, 1206, 736, 1211, 641,
+ 0, 1226, 1216, 1169, 1190, 1205, 578, 575, 519, 0,
+ 503, 2018, 1196, 220, 0, 51, 0, 1, 0, 1236,
+ 0, 1239, 2018, 2018, 1259, 1275, 1291, 1307, 1323, 1339,
+ 1355, 1371, 1387, 1403, 1419, 1435, 1450, 1463, 1472, 1485,
+ 1498, 1511, 1229, 1236, 1238, 1521, 1534, 1549, 1553, 1566,
+ 1581, 1587, 1601, 1617, 1633, 1649, 1665, 1681, 1697, 1713,
+ 1729, 1745, 1761, 1777, 1793, 1809, 1825, 1841, 1857, 1873,
+ 1889, 1905, 1921, 1937, 1953, 1969, 1985, 2001
+
+ } ;
+
+static yyconst short int yy_def[499] =
+ { 0,
+ 445, 445, 446, 446, 447, 447, 448, 448, 449, 449,
+ 450, 450, 445, 445, 444, 15, 444, 17, 444, 19,
+ 17, 21, 444, 23, 444, 25, 444, 27, 445, 445,
+ 444, 31, 444, 444, 444, 444, 444, 444, 444, 451,
+ 451, 451, 444, 451, 452, 451, 451, 444, 444, 444,
+ 444, 444, 444, 444, 453, 453, 453, 444, 444, 453,
+ 444, 454, 444, 454, 454, 454, 454, 455, 444, 455,
+ 444, 455, 455, 455, 444, 444, 444, 444, 456, 444,
+ 444, 444, 444, 444, 457, 457, 86, 86, 86, 86,
+ 86, 86, 86, 86, 86, 86, 86, 86, 86, 444,
+
+ 444, 458, 444, 444, 444, 444, 444, 459, 444, 444,
+ 444, 444, 444, 444, 444, 460, 461, 444, 444, 462,
+ 463, 444, 444, 444, 444, 444, 444, 464, 444, 444,
+ 444, 444, 444, 465, 465, 465, 444, 444, 444, 466,
+ 444, 444, 444, 444, 444, 444, 444, 444, 451, 451,
+ 451, 451, 451, 444, 451, 451, 451, 451, 444, 444,
+ 444, 453, 453, 444, 444, 444, 453, 444, 454, 444,
+ 454, 454, 454, 454, 454, 454, 455, 444, 444, 455,
+ 455, 455, 444, 455, 444, 444, 444, 444, 444, 444,
+ 467, 444, 444, 444, 86, 86, 86, 86, 86, 86,
+
+ 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
+ 86, 86, 86, 86, 86, 458, 468, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 459, 469, 444,
+ 444, 444, 470, 444, 444, 460, 461, 471, 444, 444,
+ 444, 444, 444, 462, 463, 444, 444, 444, 444, 444,
+ 444, 444, 464, 444, 444, 444, 465, 465, 465, 465,
+ 444, 444, 466, 472, 444, 444, 473, 474, 444, 444,
+ 475, 476, 451, 451, 477, 478, 451, 451, 479, 480,
+ 481, 482, 454, 454, 483, 484, 444, 444, 485, 455,
+ 486, 444, 467, 86, 458, 86, 86, 86, 86, 86,
+
+ 86, 86, 86, 444, 444, 444, 86, 86, 86, 86,
+ 86, 86, 86, 86, 86, 86, 444, 444, 468, 444,
+ 470, 460, 461, 444, 471, 465, 465, 465, 465, 472,
+ 487, 488, 444, 474, 444, 489, 490, 444, 476, 444,
+ 491, 492, 451, 478, 451, 493, 494, 451, 480, 451,
+ 454, 444, 482, 444, 495, 496, 454, 444, 484, 444,
+ 444, 444, 444, 485, 497, 486, 86, 86, 86, 86,
+ 86, 86, 444, 86, 86, 86, 86, 86, 86, 86,
+ 444, 465, 465, 465, 465, 444, 488, 444, 444, 490,
+ 444, 451, 492, 451, 451, 494, 451, 454, 444, 496,
+
+ 444, 444, 497, 86, 86, 86, 86, 86, 86, 86,
+ 86, 444, 465, 465, 465, 465, 444, 444, 451, 451,
+ 498, 444, 444, 86, 86, 86, 444, 465, 465, 465,
+ 465, 444, 86, 444, 465, 465, 465, 444, 465, 444,
+ 465, 444, 444, 0, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444
+
+ } ;
+
+static yyconst short int yy_nxt[2068] =
+ { 0,
+ 444, 324, 35, 36, 38, 35, 36, 41, 42, 235,
+ 43, 38, 46, 41, 42, 37, 43, 143, 39, 103,
+ 44, 144, 49, 50, 104, 39, 47, 441, 45, 440,
+ 53, 49, 50, 39, 45, 51, 56, 35, 57, 60,
+ 35, 57, 335, 52, 54, 118, 58, 63, 64, 58,
+ 59, 334, 52, 61, 66, 63, 64, 69, 70, 119,
+ 65, 73, 69, 70, 35, 36, 71, 38, 67, 38,
+ 72, 71, 38, 35, 36, 74, 147, 37, 152, 439,
+ 148, 39, 153, 39, 252, 252, 39, 34, 75, 76,
+ 77, 34, 78, 34, 34, 79, 34, 34, 34, 80,
+
+ 81, 82, 37, 83, 84, 80, 34, 80, 34, 85,
+ 34, 86, 87, 88, 89, 90, 91, 92, 85, 93,
+ 85, 85, 85, 94, 85, 85, 95, 96, 97, 98,
+ 85, 99, 85, 100, 101, 102, 34, 34, 35, 36,
+ 34, 78, 34, 34, 34, 105, 106, 34, 107, 34,
+ 34, 37, 34, 34, 34, 34, 34, 34, 108, 34,
+ 108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
+ 108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
+ 108, 108, 34, 34, 34, 109, 110, 111, 112, 109,
+ 113, 109, 109, 109, 34, 109, 109, 109, 109, 109,
+
+ 114, 34, 115, 109, 109, 109, 109, 116, 109, 116,
+ 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
+ 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
+ 116, 109, 109, 117, 34, 130, 137, 157, 38, 143,
+ 147, 158, 143, 159, 161, 258, 166, 438, 259, 39,
+ 39, 120, 39, 120, 120, 120, 120, 120, 120, 120,
+ 120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
+ 120, 120, 120, 120, 120, 34, 34, 35, 36, 34,
+ 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
+ 37, 34, 34, 34, 34, 34, 34, 121, 34, 121,
+
+ 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
+ 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
+ 121, 122, 34, 34, 34, 123, 124, 36, 34, 34,
+ 34, 125, 34, 34, 34, 125, 34, 34, 34, 37,
+ 34, 126, 127, 34, 34, 34, 128, 34, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
+ 129, 34, 34, 34, 131, 35, 36, 34, 34, 34,
+ 34, 34, 34, 34, 34, 132, 34, 34, 37, 34,
+ 34, 34, 133, 34, 34, 134, 34, 134, 134, 134,
+
+ 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
+ 134, 135, 134, 134, 134, 134, 136, 134, 134, 129,
+ 34, 34, 35, 36, 38, 35, 36, 163, 147, 141,
+ 179, 195, 168, 195, 180, 37, 183, 164, 39, 138,
+ 184, 139, 138, 142, 139, 34, 34, 35, 36, 34,
+ 34, 34, 34, 34, 34, 34, 34, 34, 34, 140,
+ 37, 140, 34, 34, 34, 34, 34, 140, 34, 140,
+ 140, 140, 140, 140, 140, 140, 140, 140, 140, 140,
+ 140, 140, 140, 140, 140, 140, 140, 140, 140, 140,
+ 140, 34, 34, 34, 145, 150, 155, 141, 145, 256,
+
+ 141, 287, 288, 167, 173, 170, 170, 170, 146, 151,
+ 156, 142, 146, 164, 142, 171, 175, 146, 174, 172,
+ 176, 141, 181, 185, 185, 185, 187, 185, 185, 185,
+ 185, 185, 216, 216, 216, 142, 182, 437, 205, 186,
+ 142, 195, 186, 195, 249, 186, 192, 193, 185, 192,
+ 193, 185, 198, 195, 194, 195, 199, 194, 206, 202,
+ 436, 195, 186, 195, 203, 186, 200, 207, 203, 201,
+ 204, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 208, 195, 195, 209, 195, 214, 210, 211, 196, 195,
+ 197, 195, 195, 215, 195, 212, 195, 141, 195, 221,
+
+ 221, 213, 195, 435, 195, 218, 185, 185, 143, 225,
+ 219, 142, 144, 226, 227, 222, 223, 229, 163, 146,
+ 434, 186, 230, 230, 230, 232, 230, 230, 164, 230,
+ 230, 230, 234, 230, 230, 237, 237, 237, 231, 142,
+ 235, 231, 147, 251, 224, 231, 148, 251, 231, 239,
+ 230, 230, 246, 247, 240, 240, 274, 250, 247, 262,
+ 255, 247, 241, 146, 261, 231, 242, 243, 248, 264,
+ 229, 142, 267, 248, 146, 262, 248, 265, 146, 267,
+ 268, 266, 145, 269, 272, 271, 150, 270, 276, 273,
+ 155, 268, 271, 274, 275, 272, 146, 249, 277, 276,
+
+ 151, 275, 278, 279, 156, 249, 280, 268, 272, 249,
+ 279, 268, 256, 167, 272, 173, 170, 280, 268, 272,
+ 252, 252, 268, 164, 170, 272, 281, 146, 170, 174,
+ 282, 170, 267, 281, 170, 170, 285, 286, 289, 267,
+ 283, 282, 181, 285, 284, 271, 269, 291, 286, 289,
+ 290, 266, 271, 185, 185, 185, 182, 249, 291, 187,
+ 185, 185, 293, 293, 293, 297, 192, 193, 185, 186,
+ 193, 193, 185, 142, 194, 186, 203, 195, 186, 195,
+ 300, 195, 186, 195, 252, 252, 186, 195, 296, 195,
+ 298, 299, 195, 301, 331, 302, 195, 195, 195, 195,
+
+ 303, 331, 304, 305, 340, 307, 195, 195, 195, 295,
+ 306, 203, 195, 339, 195, 195, 308, 195, 195, 195,
+ 195, 195, 203, 195, 309, 195, 310, 195, 311, 195,
+ 251, 314, 312, 195, 251, 195, 195, 315, 195, 313,
+ 195, 195, 195, 195, 195, 195, 195, 195, 316, 203,
+ 216, 216, 216, 317, 318, 431, 195, 332, 195, 246,
+ 247, 194, 218, 185, 185, 221, 221, 219, 332, 225,
+ 230, 230, 230, 226, 227, 248, 146, 229, 186, 287,
+ 288, 222, 223, 232, 230, 230, 231, 321, 321, 321,
+ 234, 230, 230, 234, 230, 230, 430, 142, 235, 231,
+
+ 326, 235, 429, 231, 249, 327, 231, 247, 247, 231,
+ 224, 237, 237, 237, 239, 230, 230, 336, 428, 240,
+ 240, 318, 318, 248, 336, 240, 240, 241, 146, 261,
+ 231, 242, 243, 241, 323, 250, 247, 242, 243, 255,
+ 247, 229, 262, 146, 427, 337, 342, 341, 369, 142,
+ 195, 248, 264, 146, 341, 248, 337, 342, 262, 333,
+ 345, 346, 347, 334, 350, 149, 352, 339, 346, 149,
+ 338, 401, 365, 347, 249, 169, 149, 333, 324, 169,
+ 149, 334, 358, 365, 249, 339, 235, 170, 338, 355,
+ 170, 169, 356, 361, 362, 169, 355, 293, 293, 293,
+
+ 216, 216, 216, 356, 367, 203, 170, 363, 195, 203,
+ 195, 368, 371, 186, 195, 370, 195, 372, 391, 388,
+ 195, 195, 195, 195, 195, 195, 374, 195, 195, 195,
+ 195, 195, 304, 305, 185, 305, 305, 185, 203, 195,
+ 306, 375, 203, 373, 295, 195, 416, 195, 186, 378,
+ 195, 186, 195, 195, 376, 195, 203, 377, 195, 399,
+ 195, 195, 195, 195, 379, 380, 415, 195, 169, 195,
+ 414, 195, 169, 195, 317, 318, 317, 318, 321, 321,
+ 321, 413, 194, 324, 194, 234, 230, 230, 237, 237,
+ 237, 235, 262, 235, 231, 394, 345, 386, 387, 334,
+
+ 389, 231, 264, 149, 335, 412, 149, 149, 262, 397,
+ 149, 350, 390, 334, 339, 386, 387, 334, 389, 361,
+ 362, 361, 362, 402, 404, 323, 195, 391, 340, 360,
+ 390, 203, 339, 363, 203, 363, 390, 339, 195, 405,
+ 195, 409, 195, 195, 406, 195, 410, 195, 170, 195,
+ 195, 407, 195, 408, 195, 195, 195, 195, 411, 195,
+ 195, 195, 195, 203, 404, 203, 417, 419, 195, 394,
+ 195, 195, 387, 195, 401, 397, 421, 195, 390, 195,
+ 418, 420, 391, 421, 422, 423, 203, 425, 424, 354,
+ 387, 390, 195, 195, 195, 195, 390, 203, 195, 203,
+
+ 195, 195, 426, 195, 195, 404, 195, 417, 195, 195,
+ 195, 433, 419, 170, 195, 340, 195, 423, 423, 185,
+ 391, 418, 335, 195, 203, 195, 420, 422, 423, 185,
+ 195, 203, 195, 186, 203, 194, 195, 442, 195, 245,
+ 442, 443, 245, 186, 443, 195, 253, 195, 257, 253,
+ 388, 257, 385, 384, 383, 443, 382, 381, 443, 34,
+ 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
+ 34, 34, 34, 34, 34, 40, 40, 40, 40, 40,
+ 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
+ 40, 48, 48, 48, 48, 48, 48, 48, 48, 48,
+
+ 48, 48, 48, 48, 48, 48, 48, 55, 55, 55,
+ 55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
+ 55, 55, 55, 62, 62, 62, 62, 62, 62, 62,
+ 62, 62, 62, 62, 62, 62, 62, 62, 62, 68,
+ 68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
+ 68, 68, 68, 68, 68, 149, 149, 149, 149, 360,
+ 149, 149, 149, 149, 149, 149, 149, 149, 149, 354,
+ 149, 154, 154, 340, 154, 154, 154, 154, 154, 154,
+ 154, 154, 154, 154, 154, 154, 154, 162, 162, 335,
+ 162, 162, 162, 329, 162, 162, 328, 162, 162, 162,
+
+ 162, 162, 162, 169, 169, 169, 169, 169, 169, 169,
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 177,
+ 177, 254, 177, 177, 177, 254, 177, 177, 177, 177,
+ 177, 177, 177, 177, 177, 188, 188, 243, 188, 188,
+ 188, 188, 188, 188, 188, 188, 188, 188, 188, 188,
+ 188, 195, 195, 195, 233, 195, 227, 320, 220, 190,
+ 195, 195, 292, 195, 217, 217, 217, 191, 170, 165,
+ 260, 254, 233, 220, 191, 190, 217, 228, 189, 228,
+ 228, 178, 228, 228, 170, 228, 236, 236, 236, 170,
+ 236, 165, 160, 444, 444, 236, 236, 444, 236, 238,
+
+ 238, 238, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 238, 244, 244, 444, 444, 244, 444, 244, 244,
+ 444, 244, 244, 444, 244, 263, 444, 444, 444, 263,
+ 263, 263, 444, 263, 263, 294, 294, 294, 444, 444,
+ 444, 444, 444, 444, 444, 294, 444, 294, 444, 294,
+ 319, 319, 444, 444, 319, 444, 444, 444, 444, 319,
+ 444, 444, 319, 229, 229, 444, 229, 322, 322, 322,
+ 444, 444, 444, 444, 444, 444, 444, 322, 444, 322,
+ 444, 322, 325, 444, 444, 444, 325, 444, 444, 444,
+ 444, 325, 444, 444, 325, 330, 444, 330, 444, 444,
+
+ 330, 333, 333, 333, 333, 333, 333, 444, 333, 333,
+ 444, 333, 333, 333, 333, 333, 333, 334, 334, 334,
+ 334, 334, 334, 334, 334, 334, 334, 334, 334, 334,
+ 334, 334, 334, 338, 338, 338, 338, 338, 338, 444,
+ 338, 338, 444, 338, 338, 338, 338, 338, 338, 339,
+ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
+ 339, 339, 339, 339, 339, 343, 343, 343, 343, 343,
+ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
+ 343, 344, 344, 344, 344, 344, 344, 344, 344, 344,
+ 344, 344, 344, 344, 344, 344, 344, 348, 348, 348,
+
+ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348,
+ 348, 348, 348, 349, 349, 349, 349, 349, 349, 349,
+ 349, 349, 349, 349, 349, 349, 349, 349, 349, 351,
+ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
+ 351, 351, 351, 351, 351, 353, 353, 353, 353, 353,
+ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
+ 353, 357, 357, 357, 357, 357, 357, 357, 357, 357,
+ 357, 357, 357, 357, 357, 357, 357, 359, 359, 359,
+ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359,
+ 359, 359, 359, 364, 364, 364, 364, 364, 364, 364,
+
+ 364, 364, 364, 364, 364, 364, 364, 364, 364, 366,
+ 366, 366, 366, 366, 366, 366, 366, 366, 366, 366,
+ 366, 366, 366, 366, 366, 386, 386, 386, 386, 386,
+ 386, 444, 386, 386, 444, 386, 386, 386, 386, 386,
+ 386, 387, 387, 387, 387, 387, 387, 387, 387, 387,
+ 387, 387, 387, 387, 387, 387, 387, 389, 389, 389,
+ 389, 389, 389, 444, 389, 389, 444, 389, 389, 389,
+ 389, 389, 389, 390, 390, 390, 390, 390, 390, 390,
+ 390, 390, 390, 390, 390, 390, 390, 390, 390, 392,
+ 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
+
+ 392, 392, 392, 392, 392, 393, 393, 393, 393, 393,
+ 393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
+ 393, 395, 395, 395, 395, 395, 395, 395, 395, 395,
+ 395, 395, 395, 395, 395, 395, 395, 396, 396, 396,
+ 396, 396, 396, 396, 396, 396, 396, 396, 396, 396,
+ 396, 396, 396, 398, 398, 398, 398, 398, 398, 398,
+ 398, 398, 398, 398, 398, 398, 398, 398, 398, 400,
+ 400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
+ 400, 400, 400, 400, 400, 403, 403, 403, 403, 403,
+ 403, 403, 403, 403, 403, 403, 403, 403, 403, 403,
+
+ 403, 432, 432, 432, 432, 432, 432, 444, 432, 432,
+ 444, 432, 432, 432, 432, 432, 432, 33, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444
+ } ;
+
+static yyconst short int yy_chk[2068] =
+ { 0,
+ 0, 238, 1, 1, 2, 2, 2, 3, 3, 238,
+ 3, 18, 4, 4, 4, 1, 4, 37, 2, 16,
+ 3, 37, 5, 5, 16, 18, 4, 439, 3, 438,
+ 6, 6, 6, 16, 4, 5, 7, 7, 7, 8,
+ 8, 8, 289, 5, 6, 20, 7, 9, 9, 8,
+ 7, 289, 6, 8, 10, 10, 10, 11, 11, 20,
+ 9, 12, 12, 12, 13, 13, 11, 22, 10, 24,
+ 11, 12, 14, 14, 14, 12, 39, 13, 44, 436,
+ 39, 22, 44, 24, 126, 126, 14, 15, 15, 15,
+ 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
+
+ 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
+ 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
+ 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
+ 15, 15, 15, 15, 15, 15, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 17, 17, 17, 17, 19, 19, 19, 19, 19,
+ 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
+
+ 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
+ 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
+ 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
+ 19, 19, 19, 19, 21, 26, 28, 47, 32, 51,
+ 54, 47, 59, 51, 54, 135, 59, 434, 135, 26,
+ 28, 21, 32, 21, 21, 21, 21, 21, 21, 21,
+ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
+ 21, 21, 21, 21, 21, 23, 23, 23, 23, 23,
+ 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
+ 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
+
+ 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
+ 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
+ 23, 23, 23, 23, 25, 25, 25, 25, 25, 25,
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
+ 25, 25, 25, 27, 27, 27, 27, 27, 27, 27,
+ 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
+ 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
+
+ 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
+ 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
+ 27, 27, 29, 29, 30, 30, 30, 56, 61, 35,
+ 72, 195, 61, 195, 72, 29, 74, 56, 30, 29,
+ 74, 29, 30, 35, 30, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
+ 31, 31, 31, 31, 38, 41, 46, 49, 53, 131,
+
+ 63, 178, 178, 60, 66, 66, 65, 67, 38, 41,
+ 46, 49, 53, 60, 63, 65, 67, 60, 66, 65,
+ 67, 69, 73, 75, 75, 75, 76, 76, 76, 77,
+ 77, 77, 102, 102, 102, 69, 73, 431, 91, 75,
+ 76, 91, 76, 91, 131, 77, 85, 85, 85, 86,
+ 86, 86, 87, 87, 85, 87, 88, 86, 92, 89,
+ 429, 92, 85, 92, 93, 86, 88, 94, 89, 88,
+ 90, 89, 88, 89, 88, 93, 90, 93, 90, 94,
+ 95, 94, 96, 96, 96, 98, 96, 97, 86, 98,
+ 86, 98, 95, 99, 95, 97, 97, 141, 97, 106,
+
+ 106, 97, 99, 428, 99, 103, 103, 103, 114, 108,
+ 103, 141, 114, 108, 108, 106, 106, 108, 163, 103,
+ 427, 103, 110, 110, 110, 111, 111, 111, 163, 112,
+ 112, 112, 116, 116, 116, 117, 117, 117, 110, 111,
+ 116, 111, 119, 125, 106, 112, 119, 125, 116, 118,
+ 118, 118, 123, 123, 120, 120, 420, 124, 124, 140,
+ 130, 130, 120, 118, 137, 118, 120, 120, 123, 140,
+ 120, 124, 143, 124, 130, 140, 130, 142, 137, 143,
+ 144, 142, 145, 146, 148, 147, 150, 146, 153, 151,
+ 155, 144, 147, 151, 152, 148, 145, 123, 156, 153,
+
+ 150, 152, 156, 157, 155, 130, 158, 159, 161, 137,
+ 157, 166, 256, 167, 168, 173, 173, 158, 159, 161,
+ 248, 248, 166, 167, 171, 168, 171, 167, 172, 173,
+ 172, 174, 179, 171, 175, 176, 175, 176, 180, 179,
+ 174, 172, 181, 175, 174, 183, 182, 184, 176, 180,
+ 182, 418, 183, 185, 185, 185, 181, 256, 184, 187,
+ 187, 187, 191, 191, 191, 198, 192, 192, 192, 185,
+ 193, 193, 193, 187, 192, 187, 196, 198, 191, 198,
+ 200, 196, 192, 196, 252, 252, 193, 197, 197, 197,
+ 199, 199, 199, 201, 265, 202, 200, 201, 200, 201,
+
+ 202, 265, 203, 203, 291, 204, 202, 204, 202, 191,
+ 203, 205, 205, 291, 205, 206, 206, 206, 207, 294,
+ 207, 294, 207, 208, 208, 208, 209, 209, 210, 209,
+ 251, 213, 211, 213, 251, 213, 210, 214, 210, 211,
+ 211, 203, 211, 203, 212, 214, 212, 214, 215, 212,
+ 216, 216, 216, 217, 217, 416, 215, 266, 215, 246,
+ 246, 217, 218, 218, 218, 221, 221, 218, 266, 228,
+ 230, 230, 230, 228, 228, 246, 218, 228, 218, 287,
+ 287, 221, 221, 232, 232, 232, 230, 233, 233, 233,
+ 234, 234, 234, 236, 236, 236, 415, 232, 234, 232,
+
+ 258, 236, 414, 233, 246, 258, 234, 247, 247, 236,
+ 221, 237, 237, 237, 239, 239, 239, 269, 413, 240,
+ 240, 318, 318, 247, 269, 244, 244, 240, 239, 261,
+ 239, 240, 240, 244, 233, 250, 250, 244, 244, 255,
+ 255, 244, 263, 261, 412, 270, 274, 273, 300, 250,
+ 300, 250, 263, 255, 273, 255, 270, 274, 263, 275,
+ 276, 277, 278, 276, 280, 275, 281, 280, 277, 275,
+ 279, 400, 290, 278, 261, 281, 279, 275, 324, 281,
+ 279, 276, 285, 290, 255, 280, 324, 283, 279, 283,
+ 284, 285, 284, 288, 288, 285, 283, 293, 293, 293,
+
+ 295, 295, 295, 284, 297, 296, 398, 288, 296, 298,
+ 296, 299, 302, 293, 301, 301, 301, 303, 390, 387,
+ 297, 298, 297, 298, 309, 299, 309, 299, 302, 303,
+ 302, 303, 304, 304, 304, 305, 305, 305, 307, 310,
+ 304, 310, 308, 305, 293, 308, 385, 308, 304, 314,
+ 307, 305, 307, 311, 311, 311, 312, 313, 312, 355,
+ 313, 314, 313, 314, 315, 316, 384, 315, 355, 315,
+ 383, 316, 355, 316, 317, 317, 319, 319, 321, 321,
+ 321, 382, 317, 325, 319, 322, 322, 322, 323, 323,
+ 323, 325, 330, 322, 321, 342, 344, 341, 342, 344,
+
+ 346, 322, 330, 341, 364, 381, 346, 341, 330, 347,
+ 346, 349, 347, 364, 349, 341, 342, 344, 346, 361,
+ 361, 362, 362, 363, 369, 321, 369, 365, 366, 359,
+ 347, 367, 349, 361, 368, 362, 365, 366, 367, 370,
+ 367, 375, 371, 368, 371, 368, 376, 370, 357, 370,
+ 372, 372, 372, 374, 374, 375, 374, 375, 378, 377,
+ 376, 377, 376, 377, 379, 380, 388, 394, 379, 393,
+ 379, 378, 393, 378, 356, 396, 402, 380, 396, 380,
+ 388, 394, 403, 402, 404, 404, 407, 406, 405, 353,
+ 393, 403, 405, 406, 405, 406, 396, 408, 407, 410,
+
+ 407, 408, 411, 408, 409, 409, 409, 417, 410, 424,
+ 410, 424, 419, 351, 411, 339, 411, 423, 423, 423,
+ 337, 417, 334, 404, 433, 404, 419, 422, 422, 422,
+ 425, 425, 425, 423, 426, 422, 433, 440, 433, 463,
+ 442, 440, 463, 422, 442, 426, 464, 426, 465, 464,
+ 332, 465, 329, 328, 327, 440, 326, 320, 442, 445,
+ 445, 445, 445, 445, 445, 445, 445, 445, 445, 445,
+ 445, 445, 445, 445, 445, 446, 446, 446, 446, 446,
+ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446,
+ 446, 447, 447, 447, 447, 447, 447, 447, 447, 447,
+
+ 447, 447, 447, 447, 447, 447, 447, 448, 448, 448,
+ 448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
+ 448, 448, 448, 449, 449, 449, 449, 449, 449, 449,
+ 449, 449, 449, 449, 449, 449, 449, 449, 449, 450,
+ 450, 450, 450, 450, 450, 450, 450, 450, 450, 450,
+ 450, 450, 450, 450, 450, 451, 451, 451, 451, 286,
+ 451, 451, 451, 451, 451, 451, 451, 451, 451, 282,
+ 451, 452, 452, 272, 452, 452, 452, 452, 452, 452,
+ 452, 452, 452, 452, 452, 452, 452, 453, 453, 268,
+ 453, 453, 453, 260, 453, 453, 259, 453, 453, 453,
+
+ 453, 453, 453, 454, 454, 454, 454, 454, 454, 454,
+ 454, 454, 454, 454, 454, 454, 454, 454, 454, 455,
+ 455, 254, 455, 455, 455, 249, 455, 455, 455, 455,
+ 455, 455, 455, 455, 455, 456, 456, 242, 456, 456,
+ 456, 456, 456, 456, 456, 456, 456, 456, 456, 456,
+ 456, 457, 457, 457, 231, 457, 226, 220, 219, 190,
+ 457, 457, 188, 457, 458, 458, 458, 186, 169, 164,
+ 136, 129, 115, 104, 84, 83, 458, 459, 81, 459,
+ 459, 71, 459, 459, 64, 459, 460, 460, 460, 62,
+ 460, 58, 52, 33, 0, 460, 460, 0, 460, 461,
+
+ 461, 461, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 461, 462, 462, 0, 0, 462, 0, 462, 462,
+ 0, 462, 462, 0, 462, 466, 0, 0, 0, 466,
+ 466, 466, 0, 466, 466, 467, 467, 467, 0, 0,
+ 0, 0, 0, 0, 0, 467, 0, 467, 0, 467,
+ 468, 468, 0, 0, 468, 0, 0, 0, 0, 468,
+ 0, 0, 468, 469, 469, 0, 469, 470, 470, 470,
+ 0, 0, 0, 0, 0, 0, 0, 470, 0, 470,
+ 0, 470, 471, 0, 0, 0, 471, 0, 0, 0,
+ 0, 471, 0, 0, 471, 472, 0, 472, 0, 0,
+
+ 472, 473, 473, 473, 473, 473, 473, 0, 473, 473,
+ 0, 473, 473, 473, 473, 473, 473, 474, 474, 474,
+ 474, 474, 474, 474, 474, 474, 474, 474, 474, 474,
+ 474, 474, 474, 475, 475, 475, 475, 475, 475, 0,
+ 475, 475, 0, 475, 475, 475, 475, 475, 475, 476,
+ 476, 476, 476, 476, 476, 476, 476, 476, 476, 476,
+ 476, 476, 476, 476, 476, 477, 477, 477, 477, 477,
+ 477, 477, 477, 477, 477, 477, 477, 477, 477, 477,
+ 477, 478, 478, 478, 478, 478, 478, 478, 478, 478,
+ 478, 478, 478, 478, 478, 478, 478, 479, 479, 479,
+
+ 479, 479, 479, 479, 479, 479, 479, 479, 479, 479,
+ 479, 479, 479, 480, 480, 480, 480, 480, 480, 480,
+ 480, 480, 480, 480, 480, 480, 480, 480, 480, 481,
+ 481, 481, 481, 481, 481, 481, 481, 481, 481, 481,
+ 481, 481, 481, 481, 481, 482, 482, 482, 482, 482,
+ 482, 482, 482, 482, 482, 482, 482, 482, 482, 482,
+ 482, 483, 483, 483, 483, 483, 483, 483, 483, 483,
+ 483, 483, 483, 483, 483, 483, 483, 484, 484, 484,
+ 484, 484, 484, 484, 484, 484, 484, 484, 484, 484,
+ 484, 484, 484, 485, 485, 485, 485, 485, 485, 485,
+
+ 485, 485, 485, 485, 485, 485, 485, 485, 485, 486,
+ 486, 486, 486, 486, 486, 486, 486, 486, 486, 486,
+ 486, 486, 486, 486, 486, 487, 487, 487, 487, 487,
+ 487, 0, 487, 487, 0, 487, 487, 487, 487, 487,
+ 487, 488, 488, 488, 488, 488, 488, 488, 488, 488,
+ 488, 488, 488, 488, 488, 488, 488, 489, 489, 489,
+ 489, 489, 489, 0, 489, 489, 0, 489, 489, 489,
+ 489, 489, 489, 490, 490, 490, 490, 490, 490, 490,
+ 490, 490, 490, 490, 490, 490, 490, 490, 490, 491,
+ 491, 491, 491, 491, 491, 491, 491, 491, 491, 491,
+
+ 491, 491, 491, 491, 491, 492, 492, 492, 492, 492,
+ 492, 492, 492, 492, 492, 492, 492, 492, 492, 492,
+ 492, 493, 493, 493, 493, 493, 493, 493, 493, 493,
+ 493, 493, 493, 493, 493, 493, 493, 494, 494, 494,
+ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494,
+ 494, 494, 494, 495, 495, 495, 495, 495, 495, 495,
+ 495, 495, 495, 495, 495, 495, 495, 495, 495, 496,
+ 496, 496, 496, 496, 496, 496, 496, 496, 496, 496,
+ 496, 496, 496, 496, 496, 497, 497, 497, 497, 497,
+ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497,
+
+ 497, 498, 498, 498, 498, 498, 498, 0, 498, 498,
+ 0, 498, 498, 498, 498, 498, 498, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444, 444, 444, 444,
+ 444, 444, 444, 444, 444, 444, 444
+ } ;
+
+static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
+static char *yy_full_match;
+static int yy_lp;
+static int yy_looking_for_trail_begin = 0;
+static int yy_full_lp;
+static int *yy_full_state;
+#define YY_TRAILING_MASK 0x2000
+#define YY_TRAILING_HEAD_MASK 0x4000
+#define REJECT \
+{ \
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
+yy_cp = yy_full_match; /* restore poss. backed-over text */ \
+yy_lp = yy_full_lp; /* restore orig. accepting pos. */ \
+yy_state_ptr = yy_full_state; /* restore orig. state */ \
+yy_current_state = *yy_state_ptr; /* restore curr. state */ \
+++yy_lp; \
+goto find_rule; \
+}
+#define yymore() yymore_used_but_not_detected
+#define YY_MORE_ADJ 0
+#define YY_RESTORE_YY_MORE_OFFSET
+char *yytext;
+#line 1 "code.l"
+#define INITIAL 0
+/******************************************************************************
+ *
+ * $Id$
+ *
+ * Copyright (C) 1997-1999 by Dimitri van Heesch.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
+ * for any purpose. It is provided "as is" without express or implied warranty.
+ * See the GNU General Public License for more details.
+ *
+ * All output generated with Doxygen is not covered by this license.
+ *
+ */
+#line 18 "code.l"
+
+/*
+ * includes
+ */
+#include <stdio.h>
+#include <iostream.h>
+#include <assert.h>
+#include <ctype.h>
+#include <qregexp.h>
+
+#include "qtbc.h"
+#include "scanner.h"
+#include "entry.h"
+#include "doxygen.h"
+#include "message.h"
+#include "outputlist.h"
+#include "util.h"
+
+#define YY_NO_UNPUT
+#define YY_NEVER_INTERACTIVE 1
+
+class CodeClassDef
+{
+ public:
+ CodeClassDef() {}
+ CodeClassDef(const CodeClassDef &d)
+ {
+ name = d.name;
+ bases = d.bases;
+ }
+ ~CodeClassDef() {}
+
+ QCString name;
+ QStrList bases;
+};
+
+class CodeVarDef
+{
+ public:
+ CodeVarDef() {}
+ CodeVarDef(const CodeVarDef &d)
+ {
+ name = d.name;
+ type = d.type;
+ classScope = d.classScope;
+ }
+ ~CodeVarDef() {}
+
+ QCString name;
+ QCString type;
+ QCString classScope;
+};
+
+typedef QList<CodeClassDef> CodeClassList;
+typedef QDict<CodeClassDef> CodeClassDict;
+typedef QList<CodeVarDef> CodeVarList;
+
+static CodeClassList codeClassList;
+static CodeClassDict codeClassDict(17);
+static CodeVarList codeVarList;
+static CodeVarList codeParmList;
+
+/* -----------------------------------------------------------------
+ *
+ * statics
+ */
+
+static const char * inputString; //!< the code fragment as text
+static int inputPosition; //!< read offset during parsing
+static int inputLines; //!< number of line in the code fragment
+static int yyLineNr; //!< current line number
+static int lastCContext;
+static int lastSpecialCContext;
+static int lastStringContext;
+static int bracketCount = 0;
+static int curlyCount = 0;
+static int sharpCount = 0;
+static QCString type;
+static QCString name;
+static QCString args;
+static QCString parmType;
+static QCString parmName;
+static bool inClass;
+static QCString classScope;
+static OutputList *code;
+static CodeClassDef ccd;
+static CodeVarDef cvd;
+static bool exampleBlock;
+static QCString exampleName;
+static QCString exampleFile;
+static int anchorCount;
+static FileDef *sourceFileDef;
+static QCString lastVariable;
+
+static void addType()
+{
+ if (name=="const") { name.resize(0); return; }
+ if (type.length()) type += ' ' ;
+ type += name ;
+ name.resize(0) ;
+ if (type.length()) type += ' ' ;
+ type += args ;
+ args.resize(0) ;
+}
+
+static void addParmType()
+{
+ if (parmName=="const") { parmName.resize(0); return; }
+ if (parmType.length()) parmType += ' ' ;
+ parmType += parmName ;
+ parmName.resize(0) ;
+}
+
+static void setClassScope(const QCString &name)
+{
+ QCString n=name;
+ n=n.simplifyWhiteSpace();
+ int index;
+ if ((index=n.find("::"))!=-1)
+ classScope=n.left(index);
+ else
+ classScope.resize(0);
+ //printf("--->New class scope `%s'\n",classScope.data());
+}
+
+static void addVariable()
+{
+ cvd.name=name.copy().simplifyWhiteSpace();
+ cvd.type=type.copy().simplifyWhiteSpace();
+ if (type.length()==0)
+ return;
+ else if ((getClass(cvd.type)) || (codeClassDict[cvd.type]))
+ {
+ cvd.classScope=classScope;
+ codeVarList.append(new CodeVarDef(cvd)); // add it to a list
+ }
+}
+
+static void addParameter()
+{
+ cvd.name=parmName.copy().simplifyWhiteSpace();
+ cvd.type=parmType.copy().simplifyWhiteSpace();
+ if (cvd.type.length()==0)
+ return;
+ else if ((getClass(cvd.type)) || (codeClassDict[cvd.type]))
+ {
+ cvd.classScope=classScope;
+ codeParmList.append(new CodeVarDef(cvd)); // add it to a list
+ }
+}
+
+static void generateClassLink(OutputList &ol,const char *clName)
+{
+ QCString className=clName;
+ if (className.length()==0) return;
+ ClassDef *cd;
+ if ((cd=getClass(className)) && cd->isLinkable())
+ {
+ if (exampleBlock)
+ {
+ QCString anchor;
+ anchor.sprintf("_a%d",anchorCount);
+ //printf("addExampleClass(%s,%s,%s)\n",anchor.data(),exampleName.data(),
+ // exampleFile.data());
+ if (cd->addExample(anchor,exampleName,exampleFile))
+ {
+ bool latexOn = ol.isEnabled(OutputGenerator::Latex);
+ if (latexOn) ol.disable(OutputGenerator::Latex);
+ ol.writeAnchor(anchor);
+ if (latexOn) ol.enable(OutputGenerator::Latex);
+ anchorCount++;
+ }
+ }
+ ol.writeCodeLink(cd->getReference(),cd->getOutputFileBase(),0,className);
+ }
+ else
+ {
+ ol.codify(clName);
+ }
+}
+
+static bool getLink(const char *className,
+ const char *memberName,OutputList &result,
+ const char *text=0)
+{
+ MemberDef *md;
+ ClassDef *cd;
+ FileDef *fd;
+ NamespaceDef *nd;
+ QCString m=memberName;
+ QCString c=className;
+ //printf("Trying `%s'::`%s'\n",c.data(),m.data());
+ if (getDefs(c,m,"()",md,cd,fd,nd) && md->isLinkable())
+ {
+ //printf("Found!\n");
+ if (exampleBlock)
+ {
+ QCString anchor;
+ anchor.sprintf("a%d",anchorCount);
+ //printf("addExampleFile(%s,%s,%s)\n",anchor.data(),exampleName.data(),
+ // exampleFile.data());
+ if (md->addExample(anchor,exampleName,exampleFile))
+ {
+ bool latexEnabled = result.isEnabled(OutputGenerator::Latex);
+ if (latexEnabled) result.disable(OutputGenerator::Latex);
+ result.writeAnchor(anchor);
+ if (latexEnabled) result.enable(OutputGenerator::Latex);
+ anchorCount++;
+ }
+ }
+ Definition *d=0;
+ if (cd) d=cd; else if (cd) d=nd; else d=fd;
+
+ if (d)
+ {
+ //printf("d->getOutputBase()=`%s' name=`%s'\n",d->getOutputFileBase().data(),md->name().data());
+ result.writeCodeLink(d->getReference(),d->getOutputFileBase(),
+ md->anchor(),text ? text : memberName);
+ return TRUE;
+ }
+ }
+ return FALSE;
+}
+
+static ClassDef *stripClassName(const char *s)
+{
+ QCString tmp=s;
+ QRegExp re("[a-z_A-Z][a-z_A-Z0-9]*");
+ int p=0,i,l;
+ while ((i=re.match(tmp,p,&l))!=-1)
+ {
+ ClassDef *cd=getClass(tmp.mid(i,l));
+ if (cd) return cd;
+ p=i+l;
+ }
+ return 0;
+}
+
+static void generateMemberLink(OutputList &ol,const char *varName,
+ const char *memName)
+{
+ //printf("generateMemberLink(object=%s,mem=%s) classScope=%s\n",
+ // varName,memName,classScope.data());
+ CodeVarDef *cvd=codeParmList.last();
+ while (cvd && cvd->name!=varName) cvd=codeParmList.prev();
+ if (!cvd)
+ {
+ cvd=codeVarList.last();
+ while (cvd && cvd->name!=varName) cvd=codeVarList.prev();
+ }
+ if (cvd) // variable found
+ {
+ //printf("variable found type=%s!\n",cvd->type.data());
+ CodeClassDef *ccd=codeClassDict[cvd->type];
+ if (ccd)
+ {
+ //printf("Class found!\n");
+ OutputList result(&ol);
+ if (getLink(ccd->name,memName,result))
+ {
+ //printf("Found result!\n");
+ ol+=result;
+ return;
+ }
+ char *s=ccd->bases.first();
+ while (s)
+ {
+ OutputList result(&ol);
+ if (getLink(s,memName,result))
+ {
+ //printf("Found result!\n");
+ ol+=result;
+ return;
+ }
+ s=ccd->bases.next();
+ }
+ }
+ else
+ {
+ OutputList result(&ol);
+ if (getLink(cvd->type,memName,result))
+ {
+ ol+=result;
+ }
+ else
+ {
+ ol.codify(memName);
+ }
+ return;
+ }
+ }
+ else
+ {
+ ClassDef *vcd = getClass(classScope);
+ if (vcd)
+ {
+ //printf("Found class for variable `%s'\n",varName);
+ MemberName *vmn=memberNameDict[varName];
+ if (vmn)
+ {
+ MemberNameIterator vmni(*vmn);
+ MemberDef *vmd;
+ for (;(vmd=vmni.current());++vmni)
+ {
+ if (vmd->isVariable() && vmd->memberClass()==vcd)
+ {
+ //printf("Found variable type=%s\n",vmd->typeString());
+ ClassDef *mcd=stripClassName(vmd->typeString());
+ if (mcd)
+ {
+ MemberName *mmn=memberNameDict[memName];
+ if (mmn)
+ {
+ MemberNameIterator mmni(*mmn);
+ MemberDef *mmd;
+ for (;(mmd=mmni.current());++mmni)
+ {
+ if (mmd->memberClass()==mcd)
+ {
+ ol.writeCodeLink(mcd->getReference(),mcd->getOutputFileBase(),
+ mmd->anchor(),memName);
+ return;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ ol.codify(memName);
+ return;
+}
+
+static void generateFunctionLink(OutputList &ol,const char *funcName)
+{
+ OutputList result(&ol);
+ CodeClassDef *ccd=0;
+ QCString locScope=classScope.copy();
+ QCString locFunc=funcName;
+ int i=locFunc.findRev("::");
+ if (i>0)
+ {
+ locScope=locFunc.left(i);
+ locFunc=locFunc.right(locFunc.length()-i-2);
+ }
+ //printf("generateFunctionLink(%s) classScope=%s\n",locFunc.data(),locScope.data());
+ if (locScope.length()>0 && (ccd=codeClassDict[locScope]))
+ {
+ //printf("using classScope %s\n",classScope.data());
+ char *s=ccd->bases.first();
+ while (s)
+ {
+ if (getLink(s,locFunc,result,funcName))
+ {
+ ol+=result;
+ return;
+ }
+ s=ccd->bases.next();
+ }
+ }
+ if (getLink(locScope,locFunc,result,funcName))
+ {
+ ol+=result;
+ }
+ else
+ {
+ ol.codify(funcName);
+ }
+ return;
+}
+
+/*! counts the number of lines in the input */
+static int countLines()
+{
+ const char *p=inputString;
+ char c;
+ int count=1;
+ while ((c=*p++)) if (c=='\n') count++;
+ return count;
+}
+
+static void startCodeLine()
+{
+ if (sourceFileDef)
+ {
+ QCString lineNumber,lineAnchor;
+ lineNumber.sprintf("%05d ",yyLineNr);
+ lineAnchor.sprintf("l%05d",yyLineNr);
+ //MemberDef *md = sourceFileDef->getSourceDefinition(yyLineNr);
+ //Definition *d=0;
+ //if (md)
+ //{
+ // d=md->memberClass();
+ // if (!d) d=md->getFileDef();
+ //}
+ //if (md && d)
+ Definition *d = sourceFileDef->getSourceDefinition(yyLineNr);
+ QCString anchor = sourceFileDef->getSourceAnchor(yyLineNr);
+ if (d && d->isLinkableInProject())
+ {
+ code->startCodeAnchor(lineAnchor);
+ code->writeCodeLink(d->getReference(),d->getOutputFileBase(),
+ anchor,lineNumber);
+ code->endCodeAnchor();
+ }
+ else
+ {
+ code->codify(lineNumber);
+ }
+ }
+ code->startCodeLine();
+}
+
+static void codifyLines(char *text)
+{
+ char *p=text,*sp=p;
+ char c;
+ bool done=FALSE;
+ while (!done)
+ {
+ sp=p;
+ while ((c=*p++) && c!='\n');
+ if (c=='\n')
+ {
+ yyLineNr++;
+ *(p-1)='\0';
+ code->codify(sp);
+ code->endCodeLine();
+ if (yyLineNr<inputLines)
+ {
+ startCodeLine();
+ }
+ }
+ else
+ {
+ code->codify(sp);
+ done=TRUE;
+ }
+ }
+}
+
+/* -----------------------------------------------------------------
+ */
+#undef YY_INPUT
+#define YY_INPUT(buf,result,max_size) result=yyread(buf,max_size);
+
+static int yyread(char *buf,int max_size)
+{
+ int c=0;
+ while( c < max_size && inputString[inputPosition] )
+ {
+ *buf = inputString[inputPosition++] ;
+ c++; buf++;
+ }
+ return c;
+}
+
+#define SkipString 1
+
+#define SkipCPP 2
+
+#define SkipComment 3
+
+#define SkipCxxComment 4
+
+#define RemoveSpecialCComment 5
+
+#define StripSpecialCComment 6
+
+#define Body 7
+
+#define FuncCall 8
+
+#define MemberCall 9
+
+#define MemberCall2 10
+
+#define SkipInits 11
+
+#define ClassName 12
+
+#define Bases 13
+
+#define SkipSharp 14
+
+#define ReadInclude 15
+
+
+/* Macros after this point can all be overridden by user definitions in
+ * section 1.
+ */
+
+#ifndef YY_SKIP_YYWRAP
+#ifdef __cplusplus
+extern "C" int yywrap YY_PROTO(( void ));
+#else
+extern int yywrap YY_PROTO(( void ));
+#endif
+#endif
+
+#ifndef YY_NO_UNPUT
+static void yyunput YY_PROTO(( int c, char *buf_ptr ));
+#endif
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen YY_PROTO(( yyconst char * ));
+#endif
+
+#ifndef YY_NO_INPUT
+#ifdef __cplusplus
+static int yyinput YY_PROTO(( void ));
+#else
+static int input YY_PROTO(( void ));
+#endif
+#endif
+
+#if YY_STACK_USED
+static int yy_start_stack_ptr = 0;
+static int yy_start_stack_depth = 0;
+static int *yy_start_stack = 0;
+#ifndef YY_NO_PUSH_STATE
+static void yy_push_state YY_PROTO(( int new_state ));
+#endif
+#ifndef YY_NO_POP_STATE
+static void yy_pop_state YY_PROTO(( void ));
+#endif
+#ifndef YY_NO_TOP_STATE
+static int yy_top_state YY_PROTO(( void ));
+#endif
+
+#else
+#define YY_NO_PUSH_STATE 1
+#define YY_NO_POP_STATE 1
+#define YY_NO_TOP_STATE 1
+#endif
+
+#ifdef YY_MALLOC_DECL
+YY_MALLOC_DECL
+#else
+#if __STDC__
+#ifndef __cplusplus
+#include <stdlib.h>
+#endif
+#else
+/* Just try to get by without declaring the routines. This will fail
+ * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
+ * or sizeof(void*) != sizeof(int).
+ */
+#endif
+#endif
+
+/* Amount of stuff to slurp up with each read. */
+#ifndef YY_READ_BUF_SIZE
+#define YY_READ_BUF_SIZE 8192
+#endif
+
+/* Copy whatever the last rule matched to the standard output. */
+
+#ifndef ECHO
+/* This used to be an fputs(), but since the string might contain NUL's,
+ * we now use fwrite().
+ */
+#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
+#endif
+
+/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
+ * is returned in "result".
+ */
+#ifndef YY_INPUT
+#define YY_INPUT(buf,result,max_size) \
+ if ( yy_current_buffer->yy_is_interactive ) \
+ { \
+ int c = '*', n; \
+ for ( n = 0; n < max_size && \
+ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
+ buf[n] = (char) c; \
+ if ( c == '\n' ) \
+ buf[n++] = (char) c; \
+ if ( c == EOF && ferror( yyin ) ) \
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
+ result = n; \
+ } \
+ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
+ && ferror( yyin ) ) \
+ YY_FATAL_ERROR( "input in flex scanner failed" );
+#endif
+
+/* No semi-colon after return; correct usage is to write "yyterminate();" -
+ * we don't want an extra ';' after the "return" because that will cause
+ * some compilers to complain about unreachable statements.
+ */
+#ifndef yyterminate
+#define yyterminate() return YY_NULL
+#endif
+
+/* Number of entries by which start-condition stack grows. */
+#ifndef YY_START_STACK_INCR
+#define YY_START_STACK_INCR 25
+#endif
+
+/* Report a fatal error. */
+#ifndef YY_FATAL_ERROR
+#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
+#endif
+
+/* Default declaration of generated scanner - a define so the user can
+ * easily add parameters.
+ */
+#ifndef YY_DECL
+#define YY_DECL int yylex YY_PROTO(( void ))
+#endif
+
+/* Code executed at the beginning of each rule, after yytext and yyleng
+ * have been set up.
+ */
+#ifndef YY_USER_ACTION
+#define YY_USER_ACTION
+#endif
+
+/* Code executed at the end of each rule. */
+#ifndef YY_BREAK
+#define YY_BREAK break;
+#endif
+
+#define YY_RULE_SETUP \
+ if ( yyleng > 0 ) \
+ yy_current_buffer->yy_at_bol = \
+ (yytext[yyleng - 1] == '\n'); \
+ YY_USER_ACTION
+
+YY_DECL
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp, *yy_bp;
+ register int yy_act;
+
+#line 502 "code.l"
+
+
+
+ if ( yy_init )
+ {
+ yy_init = 0;
+
+#ifdef YY_USER_INIT
+ YY_USER_INIT;
+#endif
+
+ if ( ! yy_start )
+ yy_start = 1; /* first start state */
+
+ if ( ! yyin )
+ yyin = stdin;
+
+ if ( ! yyout )
+ yyout = stdout;
+
+ if ( ! yy_current_buffer )
+ yy_current_buffer =
+ yy_create_buffer( yyin, YY_BUF_SIZE );
+
+ yy_load_buffer_state();
+ }
+
+ while ( 1 ) /* loops until end-of-file is reached */
+ {
+ yy_cp = yy_c_buf_p;
+
+ /* Support of yytext. */
+ *yy_cp = yy_hold_char;
+
+ /* yy_bp points to the position in yy_ch_buf of the start of
+ * the current run.
+ */
+ yy_bp = yy_cp;
+
+ yy_current_state = yy_start;
+ yy_current_state += YY_AT_BOL();
+ yy_state_ptr = yy_state_buf;
+ *yy_state_ptr++ = yy_current_state;
+yy_match:
+ do
+ {
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 445 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ *yy_state_ptr++ = yy_current_state;
+ ++yy_cp;
+ }
+ while ( yy_base[yy_current_state] != 2018 );
+
+yy_find_action:
+ yy_current_state = *--yy_state_ptr;
+ yy_lp = yy_accept[yy_current_state];
+find_rule: /* we branch to this label when backing up */
+ for ( ; ; ) /* until we find what rule we matched */
+ {
+ if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
+ {
+ yy_act = yy_acclist[yy_lp];
+ if ( yy_act & YY_TRAILING_HEAD_MASK ||
+ yy_looking_for_trail_begin )
+ {
+ if ( yy_act == yy_looking_for_trail_begin )
+ {
+ yy_looking_for_trail_begin = 0;
+ yy_act &= ~YY_TRAILING_HEAD_MASK;
+ break;
+ }
+ }
+ else if ( yy_act & YY_TRAILING_MASK )
+ {
+ yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
+ yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
+ }
+ else
+ {
+ yy_full_match = yy_cp;
+ yy_full_state = yy_state_ptr;
+ yy_full_lp = yy_lp;
+ break;
+ }
+ ++yy_lp;
+ goto find_rule;
+ }
+ --yy_cp;
+ yy_current_state = *--yy_state_ptr;
+ yy_lp = yy_accept[yy_current_state];
+ }
+
+ YY_DO_BEFORE_ACTION;
+
+
+do_action: /* This label is used only to access EOF actions. */
+
+
+ switch ( yy_act )
+ { /* beginning of action switch */
+case 1:
+YY_RULE_SETUP
+#line 504 "code.l"
+
+ YY_BREAK
+case 2:
+YY_RULE_SETUP
+#line 505 "code.l"
+{
+ code->codify(yytext);
+ BEGIN( ReadInclude );
+ }
+ YY_BREAK
+case 3:
+YY_RULE_SETUP
+#line 509 "code.l"
+{
+ codifyLines(yytext);
+ //code->codify(yytext);
+ BEGIN( ClassName );
+ }
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
+#line 514 "code.l"
+{
+ //FileInfo *f;
+ bool ambig;
+ FileDef *fd;
+ if ((fd=findFileDef(&inputNameDict,yytext,ambig)) &&
+ fd->isLinkable())
+ {
+ code->writeCodeLink(fd->getReference(),fd->getOutputFileBase(),0,yytext);
+ }
+ else
+ {
+ code->codify(yytext);
+ }
+ char c=yyinput();
+ QCString text;
+ text+=c;
+ code->codify(text);
+ BEGIN( Body );
+ }
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
+#line 533 "code.l"
+{
+ code->codify(yytext);
+ BEGIN( SkipCPP ) ;
+ }
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
+#line 537 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
+#line 540 "code.l"
+{
+ codifyLines(yytext);
+ }
+ YY_BREAK
+case 8:
+YY_RULE_SETUP
+#line 543 "code.l"
+{
+ codifyLines(yytext);
+ BEGIN( Body ) ;
+ }
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
+#line 547 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
+#line 550 "code.l"
+{
+ code->codify(yytext);
+ curlyCount++;
+ type.resize(0); name.resize(0);
+ }
+ YY_BREAK
+case 11:
+YY_RULE_SETUP
+#line 555 "code.l"
+{
+ code->codify(yytext);
+ inClass=FALSE;
+ if (--curlyCount<=0)
+ {
+ classScope.resize(0);
+ codeParmList.clear();
+ }
+ }
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
+#line 564 "code.l"
+{
+ code->codify(yytext);
+ BEGIN( Body );
+ }
+ YY_BREAK
+case 13:
+YY_RULE_SETUP
+#line 568 "code.l"
+{
+ addType();
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 14:
+YY_RULE_SETUP
+#line 572 "code.l"
+{
+ ccd.name=yytext;
+ addType();
+ generateClassLink(*code,yytext);
+ }
+ YY_BREAK
+case 15:
+YY_RULE_SETUP
+#line 577 "code.l"
+{
+ codifyLines(yytext);
+ BEGIN( Bases );
+ }
+ YY_BREAK
+case 16:
+YY_RULE_SETUP
+#line 581 "code.l"
+{
+ code->codify(yytext);
+ curlyCount++;
+ inClass=TRUE;
+ if (ccd.name.length()>0)
+ {
+ classScope=ccd.name.copy();
+ CodeClassDef *cd=new CodeClassDef(ccd);
+ codeClassList.append(cd);
+ codeClassDict.insert(cd->name,cd);
+ }
+ BEGIN( Body );
+ }
+ YY_BREAK
+case 17:
+YY_RULE_SETUP
+#line 594 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 18:
+YY_RULE_SETUP
+#line 597 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 19:
+YY_RULE_SETUP
+#line 600 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 20:
+YY_RULE_SETUP
+#line 603 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 21:
+YY_RULE_SETUP
+#line 606 "code.l"
+{
+ //printf("%s:addBase(%s)\n",ccd.name.data(),yytext);
+ ccd.bases.inSort(yytext);
+ generateClassLink(*code,yytext);
+ }
+ YY_BREAK
+case 22:
+YY_RULE_SETUP
+#line 611 "code.l"
+{
+ code->codify(yytext);
+ sharpCount=1;
+ BEGIN ( SkipSharp );
+ }
+ YY_BREAK
+case 23:
+YY_RULE_SETUP
+#line 616 "code.l"
+{
+ code->codify(yytext);
+ ++sharpCount;
+ }
+ YY_BREAK
+case 24:
+YY_RULE_SETUP
+#line 620 "code.l"
+{
+ code->codify(yytext);
+ if (--sharpCount<=0)
+ BEGIN ( Bases );
+ }
+ YY_BREAK
+case 25:
+YY_RULE_SETUP
+#line 625 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 26:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 630 "code.l"
+{
+ codifyLines(yytext);
+ name.resize(0);type.resize(0);
+ }
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
+#line 634 "code.l"
+{
+ codifyLines(yytext);
+ name.resize(0);type.resize(0);
+ }
+ YY_BREAK
+/*
+<Body>([a-z_A-Z~][a-z_A-Z0-9]*)/([ \t]*) {
+ generateClassLink(*code,yytext);
+ addType();
+ name+=yytext;
+ }
+ */
+case 28:
+YY_RULE_SETUP
+#line 645 "code.l"
+{
+ generateClassLink(*code,yytext);
+ //codifyLines(yytext);
+ addType();
+ name+=yytext;
+ }
+ YY_BREAK
+case 29:
+YY_RULE_SETUP
+#line 651 "code.l"
+{
+ addType();
+ //if (type.length()==0)
+ QCString tmp=yytext;
+ generateFunctionLink(*code,yytext);
+ //else
+ // code->codify(yytext);
+ bracketCount=1;
+ args.resize(0);
+ name+=yytext;
+ BEGIN( FuncCall );
+ }
+ YY_BREAK
+case 30:
+YY_RULE_SETUP
+#line 663 "code.l"
+{
+ code->codify(yytext);
+ lastStringContext=YY_START;
+ BEGIN( SkipString );
+ }
+ YY_BREAK
+case 31:
+YY_RULE_SETUP
+#line 668 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 32:
+YY_RULE_SETUP
+#line 671 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
+#line 674 "code.l"
+{
+ code->codify(yytext);
+ BEGIN( lastStringContext );
+ }
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
+#line 678 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 35:
+YY_RULE_SETUP
+#line 681 "code.l"
+{
+ code->codify(yytext);
+ name.resize(0);type.resize(0);
+ }
+ YY_BREAK
+case 36:
+YY_RULE_SETUP
+#line 685 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 37:
+YY_RULE_SETUP
+#line 688 "code.l"
+{
+ code->codify(yytext);
+ BEGIN( MemberCall );
+ }
+ YY_BREAK
+case 38:
+YY_RULE_SETUP
+#line 692 "code.l"
+{
+ if (name.length()>0)
+ generateMemberLink(*code,name,yytext);
+ else
+ code->codify(yytext);
+ name.resize(0);type.resize(0);
+ bracketCount=0;
+ BEGIN(FuncCall);
+ }
+ YY_BREAK
+case 39:
+YY_RULE_SETUP
+#line 701 "code.l"
+{
+ code->codify(yytext);
+ type.resize(0);
+ name.resize(0);
+ BEGIN(Body);
+ }
+ YY_BREAK
+case 40:
+YY_RULE_SETUP
+#line 707 "code.l"
+{
+ code->codify(yytext);
+ if (type.length()>0)
+ addVariable();
+ name.resize(0);
+ if (*yytext!=',') type.resize(0);
+ args.resize(0);
+ }
+ YY_BREAK
+case 41:
+YY_RULE_SETUP
+#line 715 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 42:
+YY_RULE_SETUP
+#line 718 "code.l"
+{
+ addParmType();
+ parmName=yytext;
+ generateClassLink(*code,yytext);
+ }
+ YY_BREAK
+case 43:
+YY_RULE_SETUP
+#line 723 "code.l"
+{
+ code->codify(yytext);
+ addParameter();
+ parmType.resize(0);parmName.resize(0);
+ }
+ YY_BREAK
+case 44:
+YY_RULE_SETUP
+#line 728 "code.l"
+{
+ code->codify(yytext);
+ bracketCount++;
+ }
+ YY_BREAK
+case 45:
+YY_RULE_SETUP
+#line 732 "code.l"
+{
+ code->codify(yytext);
+ if (--bracketCount<=0)
+ name.resize(0);args.resize(0);
+ parmType.resize(0);parmName.resize(0);
+ BEGIN( Body );
+ }
+ YY_BREAK
+case 46:
+YY_RULE_SETUP
+#line 739 "code.l"
+{
+ codifyLines(yytext);
+ bracketCount=0;
+ if (!inClass && type.length()>0)
+ addVariable();
+ name.resize(0);type.resize(0);
+ parmType.resize(0);parmName.resize(0);
+ BEGIN( Body );
+ }
+ YY_BREAK
+case 47:
+YY_RULE_SETUP
+#line 748 "code.l"
+{
+ addParameter();
+ parmType.resize(0);parmName.resize(0);
+ if (name.length()>0) setClassScope(name);
+ codifyLines(yytext);
+ curlyCount++;
+ type.resize(0); name.resize(0);
+ BEGIN( Body );
+ }
+ YY_BREAK
+case 48:
+YY_RULE_SETUP
+#line 757 "code.l"
+{
+ addParameter();
+ parmType.resize(0);parmName.resize(0);
+ if (name.length()>0) setClassScope(name);
+ codifyLines(yytext);
+ type.resize(0); name.resize(0);
+ BEGIN( SkipInits );
+ }
+ YY_BREAK
+case 49:
+YY_RULE_SETUP
+#line 765 "code.l"
+{
+ code->codify(yytext);
+ curlyCount++;
+ BEGIN( Body );
+ }
+ YY_BREAK
+case 50:
+YY_RULE_SETUP
+#line 770 "code.l"
+{
+ generateClassLink(*code,yytext);
+ }
+ YY_BREAK
+case 51:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 773 "code.l"
+{
+ generateFunctionLink(*code,yytext);
+ }
+ YY_BREAK
+case 52:
+YY_RULE_SETUP
+#line 776 "code.l"
+{
+ code->codify(yytext);
+ args=yytext;
+ BEGIN( MemberCall2 );
+ }
+ YY_BREAK
+case 53:
+YY_RULE_SETUP
+#line 781 "code.l"
+{
+ if (args.length()>0)
+ generateMemberLink(*code,args,yytext);
+ else
+ code->codify(yytext);
+ args.resize(0);
+ BEGIN( FuncCall );
+ }
+ YY_BREAK
+case 54:
+YY_RULE_SETUP
+#line 789 "code.l"
+{
+ code->codify(yytext);
+ args=yytext;
+ }
+ YY_BREAK
+case 55:
+YY_RULE_SETUP
+#line 793 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 56:
+YY_RULE_SETUP
+#line 796 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+case 57:
+YY_RULE_SETUP
+#line 799 "code.l"
+{
+ code->codify(yytext);
+ BEGIN( lastCContext ) ;
+ }
+ YY_BREAK
+case 58:
+YY_RULE_SETUP
+#line 803 "code.l"
+{
+ codifyLines(yytext);
+ BEGIN( lastCContext ) ;
+ }
+ YY_BREAK
+case 59:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 807 "code.l"
+{
+ yyLineNr+=QCString(yytext).contains('\n');
+ }
+ YY_BREAK
+case 60:
+YY_RULE_SETUP
+#line 810 "code.l"
+{
+ yyLineNr+=QCString(yytext).contains('\n');
+ code->endCodeLine();
+ if (yyLineNr<inputLines)
+ {
+ startCodeLine();
+ }
+ BEGIN(lastSpecialCContext);
+ }
+ YY_BREAK
+case 61:
+YY_RULE_SETUP
+#line 819 "code.l"
+{
+ BEGIN(lastSpecialCContext);
+ }
+ YY_BREAK
+case 62:
+YY_RULE_SETUP
+#line 822 "code.l"
+
+ YY_BREAK
+case 63:
+YY_RULE_SETUP
+#line 823 "code.l"
+
+ YY_BREAK
+case 64:
+YY_RULE_SETUP
+#line 824 "code.l"
+{ yyLineNr++; }
+ YY_BREAK
+case 65:
+YY_RULE_SETUP
+#line 825 "code.l"
+
+ YY_BREAK
+/*
+<SkipSpecialComment>"//"
+<SkipSpecialComment>[ \t]*"* /" {
+ BEGIN( lastDContext ) ;
+ }
+<SkipSpecialComment>[ \t]*"* /"[ \t\n]*"\n"/"/ *" {
+ //code->codify("\n");
+ //QCString lineText=yytext;
+ //yyLineNr+=lineText.contains('\n');
+ BEGIN( lastDContext ) ;
+ }
+<SkipSpecialComment>.
+<SkipSpecialComment>\n {
+ codifyLines(yytext);
+ }
+<SkipSpecialCxxComment>.* /\n {
+ codifyLines(yytext);
+ BEGIN( lastDContext ) ;
+ }
+<SkipSpecialCxxComment>.
+<SkipSpecialCxxComment>\n {
+ codifyLines(yytext);
+ }
+ */
+case 66:
+YY_RULE_SETUP
+#line 850 "code.l"
+{ // remove special one-line comment
+ yyLineNr+=((QCString)yytext).contains('\n');
+ code->endCodeLine();
+ if (yyLineNr<inputLines)
+ {
+ startCodeLine();
+ }
+ }
+ YY_BREAK
+case 67:
+YY_RULE_SETUP
+#line 858 "code.l"
+{ // remove special one-line comment
+ yyLineNr++;
+ code->endCodeLine();
+ if (yyLineNr<inputLines)
+ {
+ startCodeLine();
+ }
+ }
+ YY_BREAK
+case 68:
+YY_RULE_SETUP
+#line 866 "code.l"
+{ // strip special one-line comment
+ char c[2]; c[0]='\n'; c[1]=0;
+ codifyLines(c);
+ }
+ YY_BREAK
+case 69:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 870 "code.l"
+{
+ lastSpecialCContext = YY_START;
+ yyLineNr++;
+ BEGIN(RemoveSpecialCComment);
+ }
+ YY_BREAK
+case 70:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 875 "code.l"
+{ // special C comment block at a new line
+ lastSpecialCContext = YY_START;
+ BEGIN(RemoveSpecialCComment);
+ }
+ YY_BREAK
+case 71:
+*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
+yy_c_buf_p = yy_cp = yy_bp + 3;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 879 "code.l"
+{ // special C comment block half way a line
+ lastSpecialCContext = YY_START;
+ BEGIN(RemoveSpecialCComment);
+ }
+ YY_BREAK
+case 72:
+YY_RULE_SETUP
+#line 883 "code.l"
+{
+ code->codify(yytext);
+ lastCContext = YY_START ;
+ BEGIN( SkipComment ) ;
+ }
+ YY_BREAK
+case 73:
+YY_RULE_SETUP
+#line 888 "code.l"
+{
+ code->codify(yytext);
+ lastCContext = YY_START ;
+ BEGIN( SkipCxxComment ) ;
+ }
+ YY_BREAK
+case 74:
+YY_RULE_SETUP
+#line 893 "code.l"
+{
+ codifyLines(yytext);
+ }
+ YY_BREAK
+case 75:
+YY_RULE_SETUP
+#line 896 "code.l"
+{
+ code->codify(yytext);
+ }
+ YY_BREAK
+/*
+<*>([ \t\n]*"\n"){2,} { // combine multiple blank lines
+ //QCString sepLine=yytext;
+ //code->codify("\n\n");
+ //yyLineNr+=sepLine.contains('\n');
+ //char sepLine[3]="\n\n";
+ codifyLines(yytext);
+ }
+ */
+case 76:
+YY_RULE_SETUP
+#line 909 "code.l"
+ECHO;
+ YY_BREAK
+ case YY_STATE_EOF(INITIAL):
+ case YY_STATE_EOF(SkipString):
+ case YY_STATE_EOF(SkipCPP):
+ case YY_STATE_EOF(SkipComment):
+ case YY_STATE_EOF(SkipCxxComment):
+ case YY_STATE_EOF(RemoveSpecialCComment):
+ case YY_STATE_EOF(StripSpecialCComment):
+ case YY_STATE_EOF(Body):
+ case YY_STATE_EOF(FuncCall):
+ case YY_STATE_EOF(MemberCall):
+ case YY_STATE_EOF(MemberCall2):
+ case YY_STATE_EOF(SkipInits):
+ case YY_STATE_EOF(ClassName):
+ case YY_STATE_EOF(Bases):
+ case YY_STATE_EOF(SkipSharp):
+ case YY_STATE_EOF(ReadInclude):
+ yyterminate();
+
+ case YY_END_OF_BUFFER:
+ {
+ /* Amount of text matched not including the EOB char. */
+ int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
+
+ /* Undo the effects of YY_DO_BEFORE_ACTION. */
+ *yy_cp = yy_hold_char;
+ YY_RESTORE_YY_MORE_OFFSET
+
+ if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
+ {
+ /* We're scanning a new file or input source. It's
+ * possible that this happened because the user
+ * just pointed yyin at a new source and called
+ * yylex(). If so, then we have to assure
+ * consistency between yy_current_buffer and our
+ * globals. Here is the right place to do so, because
+ * this is the first action (other than possibly a
+ * back-up) that will match for the new input source.
+ */
+ yy_n_chars = yy_current_buffer->yy_n_chars;
+ yy_current_buffer->yy_input_file = yyin;
+ yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
+ }
+
+ /* Note that here we test for yy_c_buf_p "<=" to the position
+ * of the first EOB in the buffer, since yy_c_buf_p will
+ * already have been incremented past the NUL character
+ * (since all states make transitions on EOB to the
+ * end-of-buffer state). Contrast this with the test
+ * in input().
+ */
+ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
+ { /* This was really a NUL. */
+ yy_state_type yy_next_state;
+
+ yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state();
+
+ /* Okay, we're now positioned to make the NUL
+ * transition. We couldn't have
+ * yy_get_previous_state() go ahead and do it
+ * for us because it doesn't know how to deal
+ * with the possibility of jamming (and we don't
+ * want to build jamming into it because then it
+ * will run more slowly).
+ */
+
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
+
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+
+ if ( yy_next_state )
+ {
+ /* Consume the NUL. */
+ yy_cp = ++yy_c_buf_p;
+ yy_current_state = yy_next_state;
+ goto yy_match;
+ }
+
+ else
+ {
+ yy_cp = yy_c_buf_p;
+ goto yy_find_action;
+ }
+ }
+
+ else switch ( yy_get_next_buffer() )
+ {
+ case EOB_ACT_END_OF_FILE:
+ {
+ yy_did_buffer_switch_on_eof = 0;
+
+ if ( yywrap() )
+ {
+ /* Note: because we've taken care in
+ * yy_get_next_buffer() to have set up
+ * yytext, we can now set up
+ * yy_c_buf_p so that if some total
+ * hoser (like flex itself) wants to
+ * call the scanner after we return the
+ * YY_NULL, it'll still work - another
+ * YY_NULL will get returned.
+ */
+ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
+
+ yy_act = YY_STATE_EOF(YY_START);
+ goto do_action;
+ }
+
+ else
+ {
+ if ( ! yy_did_buffer_switch_on_eof )
+ YY_NEW_FILE;
+ }
+ break;
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p =
+ yytext_ptr + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_match;
+
+ case EOB_ACT_LAST_MATCH:
+ yy_c_buf_p =
+ &yy_current_buffer->yy_ch_buf[yy_n_chars];
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_find_action;
+ }
+ break;
+ }
+
+ default:
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--no action found" );
+ } /* end of action switch */
+ } /* end of scanning one token */
+ } /* end of yylex */
+
+
+/* yy_get_next_buffer - try to read in a new buffer
+ *
+ * Returns a code representing an action:
+ * EOB_ACT_LAST_MATCH -
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
+ * EOB_ACT_END_OF_FILE - end of file
+ */
+
+static int yy_get_next_buffer()
+ {
+ register char *dest = yy_current_buffer->yy_ch_buf;
+ register char *source = yytext_ptr;
+ register int number_to_move, i;
+ int ret_val;
+
+ if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--end of buffer missed" );
+
+ if ( yy_current_buffer->yy_fill_buffer == 0 )
+ { /* Don't try to fill the buffer, so this is an EOF. */
+ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
+ {
+ /* We matched a single character, the EOB, so
+ * treat this as a final EOF.
+ */
+ return EOB_ACT_END_OF_FILE;
+ }
+
+ else
+ {
+ /* We matched some text prior to the EOB, first
+ * process it.
+ */
+ return EOB_ACT_LAST_MATCH;
+ }
+ }
+
+ /* Try to read more data. */
+
+ /* First move last chars to start of buffer. */
+ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
+
+ for ( i = 0; i < number_to_move; ++i )
+ *(dest++) = *(source++);
+
+ if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
+ /* don't do the read, it's not guaranteed to return an EOF,
+ * just force an EOF
+ */
+ yy_current_buffer->yy_n_chars = yy_n_chars = 0;
+
+ else
+ {
+ int num_to_read =
+ yy_current_buffer->yy_buf_size - number_to_move - 1;
+
+ while ( num_to_read <= 0 )
+ { /* Not enough room in the buffer - grow it. */
+#ifdef YY_USES_REJECT
+ YY_FATAL_ERROR(
+"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
+#else
+
+ /* just a shorter name for the current buffer */
+ YY_BUFFER_STATE b = yy_current_buffer;
+
+ int yy_c_buf_p_offset =
+ (int) (yy_c_buf_p - b->yy_ch_buf);
+
+ if ( b->yy_is_our_buffer )
+ {
+ int new_size = b->yy_buf_size * 2;
+
+ if ( new_size <= 0 )
+ b->yy_buf_size += b->yy_buf_size / 8;
+ else
+ b->yy_buf_size *= 2;
+
+ b->yy_ch_buf = (char *)
+ /* Include room in for 2 EOB chars. */
+ yy_flex_realloc( (void *) b->yy_ch_buf,
+ b->yy_buf_size + 2 );
+ }
+ else
+ /* Can't grow it, we don't own it. */
+ b->yy_ch_buf = 0;
+
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+ num_to_read = yy_current_buffer->yy_buf_size -
+ number_to_move - 1;
+#endif
+ }
+
+ if ( num_to_read > YY_READ_BUF_SIZE )
+ num_to_read = YY_READ_BUF_SIZE;
+
+ /* Read in more data. */
+ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
+ yy_n_chars, num_to_read );
+
+ yy_current_buffer->yy_n_chars = yy_n_chars;
+ }
+
+ if ( yy_n_chars == 0 )
+ {
+ if ( number_to_move == YY_MORE_ADJ )
+ {
+ ret_val = EOB_ACT_END_OF_FILE;
+ yyrestart( yyin );
+ }
+
+ else
+ {
+ ret_val = EOB_ACT_LAST_MATCH;
+ yy_current_buffer->yy_buffer_status =
+ YY_BUFFER_EOF_PENDING;
+ }
+ }
+
+ else
+ ret_val = EOB_ACT_CONTINUE_SCAN;
+
+ yy_n_chars += number_to_move;
+ yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
+ yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
+
+ yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
+
+ return ret_val;
+ }
+
+
+/* yy_get_previous_state - get the state just before the EOB char was reached */
+
+static yy_state_type yy_get_previous_state()
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp;
+
+ yy_current_state = yy_start;
+ yy_current_state += YY_AT_BOL();
+ yy_state_ptr = yy_state_buf;
+ *yy_state_ptr++ = yy_current_state;
+
+ for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
+ {
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 445 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ *yy_state_ptr++ = yy_current_state;
+ }
+
+ return yy_current_state;
+ }
+
+
+/* yy_try_NUL_trans - try to make a transition on the NUL character
+ *
+ * synopsis
+ * next_state = yy_try_NUL_trans( current_state );
+ */
+
+#ifdef YY_USE_PROTOS
+static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
+#else
+static yy_state_type yy_try_NUL_trans( yy_current_state )
+yy_state_type yy_current_state;
+#endif
+ {
+ register int yy_is_jam;
+
+ register YY_CHAR yy_c = 1;
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 445 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_is_jam = (yy_current_state == 444);
+ if ( ! yy_is_jam )
+ *yy_state_ptr++ = yy_current_state;
+
+ return yy_is_jam ? 0 : yy_current_state;
+ }
+
+
+#ifndef YY_NO_UNPUT
+#ifdef YY_USE_PROTOS
+static void yyunput( int c, register char *yy_bp )
+#else
+static void yyunput( c, yy_bp )
+int c;
+register char *yy_bp;
+#endif
+ {
+ register char *yy_cp = yy_c_buf_p;
+
+ /* undo effects of setting up yytext */
+ *yy_cp = yy_hold_char;
+
+ if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
+ { /* need to shift things up to make room */
+ /* +2 for EOB chars. */
+ register int number_to_move = yy_n_chars + 2;
+ register char *dest = &yy_current_buffer->yy_ch_buf[
+ yy_current_buffer->yy_buf_size + 2];
+ register char *source =
+ &yy_current_buffer->yy_ch_buf[number_to_move];
+
+ while ( source > yy_current_buffer->yy_ch_buf )
+ *--dest = *--source;
+
+ yy_cp += (int) (dest - source);
+ yy_bp += (int) (dest - source);
+ yy_current_buffer->yy_n_chars =
+ yy_n_chars = yy_current_buffer->yy_buf_size;
+
+ if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
+ YY_FATAL_ERROR( "flex scanner push-back overflow" );
+ }
+
+ *--yy_cp = (char) c;
+
+
+ yytext_ptr = yy_bp;
+ yy_hold_char = *yy_cp;
+ yy_c_buf_p = yy_cp;
+ }
+#endif /* ifndef YY_NO_UNPUT */
+
+
+#ifdef __cplusplus
+static int yyinput()
+#else
+static int input()
+#endif
+ {
+ int c;
+
+ *yy_c_buf_p = yy_hold_char;
+
+ if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
+ {
+ /* yy_c_buf_p now points to the character we want to return.
+ * If this occurs *before* the EOB characters, then it's a
+ * valid NUL; if not, then we've hit the end of the buffer.
+ */
+ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
+ /* This was really a NUL. */
+ *yy_c_buf_p = '\0';
+
+ else
+ { /* need more input */
+ int offset = yy_c_buf_p - yytext_ptr;
+ ++yy_c_buf_p;
+
+ switch ( yy_get_next_buffer() )
+ {
+ case EOB_ACT_LAST_MATCH:
+ /* This happens because yy_g_n_b()
+ * sees that we've accumulated a
+ * token and flags that we need to
+ * try matching the token before
+ * proceeding. But for input(),
+ * there's no matching to consider.
+ * So convert the EOB_ACT_LAST_MATCH
+ * to EOB_ACT_END_OF_FILE.
+ */
+
+ /* Reset buffer status. */
+ yyrestart( yyin );
+
+ /* fall through */
+
+ case EOB_ACT_END_OF_FILE:
+ {
+ if ( yywrap() )
+ return EOF;
+
+ if ( ! yy_did_buffer_switch_on_eof )
+ YY_NEW_FILE;
+#ifdef __cplusplus
+ return yyinput();
+#else
+ return input();
+#endif
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p = yytext_ptr + offset;
+ break;
+ }
+ }
+ }
+
+ c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
+ *yy_c_buf_p = '\0'; /* preserve yytext */
+ yy_hold_char = *++yy_c_buf_p;
+
+ yy_current_buffer->yy_at_bol = (c == '\n');
+
+ return c;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yyrestart( FILE *input_file )
+#else
+void yyrestart( input_file )
+FILE *input_file;
+#endif
+ {
+ if ( ! yy_current_buffer )
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
+
+ yy_init_buffer( yy_current_buffer, input_file );
+ yy_load_buffer_state();
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
+#else
+void yy_switch_to_buffer( new_buffer )
+YY_BUFFER_STATE new_buffer;
+#endif
+ {
+ if ( yy_current_buffer == new_buffer )
+ return;
+
+ if ( yy_current_buffer )
+ {
+ /* Flush out information for old buffer. */
+ *yy_c_buf_p = yy_hold_char;
+ yy_current_buffer->yy_buf_pos = yy_c_buf_p;
+ yy_current_buffer->yy_n_chars = yy_n_chars;
+ }
+
+ yy_current_buffer = new_buffer;
+ yy_load_buffer_state();
+
+ /* We don't actually know whether we did this switch during
+ * EOF (yywrap()) processing, but the only time this flag
+ * is looked at is after yywrap() is called, so it's safe
+ * to go ahead and always set it.
+ */
+ yy_did_buffer_switch_on_eof = 1;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_load_buffer_state( void )
+#else
+void yy_load_buffer_state()
+#endif
+ {
+ yy_n_chars = yy_current_buffer->yy_n_chars;
+ yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
+ yyin = yy_current_buffer->yy_input_file;
+ yy_hold_char = *yy_c_buf_p;
+ }
+
+
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
+#else
+YY_BUFFER_STATE yy_create_buffer( file, size )
+FILE *file;
+int size;
+#endif
+ {
+ YY_BUFFER_STATE b;
+
+ b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_buf_size = size;
+
+ /* yy_ch_buf has to be 2 characters longer than the size given because
+ * we need to put in 2 end-of-buffer characters.
+ */
+ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_is_our_buffer = 1;
+
+ yy_init_buffer( b, file );
+
+ return b;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_delete_buffer( YY_BUFFER_STATE b )
+#else
+void yy_delete_buffer( b )
+YY_BUFFER_STATE b;
+#endif
+ {
+ if ( ! b )
+ return;
+
+ if ( b == yy_current_buffer )
+ yy_current_buffer = (YY_BUFFER_STATE) 0;
+
+ if ( b->yy_is_our_buffer )
+ yy_flex_free( (void *) b->yy_ch_buf );
+
+ yy_flex_free( (void *) b );
+ }
+
+
+#ifndef YY_ALWAYS_INTERACTIVE
+#ifndef YY_NEVER_INTERACTIVE
+extern int isatty YY_PROTO(( int ));
+#endif
+#endif
+
+#ifdef YY_USE_PROTOS
+void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
+#else
+void yy_init_buffer( b, file )
+YY_BUFFER_STATE b;
+FILE *file;
+#endif
+
+
+ {
+ yy_flush_buffer( b );
+
+ b->yy_input_file = file;
+ b->yy_fill_buffer = 1;
+
+#if YY_ALWAYS_INTERACTIVE
+ b->yy_is_interactive = 1;
+#else
+#if YY_NEVER_INTERACTIVE
+ b->yy_is_interactive = 0;
+#else
+ b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
+#endif
+#endif
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_flush_buffer( YY_BUFFER_STATE b )
+#else
+void yy_flush_buffer( b )
+YY_BUFFER_STATE b;
+#endif
+
+ {
+ if ( ! b )
+ return;
+
+ b->yy_n_chars = 0;
+
+ /* We always need two end-of-buffer characters. The first causes
+ * a transition to the end-of-buffer state. The second causes
+ * a jam in that state.
+ */
+ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
+ b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
+
+ b->yy_buf_pos = &b->yy_ch_buf[0];
+
+ b->yy_at_bol = 1;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ if ( b == yy_current_buffer )
+ yy_load_buffer_state();
+ }
+
+
+#ifndef YY_NO_SCAN_BUFFER
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
+#else
+YY_BUFFER_STATE yy_scan_buffer( base, size )
+char *base;
+yy_size_t size;
+#endif
+ {
+ YY_BUFFER_STATE b;
+
+ if ( size < 2 ||
+ base[size-2] != YY_END_OF_BUFFER_CHAR ||
+ base[size-1] != YY_END_OF_BUFFER_CHAR )
+ /* They forgot to leave room for the EOB's. */
+ return 0;
+
+ b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
+
+ b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
+ b->yy_buf_pos = b->yy_ch_buf = base;
+ b->yy_is_our_buffer = 0;
+ b->yy_input_file = 0;
+ b->yy_n_chars = b->yy_buf_size;
+ b->yy_is_interactive = 0;
+ b->yy_at_bol = 1;
+ b->yy_fill_buffer = 0;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ yy_switch_to_buffer( b );
+
+ return b;
+ }
+#endif
+
+
+#ifndef YY_NO_SCAN_STRING
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
+#else
+YY_BUFFER_STATE yy_scan_string( yy_str )
+yyconst char *yy_str;
+#endif
+ {
+ int len;
+ for ( len = 0; yy_str[len]; ++len )
+ ;
+
+ return yy_scan_bytes( yy_str, len );
+ }
+#endif
+
+
+#ifndef YY_NO_SCAN_BYTES
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
+#else
+YY_BUFFER_STATE yy_scan_bytes( bytes, len )
+yyconst char *bytes;
+int len;
+#endif
+ {
+ YY_BUFFER_STATE b;
+ char *buf;
+ yy_size_t n;
+ int i;
+
+ /* Get memory for full buffer, including space for trailing EOB's. */
+ n = len + 2;
+ buf = (char *) yy_flex_alloc( n );
+ if ( ! buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
+
+ for ( i = 0; i < len; ++i )
+ buf[i] = bytes[i];
+
+ buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
+
+ b = yy_scan_buffer( buf, n );
+ if ( ! b )
+ YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
+
+ /* It's okay to grow etc. this buffer, and we should throw it
+ * away when we're done.
+ */
+ b->yy_is_our_buffer = 1;
+
+ return b;
+ }
+#endif
+
+
+#ifndef YY_NO_PUSH_STATE
+#ifdef YY_USE_PROTOS
+static void yy_push_state( int new_state )
+#else
+static void yy_push_state( new_state )
+int new_state;
+#endif
+ {
+ if ( yy_start_stack_ptr >= yy_start_stack_depth )
+ {
+ yy_size_t new_size;
+
+ yy_start_stack_depth += YY_START_STACK_INCR;
+ new_size = yy_start_stack_depth * sizeof( int );
+
+ if ( ! yy_start_stack )
+ yy_start_stack = (int *) yy_flex_alloc( new_size );
+
+ else
+ yy_start_stack = (int *) yy_flex_realloc(
+ (void *) yy_start_stack, new_size );
+
+ if ( ! yy_start_stack )
+ YY_FATAL_ERROR(
+ "out of memory expanding start-condition stack" );
+ }
+
+ yy_start_stack[yy_start_stack_ptr++] = YY_START;
+
+ BEGIN(new_state);
+ }
+#endif
+
+
+#ifndef YY_NO_POP_STATE
+static void yy_pop_state()
+ {
+ if ( --yy_start_stack_ptr < 0 )
+ YY_FATAL_ERROR( "start-condition stack underflow" );
+
+ BEGIN(yy_start_stack[yy_start_stack_ptr]);
+ }
+#endif
+
+
+#ifndef YY_NO_TOP_STATE
+static int yy_top_state()
+ {
+ return yy_start_stack[yy_start_stack_ptr - 1];
+ }
+#endif
+
+#ifndef YY_EXIT_FAILURE
+#define YY_EXIT_FAILURE 2
+#endif
+
+#ifdef YY_USE_PROTOS
+static void yy_fatal_error( yyconst char msg[] )
+#else
+static void yy_fatal_error( msg )
+char msg[];
+#endif
+ {
+ (void) fprintf( stderr, "%s\n", msg );
+ exit( YY_EXIT_FAILURE );
+ }
+
+
+
+/* Redefine yyless() so it works in section 3 code. */
+
+#undef yyless
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ yytext[yyleng] = yy_hold_char; \
+ yy_c_buf_p = yytext + n; \
+ yy_hold_char = *yy_c_buf_p; \
+ *yy_c_buf_p = '\0'; \
+ yyleng = n; \
+ } \
+ while ( 0 )
+
+
+/* Internal utility routines. */
+
+#ifndef yytext_ptr
+#ifdef YY_USE_PROTOS
+static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
+#else
+static void yy_flex_strncpy( s1, s2, n )
+char *s1;
+yyconst char *s2;
+int n;
+#endif
+ {
+ register int i;
+ for ( i = 0; i < n; ++i )
+ s1[i] = s2[i];
+ }
+#endif
+
+#ifdef YY_NEED_STRLEN
+#ifdef YY_USE_PROTOS
+static int yy_flex_strlen( yyconst char *s )
+#else
+static int yy_flex_strlen( s )
+yyconst char *s;
+#endif
+ {
+ register int n;
+ for ( n = 0; s[n]; ++n )
+ ;
+
+ return n;
+ }
+#endif
+
+
+#ifdef YY_USE_PROTOS
+static void *yy_flex_alloc( yy_size_t size )
+#else
+static void *yy_flex_alloc( size )
+yy_size_t size;
+#endif
+ {
+ return (void *) malloc( size );
+ }
+
+#ifdef YY_USE_PROTOS
+static void *yy_flex_realloc( void *ptr, yy_size_t size )
+#else
+static void *yy_flex_realloc( ptr, size )
+void *ptr;
+yy_size_t size;
+#endif
+ {
+ /* The cast to (char *) in the following accommodates both
+ * implementations that use char* generic pointers, and those
+ * that use void* generic pointers. It works with the latter
+ * because both ANSI C and C++ allow castless assignment from
+ * any pointer type to void*, and deal with argument conversions
+ * as though doing an assignment.
+ */
+ return (void *) realloc( (char *) ptr, size );
+ }
+
+#ifdef YY_USE_PROTOS
+static void yy_flex_free( void *ptr )
+#else
+static void yy_flex_free( ptr )
+void *ptr;
+#endif
+ {
+ free( ptr );
+ }
+
+#if YY_MAIN
+int main()
+ {
+ yylex();
+ return 0;
+ }
+#endif
+#line 909 "code.l"
+
+
+/*@ ----------------------------------------------------------------------------
+ */
+
+void initParseCodeContext()
+{
+ codeClassList.setAutoDelete(TRUE);
+ codeVarList.setAutoDelete(TRUE);
+ codeParmList.setAutoDelete(TRUE);
+ codeClassDict.clear();
+ codeClassList.clear();
+ codeVarList.clear();
+ codeParmList.clear();
+ ccd.bases.clear();
+ anchorCount = 0;
+}
+
+void parseCode(OutputList &ol,const char *className,const QCString &s,
+ bool exBlock, const char *exName,FileDef *fd)
+{
+ code = new OutputList(&ol);
+ if (s.length()==0) return;
+ inputString = s;
+ inputPosition = 0;
+ inputLines = countLines();
+ yyLineNr = 1;
+ curlyCount = 0;
+ bracketCount = 0;
+ sharpCount = 0;
+ classScope = className;
+ exampleBlock = exBlock;
+ exampleName = exName;
+ sourceFileDef = fd;
+ exampleFile = convertSlashes(exampleName,TRUE)+"-example";
+ startCodeLine();
+ type.resize(0);
+ name.resize(0);
+ args.resize(0);
+ parmName.resize(0);
+ parmType.resize(0);
+ codeYYrestart( codeYYin );
+ BEGIN( Body );
+ codeYYlex();
+ //if (yyLineNr<=inputLines) code->endCodeLine();
+ ol+=*code;
+ delete code;
+ return;
+}
+
+extern "C" { // some bogus code to keep the compiler happy
+// int codeYYwrap() { return 1 ; }
+ void codeYYdummy() { yy_flex_realloc(0,0); }
+}