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>
Include dependency graph for luxparse.cpp:

Go to the source code of this file.

Classes

struct  ParamArray
union  yyalloc

Defines

#define YYBISON   1
#define YYBISON_VERSION   "2.4.1"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYPUSH   0
#define YYPULL   1
#define YYLSP_NEEDED   0
#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 YYTOKENTYPE
#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 MOTIONINSTANCE   281
#define LIGHTGROUP   282
#define PIXELFILTER   283
#define REVERSEORIENTATION   284
#define ROTATE   285
#define SAMPLER   286
#define SCALE   287
#define SEARCHPATH   288
#define PORTALSHAPE   289
#define SHAPE   290
#define SURFACEINTEGRATOR   291
#define TEXTURE   292
#define TRANSFORMBEGIN   293
#define TRANSFORMEND   294
#define TRANSFORM   295
#define TRANSLATE   296
#define VOLUME   297
#define VOLUMEINTEGRATOR   298
#define WORLDBEGIN   299
#define WORLDEND   300
#define HIGH_PRECEDENCE   301
#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_alloc, Stack)
#define YYFINAL   75
#define YYLAST   122
#define YYNTOKENS   47
#define YYNNTS   22
#define YYNRULES   66
#define YYNSTATES   141
#define YYUNDEFTOK   2
#define YYMAXUTOK   301
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -123
#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 struct ParamArray ParamArray
typedef unsigned char yytype_uint8
typedef short int yytype_int8
typedef unsigned short int yytype_uint16
typedef short int yytype_int16

Enumerations

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
}
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, MOTIONINSTANCE = 281,
  LIGHTGROUP = 282, PIXELFILTER = 283, REVERSEORIENTATION = 284, ROTATE = 285,
  SAMPLER = 286, SCALE = 287, SEARCHPATH = 288, PORTALSHAPE = 289,
  SHAPE = 290, SURFACEINTEGRATOR = 291, TEXTURE = 292, TRANSFORMBEGIN = 293,
  TRANSFORMEND = 294, TRANSFORM = 295, TRANSLATE = 296, VOLUME = 297,
  VOLUMEINTEGRATOR = 298, WORLDBEGIN = 299, WORLDEND = 300, HIGH_PRECEDENCE = 301
}

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
intcur_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_int16 yydefgoto []
static const yytype_int8 yypact []
static const yytype_int8 yypgoto []
static const yytype_int16 yytable []
static const yytype_int16 yycheck []
static const yytype_uint8 yystos []
int yytype
YYSTYPE * yyvaluep
int yychar
YYSTYPE yylval
int yynerrs

Define Documentation

#define ACCELERATOR   263

Definition at line 287 of file luxparse.cpp.

#define AREALIGHTSOURCE   264

Definition at line 288 of file luxparse.cpp.

#define ATTRIBUTEBEGIN   265

Definition at line 289 of file luxparse.cpp.

#define ATTRIBUTEEND   266

Definition at line 290 of file luxparse.cpp.

#define CAMERA   267

Definition at line 291 of file luxparse.cpp.

#define CONCATTRANSFORM   268

Definition at line 292 of file luxparse.cpp.

#define COORDINATESYSTEM   269

Definition at line 293 of file luxparse.cpp.

#define COORDSYSTRANSFORM   270

Definition at line 294 of file luxparse.cpp.

#define CPA   cur_paramlist_args

Definition at line 123 of file luxparse.cpp.

Referenced by yyparse().

#define CPS   cur_paramlist_size

Definition at line 121 of file luxparse.cpp.

Referenced by yyparse().

#define CPSZ   cur_paramlist_sizes

Definition at line 125 of file luxparse.cpp.

Referenced by yyparse().

#define CPT   cur_paramlist_tokens

Definition at line 122 of file luxparse.cpp.

Referenced by yyparse().

#define CPTH   cur_paramlist_texture_helper

Definition at line 124 of file luxparse.cpp.

Referenced by yyparse().

#define FILM   271

Definition at line 295 of file luxparse.cpp.

#define HIGH_PRECEDENCE   301

Definition at line 325 of file luxparse.cpp.

#define ID   259

Definition at line 283 of file luxparse.cpp.

#define IDENTITY   272

Definition at line 296 of file luxparse.cpp.

#define LBRACK   261

Definition at line 285 of file luxparse.cpp.

#define LIGHTGROUP   282

Definition at line 306 of file luxparse.cpp.

#define LIGHTSOURCE   273

Definition at line 297 of file luxparse.cpp.

#define LOOKAT   274

Definition at line 298 of file luxparse.cpp.

#define MAKENAMEDMATERIAL   276

Definition at line 300 of file luxparse.cpp.

#define MATERIAL   275

Definition at line 299 of file luxparse.cpp.

#define MOTIONINSTANCE   281

Definition at line 305 of file luxparse.cpp.

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

Definition at line 137 of file luxparse.cpp.

#define NAMEDMATERIAL   277

Definition at line 301 of file luxparse.cpp.

#define NUM   260

Definition at line 284 of file luxparse.cpp.

#define OBJECTBEGIN   278

Definition at line 302 of file luxparse.cpp.

#define OBJECTEND   279

Definition at line 303 of file luxparse.cpp.

#define OBJECTINSTANCE   280

Definition at line 304 of file luxparse.cpp.

#define PIXELFILTER   283

Definition at line 307 of file luxparse.cpp.

#define PORTALSHAPE   289

Definition at line 313 of file luxparse.cpp.

#define RBRACK   262

Definition at line 286 of file luxparse.cpp.

#define REVERSEORIENTATION   284

Definition at line 308 of file luxparse.cpp.

#define ROTATE   285

Definition at line 309 of file luxparse.cpp.

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

Definition at line 138 of file luxparse.cpp.

#define SAMPLER   286

Definition at line 310 of file luxparse.cpp.

#define SCALE   287

Definition at line 311 of file luxparse.cpp.

#define SEARCHPATH   288

Definition at line 312 of file luxparse.cpp.

#define SHAPE   290

Definition at line 314 of file luxparse.cpp.

#define STRING   258

Definition at line 282 of file luxparse.cpp.

#define SURFACEINTEGRATOR   291

Definition at line 315 of file luxparse.cpp.

#define TEXTURE   292

Definition at line 316 of file luxparse.cpp.

#define TRANSFORM   295

Definition at line 319 of file luxparse.cpp.

#define TRANSFORMBEGIN   293

Definition at line 317 of file luxparse.cpp.

#define TRANSFORMEND   294

Definition at line 318 of file luxparse.cpp.

#define TRANSLATE   296

Definition at line 320 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   297

Definition at line 321 of file luxparse.cpp.

#define VOLUMEINTEGRATOR   298

Definition at line 322 of file luxparse.cpp.

#define WORLDBEGIN   299

Definition at line 323 of file luxparse.cpp.

#define WORLDEND   300

Definition at line 324 of file luxparse.cpp.

#define YY_ ( msgid   )     msgid

Definition at line 413 of file luxparse.cpp.

Referenced by yyparse().

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

Definition at line 936 of file luxparse.cpp.

#define YY_REDUCE_PRINT ( Rule   ) 

Definition at line 1109 of file luxparse.cpp.

Referenced by yyparse().

#define YY_STACK_PRINT ( Bottom,
Top   ) 

Definition at line 1108 of file luxparse.cpp.

Referenced by yyparse().

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

Definition at line 1107 of file luxparse.cpp.

Referenced by yyparse().

#define YYABORT   goto yyabortlab

Definition at line 865 of file luxparse.cpp.

Referenced by yyparse().

#define YYACCEPT   goto yyacceptlab

Definition at line 864 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 877 of file luxparse.cpp.

#define YYBISON   1

Definition at line 46 of file luxparse.cpp.

#define YYBISON_VERSION   "2.4.1"

Definition at line 49 of file luxparse.cpp.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 860 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 539 of file luxparse.cpp.

#define YYDEBUG   0

Definition at line 212 of file luxparse.cpp.

#define YYDPRINTF ( Args   ) 

Definition at line 1106 of file luxparse.cpp.

Referenced by yyparse().

#define YYEMPTY   (-2)

Definition at line 861 of file luxparse.cpp.

Referenced by yyparse().

#define YYEOF   0

Definition at line 862 of file luxparse.cpp.

Referenced by yyparse().

#define YYERRCODE   256

Definition at line 896 of file luxparse.cpp.

#define yyerrok   (yyerrstatus = 0)

Definition at line 859 of file luxparse.cpp.

#define YYERROR   goto yyerrorlab

Definition at line 866 of file luxparse.cpp.

#define YYERROR_VERBOSE   0

Definition at line 220 of file luxparse.cpp.

#define YYFAIL   goto yyerrlab

Definition at line 873 of file luxparse.cpp.

#define YYFINAL   75

Definition at line 569 of file luxparse.cpp.

Referenced by yyparse().

#define YYFREE   free

Definition at line 502 of file luxparse.cpp.

#define YYID (  )     (n)

Definition at line 426 of file luxparse.cpp.

Referenced by yyparse().

#define YYINITDEPTH   200

Definition at line 1115 of file luxparse.cpp.

Referenced by yyparse().

#define YYLAST   122

Definition at line 571 of file luxparse.cpp.

Referenced by yyparse().

#define YYLEX   yylex ()

Definition at line 946 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 905 of file luxparse.cpp.

#define YYLSP_NEEDED   0

Definition at line 64 of file luxparse.cpp.

#define YYMALLOC   malloc

Definition at line 495 of file luxparse.cpp.

#define YYMAXDEPTH   100000000

Definition at line 88 of file luxparse.cpp.

Referenced by yyparse().

#define YYMAXUTOK   301

Definition at line 584 of file luxparse.cpp.

#define YYNNTS   22

Definition at line 576 of file luxparse.cpp.

#define YYNRULES   66

Definition at line 578 of file luxparse.cpp.

#define YYNSTATES   141

Definition at line 580 of file luxparse.cpp.

#define YYNTOKENS   47

Definition at line 574 of file luxparse.cpp.

Referenced by yyparse().

#define YYPACT_NINF   -123

Definition at line 771 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 198 of file luxparse.cpp.

#define YYPULL   1

Definition at line 61 of file luxparse.cpp.

#define YYPURE   0

Definition at line 55 of file luxparse.cpp.

#define YYPUSH   0

Definition at line 58 of file luxparse.cpp.

 
#define YYRECOVERING (  )     (!!yyerrstatus)

Definition at line 875 of file luxparse.cpp.

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

Definition at line 903 of file luxparse.cpp.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 403 of file luxparse.cpp.

#define YYSIZE_T   unsigned int

Definition at line 399 of file luxparse.cpp.

Referenced by yyparse().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 52 of file luxparse.cpp.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 481 of file luxparse.cpp.

Referenced by yyparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 484 of file luxparse.cpp.

Referenced by yyparse().

#define YYSTACK_BYTES (  ) 
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

Definition at line 528 of file luxparse.cpp.

Referenced by yyparse().

#define YYSTACK_FREE   YYFREE

Definition at line 482 of file luxparse.cpp.

Referenced by yyparse().

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

Definition at line 524 of file luxparse.cpp.

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

Definition at line 555 of file luxparse.cpp.

Referenced by yyparse().

#define YYTABLE_NINF   -6

Definition at line 803 of file luxparse.cpp.

Referenced by yyparse().

#define YYTERROR   1

Definition at line 895 of file luxparse.cpp.

Referenced by yyparse().

#define YYTOKEN_TABLE   0

Definition at line 225 of file luxparse.cpp.

#define YYTOKENTYPE

Definition at line 231 of file luxparse.cpp.

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

Definition at line 586 of file luxparse.cpp.

Referenced by yyparse().

#define YYUNDEFTOK   2

Definition at line 583 of file luxparse.cpp.

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

Definition at line 419 of file luxparse.cpp.


Typedef Documentation

typedef struct ParamArray ParamArray
typedef short int yytype_int16

Definition at line 386 of file luxparse.cpp.

typedef short int yytype_int8

Definition at line 374 of file luxparse.cpp.

typedef unsigned short int yytype_uint16

Definition at line 380 of file luxparse.cpp.

typedef unsigned char yytype_uint8

Definition at line 365 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 192 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 
MOTIONINSTANCE 
LIGHTGROUP 
PIXELFILTER 
REVERSEORIENTATION 
ROTATE 
SAMPLER 
SCALE 
SEARCHPATH 
PORTALSHAPE 
SHAPE 
SURFACEINTEGRATOR 
TEXTURE 
TRANSFORMBEGIN 
TRANSFORMEND 
TRANSFORM 
TRANSLATE 
VOLUME 
VOLUMEINTEGRATOR 
WORLDBEGIN 
WORLDEND 
HIGH_PRECEDENCE 

Definition at line 234 of file luxparse.cpp.


Function Documentation

void AddArrayElement ( void *  elem  ) 
ParamArray* ArrayDup ( ParamArray ra  ) 
void ArrayFree ( ParamArray ra  ) 

Definition at line 163 of file luxparse.cpp.

References ParamArray::array.

Referenced by yyparse().

void FreeArgs (  ) 

Definition at line 169 of file luxparse.cpp.

References cur_paramlist_args, 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 182 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 90 of file luxparse.cpp.

References current_file, 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 135 of file luxparse.cpp.

Referenced by yyparse().

Definition at line 134 of file luxparse.cpp.

Definition at line 114 of file luxparse.cpp.

void** cur_paramlist_args = NULL

Definition at line 117 of file luxparse.cpp.

Referenced by FreeArgs(), and yyparse().

Definition at line 115 of file luxparse.cpp.

Definition at line 118 of file luxparse.cpp.

Definition at line 119 of file luxparse.cpp.

Referenced by yyparse().

const char** cur_paramlist_tokens = NULL

Definition at line 116 of file luxparse.cpp.

Referenced by FreeArgs(), and yyparse().

string current_file

Definition at line 86 of file luxparse.cpp.

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

Definition at line 85 of file luxparse.cpp.

Referenced by ParseFile().

Definition at line 1384 of file luxparse.cpp.

const yytype_int16 yycheck[] [static]
Initial value:
{
      43,    44,    33,    81,     5,     6,   128,     3,    51,    52,
     132,    54,    55,    56,     3,     3,     3,    60,    61,     3,
      63,     3,     3,    66,    67,    68,     5,     3,   106,     3,
      73,    74,     3,     3,     3,     3,     3,     3,   103,     3,
       5,     3,     5,     3,     3,     3,     3,     0,     3,     5,
     128,     3,     6,    33,     5,     5,     5,     5,     3,     5,
       3,     5,    40,     5,     5,     5,     5,     3,     5,     7,
     113,     5,   103,     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,    44,
      45,     3,     5,     7,     5,     5,     3,     5,    -1,     5,
       5,     5,   105
}

Definition at line 821 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,    46,     0,     0,
       0,     0,    50,     0,     0,     0,     0,     0,     0,     0,
       0,    59,    60,     3,     0,     0,     0,    65,    66,     0,
       2,    28,    23,    23,    23,     5,    34,    15,    16,    35,
      36,    23,    23,     0,    23,    23,    23,    45,    47,     0,
      23,    23,     0,    23,     0,    54,    23,    23,    23,     0,
       0,    61,     0,    23,    23,     1,    27,    29,    25,    30,
      33,     5,     0,    18,    37,    40,     0,    42,    43,    44,
       0,    39,    49,     0,    52,     0,    56,    55,    57,     0,
       0,    64,    63,     3,    22,    25,     5,    20,    21,     0,
       0,     0,    53,    23,    62,     4,    26,     6,     8,     9,
       7,    24,    17,    19,     0,    48,    51,    58,     4,     0,
      11,     0,     4,    13,    14,     0,    10,    12,     0,     0,
      41
}

Definition at line 742 of file luxparse.cpp.

const yytype_int16 yydefgoto[] [static]
Initial value:
{
      -1,    39,    45,   129,    82,   116,   117,   118,   119,   132,
     130,    46,    47,    48,   106,    83,    77,    78,   104,   105,
      40,    41
}

Definition at line 762 of file luxparse.cpp.

YYSTYPE yylval

Definition at line 1393 of file luxparse.cpp.

Referenced by add_string_char().

Definition at line 1396 of file luxparse.cpp.

const yytype_int8 yypact[] [static]
Initial value:
{
      65,     4,    11,  -123,  -123,    12,  -123,    13,    16,    18,
    -123,    19,    21,    24,    26,    29,    30,  -123,    31,    32,
      33,    34,  -123,    35,    36,    37,    38,    40,    41,    42,
      43,  -123,  -123,  -123,    44,    45,    48,  -123,  -123,    47,
      65,  -123,  -123,  -123,  -123,    46,  -123,  -123,  -123,  -123,
    -123,  -123,  -123,    49,  -123,  -123,  -123,  -123,  -123,    50,
    -123,  -123,    51,  -123,    52,  -123,  -123,  -123,  -123,    55,
      46,  -123,    54,  -123,  -123,  -123,  -123,  -123,    57,  -123,
    -123,  -123,    56,  -123,  -123,  -123,    58,  -123,  -123,  -123,
      59,  -123,  -123,    60,  -123,    61,  -123,  -123,  -123,    64,
      63,  -123,  -123,  -123,  -123,    57,    62,  -123,  -123,    66,
     108,   107,  -123,  -123,  -123,    -1,  -123,  -123,  -123,  -123,
    -123,  -123,  -123,  -123,   109,  -123,  -123,  -123,   110,   113,
    -123,   112,   106,  -123,  -123,   114,  -123,  -123,   115,   116,
    -123
}

Definition at line 772 of file luxparse.cpp.

const yytype_int8 yypgoto[] [static]
Initial value:
{
    -123,  -123,   -31,  -123,  -123,  -123,  -123,  -123,  -123,  -123,
    -122,   -65,    20,  -123,  -123,   -78,   -43,  -123,    17,  -123,
    -123,    22
}

Definition at line 792 of file luxparse.cpp.

const yytype_uint8 yyr1[] [static]
Initial value:
{
       0,    47,    48,    49,    50,    51,    52,    52,    53,    53,
      54,    55,    56,    56,    57,    58,    58,    59,    60,    61,
      61,    62,    63,    64,    65,    65,    66,    67,    67,    68,
      68,    68,    68,    68,    68,    68,    68,    68,    68,    68,
      68,    68,    68,    68,    68,    68,    68,    68,    68,    68,
      68,    68,    68,    68,    68,    68,    68,    68,    68,    68,
      68,    68,    68,    68,    68,    68,    68
}

Definition at line 716 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,
       3,    10,     3,     3,     3,     2,     1,     2,     5,     3,
       1,     5,     3,     4,     2,     3,     3,     3,     5,     1,
       1,     2,     4,     3,     3,     1,     1
}

Definition at line 728 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,    44,    45,    48,
      67,    68,     3,     3,     3,    49,    58,    59,    60,     3,
       3,     3,     3,     5,     3,     3,     3,     3,     3,     3,
       3,     3,     5,     3,     5,     3,     3,     3,     3,     3,
      49,    59,     5,     3,     3,     0,    68,    63,    64,    63,
      63,     6,    51,    62,    63,    63,     5,    63,    63,    63,
       5,    63,    63,     5,    63,     5,    63,    63,    63,     3,
       5,    63,    63,     3,    65,    66,    61,    62,     5,     5,
       5,     5,     5,     3,     5,    49,    52,    53,    54,    55,
      58,    65,     7,    62,     5,     3,     5,    63,     6,    50,
      57,     5,    56,    57,     3,     5,     7,    57,     5,     5,
       5
}

Definition at line 840 of file luxparse.cpp.

const yytype_int16 yytable[] [static]
Initial value:
{
      79,    80,    70,   107,    -5,   128,   133,    42,    84,    85,
     137,    87,    88,    89,    43,    44,    49,    91,    92,    50,
      94,    51,    52,    96,    97,    98,    53,    54,   123,    55,
     101,   102,    56,    57,    58,    59,    60,    61,   120,    63,
      62,    65,    64,    66,    67,    68,    69,    75,    73,    72,
     107,    74,    81,    71,    86,    90,    93,    95,    99,   100,
     103,   108,    76,   109,   110,   111,   112,   113,   114,   122,
     127,   124,   115,     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,    37,
      38,   125,   126,   136,   131,    -5,   134,   135,     0,   138,
     139,   140,   121
}

Definition at line 804 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,   300,   301
}

Definition at line 705 of file luxparse.cpp.

const yytype_uint8 yytranslate[] [static]

Definition at line 590 of file luxparse.cpp.

Definition at line 1355 of file luxparse.cpp.

YYSTYPE* yyvaluep

Definition at line 1356 of file luxparse.cpp.

Generated by  doxygen 1.6.2-20100208