#include <stdio.h>
#include "TrecParser.hpp"
#include <cstring>
#include <cctype>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
Compounds | |
struct | yy_buffer_state |
Defines | |
#define | yy_create_buffer trec_create_buffer |
#define | yy_delete_buffer trec_delete_buffer |
#define | yy_scan_buffer trec_scan_buffer |
#define | yy_scan_string trec_scan_string |
#define | yy_scan_bytes trec_scan_bytes |
#define | yy_flex_debug trec_flex_debug |
#define | yy_init_buffer trec_init_buffer |
#define | yy_flush_buffer trec_flush_buffer |
#define | yy_load_buffer_state trec_load_buffer_state |
#define | yy_switch_to_buffer trec_switch_to_buffer |
#define | yyin trecin |
#define | yyleng trecleng |
#define | yylex treclex |
#define | yyout trecout |
#define | yyrestart trecrestart |
#define | yytext trectext |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | yyconst |
#define | YY_PROTO(proto) () |
#define | YY_NULL 0 |
#define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
#define | BEGIN yy_start = 1 + 2 * |
#define | YY_START ((yy_start - 1) / 2) |
#define | YYSTATE YY_START |
#define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
#define | YY_NEW_FILE yyrestart( yyin ) |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_BUF_SIZE 16384 |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#define | yyless(n) |
#define | unput(c) yyunput( c, yytext_ptr ) |
#define | YY_BUFFER_NEW 0 |
#define | YY_BUFFER_NORMAL 1 |
#define | YY_BUFFER_EOF_PENDING 2 |
#define | YY_CURRENT_BUFFER yy_current_buffer |
#define | YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) |
#define | yy_new_buffer yy_create_buffer |
#define | yy_set_interactive(is_interactive) |
#define | yy_set_bol(at_bol) |
#define | YY_AT_BOL() (yy_current_buffer->yy_at_bol) |
#define | yywrap() 1 |
#define | YY_SKIP_YYWRAP |
#define | yytext_ptr yytext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 36 |
#define | YY_END_OF_BUFFER 37 |
#define | REJECT reject_used_but_not_detected |
#define | yymore() yymore_used_but_not_detected |
#define | YY_MORE_ADJ 0 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | INITIAL 0 |
#define | YY_NEVER_INTERACTIVE 1 |
#define | B_DOC 1 |
#define | E_DOC 2 |
#define | B_DOCHDR 12 |
#define | E_DOCHDR 13 |
#define | F_DOCNO 3 |
#define | WORD 11 |
#define | UPWORD 18 |
#define | CONTRACTION 14 |
#define | ACRONYM 15 |
#define | ACRONYM2 17 |
#define | UNKNOWN 16 |
#define | B_TEXT 19 |
#define | E_TEXT 20 |
#define | B_HEADLN 21 |
#define | E_HEADLN 22 |
#define | B_TITLE 23 |
#define | E_TITLE 24 |
#define | B_DATE 25 |
#define | E_DATE 26 |
#define | YY_NO_PUSH_STATE 1 |
#define | YY_NO_POP_STATE 1 |
#define | YY_NO_TOP_STATE 1 |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO (void) fwrite( yytext, yyleng, 1, yyout ) |
#define | YY_INPUT(buf, result, max_size) |
#define | yyterminate() return YY_NULL |
#define | YY_START_STACK_INCR 25 |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
#define | YY_DECL int yylex YY_PROTO(( void )) |
#define | YY_BREAK break; |
#define | YY_RULE_SETUP YY_USER_ACTION |
#define | YY_EXIT_FAILURE 2 |
#define | yyless(n) |
#define | OUTER 0 |
#define | DOC 1 |
#define | TEXT 9 |
Typedefs | |
typedef yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned int | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Functions | |
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)) |
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)) |
void *yy_flex_alloc | YY_PROTO ((yy_size_t)) |
void *yy_flex_realloc | YY_PROTO ((void *, yy_size_t)) |
void yy_flex_free | YY_PROTO ((void *)) |
yy_state_type yy_try_NUL_trans | YY_PROTO ((yy_state_type current_state)) |
void yy_fatal_error | YY_PROTO ((yyconst char msg[])) |
void yyunput | YY_PROTO ((int c, char *buf_ptr)) |
Variables | |
int | yyleng |
FILE * | yyin = (FILE *) 0 |
FILE * | yyout = (FILE *) 0 |
YY_BUFFER_STATE | yy_current_buffer = 0 |
char | yy_hold_char |
int | yy_n_chars |
char * | yy_c_buf_p = (char *) 0 |
int | yy_init = 1 |
int | yy_start = 0 |
int | yy_did_buffer_switch_on_eof |
char * | yytext |
yyconst short int | yy_accept [146] |
yyconst int | yy_ec [256] |
yyconst int | yy_meta [31] |
yyconst short int | yy_base [158] |
yyconst short int | yy_def [158] |
yyconst short int | yy_nxt [323] |
yyconst short int | yy_chk [323] |
yy_state_type | yy_last_accepting_state |
char * | yy_last_accepting_cpos |
FILE * | trecin |
char * | trectext |
long | trecpos |
register char * | yy_bp |
int | size |
FILE * | file |
int | len |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: yytext_ptr = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: 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" ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ } |
|
Value: { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: do \ { \ \ 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 ) |
|
Value: do \ { \ \ *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; \ } \ while ( 0 ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { 0, 0, 0, 37, 35, 34, 35, 30, 35, 30, 30, 0, 0, 0, 30, 30, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 28, 27, 32, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 6, 0, 20, 0, 0, 0, 33, 31, 0, 0, 0, 17, 0, 0, 7, 0, 21, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 14, 0, 0, 2, 0, 0, 0, 0, 15, 18, 0, 8, 0, 0, 4, 0, 26, 19, 9, 0, 0, 5, 0, 24, 0, 0, 12, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 22, 11, 23, 0, 0, 0, 0, 3, 0 } |
|
Initial value: { 0, 0, 0, 291, 292, 292, 286, 25, 53, 74, 0, 22, 30, 0, 29, 0, 282, 102, 275, 23, 26, 25, 32, 0, 123, 43, 292, 292, 0, 274, 279, 50, 47, 53, 63, 272, 292, 35, 271, 62, 72, 270, 74, 269, 79, 81, 77, 273, 251, 63, 266, 292, 271, 82, 264, 83, 87, 263, 96, 262, 99, 101, 103, 100, 292, 29, 117, 292, 119, 292, 109, 104, 261, 0, 0, 266, 265, 102, 292, 258, 124, 292, 125, 292, 130, 126, 257, 256, 292, 127, 133, 131, 255, 144, 292, 84, 254, 292, 145, 135, 242, 147, 292, 292, 204, 292, 148, 150, 292, 200, 292, 292, 292, 154, 156, 292, 194, 194, 158, 159, 292, 160, 162, 292, 193, 195, 163, 164, 170, 172, 186, 186, 184, 180, 179, 168, 292, 292, 292, 292, 174, 157, 126, 132, 292, 292, 186, 192, 200, 206, 210, 212, 221, 230, 49, 239, 248, 257 } |
|
|
|
|
|
|
|
|
|
Initial value: { 0, 145, 1, 145, 145, 145, 146, 147, 148, 149, 150, 145, 146, 151, 147, 150, 152, 148, 153, 153, 153, 153, 153, 154, 149, 145, 145, 145, 151, 155, 145, 153, 153, 153, 153, 153, 145, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 145, 151, 147, 155, 145, 156, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 145, 153, 153, 145, 153, 145, 153, 153, 153, 154, 151, 156, 156, 153, 145, 153, 153, 145, 153, 145, 153, 153, 153, 153, 145, 153, 153, 153, 153, 153, 145, 156, 153, 145, 153, 153, 153, 153, 145, 145, 153, 145, 153, 153, 145, 153, 145, 145, 145, 153, 153, 145, 153, 157, 153, 153, 145, 153, 153, 145, 157, 145, 153, 153, 153, 153, 145, 153, 153, 153, 153, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 0, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145 } |
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { 0, 1, 1, 2, 3, 1, 4, 1, 5, 2, 6, 1, 1, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 6 } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|