#line 2 "d_ll.c" /* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #include /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus #ifndef __cplusplus #define __cplusplus #endif #endif #ifdef __cplusplus #include #include /* 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 #include #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 typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; 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 114 #define YY_END_OF_BUFFER 115 static yyconst short int yy_acclist[592] = { 0, 45, 45, 115, 51, 113, 114, 50, 113, 114, 114, 42, 51, 113, 114, 51, 113, 114, 49, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 51, 113, 114, 45, 113, 114, 48, 114, 42, 45, 113, 114, 46, 113, 114, 45, 113, 114, 113, 114, 99, 113, 114, 99, 114, 42, 113, 114, 113, 114, 113, 114, 113, 114, 103, 113, 114, 54, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 100, 113, 114, 112, 113, 114, 99, 112, 113, 114, 42, 112, 113, 114, 107, 112, 113, 114, 56, 112, 113, 114, 106, 112, 113, 114, 112, 113, 114, 112, 113, 114, 112, 113, 114, 103, 112, 113, 114, 104, 112, 113, 114, 55, 112, 113, 114, 105, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 101, 112, 113, 114, 63, 112, 113, 114, 108, 112, 113, 114, 110, 112, 113, 114, 109, 111, 112, 113, 114, 100, 112, 113, 114, 100, 112, 113, 114, 64, 114, 52, 113, 114, 53, 114, 42, 52, 113, 114, 52, 113, 114, 53, 113, 114, 44, 43, 45, 46, 46, 47, 43, 45, 103, 102, 102, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 67, 101, 101, 65, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 66, 101, 101, 43, 23, 37, 30, 10, 43, 45, 100, 100, 100, 100, 100, 100, 82, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 69, 101, 101, 57, 101, 102, 100, 100, 73, 100, 62, 100, 100, 100, 100, 92, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 98, 101, 68, 101, 101, 101, 101, 101, 101, 70, 101, 101, 101, 32, 27, 6, 20, 17, 25, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 75, 100, 100, 100, 100, 100, 86, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 24, 3, 8, 18, 11, 41, 100, 100, 100, 100, 100, 74, 100, 79, 100, 100, 100, 100, 100, 100, 76, 100, 100, 100, 61, 100, 101, 101, 101, 101, 74, 101, 101, 101, 60, 101, 59, 101, 21, 26, 16, 15, 5, 4, 9, 7, 36, 100, 71, 100, 100, 100, 100, 100, 100, 100, 87, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 58, 101, 34, 33, 2, 38, 35, 13, 91, 100, 100, 100, 84, 100, 100, 100, 90, 100, 100, 100, 100, 100, 89, 101, 95, 101, 101, 101, 101, 31, 93, 100, 83, 100, 100, 78, 100, 100, 100, 100, 100, 94, 101, 101, 101, 1, 40, 29, 14, 100, 100, 77, 100, 72, 100, 85, 100, 101, 96, 101, 19, 81, 100, 100, 101, 22, 88, 100, 101, 28, 97, 101, 39, 12 } ; static yyconst short int yy_accept[547] = { 0, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 7, 10, 11, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 62, 66, 69, 72, 74, 77, 79, 82, 84, 86, 88, 91, 94, 97, 100, 103, 106, 109, 112, 115, 118, 121, 124, 127, 130, 133, 136, 139, 142, 146, 150, 154, 158, 162, 165, 168, 171, 175, 179, 183, 187, 191, 195, 199, 203, 207, 211, 215, 219, 223, 227, 231, 235, 239, 243, 247, 251, 255, 260, 264, 268, 270, 273, 275, 279, 282, 285, 286, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 288, 289, 290, 291, 293, 293, 294, 295, 296, 297, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 320, 321, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 334, 335, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 337, 337, 337, 338, 338, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 340, 342, 342, 343, 344, 345, 346, 347, 348, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 376, 377, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 379, 380, 381, 382, 384, 384, 385, 386, 387, 388, 389, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 406, 408, 409, 410, 411, 412, 413, 415, 416, 417, 417, 418, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 419, 420, 420, 420, 420, 420, 420, 420, 421, 422, 422, 422, 423, 423, 423, 423, 423, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 435, 436, 437, 438, 439, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 451, 451, 452, 452, 452, 452, 452, 452, 452, 452, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 454, 454, 455, 455, 456, 457, 457, 458, 459, 460, 461, 462, 464, 466, 467, 468, 469, 470, 471, 473, 474, 475, 477, 478, 479, 480, 481, 483, 484, 485, 487, 489, 489, 489, 490, 490, 491, 492, 493, 493, 493, 493, 494, 495, 496, 496, 496, 496, 496, 497, 498, 498, 498, 498, 499, 501, 502, 503, 504, 505, 506, 507, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 520, 520, 520, 520, 521, 522, 522, 522, 523, 524, 524, 524, 524, 525, 525, 525, 526, 528, 529, 530, 532, 533, 534, 536, 537, 538, 539, 540, 542, 544, 545, 546, 547, 547, 548, 548, 548, 548, 548, 548, 548, 548, 548, 550, 552, 553, 555, 556, 557, 558, 559, 561, 562, 563, 564, 564, 564, 565, 565, 566, 567, 567, 567, 568, 569, 571, 573, 575, 576, 578, 578, 578, 578, 579, 579, 581, 582, 583, 584, 584, 584, 584, 586, 587, 587, 588, 588, 590, 590, 590, 590, 590, 591, 591, 592, 592 } ; 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, 1, 1, 5, 6, 1, 1, 1, 7, 7, 8, 9, 10, 11, 12, 13, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 16, 17, 1, 18, 1, 1, 1, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 19, 1, 20, 1, 21, 1, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 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, 1, 1, 1, 1 } ; static yyconst int yy_meta[48] = { 0, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 } ; static yyconst short int yy_base[555] = { 0, 0, 42, 2, 15, 85, 0, 132, 722, 179, 0, 225, 0, 44, 47, 726, 728, 728, 728, 728, 1, 728, 692, 9, 12, 14, 694, 30, 34, 40, 207, 205, 215, 701, 0, 728, 0, 3, 14, 728, 728, 728, 728, 222, 69, 244, 249, 728, 0, 683, 232, 686, 690, 682, 679, 687, 680, 2, 689, 667, 687, 209, 690, 728, 728, 728, 728, 728, 728, 255, 258, 266, 263, 728, 728, 728, 0, 669, 250, 674, 673, 673, 685, 671, 675, 668, 36, 239, 667, 680, 728, 728, 728, 728, 0, 666, 728, 728, 728, 728, 274, 728, 728, 0, 664, 666, 672, 673, 656, 673, 659, 668, 651, 651, 660, 662, 663, 658, 647, 644, 645, 644, 643, 641, 647, 643, 212, 257, 639, 0, 276, 277, 728, 669, 277, 283, 285, 287, 0, 0, 635, 267, 650, 635, 652, 645, 636, 281, 631, 644, 629, 646, 629, 629, 630, 624, 0, 621, 620, 0, 621, 0, 634, 624, 614, 621, 616, 615, 617, 627, 617, 0, 281, 0, 615, 619, 624, 611, 609, 611, 294, 601, 613, 601, 600, 728, 614, 603, 617, 607, 615, 613, 604, 597, 596, 607, 596, 587, 606, 603, 291, 618, 310, 603, 602, 586, 320, 582, 259, 0, 595, 580, 583, 576, 581, 595, 589, 584, 589, 579, 587, 568, 583, 572, 585, 567, 326, 571, 583, 577, 568, 571, 575, 573, 0, 556, 0, 569, 573, 563, 555, 572, 555, 290, 266, 569, 556, 546, 545, 554, 562, 555, 550, 546, 548, 545, 547, 538, 546, 555, 543, 550, 545, 528, 549, 545, 317, 320, 543, 536, 0, 336, 728, 527, 537, 538, 543, 0, 525, 528, 528, 538, 521, 523, 519, 527, 524, 522, 509, 529, 531, 0, 0, 529, 522, 527, 526, 511, 0, 507, 519, 509, 522, 728, 503, 311, 508, 518, 513, 516, 491, 503, 513, 512, 511, 728, 500, 496, 509, 507, 502, 502, 728, 728, 486, 504, 728, 478, 502, 486, 481, 496, 489, 490, 496, 483, 476, 475, 474, 488, 485, 484, 0, 484, 478, 483, 485, 484, 468, 467, 465, 480, 478, 460, 465, 472, 457, 455, 472, 450, 728, 453, 455, 464, 447, 464, 444, 449, 728, 444, 451, 450, 442, 441, 436, 440, 437, 437, 728, 450, 728, 435, 453, 728, 431, 439, 435, 434, 428, 438, 0, 0, 426, 431, 424, 424, 422, 0, 422, 304, 0, 422, 435, 422, 424, 0, 436, 416, 0, 0, 421, 432, 728, 419, 728, 728, 728, 426, 425, 316, 728, 423, 728, 408, 422, 425, 420, 728, 424, 414, 403, 403, 415, 0, 417, 413, 413, 407, 395, 413, 0, 408, 403, 399, 405, 391, 402, 403, 393, 389, 0, 399, 385, 397, 728, 728, 397, 385, 728, 728, 390, 385, 379, 728, 383, 375, 728, 0, 375, 375, 0, 377, 372, 0, 372, 363, 381, 382, 0, 0, 380, 384, 380, 364, 728, 368, 381, 366, 372, 359, 358, 355, 360, 0, 0, 360, 0, 364, 367, 356, 366, 0, 367, 357, 728, 339, 340, 728, 347, 728, 728, 328, 336, 319, 316, 0, 0, 0, 320, 0, 316, 333, 313, 728, 323, 0, 317, 325, 728, 310, 308, 325, 0, 314, 318, 728, 219, 0, 198, 189, 16, 23, 728, 8, 728, 728, 362, 366, 370, 374, 378, 4, 3, 382, 386 } ; static yyconst short int yy_def[555] = { 0, 546, 546, 547, 547, 545, 5, 545, 7, 545, 9, 7, 11, 548, 548, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 549, 545, 549, 550, 549, 545, 545, 545, 545, 545, 545, 545, 545, 545, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 545, 545, 545, 545, 551, 551, 545, 545, 545, 545, 545, 545, 545, 553, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 549, 550, 550, 545, 554, 545, 545, 545, 545, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 553, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 554, 545, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 551, 551, 551, 545, 545, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 552, 552, 552, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 552, 552, 552, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 545, 545, 545, 545, 545, 545, 545, 545, 545, 551, 551, 551, 551, 551, 552, 552, 545, 545, 545, 545, 545, 551, 551, 552, 545, 545, 545, 545, 551, 552, 545, 545, 545, 552, 545, 545, 545, 545, 545, 545, 545, 0, 545, 545, 545, 545, 545, 545, 545, 545, 545 } ; static yyconst short int yy_nxt[776] = { 0, 545, 17, 18, 19, 35, 36, 156, 138, 102, 37, 131, 545, 20, 103, 38, 132, 21, 35, 36, 545, 22, 102, 37, 23, 24, 25, 133, 38, 26, 27, 105, 544, 107, 28, 148, 29, 30, 106, 31, 32, 149, 108, 33, 17, 18, 19, 98, 99, 111, 98, 99, 109, 543, 112, 20, 542, 100, 110, 21, 100, 101, 167, 22, 101, 114, 23, 24, 25, 115, 116, 26, 27, 118, 117, 168, 28, 119, 29, 30, 120, 31, 32, 136, 136, 33, 39, 40, 41, 42, 39, 39, 39, 39, 39, 39, 43, 44, 45, 46, 46, 39, 47, 39, 39, 39, 48, 49, 48, 48, 50, 51, 52, 48, 53, 54, 48, 48, 55, 48, 56, 57, 58, 59, 60, 61, 48, 48, 62, 48, 48, 48, 48, 63, 64, 41, 65, 63, 66, 67, 63, 63, 68, 69, 70, 71, 72, 72, 73, 74, 75, 63, 63, 76, 77, 78, 79, 80, 81, 76, 82, 76, 83, 76, 76, 84, 76, 85, 76, 86, 76, 76, 87, 88, 76, 89, 76, 76, 76, 76, 63, 64, 41, 65, 63, 63, 67, 63, 63, 63, 69, 70, 71, 72, 72, 63, 74, 91, 92, 93, 94, 94, 94, 94, 94, 95, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 63, 96, 121, 541, 123, 540, 122, 134, 63, 135, 135, 153, 154, 196, 63, 124, 63, 125, 126, 197, 76, 76, 76, 76, 76, 102, 76, 140, 76, 127, 103, 76, 539, 76, 137, 76, 135, 135, 76, 76, 134, 76, 135, 135, 141, 136, 136, 102, 137, 158, 135, 135, 103, 169, 170, 102, 198, 545, 131, 274, 103, 204, 545, 132, 136, 136, 199, 275, 137, 159, 135, 135, 136, 136, 136, 136, 205, 211, 212, 309, 310, 213, 243, 202, 202, 202, 202, 235, 214, 244, 263, 307, 266, 236, 266, 271, 271, 267, 267, 443, 264, 271, 271, 265, 267, 267, 308, 267, 267, 361, 272, 271, 271, 538, 537, 456, 272, 444, 362, 457, 536, 535, 534, 533, 532, 531, 272, 530, 529, 528, 527, 526, 525, 524, 523, 292, 16, 16, 16, 16, 34, 34, 34, 34, 97, 97, 97, 97, 129, 522, 521, 129, 130, 520, 130, 130, 173, 519, 173, 173, 201, 518, 201, 201, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, 487, 486, 485, 484, 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 470, 469, 468, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458, 455, 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, 412, 411, 410, 409, 408, 407, 406, 405, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 388, 387, 386, 385, 384, 383, 382, 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 363, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, 333, 332, 331, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312, 311, 306, 305, 304, 303, 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, 291, 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, 277, 276, 273, 270, 269, 268, 173, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 242, 241, 240, 239, 238, 237, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 210, 209, 208, 207, 206, 203, 173, 200, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 142, 172, 171, 166, 165, 164, 163, 162, 161, 160, 157, 155, 152, 151, 150, 147, 146, 145, 144, 143, 142, 139, 128, 113, 104, 545, 90, 15, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545 } ; static yyconst short int yy_chk[776] = { 0, 0, 1, 1, 1, 3, 3, 552, 551, 20, 3, 37, 0, 1, 20, 3, 37, 1, 4, 4, 0, 1, 38, 4, 1, 1, 1, 38, 4, 1, 1, 23, 543, 24, 1, 57, 1, 1, 23, 1, 1, 57, 24, 1, 2, 2, 2, 13, 13, 25, 14, 14, 24, 541, 25, 2, 540, 13, 24, 2, 14, 13, 86, 2, 14, 27, 2, 2, 2, 27, 28, 2, 2, 29, 28, 86, 2, 29, 2, 2, 29, 2, 2, 44, 44, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 30, 539, 31, 538, 30, 43, 11, 43, 43, 61, 61, 126, 11, 31, 11, 32, 32, 126, 11, 11, 11, 11, 11, 45, 11, 50, 11, 32, 45, 11, 536, 11, 46, 11, 46, 46, 11, 11, 69, 11, 69, 69, 50, 70, 70, 71, 72, 78, 72, 72, 71, 87, 87, 100, 127, 130, 131, 208, 100, 141, 130, 131, 134, 134, 127, 208, 135, 78, 135, 135, 136, 136, 137, 137, 141, 147, 147, 244, 244, 147, 180, 136, 136, 137, 137, 172, 147, 180, 200, 243, 202, 172, 202, 206, 206, 202, 202, 399, 200, 226, 226, 200, 266, 266, 243, 267, 267, 305, 206, 271, 271, 534, 533, 419, 226, 399, 305, 419, 531, 530, 529, 527, 526, 524, 271, 522, 521, 520, 518, 514, 513, 512, 511, 226, 546, 546, 546, 546, 547, 547, 547, 547, 548, 548, 548, 548, 549, 508, 506, 549, 550, 505, 550, 550, 553, 503, 553, 553, 554, 502, 554, 554, 500, 499, 498, 497, 495, 492, 491, 490, 489, 488, 487, 486, 485, 483, 482, 481, 480, 477, 476, 475, 474, 472, 471, 469, 468, 465, 464, 462, 461, 460, 457, 456, 453, 452, 451, 449, 448, 447, 446, 445, 444, 443, 442, 441, 439, 438, 437, 436, 435, 434, 432, 431, 430, 429, 428, 426, 425, 424, 423, 421, 418, 417, 413, 411, 410, 407, 406, 404, 403, 402, 401, 398, 396, 395, 394, 393, 392, 389, 388, 387, 386, 385, 384, 382, 381, 379, 377, 376, 375, 374, 373, 372, 371, 370, 369, 367, 366, 365, 364, 363, 362, 361, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 341, 340, 339, 338, 337, 336, 335, 334, 333, 332, 331, 330, 329, 328, 327, 325, 324, 321, 320, 319, 318, 317, 316, 314, 313, 312, 311, 310, 309, 308, 307, 306, 304, 302, 301, 300, 299, 297, 296, 295, 294, 293, 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, 276, 275, 274, 273, 269, 268, 265, 264, 263, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 242, 241, 240, 239, 238, 237, 235, 233, 232, 231, 230, 229, 228, 227, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 207, 205, 204, 203, 201, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 184, 183, 182, 181, 179, 178, 177, 176, 175, 174, 170, 169, 168, 167, 166, 165, 164, 163, 162, 160, 158, 157, 155, 154, 153, 152, 151, 150, 149, 148, 146, 145, 144, 143, 142, 140, 133, 128, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 95, 89, 88, 85, 84, 83, 82, 81, 80, 79, 77, 62, 60, 59, 58, 56, 55, 54, 53, 52, 51, 49, 33, 26, 22, 15, 8, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545 } ; static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr; static char *yy_full_match; static int yy_lp; #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; \ 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 "dyn.l" #define INITIAL 0 #line 2 "dyn.l" #include #include "d_tab.h" #include "d.h" int previous_state; int comment_level = 0; int lineno = 1; void yyerror(char *); int name_var(char *); #define YY_STACK_USED 1 #define CMT 1 #define DYNARE1 2 #define DYNARE2 3 #define DYNARE3 4 #define DYNARE4 5 #define THRU 6 #line 814 "d_ll.c" /* 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 #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 23 "dyn.l" /* literal keywords token */ #line 975 "d_ll.c" 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 >= 546 ) 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] != 728 ); 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]; { yy_full_match = yy_cp; break; } } --yy_cp; yy_current_state = *--yy_state_ptr; yy_lp = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; if ( yy_act != YY_END_OF_BUFFER ) { int yyl; for ( yyl = 0; yyl < yyleng; ++yyl ) if ( yytext[yyl] == '\n' ) ++yylineno; } do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 1: YY_RULE_SETUP #line 29 "dyn.l" {BEGIN DYNARE1; return LONGNAMES;} YY_BREAK case 2: YY_RULE_SETUP #line 30 "dyn.l" {BEGIN THRU; ECHO;} YY_BREAK case 3: YY_RULE_SETUP #line 31 "dyn.l" {BEGIN DYNARE2; return ENDVAL;} YY_BREAK case 4: YY_RULE_SETUP #line 32 "dyn.l" {BEGIN DYNARE2; return INITVAL;} YY_BREAK case 5: YY_RULE_SETUP #line 33 "dyn.l" {BEGIN DYNARE2; return HISTVAL;} YY_BREAK case 6: YY_RULE_SETUP #line 34 "dyn.l" {BEGIN DYNARE2; return MODEL;} YY_BREAK case 7: YY_RULE_SETUP #line 35 "dyn.l" {BEGIN DYNARE1; return PERIODS;} YY_BREAK case 8: YY_RULE_SETUP #line 36 "dyn.l" {BEGIN DYNARE2; return SHOCKS;} YY_BREAK case 9: YY_RULE_SETUP #line 37 "dyn.l" {BEGIN DYNARE2; return MSHOCKS;} YY_BREAK case 10: YY_RULE_SETUP #line 38 "dyn.l" {BEGIN DYNARE1; return VAR;} YY_BREAK case 11: YY_RULE_SETUP #line 39 "dyn.l" {BEGIN DYNARE1; return VAREXO;} YY_BREAK case 12: YY_RULE_SETUP #line 40 "dyn.l" {BEGIN DYNARE1; return VAREXO_ST;} YY_BREAK case 13: YY_RULE_SETUP #line 41 "dyn.l" {BEGIN DYNARE1; return VARRECUR;} YY_BREAK case 14: YY_RULE_SETUP #line 42 "dyn.l" {BEGIN DYNARE1; return PARAMETERS;} YY_BREAK case 15: YY_RULE_SETUP #line 43 "dyn.l" {BEGIN DYNARE1; return DYN2VEC;} YY_BREAK case 16: YY_RULE_SETUP #line 44 "dyn.l" {BEGIN DYNARE1; return DYN2VEC;} YY_BREAK case 17: YY_RULE_SETUP #line 45 "dyn.l" {BEGIN DYNARE1; return RPLOT;} YY_BREAK case 18: YY_RULE_SETUP #line 46 "dyn.l" {BEGIN DYNARE1; return STEADY;} YY_BREAK case 19: YY_RULE_SETUP #line 47 "dyn.l" {BEGIN DYNARE1; return STOCH_SIMUL;} YY_BREAK case 20: YY_RULE_SETUP #line 48 "dyn.l" {BEGIN DYNARE1; return RESOL;} YY_BREAK case 21: YY_RULE_SETUP #line 49 "dyn.l" {BEGIN DYNARE1; return DISP_DR;} YY_BREAK case 22: YY_RULE_SETUP #line 50 "dyn.l" {BEGIN DYNARE1; return DISP_MOMENTS;} YY_BREAK case 23: YY_RULE_SETUP #line 51 "dyn.l" {BEGIN DYNARE1; return IRF;} YY_BREAK case 24: YY_RULE_SETUP #line 52 "dyn.l" {BEGIN DYNARE1; return D_CORR;} YY_BREAK case 25: YY_RULE_SETUP #line 53 "dyn.l" {BEGIN DYNARE1; return SIMUL;} YY_BREAK case 26: YY_RULE_SETUP #line 54 "dyn.l" {BEGIN DYNARE1; return DSAMPLE;} YY_BREAK case 27: YY_RULE_SETUP #line 55 "dyn.l" {BEGIN DYNARE1; yylval.string=strdup(yytext); return CHECK;} YY_BREAK case 28: YY_RULE_SETUP #line 56 "dyn.l" {BEGIN DYNARE2; return OPTIM_WEIGHTS;} YY_BREAK case 29: YY_RULE_SETUP #line 57 "dyn.l" {BEGIN DYNARE1; return OSR_PARAMS;} YY_BREAK case 30: YY_RULE_SETUP #line 58 "dyn.l" {BEGIN DYNARE1; return OSR;} YY_BREAK case 31: YY_RULE_SETUP #line 59 "dyn.l" {BEGIN DYNARE2; return CALIB_VAR;} YY_BREAK case 32: YY_RULE_SETUP #line 60 "dyn.l" {BEGIN DYNARE1; return CALIB;} YY_BREAK case 33: YY_RULE_SETUP #line 61 "dyn.l" {BEGIN DYNARE1; return DYNATYPE;} YY_BREAK case 34: YY_RULE_SETUP #line 62 "dyn.l" {BEGIN DYNARE1; return DYNASAVE;} YY_BREAK case 35: YY_RULE_SETUP #line 63 "dyn.l" {BEGIN THRU; ECHO;} YY_BREAK case 36: YY_RULE_SETUP #line 64 "dyn.l" {BEGIN DYNARE3; return SIGMA_E;} YY_BREAK case 37: YY_RULE_SETUP #line 65 "dyn.l" {BEGIN DYNARE1; return OLR;} YY_BREAK case 38: YY_RULE_SETUP #line 66 "dyn.l" {BEGIN DYNARE1; return OLR_INST;} YY_BREAK case 39: YY_RULE_SETUP #line 67 "dyn.l" {BEGIN DYNARE2; return ESTIMATED_PARAMS;} YY_BREAK case 40: YY_RULE_SETUP #line 68 "dyn.l" {BEGIN DYNARE1; return ESTIMATION;} YY_BREAK case 41: YY_RULE_SETUP #line 69 "dyn.l" {BEGIN DYNARE1; return VAROBS;} YY_BREAK /* \r is always ignored */ case 42: YY_RULE_SETUP #line 72 "dyn.l" ; YY_BREAK /* comments */ case 43: YY_RULE_SETUP #line 75 "dyn.l" ; YY_BREAK case 44: YY_RULE_SETUP #line 76 "dyn.l" {yy_push_state(CMT); ECHO;} YY_BREAK case 45: YY_RULE_SETUP #line 77 "dyn.l" {ECHO;} YY_BREAK case 46: YY_RULE_SETUP #line 78 "dyn.l" {ECHO;} YY_BREAK case 47: YY_RULE_SETUP #line 79 "dyn.l" {yy_pop_state(); ECHO;} YY_BREAK case 48: YY_RULE_SETUP #line 80 "dyn.l" {ECHO;} YY_BREAK /* a semicolon in INITIAL state doesn't modify this state */ case 49: YY_RULE_SETUP #line 83 "dyn.l" ECHO; YY_BREAK /* initial spaces or tabs are ignored */ case 50: YY_RULE_SETUP #line 87 "dyn.l" ; YY_BREAK /* everything which is not a DYNARE command or a comment is ECHOED*/ case 51: YY_RULE_SETUP #line 90 "dyn.l" {BEGIN THRU;ECHO;} YY_BREAK case 52: YY_RULE_SETUP #line 91 "dyn.l" ECHO; YY_BREAK case 53: YY_RULE_SETUP #line 92 "dyn.l" {BEGIN INITIAL; ECHO;} YY_BREAK case 54: YY_RULE_SETUP #line 94 "dyn.l" {BEGIN INITIAL; return yytext[0];} YY_BREAK case 55: YY_RULE_SETUP #line 95 "dyn.l" {return yytext[0];} YY_BREAK case 56: YY_RULE_SETUP #line 96 "dyn.l" {return yytext[0];} YY_BREAK /* var, periods and values in shock statements */ case 57: YY_RULE_SETUP #line 99 "dyn.l" {return VAR;} YY_BREAK case 58: YY_RULE_SETUP #line 100 "dyn.l" {return PERIODS;} YY_BREAK case 59: YY_RULE_SETUP #line 101 "dyn.l" {return VALUES;} YY_BREAK case 60: YY_RULE_SETUP #line 102 "dyn.l" {return STDERR;} YY_BREAK case 61: YY_RULE_SETUP #line 104 "dyn.l" {return VAREXO;} YY_BREAK case 62: YY_RULE_SETUP #line 106 "dyn.l" {BEGIN INITIAL; return END;} YY_BREAK /* lines starting with '#' */ case 63: YY_RULE_SETUP #line 109 "dyn.l" {BEGIN DYNARE4; return POUND;} YY_BREAK case 64: YY_RULE_SETUP #line 110 "dyn.l" {BEGIN DYNARE2; return EOL;} YY_BREAK /* do loops in models */ case 65: YY_RULE_SETUP #line 113 "dyn.l" {return DO;} YY_BREAK case 66: YY_RULE_SETUP #line 114 "dyn.l" {return TO;} YY_BREAK case 67: YY_RULE_SETUP #line 115 "dyn.l" {return BY;} YY_BREAK case 68: YY_RULE_SETUP #line 116 "dyn.l" {return ENDO;} YY_BREAK case 69: YY_RULE_SETUP #line 117 "dyn.l" {return SUM;} YY_BREAK case 70: YY_RULE_SETUP #line 118 "dyn.l" {return PROD;} YY_BREAK /* options */ case 71: YY_RULE_SETUP #line 121 "dyn.l" {return DR_ALGO;} YY_BREAK case 72: YY_RULE_SETUP #line 122 "dyn.l" {return SIMUL_ALGO;} YY_BREAK case 73: YY_RULE_SETUP #line 123 "dyn.l" {return DROP;} YY_BREAK case 74: YY_RULE_SETUP #line 124 "dyn.l" {return LINEAR;} YY_BREAK case 75: YY_RULE_SETUP #line 125 "dyn.l" {return ORDER;} YY_BREAK case 76: YY_RULE_SETUP #line 126 "dyn.l" {return REPLIC;} YY_BREAK case 77: YY_RULE_SETUP #line 127 "dyn.l" {return SHOCK_SIZE;} YY_BREAK case 78: YY_RULE_SETUP #line 128 "dyn.l" {return NOMOMENTS;} YY_BREAK case 79: YY_RULE_SETUP #line 129 "dyn.l" {return NOCORR;} YY_BREAK case 80: YY_RULE_SETUP #line 130 "dyn.l" {return AR;} YY_BREAK case 81: YY_RULE_SETUP #line 131 "dyn.l" {return NOFUNCTIONS;} YY_BREAK case 82: YY_RULE_SETUP #line 132 "dyn.l" {return IRF;} YY_BREAK case 83: YY_RULE_SETUP #line 133 "dyn.l" {return HP_FILTER;} YY_BREAK case 84: YY_RULE_SETUP #line 134 "dyn.l" {return HP_NGRID;} YY_BREAK case 85: YY_RULE_SETUP #line 135 "dyn.l" {return SIMUL_SEED;} YY_BREAK case 86: YY_RULE_SETUP #line 136 "dyn.l" {return SIMUL;} YY_BREAK case 87: YY_RULE_SETUP #line 137 "dyn.l" {return PERIODS;} YY_BREAK case 88: YY_RULE_SETUP #line 138 "dyn.l" {return QZ_CRITERIUM;} YY_BREAK /* calib options */ case 89: YY_RULE_SETUP #line 141 "dyn.l" {return AUTOCORR;} YY_BREAK /* olr options */ case 90: YY_RULE_SETUP #line 144 "dyn.l" {return OLR_BETA;} YY_BREAK /* estimation options */ case 91: YY_RULE_SETUP #line 147 "dyn.l" {return DATAFILE;} YY_BREAK case 92: YY_RULE_SETUP #line 148 "dyn.l" {return NOBS;} YY_BREAK case 93: YY_RULE_SETUP #line 149 "dyn.l" {return FIRST_OBS;} YY_BREAK /* estimated_params priors */ case 94: YY_RULE_SETUP #line 152 "dyn.l" {return GAMMA_PDF;} YY_BREAK case 95: YY_RULE_SETUP #line 153 "dyn.l" {return BETA_PDF;} YY_BREAK case 96: YY_RULE_SETUP #line 154 "dyn.l" {return NORMAL_PDF;} YY_BREAK case 97: YY_RULE_SETUP #line 155 "dyn.l" {return INV_GAMMA_PDF;} YY_BREAK case 98: YY_RULE_SETUP #line 156 "dyn.l" {return CORR;} YY_BREAK /* spaces, tabs and EOL are ignored */ case 99: YY_RULE_SETUP #line 159 "dyn.l" ; YY_BREAK /* names */ case 100: YY_RULE_SETUP #line 162 "dyn.l" { yylval.string=strdup(yytext); return NAME;} YY_BREAK case 101: YY_RULE_SETUP #line 166 "dyn.l" { return name_var(strdup(yytext));} YY_BREAK /* floating-point numbers */ case 102: YY_RULE_SETUP #line 170 "dyn.l" { yylval.string=strdup(yytext); return DNUMBER;} YY_BREAK /* integer number */ case 103: YY_RULE_SETUP #line 175 "dyn.l" { yylval.string=strdup(yytext); return INUMBER;} YY_BREAK case 104: YY_RULE_SETUP #line 179 "dyn.l" {return yytext[0];} YY_BREAK case 105: YY_RULE_SETUP #line 180 "dyn.l" {return EQUAL;} YY_BREAK case 106: YY_RULE_SETUP #line 181 "dyn.l" {return yytext[0];} YY_BREAK case 107: YY_RULE_SETUP #line 182 "dyn.l" {return DOLLAR;} YY_BREAK case 108: YY_RULE_SETUP #line 183 "dyn.l" {return yytext[0];} YY_BREAK case 109: YY_RULE_SETUP #line 184 "dyn.l" {BEGIN DYNARE1; return yytext[0];} YY_BREAK case 110: YY_RULE_SETUP #line 185 "dyn.l" {return yytext[0];} YY_BREAK case 111: YY_RULE_SETUP #line 186 "dyn.l" {BEGIN DYNARE1; return yytext[0];} YY_BREAK case 112: YY_RULE_SETUP #line 187 "dyn.l" {yylval.string=strdup(yytext); return OPERATORS;} YY_BREAK case 113: YY_RULE_SETUP #line 188 "dyn.l" {return yytext[0];} YY_BREAK case 114: YY_RULE_SETUP #line 190 "dyn.l" ECHO; YY_BREAK #line 1661 "d_ll.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(CMT): case YY_STATE_EOF(DYNARE1): case YY_STATE_EOF(DYNARE2): case YY_STATE_EOF(DYNARE3): case YY_STATE_EOF(DYNARE4): case YY_STATE_EOF(THRU): 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 >= 546 ) 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 >= 546 ) 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 == 545); 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; if ( c == '\n' ) --yylineno; 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'); if ( yy_current_buffer->yy_at_bol ) ++yylineno; 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 190 "dyn.l" int yywrap() { return 1; } int name_var(char *s) { struct var *p; p=var_search(s); if (p == NULL){ yylval.string=s; return NAME; } else if (p->endo_exo == 2){ yylval.string=s; return INDEX; } else{ yylval.p_tok=create_var(p); return VAR_ID; } } /* 01/01/03 MJ added DYNASAVE 12/31/02 MJ corrected THRU mode to permit native lines without a final ; MJ put back CMT mode for Gauss style comments (/ *...* /) 04/06/02 MJ added OPTIM_WEIGHTS OSR_PARAMS OSR */