core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

lex.yy.c File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "main/glheader.h"
#include "prog_instruction.h"
#include "prog_statevars.h"
#include "symbol_table.h"
#include "program_parser.h"
#include "program_parse.tab.h"

Data Structures

struct  yy_buffer_state
struct  yy_trans_info
struct  yyguts_t

Defines

#define YY_INT_ALIGNED   short int
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   35
#define FLEX_BETA
#define INT8_MIN   (-128)
#define INT16_MIN   (-32767-1)
#define INT32_MIN   (-2147483647-1)
#define INT8_MAX   (127)
#define INT16_MAX   (32767)
#define INT32_MAX   (2147483647)
#define UINT8_MAX   (255U)
#define UINT16_MAX   (65535U)
#define UINT32_MAX   (4294967295U)
#define yyconst
#define YY_NULL   0
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
#define yyin   yyg->yyin_r
#define yyout   yyg->yyout_r
#define yyextra   yyg->yyextra_r
#define yyleng   yyg->yyleng_r
#define yytext   yyg->yytext_r
#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
#define yy_flex_debug   yyg->yy_flex_debug_r
#define BEGIN   yyg->yy_start = 1 + 2 *
#define YY_START   ((yyg->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 ,yyscanner )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   16384
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define YY_LESS_LINENO(n)
#define yyless(n)
#define unput(c)   yyunput( c, yyg->yytext_ptr , yyscanner )
#define YY_BUFFER_NEW   0
#define YY_BUFFER_NORMAL   1
#define YY_BUFFER_EOF_PENDING   2
#define YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
#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_LVALUE->yy_at_bol)
#define yywrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   yytext_r
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   170
#define YY_END_OF_BUFFER   171
#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 require_ARB_vp   (yyextra->mode == ARB_vertex)
#define require_ARB_fp   (yyextra->mode == ARB_fragment)
#define require_NV_fp   (yyextra->option.NV_fragment)
#define require_shadow   (yyextra->option.Shadow)
#define require_rect   (yyextra->option.TexRect)
#define require_texarray   (yyextra->option.TexArray)
#define YY_NO_UNISTD_H
#define return_token_or_IDENTIFIER(condition, token)
#define return_token_or_DOT(condition, token)
#define return_opcode(condition, token, opcode, len)
#define SWIZZLE_INVAL
#define YY_USER_ACTION
#define YY_EXTRA_TYPE   struct asm_parser_state *
#define INITIAL   0
#define yylval   yyg->yylval_r
#define yylloc   yyg->yylloc_r
#define YY_READ_BUF_SIZE   8192
#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#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 , yyscanner)
#define YY_DECL_IS_OURS   1
#define YY_DECL
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#define YY_EXIT_FAILURE   2
#define yyless(n)
#define YYTABLES_NAME   "yytables"

Typedefs

typedef signed char flex_int8_t
typedef short int flex_int16_t
typedef int flex_int32_t
typedef unsigned char flex_uint8_t
typedef unsigned short int flex_uint16_t
typedef unsigned int flex_uint32_t
typedef void * yyscan_t
typedef struct yy_buffer_stateYY_BUFFER_STATE
typedef size_t yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void yyrestart (FILE *input_file, yyscan_t yyscanner)
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size, yyscan_t yyscanner)
void yy_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
void yy_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
void yypush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
void yypop_buffer_state (yyscan_t yyscanner)
static void yyensure_buffer_stack (yyscan_t yyscanner)
static void yy_load_buffer_state (yyscan_t yyscanner)
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner)
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner)
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str, yyscan_t yyscanner)
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes, int len, yyscan_t yyscanner)
void * yyalloc (yy_size_t, yyscan_t yyscanner)
void * yyrealloc (void *, yy_size_t, yyscan_t yyscanner)
void yyfree (void *, yyscan_t yyscanner)
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
static yy_state_type yy_try_NUL_trans (yy_state_type current_state, yyscan_t yyscanner)
static int yy_get_next_buffer (yyscan_t yyscanner)
static void yy_fatal_error (yyconst char msg[], yyscan_t yyscanner)
static unsigned mask_from_char (char c)
static unsigned swiz_from_char (char c)
static int handle_ident (struct asm_parser_state *state, const char *text, YYSTYPE *lval)
static int yy_init_globals (yyscan_t yyscanner)
int yylex_init (yyscan_t *scanner)
int yylex_init_extra (YY_EXTRA_TYPE user_defined, yyscan_t *scanner)
int yylex_destroy (yyscan_t yyscanner)
int yyget_debug (yyscan_t yyscanner)
void yyset_debug (int debug_flag, yyscan_t yyscanner)
YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
void yyset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
FILE * yyget_in (yyscan_t yyscanner)
void yyset_in (FILE *in_str, yyscan_t yyscanner)
FILE * yyget_out (yyscan_t yyscanner)
void yyset_out (FILE *out_str, yyscan_t yyscanner)
int yyget_leng (yyscan_t yyscanner)
char * yyget_text (yyscan_t yyscanner)
int yyget_lineno (yyscan_t yyscanner)
void yyset_lineno (int line_number, yyscan_t yyscanner)
YYSTYPEyyget_lval (yyscan_t yyscanner)
void yyset_lval (YYSTYPE *yylval_param, yyscan_t yyscanner)
YYLTYPEyyget_lloc (yyscan_t yyscanner)
void yyset_lloc (YYLTYPE *yylloc_param, yyscan_t yyscanner)
static void yyunput (int c, char *buf_ptr, yyscan_t yyscanner)
static int input (yyscan_t yyscanner)
int yylex (YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)

Variables

static yyconst flex_int16_t yy_accept [850]
static yyconst flex_int32_t yy_ec [256]
static yyconst flex_int32_t yy_meta [68]
static yyconst flex_int16_t yy_base [853]
static yyconst flex_int16_t yy_def [853]
static yyconst flex_int16_t yy_nxt [1368]
static yyconst flex_int16_t yy_chk [1368]


Define Documentation

#define BEGIN   yyg->yy_start = 1 + 2 *

#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)

#define EOB_ACT_CONTINUE_SCAN   0

#define EOB_ACT_END_OF_FILE   1

#define EOB_ACT_LAST_MATCH   2

#define FLEX_BETA

#define FLEX_SCANNER

#define INITIAL   0

#define INT16_MAX   (32767)

#define INT16_MIN   (-32767-1)

#define INT32_MAX   (2147483647)

#define INT32_MIN   (-2147483647-1)

#define INT8_MAX   (127)

#define INT8_MIN   (-128)

#define REJECT   reject_used_but_not_detected

#define require_ARB_fp   (yyextra->mode == ARB_fragment)

#define require_ARB_vp   (yyextra->mode == ARB_vertex)

#define require_NV_fp   (yyextra->option.NV_fragment)

#define require_rect   (yyextra->option.TexRect)

#define require_shadow   (yyextra->option.Shadow)

#define require_texarray   (yyextra->option.TexArray)

#define return_opcode ( condition,
token,
opcode,
len   ) 

Value:

do {                                                    \
      if (condition &&                                  \
          _mesa_parse_instruction_suffix(yyextra,       \
                                         yytext + len,  \
                                         & yylval->temp_inst)) {        \
         yylval->temp_inst.Opcode = OPCODE_ ## opcode;  \
         return token;                                  \
      } else {                                          \
         return handle_ident(yyextra, yytext, yylval);  \
      }                                                 \
   } while (0)

#define return_token_or_DOT ( condition,
token   ) 

Value:

do {                                                    \
      if (condition) {                                  \
         return token;                                  \
      } else {                                          \
         yyless(1);                                     \
         return DOT;                                    \
      }                                                 \
   } while (0)

#define return_token_or_IDENTIFIER ( condition,
token   ) 

Value:

do {                                                    \
      if (condition) {                                  \
         return token;                                  \
      } else {                                          \
         return handle_ident(yyextra, yytext, yylval);  \
      }                                                 \
   } while (0)

#define SWIZZLE_INVAL

Value:

#define UINT16_MAX   (65535U)

#define UINT32_MAX   (4294967295U)

#define UINT8_MAX   (255U)

#define unput (  )     yyunput( c, yyg->yytext_ptr , yyscanner )

 
#define YY_AT_BOL (  )     (YY_CURRENT_BUFFER_LVALUE->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_CURRENT_BUFFER

Value:

( yyg->yy_buffer_stack \
                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
                          : NULL)

#define YY_CURRENT_BUFFER_LVALUE   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]

#define YY_DECL

Value:

int yylex \
               (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)

#define YY_DECL_IS_OURS   1

#define YY_DO_BEFORE_ACTION

Value:

yyg->yytext_ptr = yy_bp; \
        yyleng = (size_t) (yy_cp - yy_bp); \
        yyg->yy_hold_char = *yy_cp; \
        *yy_cp = '\0'; \
        yyg->yy_c_buf_p = yy_cp;

#define YY_END_OF_BUFFER   171

#define YY_END_OF_BUFFER_CHAR   0

#define YY_EXIT_FAILURE   2

#define YY_EXTRA_TYPE   struct asm_parser_state *

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg , yyscanner)

#define yy_flex_debug   yyg->yy_flex_debug_r

#define YY_FLEX_MAJOR_VERSION   2

#define YY_FLEX_MINOR_VERSION   5

#define YY_FLEX_SUBMINOR_VERSION   35

#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)

#define YY_INPUT ( buf,
result,
max_size   ) 

Value:

if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
                { \
                int c = '*'; \
                size_t 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 \
                { \
                errno=0; \
                while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
                        { \
                        if( errno != EINTR) \
                                { \
                                YY_FATAL_ERROR( "input in flex scanner failed" ); \
                                break; \
                                } \
                        errno=0; \
                        clearerr(yyin); \
                        } \
                }\
\

#define YY_INT_ALIGNED   short int

#define YY_LESS_LINENO (  ) 

#define YY_MORE_ADJ   0

#define yy_new_buffer   yy_create_buffer

#define YY_NEW_FILE   yyrestart(yyin ,yyscanner )

#define YY_NO_UNISTD_H

#define YY_NULL   0

#define YY_NUM_RULES   170

#define YY_READ_BUF_SIZE   8192

#define YY_RESTORE_YY_MORE_OFFSET

#define YY_RULE_SETUP   YY_USER_ACTION

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

#define yy_set_bol ( at_bol   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){\
        yyensure_buffer_stack (yyscanner); \
                YY_CURRENT_BUFFER_LVALUE =    \
            yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
        }

#define yy_set_interactive ( is_interactive   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        yyensure_buffer_stack (yyscanner); \
                YY_CURRENT_BUFFER_LVALUE =    \
            yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
        }

#define YY_SKIP_YYWRAP

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

#define YY_START_STACK_INCR   25

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

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

#define YY_USER_ACTION

Value:

do {                                                                    \
      yylloc->first_column = yylloc->last_column;                       \
      yylloc->last_column += yyleng;                                    \
      if ((yylloc->first_line == 1)                                     \
          && (yylloc->first_column == 1)) {                             \
         yylloc->position = 1;                                          \
      } else {                                                          \
         yylloc->position += yylloc->last_column - yylloc->first_column; \
      }                                                                 \
   } while(0);

#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)

#define yyconst

#define yyextra   yyg->yyextra_r

#define yyin   yyg->yyin_r

#define yyleng   yyg->yyleng_r

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up yytext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                yytext[yyleng] = yyg->yy_hold_char; \
                yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
                yyg->yy_hold_char = *yyg->yy_c_buf_p; \
                *yyg->yy_c_buf_p = '\0'; \
                yyleng = yyless_macro_arg; \
                } \
        while ( 0 )

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up yytext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                *yy_cp = yyg->yy_hold_char; \
                YY_RESTORE_YY_MORE_OFFSET \
                yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
                YY_DO_BEFORE_ACTION; /* set up yytext again */ \
                } \
        while ( 0 )

#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)

#define yylloc   yyg->yylloc_r

#define yylval   yyg->yylval_r

 
#define yymore (  )     yymore_used_but_not_detected

#define yyout   yyg->yyout_r

#define YYSTATE   YY_START

#define YYTABLES_NAME   "yytables"

 
#define yyterminate (  )     return YY_NULL

#define yytext   yyg->yytext_r

#define yytext_ptr   yytext_r

#define yywrap (  )     1


Typedef Documentation

typedef short int flex_int16_t

typedef int flex_int32_t

typedef signed char flex_int8_t

typedef unsigned short int flex_uint16_t

typedef unsigned int flex_uint32_t

typedef unsigned char flex_uint8_t

typedef struct yy_buffer_state* YY_BUFFER_STATE

typedef unsigned char YY_CHAR

typedef size_t yy_size_t

typedef int yy_state_type

typedef void* yyscan_t


Function Documentation

static int handle_ident ( struct asm_parser_state state,
const char *  text,
YYSTYPE lval 
) [static]

static int input ( yyscan_t  yyscanner  )  [static]

static unsigned mask_from_char ( char  c  )  [static]

static unsigned swiz_from_char ( char  c  )  [static]

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size,
yyscan_t  yyscanner 
)

void yy_delete_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

static void yy_fatal_error ( yyconst char  msg[],
yyscan_t  yyscanner 
) [static]

void yy_flush_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

static int yy_get_next_buffer ( yyscan_t  yyscanner  )  [static]

static yy_state_type yy_get_previous_state ( yyscan_t  yyscanner  )  [static]

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file,
yyscan_t  yyscanner 
) [static]

static int yy_init_globals ( yyscan_t  yyscanner  )  [static]

static void yy_load_buffer_state ( yyscan_t  yyscanner  )  [static]

YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size,
yyscan_t  yyscanner 
)

YY_BUFFER_STATE yy_scan_bytes ( yyconst char *  bytes,
int  len,
yyscan_t  yyscanner 
)

YY_BUFFER_STATE yy_scan_string ( yyconst char *  yy_str,
yyscan_t  yyscanner 
)

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state,
yyscan_t  yyscanner 
) [static]

void* yyalloc ( yy_size_t  ,
yyscan_t  yyscanner 
)

static void yyensure_buffer_stack ( yyscan_t  yyscanner  )  [static]

void yyfree ( void *  ,
yyscan_t  yyscanner 
)

int yyget_debug ( yyscan_t  yyscanner  ) 

YY_EXTRA_TYPE yyget_extra ( yyscan_t  yyscanner  ) 

FILE* yyget_in ( yyscan_t  yyscanner  ) 

int yyget_leng ( yyscan_t  yyscanner  ) 

int yyget_lineno ( yyscan_t  yyscanner  ) 

YYLTYPE* yyget_lloc ( yyscan_t  yyscanner  ) 

YYSTYPE* yyget_lval ( yyscan_t  yyscanner  ) 

FILE* yyget_out ( yyscan_t  yyscanner  ) 

char* yyget_text ( yyscan_t  yyscanner  ) 

int yylex ( YYSTYPE yylval_param,
YYLTYPE yylloc_param,
yyscan_t  yyscanner 
)

int yylex_destroy ( yyscan_t  yyscanner  ) 

int yylex_init ( yyscan_t scanner  ) 

int yylex_init_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t scanner 
)

void yypop_buffer_state ( yyscan_t  yyscanner  ) 

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

void* yyrealloc ( void *  ,
yy_size_t  ,
yyscan_t  yyscanner 
)

void yyrestart ( FILE *  input_file,
yyscan_t  yyscanner 
)

void yyset_debug ( int  debug_flag,
yyscan_t  yyscanner 
)

void yyset_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t  yyscanner 
)

void yyset_in ( FILE *  in_str,
yyscan_t  yyscanner 
)

void yyset_lineno ( int  line_number,
yyscan_t  yyscanner 
)

void yyset_lloc ( YYLTYPE yylloc_param,
yyscan_t  yyscanner 
)

void yyset_lval ( YYSTYPE yylval_param,
yyscan_t  yyscanner 
)

void yyset_out ( FILE *  out_str,
yyscan_t  yyscanner 
)

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


Variable Documentation

yyconst flex_int16_t yy_accept[850] [static]

yyconst flex_int16_t yy_base[853] [static]

yyconst flex_int16_t yy_chk[1368] [static]

yyconst flex_int16_t yy_def[853] [static]

yyconst flex_int32_t yy_ec[256] [static]

yyconst flex_int32_t yy_meta[68] [static]

Initial value:

    {   0,
        1,    1,    1,    1,    1,    1,    2,    1,    3,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2
    }

yyconst flex_int16_t yy_nxt[1368] [static]


Generated on Sun Sep 27 06:48:02 2009 for Mesa Vertex and Fragment Program code by  doxygen 1.5.4