#include <string>
#include <iostream>
#include <sstream>
#include "OSInstance.h"
#include "OSnLNode.h"
#include "OSErrorClass.h"
#include "OSParameters.h"
#include "OSiLParserData.h"
#include "OSBase64.h"
#include "OSMathUtil.h"
#include "OSConfig.h"
Include dependency graph for OSParseosil.tab.cpp:
Go to the source code of this file.
Classes | |
union | YYSTYPE |
struct | YYLTYPE |
union | yyalloc |
Defines | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.4.1" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 1 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | YYLSP_NEEDED 1 |
#define | yyparse osilparse |
#define | yylex osillex |
#define | yyerror osilerror |
#define | yylval osillval |
#define | yychar osilchar |
#define | yydebug osildebug |
#define | yynerrs osilnerrs |
#define | yylloc osillloc |
#define | ISWHITESPACE(char_) |
#define | ISDIGIT(_c) ((_c) >= '0' && (_c) <= '9') |
#define | GETATTRIBUTETEXT |
#define | GAIL printf("GAIL ANN HONDA\n") |
#define | ECHOCHECK |
#define | YYDEBUG 0 |
#define | YYERROR_VERBOSE 1 |
#define | YYTOKEN_TABLE 0 |
#define | QUOTE 258 |
#define | ATTRIBUTETEXT 259 |
#define | INTEGER 260 |
#define | DOUBLE 261 |
#define | OSILEND 262 |
#define | INSTANCEDATAEND 263 |
#define | INSTANCEDATASTARTEND 264 |
#define | VALUEATT 265 |
#define | NUMBEROFNONLINEAREXPRESSIONS 266 |
#define | IDXONEATT 267 |
#define | IDXTWOATT 268 |
#define | COEFATT 269 |
#define | IDATT 270 |
#define | TIMESSTART 271 |
#define | TIMESEND 272 |
#define | NUMBERSTART 273 |
#define | NUMBEREND 274 |
#define | NUMBEROFQTERMSATT 275 |
#define | IDXATT 276 |
#define | TYPEATT 277 |
#define | QTERMSTART 278 |
#define | QTERMEND 279 |
#define | QUADRATICCOEFFICIENTSSTART 280 |
#define | QUADRATICCOEFFICIENTSEND 281 |
#define | NONLINEAREXPRESSIONSSTART 282 |
#define | NONLINEAREXPRESSIONSEND 283 |
#define | NLSTART 284 |
#define | NLEND 285 |
#define | POWERSTART 286 |
#define | POWEREND 287 |
#define | PLUSSTART 288 |
#define | PLUSEND 289 |
#define | MINUSSTART 290 |
#define | MINUSEND 291 |
#define | DIVIDESTART 292 |
#define | DIVIDEEND 293 |
#define | LNSTART 294 |
#define | LNEND 295 |
#define | SQRTSTART 296 |
#define | SQRTEND 297 |
#define | SUMSTART 298 |
#define | SUMEND 299 |
#define | PRODUCTSTART 300 |
#define | PRODUCTEND 301 |
#define | ENDOFELEMENT 302 |
#define | EXPSTART 303 |
#define | EXPEND 304 |
#define | NEGATESTART 305 |
#define | NEGATEEND 306 |
#define | IFSTART 307 |
#define | IFEND 308 |
#define | SQUARESTART 309 |
#define | SQUAREEND 310 |
#define | COSSTART 311 |
#define | COSEND 312 |
#define | SINSTART 313 |
#define | SINEND 314 |
#define | GREATERTHAN 315 |
#define | VARIABLESTART 316 |
#define | VARIABLEEND 317 |
#define | ABSSTART 318 |
#define | ABSEND 319 |
#define | ERFSTART 320 |
#define | ERFEND 321 |
#define | MAXSTART 322 |
#define | MAXEND 323 |
#define | ALLDIFFSTART 324 |
#define | ALLDIFFEND 325 |
#define | MINSTART 326 |
#define | MINEND 327 |
#define | ESTART 328 |
#define | EEND 329 |
#define | PISTART 330 |
#define | PIEND 331 |
#define | TIMEDOMAINSTART 332 |
#define | TIMEDOMAINEND 333 |
#define | STAGESSTART 334 |
#define | STAGESEND 335 |
#define | STAGESTART 336 |
#define | STAGEEND 337 |
#define | NAMEATT 338 |
#define | NUMBEROFSTAGESATT 339 |
#define | HORIZONATT 340 |
#define | STARTATT 341 |
#define | VARIABLESSTART 342 |
#define | CONSTRAINTSSTART 343 |
#define | OBJECTIVESSTART 344 |
#define | VARIABLESEND 345 |
#define | CONSTRAINTSEND 346 |
#define | OBJECTIVESEND 347 |
#define | NUMBEROFVARIABLESATT 348 |
#define | NUMBEROFCONSTRAINTSATT 349 |
#define | NUMBEROFOBJECTIVESATT 350 |
#define | STARTIDXATT 351 |
#define | VARSTART 352 |
#define | VAREND 353 |
#define | CONSTART 354 |
#define | CONEND 355 |
#define | OBJSTART 356 |
#define | OBJEND 357 |
#define | INTERVALSTART 358 |
#define | INTERVALEND 359 |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | yystype YYSTYPE |
#define | YYSTYPE_IS_DECLARED 1 |
#define | yyltype YYLTYPE |
#define | YYLTYPE_IS_DECLARED 1 |
#define | YYLTYPE_IS_TRIVIAL 1 |
#define | scanner parserData->scanner |
#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 6 |
#define | YYLAST 403 |
#define | YYNTOKENS 105 |
#define | YYNNTS 148 |
#define | YYNRULES 232 |
#define | YYNSTATES 407 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 359 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -153 |
#define | YYTABLE_NINF -1 |
#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) |
#define | YYLEX yylex (&yylval, &yylloc, scanner) |
#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 | YYMAXDEPTH 10000 |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) |
Typedefs | |
typedef yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned char | yytype_uint8 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
Enumerations | |
enum | yytokentype { QUOTE = 258, ATTRIBUTETEXT = 259, INTEGER = 260, DOUBLE = 261, OSILEND = 262, INSTANCEDATAEND = 263, INSTANCEDATASTARTEND = 264, VALUEATT = 265, NUMBEROFNONLINEAREXPRESSIONS = 266, IDXONEATT = 267, IDXTWOATT = 268, COEFATT = 269, IDATT = 270, TIMESSTART = 271, TIMESEND = 272, NUMBERSTART = 273, NUMBEREND = 274, NUMBEROFQTERMSATT = 275, IDXATT = 276, TYPEATT = 277, QTERMSTART = 278, QTERMEND = 279, QUADRATICCOEFFICIENTSSTART = 280, QUADRATICCOEFFICIENTSEND = 281, NONLINEAREXPRESSIONSSTART = 282, NONLINEAREXPRESSIONSEND = 283, NLSTART = 284, NLEND = 285, POWERSTART = 286, POWEREND = 287, PLUSSTART = 288, PLUSEND = 289, MINUSSTART = 290, MINUSEND = 291, DIVIDESTART = 292, DIVIDEEND = 293, LNSTART = 294, LNEND = 295, SQRTSTART = 296, SQRTEND = 297, SUMSTART = 298, SUMEND = 299, PRODUCTSTART = 300, PRODUCTEND = 301, ENDOFELEMENT = 302, EXPSTART = 303, EXPEND = 304, NEGATESTART = 305, NEGATEEND = 306, IFSTART = 307, IFEND = 308, SQUARESTART = 309, SQUAREEND = 310, COSSTART = 311, COSEND = 312, SINSTART = 313, SINEND = 314, GREATERTHAN = 315, VARIABLESTART = 316, VARIABLEEND = 317, ABSSTART = 318, ABSEND = 319, ERFSTART = 320, ERFEND = 321, MAXSTART = 322, MAXEND = 323, ALLDIFFSTART = 324, ALLDIFFEND = 325, MINSTART = 326, MINEND = 327, ESTART = 328, EEND = 329, PISTART = 330, PIEND = 331, TIMEDOMAINSTART = 332, TIMEDOMAINEND = 333, STAGESSTART = 334, STAGESEND = 335, STAGESTART = 336, STAGEEND = 337, NAMEATT = 338, NUMBEROFSTAGESATT = 339, HORIZONATT = 340, STARTATT = 341, VARIABLESSTART = 342, CONSTRAINTSSTART = 343, OBJECTIVESSTART = 344, VARIABLESEND = 345, CONSTRAINTSEND = 346, OBJECTIVESEND = 347, NUMBEROFVARIABLESATT = 348, NUMBEROFCONSTRAINTSATT = 349, NUMBEROFOBJECTIVESATT = 350, STARTIDXATT = 351, VARSTART = 352, VAREND = 353, CONSTART = 354, CONEND = 355, OBJSTART = 356, OBJEND = 357, INTERVALSTART = 358, INTERVALEND = 359 } |
Functions | |
YY_BUFFER_STATE | osil_scan_string (const char *yy_str, void *yyscanner) |
int | osillex_init (void **ptr_yy_globals) |
int | osillex_destroy (void *yyscanner) |
void | osilset_extra (OSiLParserData *parserData, void *yyscanner) |
int | osilget_lineno (void *yyscanner) |
char * | osilget_text (void *yyscanner) |
void | osilset_lineno (int line_number, void *yyscanner) |
void | yygetOSInstance (const char *osil, OSInstance *osinstance, OSiLParserData *parserData) throw (ErrorClass) |
double | atofmod1 (int *osillineno, const char *ch1, const char *ch2) |
int | atoimod1 (int *osillineno, const char *ch1, const char *ch2) |
void | osilerror_wrapper (const char *ch, int *osillineno, const char *errormsg) |
bool | isnewline (char c, int *osillineno) |
bool | parseVariables (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseObjectives (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseObjCoef (const char **pchar, int objcount, OSInstance *osinstance, int *osillineno) |
bool | parseConstraints (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseLinearConstraintCoefficients (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseStart (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseRowIdx (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseColIdx (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseValue (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseInstanceHeader (const char **pchar, OSInstance *osinstance, int *osillineno) |
bool | parseInstanceData (const char **pchar, OSInstance *osinstance, int *osillineno) |
char * | parseBase64 (const char **p, int *dataSize, int *osillineno) |
int | osillex (YYSTYPE *lvalp, YYLTYPE *llocp, void *scanner) |
void | osilerror (YYLTYPE *type, OSInstance *osintance, OSiLParserData *parserData, const char *errormsg) |
static YYSIZE_T | yystrlen (yystr) const char *yystr |
int | yyparse (osinstance, parserData) OSInstance *osinstance |
Variables | |
static const yytype_uint8 | yytranslate [] |
static const char *const | yytname [] |
static const yytype_uint8 | yyr1 [] |
static const yytype_uint8 | yyr2 [] |
static const yytype_uint8 | yydefact [] |
static const yytype_int16 | yydefgoto [] |
static const yytype_int16 | yypact [] |
static const yytype_int16 | yypgoto [] |
static const yytype_uint16 | yytable [] |
static const yytype_uint16 | yycheck [] |
static const yytype_uint8 | yystos [] |
const char * | yysrc |
int | yytype |
YYSTYPE * | yyvaluep |
YYLTYPE * | yylocationp |
OSInstance * | osinstance |
OSiLParserData * | parserData |
OSiLParserData * | parserData |
#define YYBISON 1 |
Definition at line 46 of file OSParseosil.tab.cpp.
#define YYBISON_VERSION "2.4.1" |
Definition at line 49 of file OSParseosil.tab.cpp.
#define YYSKELETON_NAME "yacc.c" |
Definition at line 52 of file OSParseosil.tab.cpp.
#define YYPURE 1 |
Definition at line 55 of file OSParseosil.tab.cpp.
#define YYPUSH 0 |
Definition at line 58 of file OSParseosil.tab.cpp.
#define YYPULL 1 |
Definition at line 61 of file OSParseosil.tab.cpp.
#define YYLSP_NEEDED 1 |
Definition at line 64 of file OSParseosil.tab.cpp.
#define yyparse osilparse |
Definition at line 67 of file OSParseosil.tab.cpp.
#define yylex osillex |
Definition at line 68 of file OSParseosil.tab.cpp.
#define yyerror osilerror |
Definition at line 69 of file OSParseosil.tab.cpp.
#define yylval osillval |
Definition at line 70 of file OSParseosil.tab.cpp.
#define yychar osilchar |
Definition at line 71 of file OSParseosil.tab.cpp.
#define yydebug osildebug |
Definition at line 72 of file OSParseosil.tab.cpp.
#define yynerrs osilnerrs |
Definition at line 73 of file OSParseosil.tab.cpp.
#define yylloc osillloc |
Definition at line 74 of file OSParseosil.tab.cpp.
#define ISWHITESPACE | ( | char_ | ) |
Value:
((char_) == ' ' || \ (char_) == '\t' || (char_) == '\r')
Definition at line 161 of file OSParseosil.tab.cpp.
#define ISDIGIT | ( | _c | ) | ((_c) >= '0' && (_c) <= '9') |
Definition at line 164 of file OSParseosil.tab.cpp.
#define GETATTRIBUTETEXT |
Value:
for(; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ; \ if( *ch != '=') { osilerror_wrapper( ch, osillineno, "found an attribute not defined"); return false;} \ ch++; \ for(; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ; \ if(*ch == '\"'){ \ ch++; \ for(; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ; \ *p = ch; \ for( ; *ch != '\"'; ch++); \ }\ else{\ if(*ch == '\'') { \ ch++; \ for(; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ; \ *p = ch; \ for( ; *ch != '\''; ch++); \ } \ else { osilerror_wrapper( ch, osillineno,"missing quote on attribute"); return false;} \ }\ numChar = ch - *p; \ attText = new char[numChar + 1]; \ for(ki = 0; ki < numChar; ki++) attText[ki] = *((*p)++); \ attText[ki] = '\0'; \ attTextEnd = &attText[ki];
Definition at line 166 of file OSParseosil.tab.cpp.
#define GAIL printf("GAIL ANN HONDA\n") |
Definition at line 192 of file OSParseosil.tab.cpp.
#define ECHOCHECK |
Value:
GAIL; \ printf("%c", ch[-2]); \ printf("%c", ch[-1]); \ printf("%c", ch[0]); \ printf("%c", ch[1]); \ printf("%c", ch[2]); \ printf("%c", ch[3]); \ printf("%c", ch[4]); \ printf("%c", ch[5]); \ printf("%c \n", ch[6]); \ GAIL;
Definition at line 196 of file OSParseosil.tab.cpp.
#define YYDEBUG 0 |
Definition at line 213 of file OSParseosil.tab.cpp.
#define YYERROR_VERBOSE 1 |
Definition at line 221 of file OSParseosil.tab.cpp.
#define YYTOKEN_TABLE 0 |
Definition at line 226 of file OSParseosil.tab.cpp.
#define QUOTE 258 |
Definition at line 341 of file OSParseosil.tab.cpp.
#define ATTRIBUTETEXT 259 |
Definition at line 342 of file OSParseosil.tab.cpp.
#define INTEGER 260 |
Definition at line 343 of file OSParseosil.tab.cpp.
Referenced by BonminProblem::get_variables_types().
#define DOUBLE 261 |
Definition at line 344 of file OSParseosil.tab.cpp.
#define OSILEND 262 |
Definition at line 345 of file OSParseosil.tab.cpp.
#define INSTANCEDATAEND 263 |
Definition at line 346 of file OSParseosil.tab.cpp.
#define INSTANCEDATASTARTEND 264 |
Definition at line 347 of file OSParseosil.tab.cpp.
#define VALUEATT 265 |
Definition at line 348 of file OSParseosil.tab.cpp.
#define NUMBEROFNONLINEAREXPRESSIONS 266 |
Definition at line 349 of file OSParseosil.tab.cpp.
#define IDXONEATT 267 |
Definition at line 350 of file OSParseosil.tab.cpp.
#define IDXTWOATT 268 |
Definition at line 351 of file OSParseosil.tab.cpp.
#define COEFATT 269 |
Definition at line 352 of file OSParseosil.tab.cpp.
#define IDATT 270 |
Definition at line 353 of file OSParseosil.tab.cpp.
#define TIMESSTART 271 |
Definition at line 354 of file OSParseosil.tab.cpp.
#define TIMESEND 272 |
Definition at line 355 of file OSParseosil.tab.cpp.
#define NUMBERSTART 273 |
Definition at line 356 of file OSParseosil.tab.cpp.
#define NUMBEREND 274 |
Definition at line 357 of file OSParseosil.tab.cpp.
#define NUMBEROFQTERMSATT 275 |
Definition at line 358 of file OSParseosil.tab.cpp.
#define IDXATT 276 |
Definition at line 359 of file OSParseosil.tab.cpp.
#define TYPEATT 277 |
Definition at line 360 of file OSParseosil.tab.cpp.
#define QTERMSTART 278 |
Definition at line 361 of file OSParseosil.tab.cpp.
#define QTERMEND 279 |
Definition at line 362 of file OSParseosil.tab.cpp.
#define QUADRATICCOEFFICIENTSSTART 280 |
Definition at line 363 of file OSParseosil.tab.cpp.
#define QUADRATICCOEFFICIENTSEND 281 |
Definition at line 364 of file OSParseosil.tab.cpp.
#define NONLINEAREXPRESSIONSSTART 282 |
Definition at line 365 of file OSParseosil.tab.cpp.
#define NONLINEAREXPRESSIONSEND 283 |
Definition at line 366 of file OSParseosil.tab.cpp.
#define NLSTART 284 |
Definition at line 367 of file OSParseosil.tab.cpp.
#define NLEND 285 |
Definition at line 368 of file OSParseosil.tab.cpp.
#define POWERSTART 286 |
Definition at line 369 of file OSParseosil.tab.cpp.
#define POWEREND 287 |
Definition at line 370 of file OSParseosil.tab.cpp.
#define PLUSSTART 288 |
Definition at line 371 of file OSParseosil.tab.cpp.
#define PLUSEND 289 |
Definition at line 372 of file OSParseosil.tab.cpp.
#define MINUSSTART 290 |
Definition at line 373 of file OSParseosil.tab.cpp.
#define MINUSEND 291 |
Definition at line 374 of file OSParseosil.tab.cpp.
#define DIVIDESTART 292 |
Definition at line 375 of file OSParseosil.tab.cpp.
#define DIVIDEEND 293 |
Definition at line 376 of file OSParseosil.tab.cpp.
#define LNSTART 294 |
Definition at line 377 of file OSParseosil.tab.cpp.
#define LNEND 295 |
Definition at line 378 of file OSParseosil.tab.cpp.
#define SQRTSTART 296 |
Definition at line 379 of file OSParseosil.tab.cpp.
#define SQRTEND 297 |
Definition at line 380 of file OSParseosil.tab.cpp.
#define SUMSTART 298 |
Definition at line 381 of file OSParseosil.tab.cpp.
#define SUMEND 299 |
Definition at line 382 of file OSParseosil.tab.cpp.
#define PRODUCTSTART 300 |
Definition at line 383 of file OSParseosil.tab.cpp.
#define PRODUCTEND 301 |
Definition at line 384 of file OSParseosil.tab.cpp.
#define ENDOFELEMENT 302 |
Definition at line 385 of file OSParseosil.tab.cpp.
#define EXPSTART 303 |
Definition at line 386 of file OSParseosil.tab.cpp.
#define EXPEND 304 |
Definition at line 387 of file OSParseosil.tab.cpp.
#define NEGATESTART 305 |
Definition at line 388 of file OSParseosil.tab.cpp.
#define NEGATEEND 306 |
Definition at line 389 of file OSParseosil.tab.cpp.
#define IFSTART 307 |
Definition at line 390 of file OSParseosil.tab.cpp.
#define IFEND 308 |
Definition at line 391 of file OSParseosil.tab.cpp.
#define SQUARESTART 309 |
Definition at line 392 of file OSParseosil.tab.cpp.
#define SQUAREEND 310 |
Definition at line 393 of file OSParseosil.tab.cpp.
#define COSSTART 311 |
Definition at line 394 of file OSParseosil.tab.cpp.
#define COSEND 312 |
Definition at line 395 of file OSParseosil.tab.cpp.
#define SINSTART 313 |
Definition at line 396 of file OSParseosil.tab.cpp.
#define SINEND 314 |
Definition at line 397 of file OSParseosil.tab.cpp.
#define GREATERTHAN 315 |
Definition at line 398 of file OSParseosil.tab.cpp.
#define VARIABLESTART 316 |
Definition at line 399 of file OSParseosil.tab.cpp.
#define VARIABLEEND 317 |
Definition at line 400 of file OSParseosil.tab.cpp.
#define ABSSTART 318 |
Definition at line 401 of file OSParseosil.tab.cpp.
#define ABSEND 319 |
Definition at line 402 of file OSParseosil.tab.cpp.
#define ERFSTART 320 |
Definition at line 403 of file OSParseosil.tab.cpp.
#define ERFEND 321 |
Definition at line 404 of file OSParseosil.tab.cpp.
#define MAXSTART 322 |
Definition at line 405 of file OSParseosil.tab.cpp.
#define MAXEND 323 |
Definition at line 406 of file OSParseosil.tab.cpp.
#define ALLDIFFSTART 324 |
Definition at line 407 of file OSParseosil.tab.cpp.
#define ALLDIFFEND 325 |
Definition at line 408 of file OSParseosil.tab.cpp.
#define MINSTART 326 |
Definition at line 409 of file OSParseosil.tab.cpp.
#define MINEND 327 |
Definition at line 410 of file OSParseosil.tab.cpp.
#define ESTART 328 |
Definition at line 411 of file OSParseosil.tab.cpp.
#define EEND 329 |
Definition at line 412 of file OSParseosil.tab.cpp.
#define PISTART 330 |
Definition at line 413 of file OSParseosil.tab.cpp.
#define PIEND 331 |
Definition at line 414 of file OSParseosil.tab.cpp.
#define TIMEDOMAINSTART 332 |
Definition at line 415 of file OSParseosil.tab.cpp.
#define TIMEDOMAINEND 333 |
Definition at line 416 of file OSParseosil.tab.cpp.
#define STAGESSTART 334 |
Definition at line 417 of file OSParseosil.tab.cpp.
#define STAGESEND 335 |
Definition at line 418 of file OSParseosil.tab.cpp.
#define STAGESTART 336 |
Definition at line 419 of file OSParseosil.tab.cpp.
#define STAGEEND 337 |
Definition at line 420 of file OSParseosil.tab.cpp.
#define NAMEATT 338 |
Definition at line 421 of file OSParseosil.tab.cpp.
#define NUMBEROFSTAGESATT 339 |
Definition at line 422 of file OSParseosil.tab.cpp.
#define HORIZONATT 340 |
Definition at line 423 of file OSParseosil.tab.cpp.
#define STARTATT 341 |
Definition at line 424 of file OSParseosil.tab.cpp.
#define VARIABLESSTART 342 |
Definition at line 425 of file OSParseosil.tab.cpp.
#define CONSTRAINTSSTART 343 |
Definition at line 426 of file OSParseosil.tab.cpp.
#define OBJECTIVESSTART 344 |
Definition at line 427 of file OSParseosil.tab.cpp.
#define VARIABLESEND 345 |
Definition at line 428 of file OSParseosil.tab.cpp.
#define CONSTRAINTSEND 346 |
Definition at line 429 of file OSParseosil.tab.cpp.
#define OBJECTIVESEND 347 |
Definition at line 430 of file OSParseosil.tab.cpp.
#define NUMBEROFVARIABLESATT 348 |
Definition at line 431 of file OSParseosil.tab.cpp.
#define NUMBEROFCONSTRAINTSATT 349 |
Definition at line 432 of file OSParseosil.tab.cpp.
#define NUMBEROFOBJECTIVESATT 350 |
Definition at line 433 of file OSParseosil.tab.cpp.
#define STARTIDXATT 351 |
Definition at line 434 of file OSParseosil.tab.cpp.
#define VARSTART 352 |
Definition at line 435 of file OSParseosil.tab.cpp.
#define VAREND 353 |
Definition at line 436 of file OSParseosil.tab.cpp.
#define CONSTART 354 |
Definition at line 437 of file OSParseosil.tab.cpp.
#define CONEND 355 |
Definition at line 438 of file OSParseosil.tab.cpp.
#define OBJSTART 356 |
Definition at line 439 of file OSParseosil.tab.cpp.
#define OBJEND 357 |
Definition at line 440 of file OSParseosil.tab.cpp.
#define INTERVALSTART 358 |
Definition at line 441 of file OSParseosil.tab.cpp.
#define INTERVALEND 359 |
Definition at line 442 of file OSParseosil.tab.cpp.
#define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 460 of file OSParseosil.tab.cpp.
#define yystype YYSTYPE |
Definition at line 461 of file OSParseosil.tab.cpp.
#define YYSTYPE_IS_DECLARED 1 |
Definition at line 462 of file OSParseosil.tab.cpp.
#define yyltype YYLTYPE |
Definition at line 473 of file OSParseosil.tab.cpp.
#define YYLTYPE_IS_DECLARED 1 |
Definition at line 474 of file OSParseosil.tab.cpp.
#define YYLTYPE_IS_TRIVIAL 1 |
Definition at line 475 of file OSParseosil.tab.cpp.
#define scanner parserData->scanner |
Definition at line 486 of file OSParseosil.tab.cpp.
Referenced by getAmplClientOptions(), and main().
#define YYSIZE_T unsigned int |
Definition at line 531 of file OSParseosil.tab.cpp.
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 535 of file OSParseosil.tab.cpp.
#define YY_ | ( | msgid | ) | msgid |
Definition at line 545 of file OSParseosil.tab.cpp.
#define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 551 of file OSParseosil.tab.cpp.
#define YYID | ( | n | ) | (n) |
Definition at line 558 of file OSParseosil.tab.cpp.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 613 of file OSParseosil.tab.cpp.
#define YYSTACK_FREE YYFREE |
Definition at line 614 of file OSParseosil.tab.cpp.
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 616 of file OSParseosil.tab.cpp.
#define YYMALLOC malloc |
Definition at line 627 of file OSParseosil.tab.cpp.
#define YYFREE free |
Definition at line 634 of file OSParseosil.tab.cpp.
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 658 of file OSParseosil.tab.cpp.
#define YYSTACK_BYTES | ( | N | ) |
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + 2 * YYSTACK_GAP_MAXIMUM)
Definition at line 662 of file OSParseosil.tab.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 673 of file OSParseosil.tab.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 689 of file OSParseosil.tab.cpp.
#define YYFINAL 6 |
Definition at line 703 of file OSParseosil.tab.cpp.
#define YYLAST 403 |
Definition at line 705 of file OSParseosil.tab.cpp.
#define YYNTOKENS 105 |
Definition at line 708 of file OSParseosil.tab.cpp.
#define YYNNTS 148 |
Definition at line 710 of file OSParseosil.tab.cpp.
#define YYNRULES 232 |
Definition at line 712 of file OSParseosil.tab.cpp.
#define YYNSTATES 407 |
Definition at line 714 of file OSParseosil.tab.cpp.
#define YYUNDEFTOK 2 |
Definition at line 717 of file OSParseosil.tab.cpp.
#define YYMAXUTOK 359 |
Definition at line 718 of file OSParseosil.tab.cpp.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 720 of file OSParseosil.tab.cpp.
#define YYPACT_NINF -153 |
Definition at line 1105 of file OSParseosil.tab.cpp.
#define YYTABLE_NINF -1 |
Definition at line 1175 of file OSParseosil.tab.cpp.
#define yyerrok (yyerrstatus = 0) |
Definition at line 1313 of file OSParseosil.tab.cpp.
#define yyclearin (yychar = YYEMPTY) |
Definition at line 1314 of file OSParseosil.tab.cpp.
#define YYEMPTY (-2) |
Definition at line 1315 of file OSParseosil.tab.cpp.
#define YYEOF 0 |
Definition at line 1316 of file OSParseosil.tab.cpp.
#define YYACCEPT goto yyacceptlab |
Definition at line 1318 of file OSParseosil.tab.cpp.
#define YYABORT goto yyabortlab |
Definition at line 1319 of file OSParseosil.tab.cpp.
#define YYERROR goto yyerrorlab |
Definition at line 1320 of file OSParseosil.tab.cpp.
#define YYFAIL goto yyerrlab |
Definition at line 1327 of file OSParseosil.tab.cpp.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 1329 of file OSParseosil.tab.cpp.
#define YYBACKUP | ( | Token, | |||
Value | ) |
Value:
do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (&yylloc, osinstance, parserData, YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0))
Definition at line 1331 of file OSParseosil.tab.cpp.
#define YYTERROR 1 |
Definition at line 1349 of file OSParseosil.tab.cpp.
#define YYERRCODE 256 |
Definition at line 1350 of file OSParseosil.tab.cpp.
#define YYRHSLOC | ( | Rhs, | |||
K | ) | ((Rhs)[K]) |
Definition at line 1357 of file OSParseosil.tab.cpp.
#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 1359 of file OSParseosil.tab.cpp.
#define YY_LOCATION_PRINT | ( | File, | |||
Loc | ) |
Value:
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
(Loc).last_line, (Loc).last_column)
Definition at line 1385 of file OSParseosil.tab.cpp.
#define YYLEX yylex (&yylval, &yylloc, scanner) |
Definition at line 1400 of file OSParseosil.tab.cpp.
#define YYDPRINTF | ( | Args | ) |
Definition at line 1574 of file OSParseosil.tab.cpp.
#define YY_SYMBOL_PRINT | ( | Title, | |||
Type, | |||||
Value, | |||||
Location | ) |
Definition at line 1575 of file OSParseosil.tab.cpp.
#define YY_STACK_PRINT | ( | Bottom, | |||
Top | ) |
Definition at line 1576 of file OSParseosil.tab.cpp.
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 1577 of file OSParseosil.tab.cpp.
#define YYINITDEPTH 200 |
Definition at line 1583 of file OSParseosil.tab.cpp.
#define YYMAXDEPTH 10000 |
Definition at line 1594 of file OSParseosil.tab.cpp.
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) |
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 131 of file OSParseosil.tab.cpp.
typedef unsigned char yytype_uint8 |
Definition at line 497 of file OSParseosil.tab.cpp.
typedef short int yytype_int8 |
Definition at line 506 of file OSParseosil.tab.cpp.
typedef unsigned short int yytype_uint16 |
Definition at line 512 of file OSParseosil.tab.cpp.
typedef short int yytype_int16 |
Definition at line 518 of file OSParseosil.tab.cpp.
enum yytokentype |
Definition at line 235 of file OSParseosil.tab.cpp.
YY_BUFFER_STATE osil_scan_string | ( | const char * | yy_str, | |
void * | yyscanner | |||
) |
int osillex_init | ( | void ** | ptr_yy_globals | ) |
int osillex_destroy | ( | void * | yyscanner | ) |
void osilset_extra | ( | OSiLParserData * | parserData, | |
void * | yyscanner | |||
) |
int osilget_lineno | ( | void * | yyscanner | ) |
char* osilget_text | ( | void * | yyscanner | ) |
void osilset_lineno | ( | int | line_number, | |
void * | yyscanner | |||
) |
void yygetOSInstance | ( | const char * | osil, | |
OSInstance * | osinstance, | |||
OSiLParserData * | parserData | |||
) | throw (ErrorClass) |
double atofmod1 | ( | int * | osillineno, | |
const char * | ch1, | |||
const char * | ch2 | |||
) |
int atoimod1 | ( | int * | osillineno, | |
const char * | ch1, | |||
const char * | ch2 | |||
) |
void osilerror_wrapper | ( | const char * | ch, | |
int * | osillineno, | |||
const char * | errormsg | |||
) |
bool isnewline | ( | char | c, | |
int * | osillineno | |||
) |
bool parseVariables | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseObjectives | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseObjCoef | ( | const char ** | pchar, | |
int | objcount, | |||
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseConstraints | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseLinearConstraintCoefficients | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseStart | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseRowIdx | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseColIdx | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseValue | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseInstanceHeader | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
bool parseInstanceData | ( | const char ** | pchar, | |
OSInstance * | osinstance, | |||
int * | osillineno | |||
) |
char* parseBase64 | ( | const char ** | p, | |
int * | dataSize, | |||
int * | osillineno | |||
) |
void osilerror | ( | YYLTYPE * | type, | |
OSInstance * | osintance, | |||
OSiLParserData * | parserData, | |||
const char * | errormsg | |||
) |
static YYSIZE_T yystrlen | ( | yystr | ) | const [static] |
int yyparse | ( | osinstance | , | |
parserData | ||||
) |
const yytype_uint8 yytranslate[] [static] |
Definition at line 724 of file OSParseosil.tab.cpp.
const char* const yytname[] [static] |
Definition at line 900 of file OSParseosil.tab.cpp.
const yytype_uint8 yyr1[] [static] |
Initial value:
{ 0, 105, 106, 107, 107, 108, 108, 109, 109, 110, 111, 111, 112, 113, 114, 114, 115, 115, 116, 116, 116, 116, 117, 118, 119, 119, 120, 121, 121, 122, 123, 124, 123, 125, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 129, 128, 131, 130, 133, 132, 135, 134, 137, 136, 139, 138, 141, 140, 142, 142, 144, 143, 145, 145, 147, 146, 148, 148, 150, 149, 151, 151, 153, 152, 154, 154, 156, 155, 158, 157, 160, 159, 162, 161, 164, 163, 166, 165, 168, 167, 170, 169, 172, 171, 174, 173, 175, 175, 177, 176, 178, 178, 180, 179, 181, 181, 182, 182, 183, 183, 183, 185, 184, 187, 186, 188, 188, 190, 189, 191, 192, 191, 191, 193, 193, 194, 194, 195, 195, 196, 197, 197, 198, 199, 199, 199, 199, 200, 200, 201, 202, 203, 204, 204, 206, 205, 207, 207, 208, 208, 209, 210, 210, 211, 211, 212, 212, 213, 214, 215, 215, 216, 216, 217, 217, 219, 218, 220, 221, 221, 222, 222, 223, 223, 224, 224, 225, 226, 227, 227, 228, 228, 229, 229, 231, 230, 232, 233, 233, 234, 234, 235, 235, 236, 236, 237, 238, 239, 239, 240, 240, 241, 241, 243, 242, 244, 245, 245, 247, 246, 248, 248, 249, 249, 250, 250, 251, 252 }
Definition at line 978 of file OSParseosil.tab.cpp.
const yytype_uint8 yyr2[] [static] |
Initial value:
{ 0, 2, 5, 1, 1, 1, 0, 0, 4, 5, 1, 2, 3, 1, 1, 2, 0, 2, 1, 1, 1, 1, 4, 4, 4, 4, 4, 0, 4, 5, 0, 0, 7, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 5, 0, 5, 0, 5, 0, 4, 0, 5, 0, 5, 0, 4, 1, 2, 0, 4, 1, 2, 0, 4, 1, 2, 0, 4, 1, 2, 0, 4, 1, 2, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 6, 0, 3, 1, 2, 0, 3, 1, 2, 0, 4, 1, 2, 0, 2, 1, 1, 1, 0, 4, 0, 4, 4, 4, 0, 4, 1, 0, 4, 2, 0, 2, 1, 1, 4, 4, 4, 0, 2, 1, 0, 1, 3, 3, 1, 2, 4, 1, 5, 1, 2, 0, 4, 0, 3, 1, 3, 3, 0, 3, 0, 2, 1, 1, 4, 4, 1, 3, 1, 2, 1, 2, 0, 4, 4, 1, 2, 0, 3, 0, 2, 1, 1, 4, 4, 1, 3, 1, 2, 1, 2, 0, 4, 4, 1, 2, 0, 3, 0, 2, 1, 1, 4, 4, 1, 3, 1, 2, 1, 2, 0, 4, 4, 1, 2, 0, 4, 1, 2, 0, 2, 1, 1, 4, 4 }
Definition at line 1007 of file OSParseosil.tab.cpp.
const yytype_uint8 yydefact[] [static] |
Definition at line 1038 of file OSParseosil.tab.cpp.
const yytype_int16 yydefgoto[] [static] |
Initial value:
{ -1, 2, 27, 50, 3, 5, 11, 12, 13, 39, 22, 40, 41, 42, 43, 44, 8, 15, 24, 176, 48, 65, 114, 115, 152, 116, 155, 117, 156, 118, 163, 119, 157, 120, 154, 121, 160, 192, 122, 172, 207, 123, 171, 205, 124, 173, 209, 125, 161, 194, 126, 158, 127, 159, 128, 165, 129, 166, 130, 167, 131, 162, 132, 169, 133, 170, 134, 164, 135, 174, 212, 136, 175, 215, 137, 153, 230, 184, 231, 232, 296, 233, 295, 234, 138, 168, 255, 301, 201, 256, 257, 258, 17, 18, 30, 31, 53, 54, 68, 80, 81, 82, 179, 221, 271, 272, 289, 306, 307, 308, 309, 310, 323, 324, 325, 359, 376, 292, 311, 332, 333, 334, 335, 336, 344, 345, 346, 378, 391, 313, 337, 353, 354, 355, 356, 357, 368, 369, 370, 393, 402, 55, 56, 147, 83, 148, 149, 150 }
Definition at line 1084 of file OSParseosil.tab.cpp.
const yytype_int16 yypact[] [static] |
Definition at line 1106 of file OSParseosil.tab.cpp.
const yytype_int16 yypgoto[] [static] |
Initial value:
{ -153, -153, -153, -153, -153, -153, -153, 390, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -152, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, 319, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, 77, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, 58, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153, 35, -153, -153, -153, -153, -153, -153, -153, -153, -153, -153 }
Definition at line 1152 of file OSParseosil.tab.cpp.
const yytype_uint16 yytable[] [static] |
Definition at line 1176 of file OSParseosil.tab.cpp.
const yytype_uint16 yycheck[] [static] |
Definition at line 1221 of file OSParseosil.tab.cpp.
const yytype_uint8 yystos[] [static] |
Definition at line 1268 of file OSParseosil.tab.cpp.
const char* yysrc |
Definition at line 1637 of file OSParseosil.tab.cpp.
int yytype |
Definition at line 1822 of file OSParseosil.tab.cpp.
Definition at line 1824 of file OSParseosil.tab.cpp.
Definition at line 1825 of file OSParseosil.tab.cpp.
Definition at line 1826 of file OSParseosil.tab.cpp.
Referenced by buildSolver(), OS_DipInterface::generateInitialMaster(), OS_DipInterface::getBlockOSInstances(), main(), OSDipBlockBearcatSolver::OSDipBlockBearcatSolver(), OSDipBlockCoinSolver::OSDipBlockCoinSolver(), and OSDipBlockSlpSolver::OSDipBlockSlpSolver().
Definition at line 1827 of file OSParseosil.tab.cpp.
Definition at line 1889 of file OSParseosil.tab.cpp.