#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.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 | 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 | YYSTYPE_IS_TRIVIAL 1 |
| #define | yystype YYSTYPE |
| #define | YYSTYPE_IS_DECLARED 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_alloc, 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 | { 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, 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 } |
Functions | |
| int | yylex (void) |
| void | yyerror (const char *str) |
| void | AddArrayElement (void *elem) |
| ParamArray * | ArrayDup (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 |
| ParamArray * | cur_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 |
| YYSTYPE * | yyvaluep |
| int | yychar |
| YYSTYPE | yylval |
| int | yynerrs |
| #define ACCELERATOR 263 |
Definition at line 280 of file luxparse.cpp.
| #define AREALIGHTSOURCE 264 |
Definition at line 281 of file luxparse.cpp.
| #define ATTRIBUTEBEGIN 265 |
Definition at line 282 of file luxparse.cpp.
| #define ATTRIBUTEEND 266 |
Definition at line 283 of file luxparse.cpp.
| #define CAMERA 267 |
Definition at line 284 of file luxparse.cpp.
| #define CONCATTRANSFORM 268 |
Definition at line 285 of file luxparse.cpp.
| #define COORDINATESYSTEM 269 |
Definition at line 286 of file luxparse.cpp.
| #define COORDSYSTRANSFORM 270 |
Definition at line 287 of file luxparse.cpp.
| #define CPA cur_paramlist_args |
| #define CPS cur_paramlist_size |
| #define CPSZ cur_paramlist_sizes |
| #define CPT cur_paramlist_tokens |
| #define CPTH cur_paramlist_texture_helper |
| #define FILM 271 |
Definition at line 288 of file luxparse.cpp.
| #define HIGH_PRECEDENCE 299 |
Definition at line 316 of file luxparse.cpp.
| #define ID 259 |
Definition at line 276 of file luxparse.cpp.
| #define IDENTITY 272 |
Definition at line 289 of file luxparse.cpp.
| #define LBRACK 261 |
Definition at line 278 of file luxparse.cpp.
| #define LIGHTSOURCE 273 |
Definition at line 290 of file luxparse.cpp.
| #define LOOKAT 274 |
Definition at line 291 of file luxparse.cpp.
| #define MAKENAMEDMATERIAL 276 |
Definition at line 293 of file luxparse.cpp.
| #define MATERIAL 275 |
Definition at line 292 of file luxparse.cpp.
| #define NA | ( | r | ) | ((float *) r->array) |
Definition at line 132 of file luxparse.cpp.
| #define NAMEDMATERIAL 277 |
Definition at line 294 of file luxparse.cpp.
| #define NUM 260 |
Definition at line 277 of file luxparse.cpp.
| #define OBJECTBEGIN 278 |
Definition at line 295 of file luxparse.cpp.
| #define OBJECTEND 279 |
Definition at line 296 of file luxparse.cpp.
| #define OBJECTINSTANCE 280 |
Definition at line 297 of file luxparse.cpp.
| #define PIXELFILTER 281 |
Definition at line 298 of file luxparse.cpp.
| #define PORTALSHAPE 287 |
Definition at line 304 of file luxparse.cpp.
| #define RBRACK 262 |
Definition at line 279 of file luxparse.cpp.
| #define REVERSEORIENTATION 282 |
Definition at line 299 of file luxparse.cpp.
| #define ROTATE 283 |
Definition at line 300 of file luxparse.cpp.
| #define SA | ( | r | ) | ((const char **) r->array) |
Definition at line 133 of file luxparse.cpp.
| #define SAMPLER 284 |
Definition at line 301 of file luxparse.cpp.
| #define SCALE 285 |
Definition at line 302 of file luxparse.cpp.
| #define SEARCHPATH 286 |
Definition at line 303 of file luxparse.cpp.
| #define SHAPE 288 |
Definition at line 305 of file luxparse.cpp.
| #define STRING 258 |
Definition at line 275 of file luxparse.cpp.
| #define SURFACEINTEGRATOR 289 |
Definition at line 306 of file luxparse.cpp.
| #define TEXTURE 290 |
Definition at line 307 of file luxparse.cpp.
| #define TRANSFORM 293 |
Definition at line 310 of file luxparse.cpp.
| #define TRANSFORMBEGIN 291 |
Definition at line 308 of file luxparse.cpp.
| #define TRANSFORMEND 292 |
Definition at line 309 of file luxparse.cpp.
| #define TRANSLATE 294 |
Definition at line 311 of file luxparse.cpp.
| #define TRY_DECODING_TYPE | ( | name, | |||
| mask | ) |
Value:
Referenced by lookupType().
| #define VOLUME 295 |
Definition at line 312 of file luxparse.cpp.
| #define VOLUMEINTEGRATOR 296 |
Definition at line 313 of file luxparse.cpp.
| #define WORLDBEGIN 297 |
Definition at line 314 of file luxparse.cpp.
| #define WORLDEND 298 |
Definition at line 315 of file luxparse.cpp.
| #define YY_ | ( | msgid | ) | msgid |
| #define YY_LOCATION_PRINT | ( | File, | |||
| Loc | ) | ((void) 0) |
Definition at line 920 of file luxparse.cpp.
| #define YY_REDUCE_PRINT | ( | Rule | ) |
| #define YY_STACK_PRINT | ( | Bottom, | |||
| Top | ) |
| #define YY_SYMBOL_PRINT | ( | Title, | |||
| Type, | |||||
| Value, | |||||
| Location | ) |
| #define YYABORT goto yyabortlab |
| #define YYACCEPT goto yyacceptlab |
| #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 861 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 844 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 530 of file luxparse.cpp.
| #define YYDEBUG 0 |
Definition at line 207 of file luxparse.cpp.
| #define YYDPRINTF | ( | Args | ) |
| #define YYEMPTY (-2) |
| #define YYEOF 0 |
| #define YYERRCODE 256 |
Definition at line 880 of file luxparse.cpp.
| #define yyerrok (yyerrstatus = 0) |
Definition at line 843 of file luxparse.cpp.
| #define YYERROR goto yyerrorlab |
Definition at line 850 of file luxparse.cpp.
| #define YYERROR_VERBOSE 0 |
Definition at line 215 of file luxparse.cpp.
| #define YYFAIL goto yyerrlab |
Definition at line 857 of file luxparse.cpp.
| #define YYFINAL 71 |
| #define YYFREE free |
Definition at line 493 of file luxparse.cpp.
| #define YYID | ( | n | ) | (n) |
| #define YYINITDEPTH 200 |
| #define YYLAST 113 |
| #define YYLEX yylex () |
| #define YYLLOC_DEFAULT | ( | Current, | |||
| Rhs, | |||||
| N | ) |
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 889 of file luxparse.cpp.
| #define YYLSP_NEEDED 0 |
Definition at line 64 of file luxparse.cpp.
| #define YYMALLOC malloc |
Definition at line 486 of file luxparse.cpp.
| #define YYMAXDEPTH 100000000 |
| #define YYMAXUTOK 299 |
Definition at line 575 of file luxparse.cpp.
| #define YYNNTS 22 |
Definition at line 567 of file luxparse.cpp.
| #define YYNRULES 64 |
Definition at line 569 of file luxparse.cpp.
| #define YYNSTATES 133 |
Definition at line 571 of file luxparse.cpp.
| #define YYNTOKENS 45 |
| #define YYPACT_NINF -120 |
| #define YYPOPSTACK | ( | N | ) | (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 193 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 859 of file luxparse.cpp.
| #define YYRHSLOC | ( | Rhs, | |||
| K | ) | ((Rhs)[K]) |
Definition at line 887 of file luxparse.cpp.
| #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 394 of file luxparse.cpp.
| #define YYSIZE_T unsigned int |
| #define YYSKELETON_NAME "yacc.c" |
Definition at line 52 of file luxparse.cpp.
| #define YYSTACK_ALLOC YYMALLOC |
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define YYSTACK_BYTES | ( | N | ) |
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM)
Definition at line 519 of file luxparse.cpp.
Referenced by yyparse().
| #define YYSTACK_FREE YYFREE |
| #define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 515 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 546 of file luxparse.cpp.
Referenced by yyparse().
| #define yystype YYSTYPE |
Definition at line 338 of file luxparse.cpp.
| #define YYSTYPE_IS_DECLARED 1 |
Definition at line 339 of file luxparse.cpp.
| #define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 337 of file luxparse.cpp.
| #define YYTABLE_NINF -6 |
| #define YYTERROR 1 |
| #define YYTOKEN_TABLE 0 |
Definition at line 220 of file luxparse.cpp.
| #define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define YYUNDEFTOK 2 |
Definition at line 574 of file luxparse.cpp.
| #define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 410 of file luxparse.cpp.
| typedef short int yytype_int16 |
Definition at line 377 of file luxparse.cpp.
| typedef short int yytype_int8 |
Definition at line 365 of file luxparse.cpp.
| typedef unsigned short int yytype_uint16 |
Definition at line 371 of file luxparse.cpp.
| typedef unsigned char yytype_uint8 |
Definition at line 356 of file luxparse.cpp.
| anonymous 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 |
Definition at line 187 of file luxparse.cpp.
| enum yytokentype |
Definition at line 229 of file luxparse.cpp.
| void AddArrayElement | ( | void * | elem | ) |
Definition at line 135 of file luxparse.cpp.
References ParamArray::allocated, ParamArray::array, ParamArray::element_size, memcpy(), and ParamArray::nelems.
Referenced by yyparse().
| ParamArray* ArrayDup | ( | ParamArray * | ra | ) |
Definition at line 147 of file luxparse.cpp.
References ParamArray::allocated, ParamArray::array, ParamArray::element_size, memcpy(), and ParamArray::nelems.
Referenced by yyparse().
| void ArrayFree | ( | ParamArray * | ra | ) |
| void FreeArgs | ( | ) |
Definition at line 164 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] |
Definition at line 2496 of file luxparse.cpp.
References lux::ParamSet::AddBool(), lux::ParamSet::AddFloat(), lux::ParamSet::AddInt(), lux::ParamSet::AddNormal(), lux::ParamSet::AddPoint(), lux::ParamSet::AddSpectrum(), lux::ParamSet::AddString(), lux::ParamSet::AddTexture(), lux::ParamSet::AddVector(), lux::ParamSet::Clear(), COLOR_SAMPLES, lookupType(), LUX_ERROR, LUX_SYNTAX, LUX_WARNING, luxError, PARAM_TYPE_BOOL, PARAM_TYPE_COLOR, PARAM_TYPE_FLOAT, PARAM_TYPE_INT, PARAM_TYPE_NORMAL, PARAM_TYPE_POINT, PARAM_TYPE_STRING, PARAM_TYPE_TEXTURE, and PARAM_TYPE_VECTOR.
Referenced by yyparse().
| static bool lookupType | ( | const char * | token, | |
| int * | type, | |||
| string & | name | |||
| ) | [static] |
Definition at line 2583 of file luxparse.cpp.
References LUX_ERROR, LUX_SYNTAX, luxError, PARAM_TYPE_BOOL, PARAM_TYPE_COLOR, PARAM_TYPE_FLOAT, PARAM_TYPE_INT, PARAM_TYPE_NORMAL, PARAM_TYPE_POINT, PARAM_TYPE_STRING, PARAM_TYPE_TEXTURE, PARAM_TYPE_VECTOR, and TRY_DECODING_TYPE.
Referenced by InitParamSet().
| static bool VerifyArrayLength | ( | ParamArray * | arr, | |
| int | required, | |||
| const char * | command | |||
| ) | [static] |
Definition at line 177 of file luxparse.cpp.
References ParamArray::nelems.
Referenced by yyparse().
| void yyerror | ( | const char * | str | ) |
Definition at line 90 of file luxparse.cpp.
References LUX_SEVERE, LUX_SYNTAX, and luxError.
Referenced by yyparse().
| int yylex | ( | void | ) |
| int yyparse | ( | ) |
Definition at line 1405 of file luxparse.cpp.
References AddArrayElement(), ParamArray::allocated, array, ParamArray::array, array_is_single_string, ArrayDup(), ArrayFree(), CPA, CPS, CPSZ, CPT, CPTH, cur_paramlist_allocated, cur_paramlist_args, cur_paramlist_size, cur_paramlist_sizes, cur_paramlist_texture_helper, cur_paramlist_tokens, ParamArray::element_size, FreeArgs(), InitParamSet(), luxAccelerator(), luxAreaLightSource(), luxAttributeBegin(), luxAttributeEnd(), luxCamera(), luxConcatTransform(), luxCoordinateSystem(), luxCoordSysTransform(), luxFilm(), luxIdentity(), luxLightSource(), luxLookAt(), luxMakeNamedMaterial(), luxMaterial(), luxNamedMaterial(), luxObjectBegin(), luxObjectEnd(), luxObjectInstance(), luxPixelFilter(), luxPortalShape(), luxReverseOrientation(), luxRotate(), luxSampler(), luxScale(), luxShape(), luxSurfaceIntegrator(), luxTexture(), luxTransform(), luxTransformBegin(), luxTransformEnd(), luxTranslate(), luxVolume(), luxVolumeIntegrator(), luxWorldBegin(), luxWorldEnd(), memcpy(), nelems, ParamArray::nelems, YYSTYPE::num, YYSTYPE::ribarray, to_add, VerifyArrayLength(), YY_, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror(), YYFINAL, YYID, YYINITDEPTH, YYLAST, YYLEX, YYMAXDEPTH, YYNTOKENS, YYPACT_NINF, YYPOPSTACK, YYSIZE_T, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_ALLOC_MAXIMUM, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, YYTABLE_NINF, YYTERROR, YYTRANSLATE, and yyalloc::yyvs_alloc.
Referenced by ParseFile().
| bool array_is_single_string = false |
| ParamArray* cur_array = NULL |
Definition at line 129 of file luxparse.cpp.
| int cur_paramlist_allocated = 0 |
| void** cur_paramlist_args = NULL |
| int cur_paramlist_size = 0 |
| int* cur_paramlist_sizes = NULL |
| bool* cur_paramlist_texture_helper = NULL |
| const char** cur_paramlist_tokens = NULL |
| string current_file |
Definition at line 86 of file luxparse.cpp.
Referenced by include_pop(), include_push(), and ParseFile().
| int line_num = 0 |
Definition at line 85 of file luxparse.cpp.
| int yychar |
Definition at line 1368 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 807 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 731 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 750 of file luxparse.cpp.
| int yynerrs |
Definition at line 1380 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 760 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 779 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 705 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 717 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 825 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 791 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 694 of file luxparse.cpp.
const yytype_uint8 yytranslate[] [static] |
Definition at line 581 of file luxparse.cpp.
| int yytype |
Definition at line 1339 of file luxparse.cpp.
Definition at line 1340 of file luxparse.cpp.
1.5.9