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

protomakeLex.cpp File Reference

#include <stdio.h>
#include <map>
#include <stdlib.h>
#include <string.h>
#include "nodes/protomake.h"
#include "protomakeParse.hpp"

Include dependency graph for protomakeLex.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

struct  EtherInfoType
struct  yy_buffer_state

Defines

#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 yytext_ptr   yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   69
#define YY_END_OF_BUFFER   70
#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_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)

Typedefs

typedef yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Enumerations

enum  EtherType {
  AUTHOR, EMAIL, NAME, PORT,
  TRANSPORT
}

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[]))
char * formatMultiString (char *)
void yyunput YY_PROTO ((int c, char *buf_ptr))
void yy_init_buffer (b, file) YY_BUFFER_STATE b

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 [203]
yyconst int yy_ec [256]
yyconst int yy_meta [50]
yyconst short int yy_base [208]
yyconst short int yy_def [208]
yyconst short int yy_nxt [290]
yyconst short int yy_chk [290]
yy_state_type yy_last_accepting_state
char * yy_last_accepting_cpos
int lines
register char * yy_bp
int size
FILE * file
int len


Define Documentation

#define BEGIN   yy_start = 1 + 2 *
 

Definition at line 80 of file protomakeLex.cpp.

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

Definition at line 605 of file protomakeLex.cpp.

#define EOB_ACT_CONTINUE_SCAN   0
 

Definition at line 105 of file protomakeLex.cpp.

#define EOB_ACT_END_OF_FILE   1
 

Definition at line 106 of file protomakeLex.cpp.

#define EOB_ACT_LAST_MATCH   2
 

Definition at line 107 of file protomakeLex.cpp.

#define FLEX_SCANNER
 

Definition at line 8 of file protomakeLex.cpp.

#define INITIAL   0
 

Definition at line 492 of file protomakeLex.cpp.

#define REJECT   reject_used_but_not_detected
 

Definition at line 486 of file protomakeLex.cpp.

#define unput  )     yyunput( c, yytext_ptr )
 

Definition at line 136 of file protomakeLex.cpp.

 
#define YY_AT_BOL  )     (yy_current_buffer->yy_at_bol)
 

Definition at line 263 of file protomakeLex.cpp.

#define YY_BREAK   break;
 

Definition at line 664 of file protomakeLex.cpp.

#define YY_BUF_SIZE   16384
 

Definition at line 98 of file protomakeLex.cpp.

#define YY_BUFFER_EOF_PENDING   2
 

Definition at line 199 of file protomakeLex.cpp.

#define YY_BUFFER_NEW   0
 

Definition at line 187 of file protomakeLex.cpp.

#define YY_BUFFER_NORMAL   1
 

Definition at line 188 of file protomakeLex.cpp.

#define YY_CURRENT_BUFFER   yy_current_buffer
 

Definition at line 208 of file protomakeLex.cpp.

#define YY_DECL   int yylex YY_PROTO(( void ))
 

Definition at line 652 of file protomakeLex.cpp.

#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;

Definition at line 279 of file protomakeLex.cpp.

#define YY_END_OF_BUFFER   70
 

Definition at line 287 of file protomakeLex.cpp.

#define YY_END_OF_BUFFER_CHAR   0
 

Definition at line 95 of file protomakeLex.cpp.

#define YY_EXIT_FAILURE   2
 

#define YY_FATAL_ERROR msg   )     yy_fatal_error( msg )
 

Definition at line 645 of file protomakeLex.cpp.

#define YY_FLEX_MAJOR_VERSION   2
 

Definition at line 9 of file protomakeLex.cpp.

#define YY_FLEX_MINOR_VERSION   5
 

Definition at line 10 of file protomakeLex.cpp.

#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
 

Definition at line 237 of file protomakeLex.cpp.

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

Definition at line 612 of file protomakeLex.cpp.

#define YY_MORE_ADJ   0
 

Definition at line 488 of file protomakeLex.cpp.

#define yy_new_buffer   yy_create_buffer
 

Definition at line 247 of file protomakeLex.cpp.

#define YY_NEW_FILE   yyrestart( yyin )
 

Definition at line 93 of file protomakeLex.cpp.

#define YY_NO_POP_STATE   1
 

Definition at line 575 of file protomakeLex.cpp.

#define YY_NO_PUSH_STATE   1
 

Definition at line 574 of file protomakeLex.cpp.

#define YY_NO_TOP_STATE   1
 

Definition at line 576 of file protomakeLex.cpp.

#define YY_NULL   0
 

Definition at line 67 of file protomakeLex.cpp.

#define YY_NUM_RULES   69
 

Definition at line 286 of file protomakeLex.cpp.

#define YY_PROTO proto   )     ()
 

Definition at line 63 of file protomakeLex.cpp.

#define YY_READ_BUF_SIZE   8192
 

Definition at line 596 of file protomakeLex.cpp.

#define YY_RESTORE_YY_MORE_OFFSET
 

Definition at line 489 of file protomakeLex.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION
 

Definition at line 667 of file protomakeLex.cpp.

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

Definition at line 74 of file protomakeLex.cpp.

#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; \
        }

Definition at line 256 of file protomakeLex.cpp.

#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; \
        }

Definition at line 249 of file protomakeLex.cpp.

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

Definition at line 86 of file protomakeLex.cpp.

#define YY_START_STACK_INCR   25
 

Definition at line 640 of file protomakeLex.cpp.

#define YY_STATE_EOF state   )     (YY_END_OF_BUFFER + state + 1)
 

Definition at line 90 of file protomakeLex.cpp.

#define yyconst
 

Definition at line 56 of file protomakeLex.cpp.

#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 )

Definition at line 125 of file protomakeLex.cpp.

#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 )

Definition at line 125 of file protomakeLex.cpp.

 
#define yymore  )     yymore_used_but_not_detected
 

Definition at line 487 of file protomakeLex.cpp.

#define YYSTATE   YY_START
 

Definition at line 87 of file protomakeLex.cpp.

 
#define yyterminate  )     return YY_NULL
 

Definition at line 635 of file protomakeLex.cpp.

#define yytext_ptr   yytext
 

Definition at line 269 of file protomakeLex.cpp.


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE
 

Definition at line 100 of file protomakeLex.cpp.

typedef unsigned char YY_CHAR
 

Definition at line 265 of file protomakeLex.cpp.

typedef unsigned int yy_size_t
 

Definition at line 142 of file protomakeLex.cpp.

typedef int yy_state_type
 

Definition at line 267 of file protomakeLex.cpp.


Enumeration Type Documentation

enum EtherType
 

Enumeration values:
AUTHOR 
EMAIL 
NAME 
PORT 
TRANSPORT 

Definition at line 507 of file protomakeLex.cpp.


Function Documentation

char* formatMultiString char *   )  [static]
 

Function that reformats a multi-string so that it appears to be a single-line string.

void yy_init_buffer ,
file 
 

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_flush_buffer YY_PROTO (YY_BUFFER_STATE b)   ) 
 

YY_BUFFER_STATE yy_create_buffer YY_PROTO (FILE *file, int size  ) 
 

int input 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* file
 

Definition at line 1682 of file protomakeLex.cpp.

int len
 

Definition at line 1795 of file protomakeLex.cpp.

int lines
 

Global variable that counts the number of lines read

Definition at line 518 of file protomakeLex.cpp.

Referenced by yyparse().

yy_size_t size
 

Definition at line 1963 of file protomakeLex.cpp.

Referenced by ArrayType::ArrayType(), ArrayType::clone(), ArrayType::getSize(), and JavaCodeGeneratorVisitor::visitSimpleMessage().

yyconst short int yy_accept[203] [static]
 

Initial value:

    {   0,
        0,    0,   70,   68,   66,   67,   68,   68,   40,   52,
       53,   38,   36,   54,   37,   58,   39,   61,   55,   56,
       47,   46,   48,   62,   50,   51,   62,   62,   62,   62,
       62,   62,   62,   62,   62,   62,   62,   62,   62,   62,
       62,   41,   42,   66,    0,    0,   64,    0,    0,    1,
       57,   59,    0,   61,   60,   44,   43,   45,   62,   49,
       62,   62,   62,   62,   62,   62,   62,   62,   62,   29,
       62,   62,   28,   62,   62,   27,   62,   32,   62,   30,
       20,   62,   62,   62,   62,   62,   62,   26,   62,    0,
       63,   31,   62,   62,   62,   62,   62,   62,   62,   62,

       62,    6,   62,   62,   62,   62,   62,   62,   62,   21,
       62,   62,   62,   62,   62,   62,   62,   14,    0,    0,
       65,    0,   62,   62,   62,   62,    7,   62,   62,   62,
       62,   62,   22,   62,   62,   62,   62,   62,   25,   62,
       24,   62,   34,   62,   62,   62,   19,    5,   62,   62,
        8,   62,   13,   62,   62,   62,   62,   62,   62,   62,
       33,   62,   62,   62,   62,   10,   62,   62,   12,    4,
       62,   62,   62,   62,    9,   62,   16,   62,    0,   62,
       15,    3,   11,    0,   23,   35,    0,    2,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,   17,

       18,    0
    }

Definition at line 288 of file protomakeLex.cpp.

yyconst short int yy_base[208] [static]
 

Initial value:

    {   0,
        0,    0,  239,  240,  236,  240,   48,  234,  240,  240,
      240,  240,  240,  240,  216,  222,    0,  219,  214,  240,
       34,  240,  213,    0,  207,  240,   27,   27,   23,  191,
       20,   26,  193,   38,  198,   41,  186,  198,   43,   43,
      199,  240,  240,  222,   77,   81,  240,   85,  220,  240,
      240,  240,  208,  206,  240,  240,  240,  240,    0,  240,
      177,  190,  177,   32,  174,  190,  172,  180,  175,    0,
      183,  168,    0,  171,  170,    0,  168,  164,  164,    0,
        0,  166,  159,   52,  169,   58,  165,    0,  160,   90,
      186,    0,  158,  172,  163,  170,  153,  156,  163,  162,

      149,    0,  160,  152,  161,  148,  156,  143,  156,    0,
      154,  137,  141,  139,  139,  144,  147,    0,   94,   99,
      240,  103,  146,  128,  136,  128,    0,  137,  129,  132,
      126,  127,    0,  141,  125,  133,  138,  133,    0,  132,
        0,  118,    0,  122,  120,  116,    0,    0,  123,  114,
        0,  112,    0,  116,  117,  109,  121,  118,  107,  107,
        0,  115,  102,  103,  105,    0,  118,  114,    0,    0,
       96,  106,   86,  100,    0,   81,    0,   82,   95,   84,
        0,    0,    0,   93,    0,    0,   89,    0,   87,   86,
       85,   71,   70,   80,   79,   60,   53,   49,   38,  240,

      240,  240,  126,  130,  134,   47,  138
    }

Definition at line 356 of file protomakeLex.cpp.

register char* yy_bp
 

Definition at line 1450 of file protomakeLex.cpp.

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

Definition at line 220 of file protomakeLex.cpp.

yyconst short int yy_chk[290] [static]
 

Definition at line 445 of file protomakeLex.cpp.

YY_BUFFER_STATE yy_current_buffer = 0 [static]
 

Definition at line 202 of file protomakeLex.cpp.

yyconst short int yy_def[208] [static]
 

Initial value:

    {   0,
      202,    1,  202,  202,  202,  202,  203,  204,  202,  202,
      202,  202,  202,  202,  202,  202,  205,  202,  202,  202,
      202,  202,  202,  206,  202,  202,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  202,  202,  202,  203,  203,  202,  203,  204,  202,
      202,  202,  205,  202,  202,  202,  202,  202,  206,  202,
      206,  206,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  206,  207,
      205,  206,  206,  206,  206,  206,  206,  206,  206,  206,

      206,  206,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  207,  207,
      202,  207,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  206,  206,
      206,  206,  206,  206,  206,  206,  206,  206,  202,  206,
      206,  206,  206,  202,  206,  206,  202,  206,  202,  202,
      202,  202,  202,  202,  202,  202,  202,  202,  202,  202,

      202,    0,  202,  202,  202,  202,  202
    }

Definition at line 383 of file protomakeLex.cpp.

int yy_did_buffer_switch_on_eof [static]
 

Definition at line 227 of file protomakeLex.cpp.

yyconst int yy_ec[256] [static]
 

Definition at line 315 of file protomakeLex.cpp.

char yy_hold_char [static]
 

Definition at line 212 of file protomakeLex.cpp.

int yy_init = 1 [static]
 

Definition at line 221 of file protomakeLex.cpp.

char* yy_last_accepting_cpos [static]
 

Definition at line 481 of file protomakeLex.cpp.

yy_state_type yy_last_accepting_state [static]
 

Definition at line 480 of file protomakeLex.cpp.

yyconst int yy_meta[50] [static]
 

Initial value:

    {   0,
        1,    1,    2,    3,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    4,    1,    1,    1,    1,    1,
        4,    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,    1,    1
    }

Definition at line 347 of file protomakeLex.cpp.

int yy_n_chars [static]
 

Definition at line 214 of file protomakeLex.cpp.

yyconst short int yy_nxt[290] [static]
 

Definition at line 410 of file protomakeLex.cpp.

int yy_start = 0 [static]
 

Definition at line 222 of file protomakeLex.cpp.

FILE * yyin = (FILE *) 0
 

Definition at line 266 of file protomakeLex.cpp.

Referenced by main().

int yyleng
 

Definition at line 217 of file protomakeLex.cpp.

FILE * yyout = (FILE *) 0
 

Definition at line 266 of file protomakeLex.cpp.

char * yytext
 

Definition at line 490 of file protomakeLex.cpp.


Generated on Mon Dec 1 17:02:18 2003 for Protomake by doxygen1.3