Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

BrillPOSParser.cpp File Reference

#include <stdio.h>
#include "BrillPOSParser.hpp"
#include <cstring>
#include <cctype>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>

Compounds

struct  yy_buffer_state

Defines

#define yy_create_buffer   bpos_create_buffer
#define yy_delete_buffer   bpos_delete_buffer
#define yy_scan_buffer   bpos_scan_buffer
#define yy_scan_string   bpos_scan_string
#define yy_scan_bytes   bpos_scan_bytes
#define yy_flex_debug   bpos_flex_debug
#define yy_init_buffer   bpos_init_buffer
#define yy_flush_buffer   bpos_flush_buffer
#define yy_load_buffer_state   bpos_load_buffer_state
#define yy_switch_to_buffer   bpos_switch_to_buffer
#define yyin   bposin
#define yyleng   bposleng
#define yylex   bposlex
#define yyout   bposout
#define yyrestart   bposrestart
#define yytext   bpostext
#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   23
#define YY_END_OF_BUFFER   24
#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 B_DOCOLDNO   4
#define E_DOCOLDNO   5
#define WORD   11
#define UPWORD   18
#define CONTRACTION   14
#define ACRONYM   15
#define UNKNOWN   16
#define EOS   21
#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 DOCOLDNO   7
#define DOCHDR   3
#define SCRIPT   4
#define COMMENT   5
#define TAG   6
#define SYMBOL   8
#define STYLE   9

Typedefs

typedef yy_buffer_stateYY_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 [84]
yyconst int yy_ec [256]
yyconst int yy_meta [24]
yyconst short int yy_base [96]
yyconst short int yy_def [96]
yyconst short int yy_nxt [209]
yyconst short int yy_chk [209]
yy_state_type yy_last_accepting_state
char * yy_last_accepting_cpos
FILE * bposin
char * bpostext
long bposloc
register char * yy_bp
int size
FILE * file
int len

Define Documentation

#define ACRONYM   15
 

#define B_DOC   1
 

#define B_DOCHDR   12
 

#define B_DOCOLDNO   4
 

#define BEGIN   yy_start = 1 + 2 *
 

#define COMMENT   5
 

#define CONTRACTION   14
 

#define DOC   1
 

#define DOCHDR   3
 

#define DOCOLDNO   7
 

#define E_DOC   2
 

#define E_DOCHDR   13
 

#define E_DOCOLDNO   5
 

#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )
 

#define EOB_ACT_CONTINUE_SCAN   0
 

#define EOB_ACT_END_OF_FILE   1
 

#define EOB_ACT_LAST_MATCH   2
 

#define EOS   21
 

#define F_DOCNO   3
 

#define FLEX_SCANNER
 

#define INITIAL   0
 

#define OUTER   0
 

#define REJECT   reject_used_but_not_detected
 

#define SCRIPT   4
 

#define STYLE   9
 

#define SYMBOL   8
 

#define TAG   6
 

#define UNKNOWN   16
 

#define unput c       yyunput( c, yytext_ptr )
 

#define UPWORD   18
 

#define WORD   11
 

 
#define YY_AT_BOL      (yy_current_buffer->yy_at_bol)
 

#define YY_BREAK   break;
 

#define YY_BUF_SIZE   16384
 

#define YY_BUFFER_EOF_PENDING   2
 

#define YY_BUFFER_NEW   0
 

#define YY_BUFFER_NORMAL   1
 

#define yy_create_buffer   bpos_create_buffer
 

#define YY_CURRENT_BUFFER   yy_current_buffer
 

#define YY_DECL   int yylex YY_PROTO(( void ))
 

#define yy_delete_buffer   bpos_delete_buffer
 

#define YY_DO_BEFORE_ACTION
 

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;

#define YY_END_OF_BUFFER   24
 

#define YY_END_OF_BUFFER_CHAR   0
 

#define YY_EXIT_FAILURE   2
 

#define YY_FATAL_ERROR msg       yy_fatal_error( msg )
 

#define yy_flex_debug   bpos_flex_debug
 

#define YY_FLEX_MAJOR_VERSION   2
 

#define YY_FLEX_MINOR_VERSION   5
 

#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
 

#define yy_flush_buffer   bpos_flush_buffer
 

#define yy_init_buffer   bpos_init_buffer
 

#define YY_INPUT buf,
result,
max_size   
 

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" );

#define yy_load_buffer_state   bpos_load_buffer_state
 

#define YY_MORE_ADJ   0
 

#define YY_NEVER_INTERACTIVE   1
 

#define yy_new_buffer   yy_create_buffer
 

#define YY_NEW_FILE   yyrestart( yyin )
 

#define YY_NO_POP_STATE   1
 

#define YY_NO_PUSH_STATE   1
 

#define YY_NO_TOP_STATE   1
 

#define YY_NULL   0
 

#define YY_NUM_RULES   23
 

#define YY_PROTO proto       ()
 

#define YY_READ_BUF_SIZE   8192
 

#define YY_RESTORE_YY_MORE_OFFSET
 

#define YY_RULE_SETUP   YY_USER_ACTION
 

#define YY_SC_TO_UI c       ((unsigned int) (unsigned char) c)
 

#define yy_scan_buffer   bpos_scan_buffer
 

#define yy_scan_bytes   bpos_scan_bytes
 

#define yy_scan_string   bpos_scan_string
 

#define yy_set_bol at_bol   
 

Value:

{ \
        if ( ! yy_current_buffer ) \
                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
        yy_current_buffer->yy_at_bol = at_bol; \
        }

#define yy_set_interactive is_interactive   
 

Value:

{ \
        if ( ! yy_current_buffer ) \
                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
        yy_current_buffer->yy_is_interactive = is_interactive; \
        }

#define YY_SKIP_YYWRAP
 

#define YY_START   ((yy_start - 1) / 2)
 

#define YY_START_STACK_INCR   25
 

#define YY_STATE_EOF state       (YY_END_OF_BUFFER + state + 1)
 

#define yy_switch_to_buffer   bpos_switch_to_buffer
 

#define yyconst
 

#define yyin   bposin
 

#define yyleng   bposleng
 

#define yyless  
 

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 )

#define yyless  
 

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 )

#define yylex   bposlex
 

 
#define yymore      yymore_used_but_not_detected
 

#define yyout   bposout
 

#define yyrestart   bposrestart
 

#define YYSTATE   YY_START
 

 
#define yyterminate      return YY_NULL
 

#define yytext   bpostext
 

#define yytext_ptr   yytext
 

 
#define yywrap      1
 


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE
 

typedef unsigned char YY_CHAR
 

typedef unsigned int yy_size_t
 

typedef int yy_state_type
 


Function Documentation

void yyunput YY_PROTO (int c, char *buf_ptr)    [static]
 

void yy_fatal_error YY_PROTO (yyconst char msg[])    [static]
 

yy_state_type yy_try_NUL_trans YY_PROTO (yy_state_type current_state)    [static]
 

void yy_flex_free YY_PROTO (void *)    [static]
 

void* yy_flex_realloc YY_PROTO (void *, yy_size_t   [static]
 

void* yy_flex_alloc YY_PROTO (yy_size_t   [static]
 

YY_BUFFER_STATE yy_scan_bytes YY_PROTO (yyconst char *bytes, int len  
 

YY_BUFFER_STATE yy_scan_string YY_PROTO (yyconst char *yy_str)   
 

YY_BUFFER_STATE yy_scan_buffer YY_PROTO (char *base, yy_size_t size  
 

void yy_init_buffer YY_PROTO (YY_BUFFER_STATE b, FILE *file  
 

void yy_delete_buffer YY_PROTO (YY_BUFFER_STATE b  
 

YY_BUFFER_STATE yy_create_buffer YY_PROTO (FILE *file, int size  
 

void yy_load_buffer_state YY_PROTO (void)   
 

void yy_switch_to_buffer YY_PROTO (YY_BUFFER_STATE new_buffer)   
 

void yyrestart YY_PROTO (FILE *input_file)   
 


Variable Documentation

FILE* bposin
 

long bposloc
 

char* bpostext
 

FILE* file
 

int len
 

yy_size_t size
 

yyconst short int yy_accept[84] [static]
 

Initial value:

    {   0,
        0,    0,   24,   22,   21,   22,   22,   22,   22,   18,
       22,   22,   18,    0,    0,    0,    0,   19,    0,    0,
       18,    0,    0,    0,    0,    0,    0,   15,   13,    0,
       11,   10,   12,   16,   17,    0,    0,    0,    8,    0,
       14,    0,    0,    9,    0,    0,   20,    0,    1,    0,
        0,    0,    2,    0,    0,    0,    0,    0,    0,    0,
        0,    8,    0,    0,    0,    3,    0,    0,    0,    4,
        0,    0,    0,    0,    0,    6,    7,    0,    0,    0,
        0,    5,    0
    }

yyconst short int yy_base[96] [static]
 

Initial value:

    {   0,
        0,    0,  184,  185,  185,  174,  178,  172,    0,   18,
       22,  171,   34,  171,   18,   22,  135,    0,    0,    0,
       26,    0,   38,  120,   17,  118,    0,   52,  185,   26,
      185,  185,  185,    0,    0,  109,   32,  107,  185,   33,
      185,  111,  105,  185,   35,   63,    0,   46,  185,   37,
       50,   53,  185,   39,   55,   56,  104,   60,   57,   69,
       98,   98,   67,   90,   72,  185,   90,   92,   75,  185,
       76,   83,   86,   82,   73,  185,  185,   77,   71,   69,
       52,  185,  185,   95,   98,  105,  114,  121,  125,  128,
      138,  148,   25,  158,  168

    }

register char* yy_bp
 

char* yy_c_buf_p = (char *) 0 [static]
 

yyconst short int yy_chk[209] [static]
 

Initial value:

    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,   10,   11,   16,   10,   15,   15,   25,
       11,   21,   16,   93,   21,   30,   30,   25,   11,   13,
       23,   13,   13,   13,   37,   40,   23,   45,   40,   50,
       45,   54,   37,   50,   23,   54,   13,   28,   48,   28,
       28,   28,   51,   48,   81,   52,   48,   55,   56,   59,
       51,   52,   58,   55,   28,   46,   58,   56,   59,   63,
       46,   60,   46,   46,   65,   60,   63,   69,   71,   80,
       79,   65,   78,   75,   74,   69,   71,   84,   73,   72,

       68,   67,   64,   84,   84,   85,   85,   85,   86,   62,
       61,   86,   86,   86,   86,   87,   57,   43,   42,   38,
       87,   36,   87,   87,   88,   26,   88,   88,   88,   88,
       88,   89,   24,   89,   89,   90,   90,   90,   91,   91,
       91,   91,   17,   91,   91,   91,   91,   91,   92,   92,
       92,   92,   92,   92,   92,   92,   92,   92,   94,   94,
       94,   94,   94,   94,   94,   94,   94,   94,   95,   95,
       95,   95,   95,   95,   95,   95,   95,   95,   14,   12,
        8,    7,    6,    3,   83,   83,   83,   83,   83,   83,
       83,   83,   83,   83,   83,   83,   83,   83,   83,   83,

       83,   83,   83,   83,   83,   83,   83,   83
    }

YY_BUFFER_STATE yy_current_buffer = 0 [static]
 

yyconst short int yy_def[96] [static]
 

Initial value:

    {   0,
       83,    1,   83,   83,   83,   83,   84,   83,   85,   86,
       87,   83,   88,   83,   83,   84,   83,   85,   89,   90,
       86,   91,   87,   92,   92,   83,   93,   88,   83,   83,
       83,   83,   83,   89,   90,   94,   92,   92,   83,   92,
       83,   83,   94,   83,   92,   92,   93,   92,   83,   92,
       92,   92,   83,   92,   92,   92,   92,   92,   92,   92,
       92,   95,   92,   92,   92,   83,   95,   83,   92,   83,
       92,   83,   92,   92,   83,   83,   83,   83,   83,   83,
       83,   83,    0,   83,   83,   83,   83,   83,   83,   83,
       83,   83,   83,   83,   83

    }

int yy_did_buffer_switch_on_eof [static]
 

yyconst int yy_ec[256] [static]
 

char yy_hold_char [static]
 

int yy_init = 1 [static]
 

char* yy_last_accepting_cpos [static]
 

yy_state_type yy_last_accepting_state [static]
 

yyconst int yy_meta[24] [static]
 

Initial value:

    {   0,
        1,    1,    2,    3,    1,    4,    5,    6,    7,    8,
        1,    1,    1,    1,    9,    9,    9,    9,    9,    9,
        9,    9,   10
    }

int yy_n_chars [static]
 

yyconst short int yy_nxt[209] [static]
 

Initial value:

    {   0,
        4,    5,    6,    4,    7,    4,    4,    8,    9,   10,
        4,   11,    4,   12,   13,   13,   13,   13,   13,   13,
       13,   13,   10,   19,   22,   83,   20,   30,   31,   39,
       23,   19,   32,   42,   20,   30,   31,   40,   25,   19,
       83,   27,   20,   21,   39,   39,   83,   39,   46,   39,
       48,   39,   45,   56,   37,   59,   21,   19,   53,   83,
       20,   21,   39,   54,   82,   39,   55,   39,   39,   39,
       57,   58,   39,   60,   21,   49,   63,   61,   64,   39,
       50,   39,   51,   52,   39,   65,   69,   39,   39,   81,
       80,   71,   79,   78,   77,   73,   74,   16,   76,   75,

       72,   68,   70,   16,   16,   18,   18,   18,   21,   68,
       66,   21,   21,   21,   21,   24,   62,   44,   47,   39,
       24,   44,   24,   24,   28,   41,   28,   28,   28,   28,
       28,   34,   39,   34,   34,   35,   35,   35,   36,   36,
       36,   36,   33,   36,   36,   36,   36,   36,   38,   38,
       38,   38,   38,   38,   38,   38,   38,   38,   43,   43,
       43,   43,   43,   43,   43,   43,   43,   43,   67,   67,
       67,   67,   67,   67,   67,   67,   67,   67,   29,   26,
       17,   15,   14,   83,    3,   83,   83,   83,   83,   83,
       83,   83,   83,   83,   83,   83,   83,   83,   83,   83,

       83,   83,   83,   83,   83,   83,   83,   83
    }

int yy_start = 0 [static]
 

FILE* yyin = (FILE *) 0
 

int yyleng
 

FILE * yyout = (FILE *) 0
 

char* yytext
 


Generated on Wed Nov 3 12:59:09 2004 for Lemur Toolkit by doxygen1.2.18