luxparse.cpp File Reference

#include "api.h"
#include "lux.h"
#include "error.h"
#include "paramset.h"
#include "context.h"
#include "memory.h"
#include <stdarg.h>
#include <sstream>

Go to the source code of this file.

Classes

struct  ParamArray
union  YYSTYPE
union  yyalloc

Defines

#define YYBISON   1
#define YYBISON_VERSION   "2.3"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYLSP_NEEDED   0
#define STRING   258
#define ID   259
#define NUM   260
#define LBRACK   261
#define RBRACK   262
#define ACCELERATOR   263
#define AREALIGHTSOURCE   264
#define ATTRIBUTEBEGIN   265
#define ATTRIBUTEEND   266
#define CAMERA   267
#define CONCATTRANSFORM   268
#define COORDINATESYSTEM   269
#define COORDSYSTRANSFORM   270
#define FILM   271
#define IDENTITY   272
#define LIGHTSOURCE   273
#define LOOKAT   274
#define MATERIAL   275
#define MAKENAMEDMATERIAL   276
#define NAMEDMATERIAL   277
#define OBJECTBEGIN   278
#define OBJECTEND   279
#define OBJECTINSTANCE   280
#define PIXELFILTER   281
#define REVERSEORIENTATION   282
#define ROTATE   283
#define SAMPLER   284
#define SCALE   285
#define SEARCHPATH   286
#define PORTALSHAPE   287
#define SHAPE   288
#define SURFACEINTEGRATOR   289
#define TEXTURE   290
#define TRANSFORMBEGIN   291
#define TRANSFORMEND   292
#define TRANSFORM   293
#define TRANSLATE   294
#define VOLUME   295
#define VOLUMEINTEGRATOR   296
#define WORLDBEGIN   297
#define WORLDEND   298
#define HIGH_PRECEDENCE   299
#define YYMAXDEPTH   100000000
#define CPS   cur_paramlist_size
#define CPT   cur_paramlist_tokens
#define CPA   cur_paramlist_args
#define CPTH   cur_paramlist_texture_helper
#define CPSZ   cur_paramlist_sizes
#define NA(r)   ((float *) r->array)
#define SA(r)   ((const char **) r->array)
#define YYPRINT(file, type, value)
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#define YYTOKEN_TABLE   0
#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYSIZE_T   unsigned int
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YY_(msgid)   msgid
#define YYUSE(e)   ((void) (e))
#define YYID(n)   (n)
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_FREE   YYFREE
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
#define YYMALLOC   malloc
#define YYFREE   free
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#define YYFINAL   71
#define YYLAST   113
#define YYNTOKENS   45
#define YYNNTS   22
#define YYNRULES   64
#define YYNSTATES   133
#define YYUNDEFTOK   2
#define YYMAXUTOK   299
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -120
#define YYTABLE_NINF   -6
#define yyerrok   (yyerrstatus = 0)
#define yyclearin   (yychar = YYEMPTY)
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYACCEPT   goto yyacceptlab
#define YYABORT   goto yyabortlab
#define YYERROR   goto yyerrorlab
#define YYFAIL   goto yyerrlab
#define YYRECOVERING()   (!!yyerrstatus)
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYRHSLOC(Rhs, K)   ((Rhs)[K])
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
#define YYLEX   yylex ()
#define YYDPRINTF(Args)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#define YYINITDEPTH   200
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
#define TRY_DECODING_TYPE(name, mask)

Typedefs

typedef unsigned char yytype_uint8
typedef short int yytype_int8
typedef unsigned short int yytype_uint16
typedef short int yytype_int16

Enumerations

enum  yytokentype {
  STRING = 258, ID = 259, NUM = 260, LBRACK = 261,
  RBRACK = 262, ACCELERATOR = 263, AREALIGHTSOURCE = 264, ATTRIBUTEBEGIN = 265,
  ATTRIBUTEEND = 266, CAMERA = 267, CONCATTRANSFORM = 268, COORDINATESYSTEM = 269,
  COORDSYSTRANSFORM = 270, FILM = 271, IDENTITY = 272, LIGHTSOURCE = 273,
  LOOKAT = 274, MATERIAL = 275, MAKENAMEDMATERIAL = 276, NAMEDMATERIAL = 277,
  OBJECTBEGIN = 278, OBJECTEND = 279, OBJECTINSTANCE = 280, PIXELFILTER = 281,
  REVERSEORIENTATION = 282, ROTATE = 283, SAMPLER = 284, SCALE = 285,
  SEARCHPATH = 286, PORTALSHAPE = 287, SHAPE = 288, SURFACEINTEGRATOR = 289,
  TEXTURE = 290, TRANSFORMBEGIN = 291, TRANSFORMEND = 292, TRANSFORM = 293,
  TRANSLATE = 294, VOLUME = 295, VOLUMEINTEGRATOR = 296, WORLDBEGIN = 297,
  WORLDEND = 298, HIGH_PRECEDENCE = 299
}
enum  {
  PARAM_TYPE_INT, PARAM_TYPE_BOOL, PARAM_TYPE_FLOAT, PARAM_TYPE_POINT,
  PARAM_TYPE_VECTOR, PARAM_TYPE_NORMAL, PARAM_TYPE_COLOR, PARAM_TYPE_STRING,
  PARAM_TYPE_TEXTURE
}

Functions

int yylex (void)
void yyerror (const char *str)
void AddArrayElement (void *elem)
ParamArrayArrayDup (ParamArray *ra)
void ArrayFree (ParamArray *ra)
void FreeArgs ()
static bool VerifyArrayLength (ParamArray *arr, int required, const char *command)
static void InitParamSet (ParamSet &ps, int count, const char **tokens, void **args, int *sizes, bool *texture_helper)
static bool lookupType (const char *token, int *type, string &name)
static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg
int yyparse ()

Variables

int line_num = 0
string current_file
int cur_paramlist_allocated = 0
int cur_paramlist_size = 0
const char ** cur_paramlist_tokens = NULL
void ** cur_paramlist_args = NULL
int * cur_paramlist_sizes = NULL
bool * cur_paramlist_texture_helper = NULL
ParamArraycur_array = NULL
bool array_is_single_string = false
static const yytype_uint8 yytranslate []
static const yytype_uint16 yytoknum []
static const yytype_uint8 yyr1 []
static const yytype_uint8 yyr2 []
static const yytype_uint8 yydefact []
static const yytype_int8 yydefgoto []
static const yytype_int8 yypact []
static const yytype_int8 yypgoto []
static const yytype_int16 yytable []
static const yytype_uint8 yycheck []
static const yytype_uint8 yystos []
int yytype
YYSTYPEyyvaluep
int yychar
YYSTYPE yylval
int yynerrs


Define Documentation

#define ACCELERATOR   263

Definition at line 119 of file luxparse.cpp.

#define AREALIGHTSOURCE   264

Definition at line 120 of file luxparse.cpp.

#define ATTRIBUTEBEGIN   265

Definition at line 121 of file luxparse.cpp.

#define ATTRIBUTEEND   266

Definition at line 122 of file luxparse.cpp.

#define CAMERA   267

Definition at line 123 of file luxparse.cpp.

#define CONCATTRANSFORM   268

Definition at line 124 of file luxparse.cpp.

#define COORDINATESYSTEM   269

Definition at line 125 of file luxparse.cpp.

#define COORDSYSTRANSFORM   270

Definition at line 126 of file luxparse.cpp.

#define CPA   cur_paramlist_args

Definition at line 208 of file luxparse.cpp.

Referenced by yyparse().

#define CPS   cur_paramlist_size

Definition at line 206 of file luxparse.cpp.

Referenced by yyparse().

#define CPSZ   cur_paramlist_sizes

Definition at line 210 of file luxparse.cpp.

Referenced by yyparse().

#define CPT   cur_paramlist_tokens

Definition at line 207 of file luxparse.cpp.

Referenced by yyparse().

#define CPTH   cur_paramlist_texture_helper

Definition at line 209 of file luxparse.cpp.

Referenced by yyparse().

#define FILM   271

Definition at line 127 of file luxparse.cpp.

#define HIGH_PRECEDENCE   299

Definition at line 155 of file luxparse.cpp.

#define ID   259

Definition at line 115 of file luxparse.cpp.

#define IDENTITY   272

Definition at line 128 of file luxparse.cpp.

#define LBRACK   261

Definition at line 117 of file luxparse.cpp.

#define LIGHTSOURCE   273

Definition at line 129 of file luxparse.cpp.

#define LOOKAT   274

Definition at line 130 of file luxparse.cpp.

#define MAKENAMEDMATERIAL   276

Definition at line 132 of file luxparse.cpp.

#define MATERIAL   275

Definition at line 131 of file luxparse.cpp.

#define NA (  )     ((float *) r->array)

Definition at line 222 of file luxparse.cpp.

#define NAMEDMATERIAL   277

Definition at line 133 of file luxparse.cpp.

#define NUM   260

Definition at line 116 of file luxparse.cpp.

#define OBJECTBEGIN   278

Definition at line 134 of file luxparse.cpp.

#define OBJECTEND   279

Definition at line 135 of file luxparse.cpp.

#define OBJECTINSTANCE   280

Definition at line 136 of file luxparse.cpp.

#define PIXELFILTER   281

Definition at line 137 of file luxparse.cpp.

#define PORTALSHAPE   287

Definition at line 143 of file luxparse.cpp.

#define RBRACK   262

Definition at line 118 of file luxparse.cpp.

#define REVERSEORIENTATION   282

Definition at line 138 of file luxparse.cpp.

#define ROTATE   283

Definition at line 139 of file luxparse.cpp.

#define SA (  )     ((const char **) r->array)

Definition at line 223 of file luxparse.cpp.

#define SAMPLER   284

Definition at line 140 of file luxparse.cpp.

#define SCALE   285

Definition at line 141 of file luxparse.cpp.

#define SEARCHPATH   286

Definition at line 142 of file luxparse.cpp.

#define SHAPE   288

Definition at line 144 of file luxparse.cpp.

#define STRING   258

Definition at line 114 of file luxparse.cpp.

#define SURFACEINTEGRATOR   289

Definition at line 145 of file luxparse.cpp.

#define TEXTURE   290

Definition at line 146 of file luxparse.cpp.

#define TRANSFORM   293

Definition at line 149 of file luxparse.cpp.

#define TRANSFORMBEGIN   291

Definition at line 147 of file luxparse.cpp.

#define TRANSFORMEND   292

Definition at line 148 of file luxparse.cpp.

#define TRANSLATE   294

Definition at line 150 of file luxparse.cpp.

#define TRY_DECODING_TYPE ( name,
mask   ) 

Value:

if (strncmp(name, strp, strlen(name)) == 0) { \
                        *type = mask; strp += strlen(name); \
                }

Referenced by lookupType().

#define VOLUME   295

Definition at line 151 of file luxparse.cpp.

#define VOLUMEINTEGRATOR   296

Definition at line 152 of file luxparse.cpp.

#define WORLDBEGIN   297

Definition at line 153 of file luxparse.cpp.

#define WORLDEND   298

Definition at line 154 of file luxparse.cpp.

#define YY_ ( msgid   )     msgid

Definition at line 389 of file luxparse.cpp.

Referenced by yyparse().

#define YY_LOCATION_PRINT ( File,
Loc   )     ((void) 0)

Definition at line 905 of file luxparse.cpp.

#define YY_REDUCE_PRINT ( Rule   ) 

Definition at line 1075 of file luxparse.cpp.

Referenced by yyparse().

#define YY_STACK_PRINT ( Bottom,
Top   ) 

Definition at line 1074 of file luxparse.cpp.

Referenced by yyparse().

#define YY_SYMBOL_PRINT ( Title,
Type,
Value,
Location   ) 

Definition at line 1073 of file luxparse.cpp.

Referenced by yyparse().

#define YYABORT   goto yyabortlab

Definition at line 834 of file luxparse.cpp.

Referenced by yyparse().

#define YYACCEPT   goto yyacceptlab

Definition at line 833 of file luxparse.cpp.

Referenced by yyparse().

#define YYBACKUP ( Token,
Value   ) 

Value:

do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yytoken = YYTRANSLATE (yychar);                           \
      YYPOPSTACK (1);                                           \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;                                                  \
    }                                                           \
while (YYID (0))

Definition at line 846 of file luxparse.cpp.

#define YYBISON   1

Definition at line 47 of file luxparse.cpp.

#define YYBISON_VERSION   "2.3"

Definition at line 50 of file luxparse.cpp.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 829 of file luxparse.cpp.

#define YYCOPY ( To,
From,
Count   ) 

Value:

do                                      \
        {                                       \
          YYSIZE_T yyi;                         \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
      while (YYID (0))

Definition at line 515 of file luxparse.cpp.

#define YYDEBUG   0

Definition at line 294 of file luxparse.cpp.

#define YYDPRINTF ( Args   ) 

Definition at line 1072 of file luxparse.cpp.

Referenced by yyparse().

#define YYEMPTY   (-2)

Definition at line 830 of file luxparse.cpp.

Referenced by yyparse().

#define YYEOF   0

Definition at line 831 of file luxparse.cpp.

Referenced by yyparse().

#define YYERRCODE   256

Definition at line 865 of file luxparse.cpp.

#define yyerrok   (yyerrstatus = 0)

Definition at line 828 of file luxparse.cpp.

#define YYERROR   goto yyerrorlab

Definition at line 835 of file luxparse.cpp.

#define YYERROR_VERBOSE   0

Definition at line 302 of file luxparse.cpp.

#define YYFAIL   goto yyerrlab

Definition at line 842 of file luxparse.cpp.

#define YYFINAL   71

Definition at line 545 of file luxparse.cpp.

Referenced by yyparse().

#define YYFREE   free

Definition at line 478 of file luxparse.cpp.

#define YYID (  )     (n)

Definition at line 402 of file luxparse.cpp.

Referenced by yyparse().

#define YYINITDEPTH   200

Definition at line 1081 of file luxparse.cpp.

Referenced by yyparse().

#define YYLAST   113

Definition at line 547 of file luxparse.cpp.

Referenced by yyparse().

#define YYLEX   yylex ()

Definition at line 915 of file luxparse.cpp.

Referenced by yyparse().

#define YYLLOC_DEFAULT ( Current,
Rhs,
 ) 

Value:

do                                                                      \
      if (YYID (N))                                                    \
        {                                                               \
          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
        }                                                               \
      else                                                              \
        {                                                               \
          (Current).first_line   = (Current).last_line   =              \
            YYRHSLOC (Rhs, 0).last_line;                                \
          (Current).first_column = (Current).last_column =              \
            YYRHSLOC (Rhs, 0).last_column;                              \
        }                                                               \
    while (YYID (0))

Definition at line 874 of file luxparse.cpp.

#define YYLSP_NEEDED   0

Definition at line 59 of file luxparse.cpp.

#define YYMALLOC   malloc

Definition at line 471 of file luxparse.cpp.

#define YYMAXDEPTH   100000000

Definition at line 178 of file luxparse.cpp.

Referenced by yyparse().

#define YYMAXUTOK   299

Definition at line 560 of file luxparse.cpp.

#define YYNNTS   22

Definition at line 552 of file luxparse.cpp.

#define YYNRULES   64

Definition at line 554 of file luxparse.cpp.

#define YYNSTATES   133

Definition at line 556 of file luxparse.cpp.

#define YYNTOKENS   45

Definition at line 550 of file luxparse.cpp.

Referenced by yyparse().

#define YYPACT_NINF   -120

Definition at line 744 of file luxparse.cpp.

Referenced by yyparse().

#define YYPOPSTACK (  )     (yyvsp -= (N), yyssp -= (N))

Referenced by yyparse().

#define YYPRINT ( file,
type,
value   ) 

Value:

{ \
        if ((type) == ID || (type) == STRING) \
                fprintf ((file), " %s", (value).string); \
        else if ((type) == NUM) \
                fprintf ((file), " %f", (value).num); \
}

Definition at line 283 of file luxparse.cpp.

#define YYPURE   0

Definition at line 56 of file luxparse.cpp.

 
#define YYRECOVERING (  )     (!!yyerrstatus)

Definition at line 844 of file luxparse.cpp.

#define YYRHSLOC ( Rhs,
 )     ((Rhs)[K])

Definition at line 872 of file luxparse.cpp.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 379 of file luxparse.cpp.

#define YYSIZE_T   unsigned int

Definition at line 375 of file luxparse.cpp.

Referenced by yyparse().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 53 of file luxparse.cpp.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 457 of file luxparse.cpp.

Referenced by yyparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 460 of file luxparse.cpp.

Referenced by yyparse().

#define YYSTACK_BYTES (  ) 

Value:

((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

Definition at line 504 of file luxparse.cpp.

Referenced by yyparse().

#define YYSTACK_FREE   YYFREE

Definition at line 458 of file luxparse.cpp.

Referenced by yyparse().

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 500 of file luxparse.cpp.

#define YYSTACK_RELOCATE ( Stack   ) 

Value:

do                                                                      \
      {                                                                 \
        YYSIZE_T yynewbytes;                                            \
        YYCOPY (&yyptr->Stack, Stack, yysize);                          \
        Stack = &yyptr->Stack;                                          \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
    while (YYID (0))

Definition at line 531 of file luxparse.cpp.

Referenced by yyparse().

#define yystype   YYSTYPE

Definition at line 321 of file luxparse.cpp.

#define YYSTYPE_IS_DECLARED   1

Definition at line 322 of file luxparse.cpp.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 323 of file luxparse.cpp.

#define YYTABLE_NINF   -6

Definition at line 775 of file luxparse.cpp.

Referenced by yyparse().

#define YYTERROR   1

Definition at line 864 of file luxparse.cpp.

Referenced by yyparse().

#define YYTOKEN_TABLE   0

Definition at line 307 of file luxparse.cpp.

#define YYTRANSLATE ( YYX   )     ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 562 of file luxparse.cpp.

Referenced by yyparse().

#define YYUNDEFTOK   2

Definition at line 559 of file luxparse.cpp.

#define YYUSE (  )     ((void) (e))

Definition at line 395 of file luxparse.cpp.


Typedef Documentation

typedef short int yytype_int16

Definition at line 362 of file luxparse.cpp.

typedef short int yytype_int8

Definition at line 350 of file luxparse.cpp.

typedef unsigned short int yytype_uint16

Definition at line 356 of file luxparse.cpp.

typedef unsigned char yytype_uint8

Definition at line 341 of file luxparse.cpp.


Enumeration Type Documentation

anonymous enum

Enumerator:
PARAM_TYPE_INT 
PARAM_TYPE_BOOL 
PARAM_TYPE_FLOAT 
PARAM_TYPE_POINT 
PARAM_TYPE_VECTOR 
PARAM_TYPE_NORMAL 
PARAM_TYPE_COLOR 
PARAM_TYPE_STRING 
PARAM_TYPE_TEXTURE 

Definition at line 277 of file luxparse.cpp.

Enumerator:
STRING 
ID 
NUM 
LBRACK 
RBRACK 
ACCELERATOR 
AREALIGHTSOURCE 
ATTRIBUTEBEGIN 
ATTRIBUTEEND 
CAMERA 
CONCATTRANSFORM 
COORDINATESYSTEM 
COORDSYSTRANSFORM 
FILM 
IDENTITY 
LIGHTSOURCE 
LOOKAT 
MATERIAL 
MAKENAMEDMATERIAL 
NAMEDMATERIAL 
OBJECTBEGIN 
OBJECTEND 
OBJECTINSTANCE 
PIXELFILTER 
REVERSEORIENTATION 
ROTATE 
SAMPLER 
SCALE 
SEARCHPATH 
PORTALSHAPE 
SHAPE 
SURFACEINTEGRATOR 
TEXTURE 
TRANSFORMBEGIN 
TRANSFORMEND 
TRANSFORM 
TRANSLATE 
VOLUME 
VOLUMEINTEGRATOR 
WORLDBEGIN 
WORLDEND 
HIGH_PRECEDENCE 

Definition at line 68 of file luxparse.cpp.


Function Documentation

void AddArrayElement ( void *  elem  ) 

ParamArray* ArrayDup ( ParamArray ra  ) 

void ArrayFree ( ParamArray ra  ) 

Definition at line 248 of file luxparse.cpp.

References ParamArray::array.

Referenced by yyparse().

void FreeArgs (  ) 

Definition at line 254 of file luxparse.cpp.

References cur_paramlist_args, cur_paramlist_size, cur_paramlist_sizes, and cur_paramlist_tokens.

Referenced by yyparse().

static void InitParamSet ( ParamSet ps,
int  count,
const char **  tokens,
void **  args,
int *  sizes,
bool *  texture_helper 
) [static]

static bool lookupType ( const char *  token,
int *  type,
string &  name 
) [static]

static bool VerifyArrayLength ( ParamArray arr,
int  required,
const char *  command 
) [static]

Definition at line 267 of file luxparse.cpp.

References ParamArray::nelems.

Referenced by yyparse().

static void yydestruct ( yymsg  ,
yytype  ,
yyvaluep   
) const [static]

Referenced by yyparse().

void yyerror ( const char *  str  ) 

Definition at line 180 of file luxparse.cpp.

References LUX_SEVERE, LUX_SYNTAX, and luxError.

Referenced by yyparse().

int yylex ( void   ) 

int yyparse (  ) 


Variable Documentation

bool array_is_single_string = false

Definition at line 220 of file luxparse.cpp.

Referenced by yyparse().

Definition at line 219 of file luxparse.cpp.

Definition at line 199 of file luxparse.cpp.

Referenced by yyparse().

void** cur_paramlist_args = NULL

Definition at line 202 of file luxparse.cpp.

Referenced by FreeArgs(), and yyparse().

Definition at line 200 of file luxparse.cpp.

Referenced by FreeArgs(), and yyparse().

int* cur_paramlist_sizes = NULL

Definition at line 203 of file luxparse.cpp.

Referenced by FreeArgs(), and yyparse().

Definition at line 204 of file luxparse.cpp.

Referenced by yyparse().

const char** cur_paramlist_tokens = NULL

Definition at line 201 of file luxparse.cpp.

Referenced by FreeArgs(), and yyparse().

string current_file

Definition at line 176 of file luxparse.cpp.

Referenced by include_pop(), include_push(), and ParseFile().

int line_num = 0

Definition at line 175 of file luxparse.cpp.

int yychar

Definition at line 1352 of file luxparse.cpp.

const yytype_uint8 yycheck[] [static]

Initial value:

{
      31,   120,    41,    42,    77,   124,     5,     6,     3,     3,
      49,    50,     3,    52,    53,    54,     3,     3,    57,     3,
      59,     3,     5,    62,    63,    64,     3,   100,     3,     3,
      69,    70,     3,     3,     3,     7,     3,     5,     3,     5,
       3,     3,     3,     3,     0,     3,     5,   120,     3,     6,
      97,     5,     5,     5,     3,     5,     3,     5,    31,     5,
       5,     5,     3,     5,     3,    99,    97,   106,     8,     9,
      10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
      20,    21,    22,    23,    24,    25,    26,    27,    28,    29,
      30,    31,    32,    33,    34,    35,    36,    37,    38,    39,
      40,    41,    42,    43,     5,     5,     5,     5,     5,    38,
       5,     7,     5,     5
}

Definition at line 792 of file luxparse.cpp.

const yytype_uint8 yydefact[] [static]

Initial value:

{
       0,     0,     0,    31,    32,     0,     3,     0,     0,     0,
      38,     0,     0,     0,     0,     0,     0,    45,     0,     0,
      48,     0,     0,     0,     0,     0,     0,     0,     0,    57,
      58,     3,     0,     0,     0,    63,    64,     0,     2,    28,
      23,    23,    23,     5,    34,    15,    16,    35,    36,    23,
      23,     0,    23,    23,    23,    44,    46,    23,     0,    23,
       0,    52,    23,    23,    23,     0,     0,    59,     0,    23,
      23,     1,    27,    29,    25,    30,    33,     5,     0,    18,
      37,    39,     0,    41,    42,    43,    47,     0,    50,     0,
      54,    53,    55,     0,     0,    62,    61,     3,    22,    25,
       5,    20,    21,     0,     0,    51,    23,    60,     4,    26,
       6,     8,     9,     7,    24,    17,    19,     0,    49,    56,
       4,     0,    11,     0,     4,    13,    14,     0,    10,    12,
       0,     0,    40
}

Definition at line 716 of file luxparse.cpp.

const yytype_int8 yydefgoto[] [static]

Initial value:

{
      -1,    37,    43,   121,    78,   109,   110,   111,   112,   124,
     122,    44,    45,    46,   100,    79,    73,    74,    98,    99,
      38,    39
}

Definition at line 735 of file luxparse.cpp.

Definition at line 1362 of file luxparse.cpp.

Referenced by add_string_char().

int yynerrs

Definition at line 1365 of file luxparse.cpp.

const yytype_int8 yypact[] [static]

Initial value:

{
      60,     5,     6,  -120,  -120,     9,  -120,    13,    14,    16,
    -120,    18,    17,    23,    25,    26,    29,  -120,    30,    31,
    -120,    32,    33,    34,    35,    37,    38,    39,    40,  -120,
    -120,  -120,    41,    42,    45,  -120,  -120,    44,    60,  -120,
    -120,  -120,  -120,    43,  -120,  -120,  -120,  -120,  -120,  -120,
    -120,    46,  -120,  -120,  -120,  -120,  -120,  -120,    47,  -120,
      48,  -120,  -120,  -120,  -120,    51,    43,  -120,    50,  -120,
    -120,  -120,  -120,  -120,    53,  -120,  -120,  -120,    52,  -120,
    -120,  -120,    54,  -120,  -120,  -120,  -120,    55,  -120,    56,
    -120,  -120,  -120,    59,    58,  -120,  -120,  -120,  -120,    53,
      28,  -120,  -120,    99,   100,  -120,  -120,  -120,     1,  -120,
    -120,  -120,  -120,  -120,  -120,  -120,  -120,   101,  -120,  -120,
     102,    61,  -120,   103,   104,  -120,  -120,   105,  -120,  -120,
     107,   108,  -120
}

Definition at line 745 of file luxparse.cpp.

const yytype_int8 yypgoto[] [static]

Initial value:

{
    -120,  -120,   -31,  -120,  -120,  -120,  -120,  -120,  -120,  -120,
    -119,   -47,    27,  -120,  -120,   -73,   -39,  -120,   -34,  -120,
    -120,    71
}

Definition at line 764 of file luxparse.cpp.

const yytype_uint8 yyr1[] [static]

Initial value:

{
       0,    45,    46,    47,    48,    49,    50,    50,    51,    51,
      52,    53,    54,    54,    55,    56,    56,    57,    58,    59,
      59,    60,    61,    62,    63,    63,    64,    65,    65,    66,
      66,    66,    66,    66,    66,    66,    66,    66,    66,    66,
      66,    66,    66,    66,    66,    66,    66,    66,    66,    66,
      66,    66,    66,    66,    66,    66,    66,    66,    66,    66,
      66,    66,    66,    66,    66
}

Definition at line 690 of file luxparse.cpp.

const yytype_uint8 yyr2[] [static]

Initial value:

{
       0,     2,     1,     0,     0,     0,     1,     1,     1,     1,
       4,     2,     2,     1,     2,     1,     1,     4,     2,     2,
       1,     2,     2,     0,     2,     0,     2,     2,     1,     3,
       3,     1,     1,     3,     2,     2,     2,     3,     1,     3,
      10,     3,     3,     3,     2,     1,     2,     3,     1,     5,
       3,     4,     2,     3,     3,     3,     5,     1,     1,     2,
       4,     3,     3,     1,     1
}

Definition at line 702 of file luxparse.cpp.

const yytype_uint8 yystos[] [static]

Initial value:

{
       0,     8,     9,    10,    11,    12,    13,    14,    15,    16,
      17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
      27,    28,    29,    30,    31,    32,    33,    34,    35,    36,
      37,    38,    39,    40,    41,    42,    43,    46,    65,    66,
       3,     3,     3,    47,    56,    57,    58,     3,     3,     3,
       3,     5,     3,     3,     3,     3,     3,     3,     5,     3,
       5,     3,     3,     3,     3,     3,    47,    57,     5,     3,
       3,     0,    66,    61,    62,    61,    61,     6,    49,    60,
      61,    61,     5,    61,    61,    61,    61,     5,    61,     5,
      61,    61,    61,     3,     5,    61,    61,     3,    63,    64,
      59,    60,     5,     5,     5,     5,     3,     5,    47,    50,
      51,    52,    53,    56,    63,     7,    60,     5,     5,    61,
       6,    48,    55,     5,    54,    55,     3,     5,     7,    55,
       5,     5,     5
}

Definition at line 810 of file luxparse.cpp.

const yytype_int16 yytable[] [static]

Initial value:

{
      66,   125,    75,    76,   101,   129,    -5,   120,    40,    41,
      80,    81,    42,    83,    84,    85,    47,    48,    86,    49,
      88,    50,    51,    90,    91,    92,    52,   116,    53,    54,
      95,    96,    55,    56,    57,   115,    59,    58,    61,    60,
      62,    63,    64,    65,    71,    69,    68,   101,    70,    77,
     113,    82,    87,    89,    93,    94,    97,   102,    67,   103,
     104,   105,   106,   107,   126,   114,   108,   119,     1,     2,
       3,     4,     5,     6,     7,     8,     9,    10,    11,    12,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      23,    24,    25,    26,    27,    28,    29,    30,    31,    32,
      33,    34,    35,    36,   117,   118,   123,    -5,   127,    72,
     130,   128,   131,   132
}

Definition at line 776 of file luxparse.cpp.

const yytype_uint16 yytoknum[] [static]

Initial value:

{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299
}

Definition at line 679 of file luxparse.cpp.

const yytype_uint8 yytranslate[] [static]

Definition at line 566 of file luxparse.cpp.

int yytype

Definition at line 1321 of file luxparse.cpp.

Definition at line 1322 of file luxparse.cpp.


Generated on Mon May 18 07:14:52 2009 for lux by  doxygen 1.5.7.1