torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
yyFlexLexer Class Reference

#include <FlexLexer.h>

+ Inheritance diagram for yyFlexLexer:
+ Collaboration diagram for yyFlexLexer:

Public Member Functions

 yyFlexLexer (FLEX_STD istream *arg_yyin=0, FLEX_STD ostream *arg_yyout=0)
 
virtual ~yyFlexLexer ()
 
void yy_switch_to_buffer (struct yy_buffer_state *new_buffer)
 
struct yy_buffer_stateyy_create_buffer (FLEX_STD istream *s, int size)
 
void yy_delete_buffer (struct yy_buffer_state *b)
 
void yyrestart (FLEX_STD istream *s)
 
void yypush_buffer_state (struct yy_buffer_state *new_buffer)
 
void yypop_buffer_state ()
 
virtual int yylex ()
 
virtual void switch_streams (FLEX_STD istream *new_in, FLEX_STD ostream *new_out)
 
virtual int yywrap ()
 
 yyFlexLexer (FLEX_STD istream *arg_yyin=0, FLEX_STD ostream *arg_yyout=0)
 
virtual ~yyFlexLexer ()
 
void yy_switch_to_buffer (struct yy_buffer_state *new_buffer)
 
struct yy_buffer_stateyy_create_buffer (FLEX_STD istream *s, int size)
 
void yy_delete_buffer (struct yy_buffer_state *b)
 
void yyrestart (FLEX_STD istream *s)
 
void yypush_buffer_state (struct yy_buffer_state *new_buffer)
 
void yypop_buffer_state ()
 
virtual int yylex ()
 
virtual void switch_streams (FLEX_STD istream *new_in, FLEX_STD ostream *new_out=0)
 
virtual int yywrap ()
 
 yyFlexLexer (FLEX_STD istream *arg_yyin=0, FLEX_STD ostream *arg_yyout=0)
 
virtual ~yyFlexLexer ()
 
void yy_switch_to_buffer (struct yy_buffer_state *new_buffer)
 
struct yy_buffer_stateyy_create_buffer (FLEX_STD istream *s, int size)
 
void yy_delete_buffer (struct yy_buffer_state *b)
 
void yyrestart (FLEX_STD istream *s)
 
void yypush_buffer_state (struct yy_buffer_state *new_buffer)
 
void yypop_buffer_state ()
 
virtual int yylex ()
 
virtual void switch_streams (FLEX_STD istream *new_in, FLEX_STD ostream *new_out)
 
virtual int yywrap ()
 
const char * YYText () const
 
const char * YYText () const
 
const char * YYText () const
 
int YYLeng () const
 
int YYLeng () const
 
int YYLeng () const
 
int yylex (FLEX_STD istream *new_in, FLEX_STD ostream *new_out=0)
 
int lineno () const
 
int lineno () const
 
int lineno () const
 
int debug () const
 
int debug () const
 
int debug () const
 
void set_debug (int flag)
 
void set_debug (int flag)
 
void set_debug (int flag)
 

Protected Member Functions

virtual int LexerInput (char *buf, int max_size)
 
virtual void LexerOutput (const char *buf, int size)
 
virtual void LexerError (const char *msg)
 
void yyunput (int c, char *buf_ptr)
 
int yyinput ()
 
void yy_load_buffer_state ()
 
void yy_init_buffer (struct yy_buffer_state *b, FLEX_STD istream *s)
 
void yy_flush_buffer (struct yy_buffer_state *b)
 
void yy_push_state (int new_state)
 
void yy_pop_state ()
 
int yy_top_state ()
 
yy_state_type yy_get_previous_state ()
 
yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
int yy_get_next_buffer ()
 
void yyensure_buffer_stack (void)
 
virtual int LexerInput (char *buf, int max_size)
 
virtual void LexerOutput (const char *buf, int size)
 
virtual void LexerError (const char *msg)
 
void yyunput (int c, char *buf_ptr)
 
int yyinput ()
 
void yy_load_buffer_state ()
 
void yy_init_buffer (struct yy_buffer_state *b, FLEX_STD istream *s)
 
void yy_flush_buffer (struct yy_buffer_state *b)
 
void yy_push_state (int new_state)
 
void yy_pop_state ()
 
int yy_top_state ()
 
yy_state_type yy_get_previous_state ()
 
yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
int yy_get_next_buffer ()
 
void yyensure_buffer_stack (void)
 
virtual int LexerInput (char *buf, int max_size)
 
virtual void LexerOutput (const char *buf, int size)
 
virtual void LexerError (const char *msg)
 
void yyunput (int c, char *buf_ptr)
 
int yyinput ()
 
void yy_load_buffer_state ()
 
void yy_init_buffer (struct yy_buffer_state *b, FLEX_STD istream *s)
 
void yy_flush_buffer (struct yy_buffer_state *b)
 
void yy_push_state (int new_state)
 
void yy_pop_state ()
 
int yy_top_state ()
 
yy_state_type yy_get_previous_state ()
 
yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
int yy_get_next_buffer ()
 
void yyensure_buffer_stack (void)
 

Protected Attributes

int yy_start_stack_ptr
 
int yy_start_stack_depth
 
int * yy_start_stack
 
FLEX_STD istream * yyin
 
FLEX_STD ostream * yyout
 
char yy_hold_char
 
int yy_n_chars
 
char * yy_c_buf_p
 
int yy_init
 
int yy_start
 
int yy_did_buffer_switch_on_eof
 
size_t yy_buffer_stack_top
 
size_t yy_buffer_stack_max
 
struct yy_buffer_state ** yy_buffer_stack
 
yy_state_type yy_last_accepting_state
 
char * yy_last_accepting_cpos
 
yy_state_typeyy_state_buf
 
yy_state_typeyy_state_ptr
 
char * yy_full_match
 
int * yy_full_state
 
int yy_full_lp
 
int yy_lp
 
int yy_looking_for_trail_begin
 
int yy_more_flag
 
int yy_more_len
 
int yy_more_offset
 
int yy_prev_more_offset
 
char * yytext
 
int yyleng
 
int yylineno
 
int yy_flex_debug
 

Detailed Description

Definition at line 113 of file bitstream/assembler/lut/FlexLexer.h.

Constructor & Destructor Documentation

yyFlexLexer::yyFlexLexer ( FLEX_STD istream *  arg_yyin = 0,
FLEX_STD ostream *  arg_yyout = 0 
)
yyFlexLexer::~yyFlexLexer ( )
virtual

Definition at line 905 of file LutScanner.cpp.

906 {
907  delete [] yy_state_buf;
911 }
void Lutfree(void *)
#define YY_CURRENT_BUFFER
Definition: LutScanner.cpp:268
struct yy_buffer_state ** yy_buffer_stack
void yy_delete_buffer(struct yy_buffer_state *b)

+ Here is the call graph for this function:

yyFlexLexer::yyFlexLexer ( FLEX_STD istream *  arg_yyin = 0,
FLEX_STD ostream *  arg_yyout = 0 
)
virtual yyFlexLexer::~yyFlexLexer ( )
virtual
yyFlexLexer::yyFlexLexer ( FLEX_STD istream *  arg_yyin = 0,
FLEX_STD ostream *  arg_yyout = 0 
)
virtual yyFlexLexer::~yyFlexLexer ( )
virtual

Member Function Documentation

int FlexLexer::debug ( ) const
inlineinherited

Definition at line 91 of file generic/edif/FlexLexer.h.

int FlexLexer::debug ( ) const
inlineinherited

Definition at line 92 of file bitstream/assembler/lut/FlexLexer.h.

int FlexLexer::debug ( ) const
inlineinherited

Definition at line 92 of file physical/xdl/FlexLexer.h.

virtual void yyFlexLexer::LexerError ( const char *  msg)
protectedvirtual
virtual void yyFlexLexer::LexerError ( const char *  msg)
protectedvirtual
virtual void yyFlexLexer::LexerError ( const char *  msg)
protectedvirtual
virtual int yyFlexLexer::LexerInput ( char *  buf,
int  max_size 
)
protectedvirtual
int yyFlexLexer::LexerInput ( char *  buf,
int  max_size 
)
protectedvirtual

Definition at line 930 of file LutScanner.cpp.

932 {
933  if ( yyin->eof() || yyin->fail() )
934  return 0;
935 
936 #ifdef YY_INTERACTIVE
937  yyin->get( buf[0] );
938 
939  if ( yyin->eof() )
940  return 0;
941 
942  if ( yyin->bad() )
943  return -1;
944 
945  return 1;
946 
947 #else
948  (void) yyin->read( buf, max_size );
949 
950  if ( yyin->bad() )
951  return -1;
952  else
953  return yyin->gcount();
954 #endif
955 }
virtual int yyFlexLexer::LexerInput ( char *  buf,
int  max_size 
)
protectedvirtual
virtual void yyFlexLexer::LexerOutput ( const char *  buf,
int  size 
)
protectedvirtual
void yyFlexLexer::LexerOutput ( const char *  buf,
int  size 
)
protectedvirtual

Definition at line 957 of file LutScanner.cpp.

958 {
959  (void) yyout->write( buf, size );
960 }
virtual void yyFlexLexer::LexerOutput ( const char *  buf,
int  size 
)
protectedvirtual
int FlexLexer::lineno ( ) const
inlineinherited

Definition at line 89 of file generic/edif/FlexLexer.h.

int FlexLexer::lineno ( ) const
inlineinherited

Definition at line 90 of file bitstream/assembler/lut/FlexLexer.h.

int FlexLexer::lineno ( ) const
inlineinherited

Definition at line 90 of file physical/xdl/FlexLexer.h.

void FlexLexer::set_debug ( int  flag)
inlineinherited

Definition at line 92 of file generic/edif/FlexLexer.h.

void FlexLexer::set_debug ( int  flag)
inlineinherited

Definition at line 93 of file bitstream/assembler/lut/FlexLexer.h.

void FlexLexer::set_debug ( int  flag)
inlineinherited

Definition at line 93 of file physical/xdl/FlexLexer.h.

virtual void yyFlexLexer::switch_streams ( FLEX_STD istream *  new_in,
FLEX_STD ostream *  new_out = 0 
)
virtual

Implements FlexLexer.

virtual void yyFlexLexer::switch_streams ( FLEX_STD istream *  new_in,
FLEX_STD ostream *  new_out 
)
virtual

Implements FlexLexer.

virtual void yyFlexLexer::switch_streams ( FLEX_STD istream *  new_in,
FLEX_STD ostream *  new_out 
)
virtual

Implements FlexLexer.

struct yy_buffer_state* yyFlexLexer::yy_create_buffer ( FLEX_STD istream *  s,
int  size 
)
virtual

Implements FlexLexer.

struct yy_buffer_state* yyFlexLexer::yy_create_buffer ( FLEX_STD istream *  s,
int  size 
)
virtual

Implements FlexLexer.

struct yy_buffer_state* yyFlexLexer::yy_create_buffer ( FLEX_STD istream *  s,
int  size 
)
virtual

Implements FlexLexer.

void yyFlexLexer::yy_delete_buffer ( struct yy_buffer_state b)
virtual

Implements FlexLexer.

void yyFlexLexer::yy_delete_buffer ( struct yy_buffer_state b)
virtual

Implements FlexLexer.

void yyFlexLexer::yy_delete_buffer ( struct yy_buffer_state b)
virtual

Implements FlexLexer.

void yyFlexLexer::yy_flush_buffer ( struct yy_buffer_state b)
protected
void yyFlexLexer::yy_flush_buffer ( struct yy_buffer_state b)
protected
void yyFlexLexer::yy_flush_buffer ( struct yy_buffer_state b)
protected
int yyFlexLexer::yy_get_next_buffer ( )
protected
int yyFlexLexer::yy_get_next_buffer ( )
protected
int yyFlexLexer::yy_get_next_buffer ( )
protected

Definition at line 969 of file LutScanner.cpp.

970 {
971  register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
972  register char *source = (yytext_ptr);
973  register int number_to_move, i;
974  int ret_val;
975 
976  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
978  "fatal flex scanner internal error--end of buffer missed" );
979 
980  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
981  { /* Don't try to fill the buffer, so this is an EOF. */
982  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
983  {
984  /* We matched a single character, the EOB, so
985  * treat this as a final EOF.
986  */
987  return EOB_ACT_END_OF_FILE;
988  }
989 
990  else
991  {
992  /* We matched some text prior to the EOB, first
993  * process it.
994  */
995  return EOB_ACT_LAST_MATCH;
996  }
997  }
998 
999  /* Try to read more data. */
1000 
1001  /* First move last chars to start of buffer. */
1002  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1003 
1004  for ( i = 0; i < number_to_move; ++i )
1005  *(dest++) = *(source++);
1006 
1007  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1008  /* don't do the read, it's not guaranteed to return an EOF,
1009  * just force an EOF
1010  */
1011  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1012 
1013  else
1014  {
1015  int num_to_read =
1016  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1017 
1018  while ( num_to_read <= 0 )
1019  { /* Not enough room in the buffer - grow it. */
1020 
1021  /* just a shorter name for the current buffer */
1023 
1024  int yy_c_buf_p_offset =
1025  (int) ((yy_c_buf_p) - b->yy_ch_buf);
1026 
1027  if ( b->yy_is_our_buffer )
1028  {
1029  int new_size = b->yy_buf_size * 2;
1030 
1031  if ( new_size <= 0 )
1032  b->yy_buf_size += b->yy_buf_size / 8;
1033  else
1034  b->yy_buf_size *= 2;
1035 
1036  b->yy_ch_buf = (char *)
1037  /* Include room in for 2 EOB chars. */
1038  Lutrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
1039  }
1040  else
1041  /* Can't grow it, we don't own it. */
1042  b->yy_ch_buf = 0;
1043 
1044  if ( ! b->yy_ch_buf )
1046  "fatal error - scanner input buffer overflow" );
1047 
1048  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1049 
1050  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1051  number_to_move - 1;
1052 
1053  }
1054 
1055  if ( num_to_read > YY_READ_BUF_SIZE )
1056  num_to_read = YY_READ_BUF_SIZE;
1057 
1058  /* Read in more data. */
1059  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1060  (yy_n_chars), (size_t) num_to_read );
1061 
1062  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1063  }
1064 
1065  if ( (yy_n_chars) == 0 )
1066  {
1067  if ( number_to_move == YY_MORE_ADJ )
1068  {
1069  ret_val = EOB_ACT_END_OF_FILE;
1070  yyrestart( yyin );
1071  }
1072 
1073  else
1074  {
1075  ret_val = EOB_ACT_LAST_MATCH;
1076  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1078  }
1079  }
1080 
1081  else
1082  ret_val = EOB_ACT_CONTINUE_SCAN;
1083 
1084  if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1085  /* Extend the array by 50%, plus the number we really need. */
1086  yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1087  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) Lutrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1088  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1089  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1090  }
1091 
1092  (yy_n_chars) += number_to_move;
1095 
1096  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1097 
1098  return ret_val;
1099 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: LutScanner.cpp:275
#define YY_END_OF_BUFFER_CHAR
Definition: LutScanner.cpp:151
void * Lutrealloc(void *, yy_size_t)
size_t yy_size_t
Bison lexer internals.
Definition: LutScanner.cpp:193
#define YY_INPUT(buf, result, max_size)
Definition: LutScanner.cpp:518
#define EOB_ACT_CONTINUE_SCAN
Definition: LutScanner.cpp:169
#define YY_FATAL_ERROR(msg)
Definition: LutScanner.cpp:540
yy_size_t yy_buf_size
Bison lexer internals.
Definition: LutScanner.cpp:209
#define yytext_ptr
Definition: LutScanner.cpp:309
#define EOB_ACT_LAST_MATCH
Definition: LutScanner.cpp:171
#define YY_CURRENT_BUFFER
Definition: LutScanner.cpp:268
char * yy_ch_buf
Bison lexer internals.
Definition: LutScanner.cpp:203
Bison parser internals.
Definition: LutScanner.cpp:198
int yy_is_our_buffer
Bison lexer internals.
Definition: LutScanner.cpp:220
#define YY_READ_BUF_SIZE
Definition: LutScanner.cpp:506
#define EOB_ACT_END_OF_FILE
Definition: LutScanner.cpp:170
void yyrestart(FLEX_STD istream *s)
#define YY_BUFFER_EOF_PENDING
Definition: LutScanner.cpp:257
#define YY_MORE_ADJ
Definition: LutScanner.cpp:409

+ Here is the call graph for this function:

yy_state_type yyFlexLexer::yy_get_previous_state ( )
protected
yy_state_type yyFlexLexer::yy_get_previous_state ( )
protected
yy_state_type yyFlexLexer::yy_get_previous_state ( )
protected

Definition at line 1103 of file LutScanner.cpp.

1104 {
1106  register char *yy_cp;
1107 
1108  yy_current_state = (yy_start);
1109 
1110  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1111  {
1112  register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1113  if ( yy_accept[yy_current_state] )
1114  {
1115  (yy_last_accepting_state) = yy_current_state;
1116  (yy_last_accepting_cpos) = yy_cp;
1117  }
1118  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1119  {
1120  yy_current_state = (int) yy_def[yy_current_state];
1121  if ( yy_current_state >= 19 )
1122  yy_c = yy_meta[(unsigned int) yy_c];
1123  }
1124  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1125  }
1126 
1127  return yy_current_state;
1128 }
static yyconst flex_int16_t yy_accept[19]
Definition: LutScanner.cpp:332
static yyconst flex_int16_t yy_nxt[32]
Definition: LutScanner.cpp:388
#define yytext_ptr
Definition: LutScanner.cpp:309
#define YY_SC_TO_UI(c)
Definition: LutScanner.cpp:130
static yyconst flex_int16_t yy_base[20]
Definition: LutScanner.cpp:376
static yyconst flex_int16_t yy_chk[32]
Definition: LutScanner.cpp:396
YY_DECL register yy_state_type yy_current_state
Definition: LutScanner.cpp:572
static yyconst flex_int16_t yy_def[20]
Definition: LutScanner.cpp:382
static yyconst flex_int32_t yy_ec[256]
Definition: LutScanner.cpp:338
static yyconst flex_int32_t yy_meta[14]
Definition: LutScanner.cpp:370
register char * yy_cp
Definition: LutScanner.cpp:573
unsigned char YY_CHAR
Bison lexer internals.
Definition: LutScanner.cpp:307
#define YY_MORE_ADJ
Definition: LutScanner.cpp:409
void yyFlexLexer::yy_init_buffer ( struct yy_buffer_state b,
FLEX_STD istream *  s 
)
protected
void yyFlexLexer::yy_init_buffer ( struct yy_buffer_state b,
FLEX_STD istream *  s 
)
protected
void yyFlexLexer::yy_init_buffer ( struct yy_buffer_state b,
FLEX_STD istream *  s 
)
protected
void yyFlexLexer::yy_load_buffer_state ( )
protected
void yyFlexLexer::yy_load_buffer_state ( )
protected

Definition at line 1315 of file LutScanner.cpp.

1316 {
1317  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1318  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1319  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1320  (yy_hold_char) = *(yy_c_buf_p);
1321 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: LutScanner.cpp:275
#define yytext_ptr
Definition: LutScanner.cpp:309
void yyFlexLexer::yy_load_buffer_state ( )
protected
void yyFlexLexer::yy_pop_state ( )
protected
void yyFlexLexer::yy_pop_state ( )
protected
void yyFlexLexer::yy_pop_state ( )
protected

Definition at line 1550 of file LutScanner.cpp.

1551 {
1552  if ( --(yy_start_stack_ptr) < 0 )
1553  YY_FATAL_ERROR( "start-condition stack underflow" );
1554 
1556 }
#define YY_FATAL_ERROR(msg)
Definition: LutScanner.cpp:540
#define BEGIN
Definition: LutScanner.cpp:136
void yyFlexLexer::yy_push_state ( int  new_state)
protected
void yyFlexLexer::yy_push_state ( int  new_state)
protected

Definition at line 1526 of file LutScanner.cpp.

1527 {
1529  {
1530  yy_size_t new_size;
1531 
1533  new_size = (yy_start_stack_depth) * sizeof( int );
1534 
1535  if ( ! (yy_start_stack) )
1536  (yy_start_stack) = (int *) Lutalloc(new_size );
1537 
1538  else
1539  (yy_start_stack) = (int *) Lutrealloc((void *) (yy_start_stack),new_size );
1540 
1541  if ( ! (yy_start_stack) )
1542  YY_FATAL_ERROR( "out of memory expanding start-condition stack" );
1543  }
1544 
1546 
1547  BEGIN(new_state);
1548 }
#define YY_START_STACK_INCR
Definition: LutScanner.cpp:535
void * Lutrealloc(void *, yy_size_t)
size_t yy_size_t
Bison lexer internals.
Definition: LutScanner.cpp:193
#define YY_FATAL_ERROR(msg)
Definition: LutScanner.cpp:540
#define BEGIN
Definition: LutScanner.cpp:136
void * Lutalloc(yy_size_t)
#define YY_START
Definition: LutScanner.cpp:142

+ Here is the call graph for this function:

void yyFlexLexer::yy_push_state ( int  new_state)
protected
void yyFlexLexer::yy_switch_to_buffer ( struct yy_buffer_state new_buffer)
virtual

Implements FlexLexer.

void yyFlexLexer::yy_switch_to_buffer ( struct yy_buffer_state new_buffer)
virtual

Implements FlexLexer.

void yyFlexLexer::yy_switch_to_buffer ( struct yy_buffer_state new_buffer)
virtual

Implements FlexLexer.

int yyFlexLexer::yy_top_state ( )
protected
int yyFlexLexer::yy_top_state ( )
protected
int yyFlexLexer::yy_top_state ( )
protected

Definition at line 1558 of file LutScanner.cpp.

yy_state_type yyFlexLexer::yy_try_NUL_trans ( yy_state_type  current_state)
protected
yy_state_type yyFlexLexer::yy_try_NUL_trans ( yy_state_type  current_state)
protected

Definition at line 1135 of file LutScanner.cpp.

1136 {
1137  register int yy_is_jam;
1138  register char *yy_cp = (yy_c_buf_p);
1139 
1140  register YY_CHAR yy_c = 1;
1141  if ( yy_accept[yy_current_state] )
1142  {
1143  (yy_last_accepting_state) = yy_current_state;
1144  (yy_last_accepting_cpos) = yy_cp;
1145  }
1146  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1147  {
1148  yy_current_state = (int) yy_def[yy_current_state];
1149  if ( yy_current_state >= 19 )
1150  yy_c = yy_meta[(unsigned int) yy_c];
1151  }
1152  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1153  yy_is_jam = (yy_current_state == 18);
1154 
1155  return yy_is_jam ? 0 : yy_current_state;
1156 }
static yyconst flex_int16_t yy_accept[19]
Definition: LutScanner.cpp:332
static yyconst flex_int16_t yy_nxt[32]
Definition: LutScanner.cpp:388
static yyconst flex_int16_t yy_base[20]
Definition: LutScanner.cpp:376
static yyconst flex_int16_t yy_chk[32]
Definition: LutScanner.cpp:396
YY_DECL register yy_state_type yy_current_state
Definition: LutScanner.cpp:572
static yyconst flex_int16_t yy_def[20]
Definition: LutScanner.cpp:382
static yyconst flex_int32_t yy_meta[14]
Definition: LutScanner.cpp:370
register char * yy_cp
Definition: LutScanner.cpp:573
unsigned char YY_CHAR
Bison lexer internals.
Definition: LutScanner.cpp:307
yy_state_type yyFlexLexer::yy_try_NUL_trans ( yy_state_type  current_state)
protected
void yyFlexLexer::yyensure_buffer_stack ( void  )
protected
void yyFlexLexer::yyensure_buffer_stack ( void  )
protected
void yyFlexLexer::yyensure_buffer_stack ( void  )
protected

Definition at line 1483 of file LutScanner.cpp.

1484 {
1485  int num_to_alloc;
1486 
1487  if (!(yy_buffer_stack)) {
1488 
1489  /* First allocation is just for 2 elements, since we don't know if this
1490  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1491  * immediate realloc on the next call.
1492  */
1493  num_to_alloc = 1;
1495  (num_to_alloc * sizeof(struct yy_buffer_state*)
1496  );
1497  if ( ! (yy_buffer_stack) )
1498  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1499 
1500  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1501 
1502  (yy_buffer_stack_max) = num_to_alloc;
1503  (yy_buffer_stack_top) = 0;
1504  return;
1505  }
1506 
1507  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1508 
1509  /* Increase the buffer to prepare for a possible push. */
1510  int grow_size = 8 /* arbitrary grow size */;
1511 
1512  num_to_alloc = (yy_buffer_stack_max) + grow_size;
1514  ((yy_buffer_stack),
1515  num_to_alloc * sizeof(struct yy_buffer_state*)
1516  );
1517  if ( ! (yy_buffer_stack) )
1518  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1519 
1520  /* zero only the new slots.*/
1521  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1522  (yy_buffer_stack_max) = num_to_alloc;
1523  }
1524 }
void * Lutrealloc(void *, yy_size_t)
#define YY_FATAL_ERROR(msg)
Definition: LutScanner.cpp:540
struct yy_buffer_state ** yy_buffer_stack
void * Lutalloc(yy_size_t)
Bison parser internals.
Definition: LutScanner.cpp:198

+ Here is the call graph for this function:

int yyFlexLexer::yyinput ( )
protected
int yyFlexLexer::yyinput ( )
protected
int yyFlexLexer::yyinput ( )
protected

Definition at line 1195 of file LutScanner.cpp.

1196 {
1197  int c;
1198 
1199  *(yy_c_buf_p) = (yy_hold_char);
1200 
1201  if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1202  {
1203  /* yy_c_buf_p now points to the character we want to return.
1204  * If this occurs *before* the EOB characters, then it's a
1205  * valid NUL; if not, then we've hit the end of the buffer.
1206  */
1207  if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1208  /* This was really a NUL. */
1209  *(yy_c_buf_p) = '\0';
1210 
1211  else
1212  { /* need more input */
1213  int offset = (yy_c_buf_p) - (yytext_ptr);
1214  ++(yy_c_buf_p);
1215 
1216  switch ( yy_get_next_buffer( ) )
1217  {
1218  case EOB_ACT_LAST_MATCH:
1219  /* This happens because yy_g_n_b()
1220  * sees that we've accumulated a
1221  * token and flags that we need to
1222  * try matching the token before
1223  * proceeding. But for input(),
1224  * there's no matching to consider.
1225  * So convert the EOB_ACT_LAST_MATCH
1226  * to EOB_ACT_END_OF_FILE.
1227  */
1228 
1229  /* Reset buffer status. */
1230  yyrestart( yyin );
1231 
1232  /*FALLTHROUGH*/
1233 
1234  case EOB_ACT_END_OF_FILE:
1235  {
1236  if ( yywrap( ) )
1237  return EOF;
1238 
1239  if ( ! (yy_did_buffer_switch_on_eof) )
1240  YY_NEW_FILE;
1241 #ifdef __cplusplus
1242  return yyinput();
1243 #else
1244  return input();
1245 #endif
1246  }
1247 
1248  case EOB_ACT_CONTINUE_SCAN:
1249  (yy_c_buf_p) = (yytext_ptr) + offset;
1250  break;
1251  }
1252  }
1253  }
1254 
1255  c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1256  *(yy_c_buf_p) = '\0'; /* preserve yytext */
1257  (yy_hold_char) = *++(yy_c_buf_p);
1258 
1259  return c;
1260 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: LutScanner.cpp:275
#define YY_END_OF_BUFFER_CHAR
Definition: LutScanner.cpp:151
#define EOB_ACT_CONTINUE_SCAN
Definition: LutScanner.cpp:169
#define YY_NEW_FILE
Definition: LutScanner.cpp:149
#define yytext_ptr
Definition: LutScanner.cpp:309
#define EOB_ACT_LAST_MATCH
Definition: LutScanner.cpp:171
int yy_get_next_buffer()
Definition: LutScanner.cpp:969
#define EOB_ACT_END_OF_FILE
Definition: LutScanner.cpp:170
void yyrestart(FLEX_STD istream *s)
virtual int yywrap()
int FlexLexer::YYLeng ( ) const
inlineinherited

Definition at line 66 of file generic/edif/FlexLexer.h.

66 { return yyleng; }
int FlexLexer::YYLeng ( ) const
inlineinherited

Definition at line 67 of file physical/xdl/FlexLexer.h.

67 { return yyleng; }
int FlexLexer::YYLeng ( ) const
inlineinherited

Definition at line 67 of file bitstream/assembler/lut/FlexLexer.h.

67 { return yyleng; }
int FlexLexer::yylex ( FLEX_STD istream *  new_in,
FLEX_STD ostream *  new_out = 0 
)
inlineinherited

Definition at line 79 of file bitstream/assembler/lut/FlexLexer.h.

80  {
81  switch_streams(new_in, new_out);
82  return yylex();
83  }
virtual void switch_streams(FLEX_STD istream *new_in=0, FLEX_STD ostream *new_out=0)=0
virtual int yylex()=0

+ Here is the call graph for this function:

virtual int yyFlexLexer::yylex ( )
virtual

Implements FlexLexer.

virtual int yyFlexLexer::yylex ( )
virtual

Implements FlexLexer.

virtual int yyFlexLexer::yylex ( )
virtual

Implements FlexLexer.

void yyFlexLexer::yypop_buffer_state ( )
void yyFlexLexer::yypop_buffer_state ( )
void yyFlexLexer::yypop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 1464 of file LutScanner.cpp.

1465 {
1466  if (!YY_CURRENT_BUFFER)
1467  return;
1468 
1470  YY_CURRENT_BUFFER_LVALUE = NULL;
1471  if ((yy_buffer_stack_top) > 0)
1472  --(yy_buffer_stack_top);
1473 
1474  if (YY_CURRENT_BUFFER) {
1477  }
1478 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: LutScanner.cpp:275
void yy_load_buffer_state()
#define YY_CURRENT_BUFFER
Definition: LutScanner.cpp:268
void yy_delete_buffer(struct yy_buffer_state *b)
void yyFlexLexer::yypush_buffer_state ( struct yy_buffer_state new_buffer)
void yyFlexLexer::yypush_buffer_state ( struct yy_buffer_state new_buffer)
void yyFlexLexer::yypush_buffer_state ( struct yy_buffer_state new_buffer)
void yyFlexLexer::yyrestart ( FLEX_STD istream *  s)
virtual

Implements FlexLexer.

void yyFlexLexer::yyrestart ( FLEX_STD istream *  s)
virtual

Implements FlexLexer.

void yyFlexLexer::yyrestart ( FLEX_STD istream *  s)
virtual

Implements FlexLexer.

const char* FlexLexer::YYText ( ) const
inlineinherited

Definition at line 65 of file generic/edif/FlexLexer.h.

65 { return yytext; }
const char* FlexLexer::YYText ( ) const
inlineinherited

Definition at line 66 of file physical/xdl/FlexLexer.h.

66 { return yytext; }
const char* FlexLexer::YYText ( ) const
inlineinherited

Definition at line 66 of file bitstream/assembler/lut/FlexLexer.h.

66 { return yytext; }
void yyFlexLexer::yyunput ( int  c,
char *  buf_ptr 
)
protected
void yyFlexLexer::yyunput ( int  c,
char *  buf_ptr 
)
protected
void yyFlexLexer::yyunput ( int  c,
char *  buf_ptr 
)
protected
virtual int yyFlexLexer::yywrap ( )
virtual
virtual int yyFlexLexer::yywrap ( )
virtual
virtual int yyFlexLexer::yywrap ( )
virtual

Field Documentation

struct yy_buffer_state ** yyFlexLexer::yy_buffer_stack
protected

Stack as an array.

Definition at line 185 of file bitstream/assembler/lut/FlexLexer.h.

size_t yyFlexLexer::yy_buffer_stack_max
protected

capacity of stack.

Definition at line 184 of file bitstream/assembler/lut/FlexLexer.h.

size_t yyFlexLexer::yy_buffer_stack_top
protected

index of top of stack.

Definition at line 183 of file bitstream/assembler/lut/FlexLexer.h.

char * yyFlexLexer::yy_c_buf_p
protected

Definition at line 173 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_did_buffer_switch_on_eof
protected

Definition at line 180 of file bitstream/assembler/lut/FlexLexer.h.

int FlexLexer::yy_flex_debug
protectedinherited

Definition at line 99 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_full_lp
protected

Definition at line 199 of file bitstream/assembler/lut/FlexLexer.h.

char * yyFlexLexer::yy_full_match
protected

Definition at line 197 of file bitstream/assembler/lut/FlexLexer.h.

int * yyFlexLexer::yy_full_state
protected

Definition at line 198 of file bitstream/assembler/lut/FlexLexer.h.

char yyFlexLexer::yy_hold_char
protected

Definition at line 167 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_init
protected

Definition at line 175 of file bitstream/assembler/lut/FlexLexer.h.

char * yyFlexLexer::yy_last_accepting_cpos
protected

Definition at line 192 of file bitstream/assembler/lut/FlexLexer.h.

yy_state_type yyFlexLexer::yy_last_accepting_state
protected

Definition at line 191 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_looking_for_trail_begin
protected

Definition at line 202 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_lp
protected

Definition at line 201 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_more_flag
protected

Definition at line 204 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_more_len
protected

Definition at line 205 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_more_offset
protected

Definition at line 206 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_n_chars
protected

Definition at line 170 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_prev_more_offset
protected

Definition at line 207 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_start
protected

Definition at line 176 of file bitstream/assembler/lut/FlexLexer.h.

int * yyFlexLexer::yy_start_stack
protected

Definition at line 153 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_start_stack_depth
protected

Definition at line 152 of file bitstream/assembler/lut/FlexLexer.h.

int yyFlexLexer::yy_start_stack_ptr
protected

Definition at line 151 of file bitstream/assembler/lut/FlexLexer.h.

yy_state_type * yyFlexLexer::yy_state_buf
protected

Definition at line 194 of file bitstream/assembler/lut/FlexLexer.h.

yy_state_type * yyFlexLexer::yy_state_ptr
protected

Definition at line 195 of file bitstream/assembler/lut/FlexLexer.h.

FLEX_STD istream * yyFlexLexer::yyin
protected

Definition at line 163 of file bitstream/assembler/lut/FlexLexer.h.

int FlexLexer::yyleng
protectedinherited

Definition at line 97 of file bitstream/assembler/lut/FlexLexer.h.

int FlexLexer::yylineno
protectedinherited

Definition at line 98 of file bitstream/assembler/lut/FlexLexer.h.

FLEX_STD ostream * yyFlexLexer::yyout
protected

Definition at line 164 of file bitstream/assembler/lut/FlexLexer.h.

char * FlexLexer::yytext
protectedinherited

Definition at line 96 of file bitstream/assembler/lut/FlexLexer.h.


The documentation for this class was generated from the following files: