Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

lex.yy.c File Reference

#include <stdio.h>
#include "lclintMacros.nf"
#include "basic.h"
#include "cgrammar.h"
#include "cgrammar_tokens.h"
#include "fileIdList.h"
#include "portab.h"
#include "flex.head"

Go to the source code of this file.

Compounds

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   177
#define YY_END_OF_BUFFER   178
#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 yyinput()    (incColumn (), getc (yyin))
#define RETURN_INT(c,i)
#define RETURN_FLOAT(c,f)
#define RETURN_CHAR(c)
#define RETURN_TOK(t)
#define RETURN_TYPE(t, ct)
#define RETURN_STRING(c)
#define RETURN_EXPR(e)
#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
#define YY_EXIT_FAILURE   2
#define yyless(n)

Typedefs

typedef struct 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 ))
int read ()
void yy_init_buffer ( b, file ) YY_BUFFER_STATE b
uentry coerceId (cstring cn)
uentry coerceIterId (cstring cn)
cstring LastIdentifier ()

Variables

int yyleng
FILE * yyout = (FILE *) 0
char* yytext
bool g_expectingTypeName = TRUE
register char* yy_bp
int size
FILE* file
int len
struct skeyword s_parsetable []
struct skeyword s_keytable []


Define Documentation

#define BEGIN   yy_start = 1 + 2 *
 

Definition at line 79 of file lex.yy.c.

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

Definition at line 946 of file lex.yy.c.

#define EOB_ACT_CONTINUE_SCAN   0
 

Definition at line 104 of file lex.yy.c.

#define EOB_ACT_END_OF_FILE   1
 

Definition at line 105 of file lex.yy.c.

#define EOB_ACT_LAST_MATCH   2
 

Definition at line 106 of file lex.yy.c.

#define FLEX_SCANNER
 

Definition at line 7 of file lex.yy.c.

#define INITIAL   0
 

Definition at line 695 of file lex.yy.c.

#define REJECT   reject_used_but_not_detected
 

Definition at line 689 of file lex.yy.c.

#define RETURN_CHAR( c )
 

Initializer:

\
  do { lastWasString = FALSE; \
       return (returnChar (c)); \
     } while (FALSE)

Definition at line 822 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define RETURN_EXPR( e )
 

Initializer:

\
 do { yylval.expr = e; \
      tokLength = 0; \
      lastWasString = TRUE; \
      return (CCONSTANT); } while (FALSE)

Definition at line 846 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define RETURN_FLOAT( c, f )
 

Initializer:

\
  do { lastWasString = FALSE; \
       return (returnFloat (c, f)); \
       } while (FALSE)

Definition at line 817 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define RETURN_INT( c, i )
 

Initializer:

\
  do { lastWasString = FALSE; \
       return (returnInt (c, i)); } while (FALSE)

Definition at line 813 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define RETURN_STRING( c )
 

Initializer:

\
 do { yylval.expr = exprNode_stringLiteral (c, fileloc_decColumn (g_currentloc, tokLength)); \
      tokLength = 0; \
      lastWasString = TRUE; \
      return (CCONSTANT); } while (FALSE)

Definition at line 840 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define RETURN_TOK( t )
 

Initializer:

\
  do { yylval.tok = lltok_create (t, fileloc_decColumn (g_currentloc, tokLength)); \
       tokLength = 0; \
       lastWasString = FALSE; \
       return (t); } while (FALSE)

Definition at line 827 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define RETURN_TYPE( t, ct )
 

Initializer:

\
  do { yylval.ctyp = ct; tokLength = 0; return (t); } while (FALSE)

Definition at line 833 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define YYSTATE   YY_START
 

Definition at line 86 of file lex.yy.c.

#define YY_AT_BOL( )   (yy_current_buffer->yy_at_bol)
 

Definition at line 262 of file lex.yy.c.

#define YY_BREAK   break;
 

Definition at line 1005 of file lex.yy.c.

#define YY_BUFFER_EOF_PENDING   2
 

Definition at line 198 of file lex.yy.c.

#define YY_BUFFER_NEW   0
 

Definition at line 186 of file lex.yy.c.

#define YY_BUFFER_NORMAL   1
 

Definition at line 187 of file lex.yy.c.

#define YY_BUF_SIZE   16384
 

Definition at line 97 of file lex.yy.c.

#define YY_CURRENT_BUFFER   yy_current_buffer
 

Definition at line 207 of file lex.yy.c.

#define YY_DECL   int yylex YY_PROTO(( void ))
 

Definition at line 993 of file lex.yy.c.

#define YY_DO_BEFORE_ACTION
 

Initializer:

\
        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 278 of file lex.yy.c.

#define YY_END_OF_BUFFER   178
 

Definition at line 286 of file lex.yy.c.

#define YY_END_OF_BUFFER_CHAR   0
 

Definition at line 94 of file lex.yy.c.

#define YY_EXIT_FAILURE   2
 

#define YY_FATAL_ERROR( msg )   yy_fatal_error( msg )
 

Definition at line 986 of file lex.yy.c.

Referenced by YY_RULE_SETUP(), len(), and yy_bp().

#define YY_FLEX_MAJOR_VERSION   2
 

Definition at line 8 of file lex.yy.c.

#define YY_FLEX_MINOR_VERSION   5
 

Definition at line 9 of file lex.yy.c.

#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
 

Definition at line 236 of file lex.yy.c.

#define YY_INPUT( buf, result, max_size )
 

Initializer:

\
        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 953 of file lex.yy.c.

#define YY_MORE_ADJ   0
 

Definition at line 691 of file lex.yy.c.

#define YY_NEW_FILE   yyrestart( yyin )
 

Definition at line 92 of file lex.yy.c.

#define YY_NO_POP_STATE   1
 

Definition at line 916 of file lex.yy.c.

#define YY_NO_PUSH_STATE   1
 

Definition at line 915 of file lex.yy.c.

#define YY_NO_TOP_STATE   1
 

Definition at line 917 of file lex.yy.c.

#define YY_NULL   0
 

Definition at line 66 of file lex.yy.c.

#define YY_NUM_RULES   177
 

Definition at line 285 of file lex.yy.c.

#define YY_PROTO( proto )   ()
 

Definition at line 62 of file lex.yy.c.

#define YY_READ_BUF_SIZE   8192
 

Definition at line 937 of file lex.yy.c.

#define YY_RESTORE_YY_MORE_OFFSET
 

Definition at line 692 of file lex.yy.c.

#define YY_RULE_SETUP
 

Initializer:

\
        YY_USER_ACTION

Definition at line 1008 of file lex.yy.c.

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

Definition at line 73 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

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

Definition at line 85 of file lex.yy.c.

#define YY_START_STACK_INCR   25
 

Definition at line 981 of file lex.yy.c.

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

Definition at line 89 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define unput( c )   yyunput( c, yytext_ptr )
 

Definition at line 135 of file lex.yy.c.

#define yy_new_buffer   yy_create_buffer
 

Definition at line 246 of file lex.yy.c.

#define yy_set_bol( at_bol )
 

Initializer:

\
        { \
        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 255 of file lex.yy.c.

#define yy_set_interactive( is_interactive )
 

Initializer:

\
        { \
        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 248 of file lex.yy.c.

#define yyconst
 

Definition at line 55 of file lex.yy.c.

#define yyinput( )   (incColumn (), getc (yyin))
 

Definition at line 763 of file lex.yy.c.

#define yyless( n )
 

Initializer:

\
        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 124 of file lex.yy.c.

#define yyless( n )
 

Initializer:

\
        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 124 of file lex.yy.c.

#define yymore( )   yymore_used_but_not_detected
 

Definition at line 690 of file lex.yy.c.

#define yyterminate( )   return YY_NULL
 

Definition at line 976 of file lex.yy.c.

Referenced by YY_RULE_SETUP().

#define yytext_ptr   yytext
 

Definition at line 268 of file lex.yy.c.


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE
 

Definition at line 99 of file lex.yy.c.

typedef unsigned char YY_CHAR
 

Definition at line 264 of file lex.yy.c.

typedef unsigned int yy_size_t
 

Definition at line 141 of file lex.yy.c.

typedef int yy_state_type
 

Definition at line 266 of file lex.yy.c.


Function Documentation

cstring LastIdentifier ( )
 

Definition at line 4907 of file lex.yy.c.

04908 {
04909   return (lastidprocessed);
04910 }

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

uentry coerceId ( cstring cn )
 

Definition at line 4866 of file lex.yy.c.

04867 {
04868   if (!(usymtab_exists (cn)))
04869     {
04870       fileloc loc = fileloc_createExternal ();
04871       
04872       /*
04873       ** We need to put this in a global scope, otherwise the sRef will be deallocated.
04874       */
04875       
04876       uentry ce = uentry_makeUnrecognized (cn, loc);
04877       
04878       if (!context_inIterEnd ())
04879         {
04880           voptgenerror 
04881             (FLG_SYSTEMUNRECOG, 
04882              message ("Unrecognized (possibly system) identifier: %q", 
04883                       uentry_getName (ce)), 
04884              g_currentloc);
04885         }
04886       
04887       return ce;
04888     }
04889   
04890   return (usymtab_lookup (cn));
04891 }

uentry coerceIterId ( cstring cn )
 

Definition at line 4897 of file lex.yy.c.

04898 {
04899   if (!(usymtab_exists (cn)))
04900     {
04901       return uentry_undefined;
04902     }
04903   
04904   return (usymtab_lookup (cn));
04905 }

int read ( )
 

void yy_init_buffer ( b,
file )
 


Variable Documentation

FILE * file
 

Definition at line 2721 of file lex.yy.c.

bool g_expectingTypeName = TRUE
 

Definition at line 798 of file lex.yy.c.

int len
 

Definition at line 2834 of file lex.yy.c.

struct skeyword s_keytable[]
 

Definition at line 3068 of file lex.yy.c.

struct skeyword s_parsetable[]
 

Initializer:

{
  { "modifies", QMODIFIES } ,
  { "globals", QGLOBALS } ,
  { "alt", QALT } ,
  { "constant", QCONSTANT } ,
  { "function", QFUNCTION } ,
  { "iter", QITER } ,
  { "defines", QDEFINES } ,
  { "uses", QUSES } ,
  { "allocates", QALLOCATES } ,
  { "sets", QSETS } ,
  { "releases", QRELEASES } ,
  { "pre", QPRECLAUSE } ,
  { "post", QPOSTCLAUSE } ,
  { NULL, BADTOK } 
}

Definition at line 3046 of file lex.yy.c.

yy_size_t size
 

Definition at line 3002 of file lex.yy.c.

register char * yy_bp
 

Definition at line 2489 of file lex.yy.c.

int yyleng
 

Definition at line 216 of file lex.yy.c.

FILE * yyout = (FILE *) 0
 

Definition at line 265 of file lex.yy.c.

char * yytext
 

Definition at line 693 of file lex.yy.c.


Generated at Fri Nov 3 18:58:00 2000 for LCLint by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000