#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.3" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 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 | QUOTE 258 |
#define | ATTRIBUTETEXT 259 |
#define | INTEGER 260 |
#define | DOUBLE 261 |
#define | OSILEND 262 |
#define | INSTANCEDATAEND 263 |
#define | VALUEATT 264 |
#define | NUMBEROFNONLINEAREXPRESSIONS 265 |
#define | IDXONEATT 266 |
#define | IDXTWOATT 267 |
#define | COEFATT 268 |
#define | IDATT 269 |
#define | TIMESSTART 270 |
#define | TIMESEND 271 |
#define | NUMBERSTART 272 |
#define | NUMBEREND 273 |
#define | NUMBEROFQTERMSATT 274 |
#define | IDXATT 275 |
#define | TYPEATT 276 |
#define | QTERMSTART 277 |
#define | QTERMEND 278 |
#define | QUADRATICCOEFFICIENTSSTART 279 |
#define | QUADRATICCOEFFICIENTSEND 280 |
#define | NONLINEAREXPRESSIONSSTART 281 |
#define | NONLINEAREXPRESSIONSEND 282 |
#define | NLSTART 283 |
#define | NLEND 284 |
#define | POWERSTART 285 |
#define | POWEREND 286 |
#define | PLUSSTART 287 |
#define | PLUSEND 288 |
#define | MINUSSTART 289 |
#define | MINUSEND 290 |
#define | DIVIDESTART 291 |
#define | DIVIDEEND 292 |
#define | LNSTART 293 |
#define | LNEND 294 |
#define | SQRTSTART 295 |
#define | SQRTEND 296 |
#define | SUMSTART 297 |
#define | SUMEND 298 |
#define | PRODUCTSTART 299 |
#define | PRODUCTEND 300 |
#define | ENDOFELEMENT 301 |
#define | EXPSTART 302 |
#define | EXPEND 303 |
#define | NEGATESTART 304 |
#define | NEGATEEND 305 |
#define | IFSTART 306 |
#define | IFEND 307 |
#define | SQUARESTART 308 |
#define | SQUAREEND 309 |
#define | COSSTART 310 |
#define | COSEND 311 |
#define | SINSTART 312 |
#define | SINEND 313 |
#define | GREATERTHAN 314 |
#define | VARIABLESTART 315 |
#define | VARIABLEEND 316 |
#define | ABSSTART 317 |
#define | ABSEND 318 |
#define | ERFSTART 319 |
#define | ERFEND 320 |
#define | MAXSTART 321 |
#define | MAXEND 322 |
#define | ALLDIFFSTART 323 |
#define | ALLDIFFEND 324 |
#define | MINSTART 325 |
#define | MINEND 326 |
#define | ESTART 327 |
#define | EEND 328 |
#define | PISTART 329 |
#define | PIEND 330 |
#define | TIMEDOMAINSTART 331 |
#define | TIMEDOMAINEND 332 |
#define | STAGESSTART 333 |
#define | STAGESEND 334 |
#define | STAGESTART 335 |
#define | STAGEEND 336 |
#define | NAMEATT 337 |
#define | NUMBEROFSTAGESATT 338 |
#define | HORIZONATT 339 |
#define | STARTATT 340 |
#define | VARIABLESSTART 341 |
#define | CONSTRAINTSSTART 342 |
#define | OBJECTIVESSTART 343 |
#define | VARIABLESEND 344 |
#define | CONSTRAINTSEND 345 |
#define | OBJECTIVESEND 346 |
#define | NUMBEROFVARIABLESATT 347 |
#define | NUMBEROFCONSTRAINTSATT 348 |
#define | NUMBEROFOBJECTIVESATT 349 |
#define | STARTIDXATT 350 |
#define | VARSTART 351 |
#define | VAREND 352 |
#define | CONSTART 353 |
#define | CONEND 354 |
#define | OBJSTART 355 |
#define | OBJEND 356 |
#define | INTERVALSTART 357 |
#define | INTERVALEND 358 |
#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 | yystype YYSTYPE |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSTYPE_IS_TRIVIAL 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) |
#define | YYFINAL 6 |
#define | YYLAST 401 |
#define | YYNTOKENS 104 |
#define | YYNNTS 145 |
#define | YYNRULES 227 |
#define | YYNSTATES 403 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 358 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -149 |
#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, VALUEATT = 264, NUMBEROFNONLINEAREXPRESSIONS = 265, IDXONEATT = 266, IDXTWOATT = 267, COEFATT = 268, IDATT = 269, TIMESSTART = 270, TIMESEND = 271, NUMBERSTART = 272, NUMBEREND = 273, NUMBEROFQTERMSATT = 274, IDXATT = 275, TYPEATT = 276, QTERMSTART = 277, QTERMEND = 278, QUADRATICCOEFFICIENTSSTART = 279, QUADRATICCOEFFICIENTSEND = 280, NONLINEAREXPRESSIONSSTART = 281, NONLINEAREXPRESSIONSEND = 282, NLSTART = 283, NLEND = 284, POWERSTART = 285, POWEREND = 286, PLUSSTART = 287, PLUSEND = 288, MINUSSTART = 289, MINUSEND = 290, DIVIDESTART = 291, DIVIDEEND = 292, LNSTART = 293, LNEND = 294, SQRTSTART = 295, SQRTEND = 296, SUMSTART = 297, SUMEND = 298, PRODUCTSTART = 299, PRODUCTEND = 300, ENDOFELEMENT = 301, EXPSTART = 302, EXPEND = 303, NEGATESTART = 304, NEGATEEND = 305, IFSTART = 306, IFEND = 307, SQUARESTART = 308, SQUAREEND = 309, COSSTART = 310, COSEND = 311, SINSTART = 312, SINEND = 313, GREATERTHAN = 314, VARIABLESTART = 315, VARIABLEEND = 316, ABSSTART = 317, ABSEND = 318, ERFSTART = 319, ERFEND = 320, MAXSTART = 321, MAXEND = 322, ALLDIFFSTART = 323, ALLDIFFEND = 324, MINSTART = 325, MINEND = 326, ESTART = 327, EEND = 328, PISTART = 329, PIEND = 330, TIMEDOMAINSTART = 331, TIMEDOMAINEND = 332, STAGESSTART = 333, STAGESEND = 334, STAGESTART = 335, STAGEEND = 336, NAMEATT = 337, NUMBEROFSTAGESATT = 338, HORIZONATT = 339, STARTATT = 340, VARIABLESSTART = 341, CONSTRAINTSSTART = 342, OBJECTIVESSTART = 343, VARIABLESEND = 344, CONSTRAINTSEND = 345, OBJECTIVESEND = 346, NUMBEROFVARIABLESATT = 347, NUMBEROFCONSTRAINTSATT = 348, NUMBEROFOBJECTIVESATT = 349, STARTIDXATT = 350, VARSTART = 351, VAREND = 352, CONSTART = 353, CONEND = 354, OBJSTART = 355, OBJEND = 356, INTERVALSTART = 357, INTERVALEND = 358 } |
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 47 of file OSParseosil.tab.cpp.
#define YYBISON_VERSION "2.3" |
Definition at line 50 of file OSParseosil.tab.cpp.
#define YYSKELETON_NAME "yacc.c" |
Definition at line 53 of file OSParseosil.tab.cpp.
#define YYPURE 1 |
Definition at line 56 of file OSParseosil.tab.cpp.
#define YYLSP_NEEDED 1 |
Definition at line 59 of file OSParseosil.tab.cpp.
#define yyparse osilparse |
Definition at line 62 of file OSParseosil.tab.cpp.
#define yylex osillex |
Definition at line 63 of file OSParseosil.tab.cpp.
#define yyerror osilerror |
Definition at line 64 of file OSParseosil.tab.cpp.
#define yylval osillval |
Definition at line 65 of file OSParseosil.tab.cpp.
#define yychar osilchar |
Definition at line 66 of file OSParseosil.tab.cpp.
#define yydebug osildebug |
Definition at line 67 of file OSParseosil.tab.cpp.
#define yynerrs osilnerrs |
Definition at line 68 of file OSParseosil.tab.cpp.
#define yylloc osillloc |
Definition at line 69 of file OSParseosil.tab.cpp.
#define QUOTE 258 |
Definition at line 181 of file OSParseosil.tab.cpp.
#define ATTRIBUTETEXT 259 |
Definition at line 182 of file OSParseosil.tab.cpp.
#define INTEGER 260 |
Definition at line 183 of file OSParseosil.tab.cpp.
#define DOUBLE 261 |
Definition at line 184 of file OSParseosil.tab.cpp.
#define OSILEND 262 |
Definition at line 185 of file OSParseosil.tab.cpp.
#define INSTANCEDATAEND 263 |
Definition at line 186 of file OSParseosil.tab.cpp.
#define VALUEATT 264 |
Definition at line 187 of file OSParseosil.tab.cpp.
#define NUMBEROFNONLINEAREXPRESSIONS 265 |
Definition at line 188 of file OSParseosil.tab.cpp.
#define IDXONEATT 266 |
Definition at line 189 of file OSParseosil.tab.cpp.
#define IDXTWOATT 267 |
Definition at line 190 of file OSParseosil.tab.cpp.
#define COEFATT 268 |
Definition at line 191 of file OSParseosil.tab.cpp.
#define IDATT 269 |
Definition at line 192 of file OSParseosil.tab.cpp.
#define TIMESSTART 270 |
Definition at line 193 of file OSParseosil.tab.cpp.
#define TIMESEND 271 |
Definition at line 194 of file OSParseosil.tab.cpp.
#define NUMBERSTART 272 |
Definition at line 195 of file OSParseosil.tab.cpp.
#define NUMBEREND 273 |
Definition at line 196 of file OSParseosil.tab.cpp.
#define NUMBEROFQTERMSATT 274 |
Definition at line 197 of file OSParseosil.tab.cpp.
#define IDXATT 275 |
Definition at line 198 of file OSParseosil.tab.cpp.
#define TYPEATT 276 |
Definition at line 199 of file OSParseosil.tab.cpp.
#define QTERMSTART 277 |
Definition at line 200 of file OSParseosil.tab.cpp.
#define QTERMEND 278 |
Definition at line 201 of file OSParseosil.tab.cpp.
#define QUADRATICCOEFFICIENTSSTART 279 |
Definition at line 202 of file OSParseosil.tab.cpp.
#define QUADRATICCOEFFICIENTSEND 280 |
Definition at line 203 of file OSParseosil.tab.cpp.
#define NONLINEAREXPRESSIONSSTART 281 |
Definition at line 204 of file OSParseosil.tab.cpp.
#define NONLINEAREXPRESSIONSEND 282 |
Definition at line 205 of file OSParseosil.tab.cpp.
#define NLSTART 283 |
Definition at line 206 of file OSParseosil.tab.cpp.
#define NLEND 284 |
Definition at line 207 of file OSParseosil.tab.cpp.
#define POWERSTART 285 |
Definition at line 208 of file OSParseosil.tab.cpp.
#define POWEREND 286 |
Definition at line 209 of file OSParseosil.tab.cpp.
#define PLUSSTART 287 |
Definition at line 210 of file OSParseosil.tab.cpp.
#define PLUSEND 288 |
Definition at line 211 of file OSParseosil.tab.cpp.
#define MINUSSTART 289 |
Definition at line 212 of file OSParseosil.tab.cpp.
#define MINUSEND 290 |
Definition at line 213 of file OSParseosil.tab.cpp.
#define DIVIDESTART 291 |
Definition at line 214 of file OSParseosil.tab.cpp.
#define DIVIDEEND 292 |
Definition at line 215 of file OSParseosil.tab.cpp.
#define LNSTART 293 |
Definition at line 216 of file OSParseosil.tab.cpp.
#define LNEND 294 |
Definition at line 217 of file OSParseosil.tab.cpp.
#define SQRTSTART 295 |
Definition at line 218 of file OSParseosil.tab.cpp.
#define SQRTEND 296 |
Definition at line 219 of file OSParseosil.tab.cpp.
#define SUMSTART 297 |
Definition at line 220 of file OSParseosil.tab.cpp.
#define SUMEND 298 |
Definition at line 221 of file OSParseosil.tab.cpp.
#define PRODUCTSTART 299 |
Definition at line 222 of file OSParseosil.tab.cpp.
#define PRODUCTEND 300 |
Definition at line 223 of file OSParseosil.tab.cpp.
#define ENDOFELEMENT 301 |
Definition at line 224 of file OSParseosil.tab.cpp.
#define EXPSTART 302 |
Definition at line 225 of file OSParseosil.tab.cpp.
#define EXPEND 303 |
Definition at line 226 of file OSParseosil.tab.cpp.
#define NEGATESTART 304 |
Definition at line 227 of file OSParseosil.tab.cpp.
#define NEGATEEND 305 |
Definition at line 228 of file OSParseosil.tab.cpp.
#define IFSTART 306 |
Definition at line 229 of file OSParseosil.tab.cpp.
#define IFEND 307 |
Definition at line 230 of file OSParseosil.tab.cpp.
#define SQUARESTART 308 |
Definition at line 231 of file OSParseosil.tab.cpp.
#define SQUAREEND 309 |
Definition at line 232 of file OSParseosil.tab.cpp.
#define COSSTART 310 |
Definition at line 233 of file OSParseosil.tab.cpp.
#define COSEND 311 |
Definition at line 234 of file OSParseosil.tab.cpp.
#define SINSTART 312 |
Definition at line 235 of file OSParseosil.tab.cpp.
#define SINEND 313 |
Definition at line 236 of file OSParseosil.tab.cpp.
#define GREATERTHAN 314 |
Definition at line 237 of file OSParseosil.tab.cpp.
#define VARIABLESTART 315 |
Definition at line 238 of file OSParseosil.tab.cpp.
#define VARIABLEEND 316 |
Definition at line 239 of file OSParseosil.tab.cpp.
#define ABSSTART 317 |
Definition at line 240 of file OSParseosil.tab.cpp.
#define ABSEND 318 |
Definition at line 241 of file OSParseosil.tab.cpp.
#define ERFSTART 319 |
Definition at line 242 of file OSParseosil.tab.cpp.
#define ERFEND 320 |
Definition at line 243 of file OSParseosil.tab.cpp.
#define MAXSTART 321 |
Definition at line 244 of file OSParseosil.tab.cpp.
#define MAXEND 322 |
Definition at line 245 of file OSParseosil.tab.cpp.
#define ALLDIFFSTART 323 |
Definition at line 246 of file OSParseosil.tab.cpp.
#define ALLDIFFEND 324 |
Definition at line 247 of file OSParseosil.tab.cpp.
#define MINSTART 325 |
Definition at line 248 of file OSParseosil.tab.cpp.
#define MINEND 326 |
Definition at line 249 of file OSParseosil.tab.cpp.
#define ESTART 327 |
Definition at line 250 of file OSParseosil.tab.cpp.
#define EEND 328 |
Definition at line 251 of file OSParseosil.tab.cpp.
#define PISTART 329 |
Definition at line 252 of file OSParseosil.tab.cpp.
#define PIEND 330 |
Definition at line 253 of file OSParseosil.tab.cpp.
#define TIMEDOMAINSTART 331 |
Definition at line 254 of file OSParseosil.tab.cpp.
#define TIMEDOMAINEND 332 |
Definition at line 255 of file OSParseosil.tab.cpp.
#define STAGESSTART 333 |
Definition at line 256 of file OSParseosil.tab.cpp.
#define STAGESEND 334 |
Definition at line 257 of file OSParseosil.tab.cpp.
#define STAGESTART 335 |
Definition at line 258 of file OSParseosil.tab.cpp.
#define STAGEEND 336 |
Definition at line 259 of file OSParseosil.tab.cpp.
#define NAMEATT 337 |
Definition at line 260 of file OSParseosil.tab.cpp.
#define NUMBEROFSTAGESATT 338 |
Definition at line 261 of file OSParseosil.tab.cpp.
#define HORIZONATT 339 |
Definition at line 262 of file OSParseosil.tab.cpp.
#define STARTATT 340 |
Definition at line 263 of file OSParseosil.tab.cpp.
#define VARIABLESSTART 341 |
Definition at line 264 of file OSParseosil.tab.cpp.
#define CONSTRAINTSSTART 342 |
Definition at line 265 of file OSParseosil.tab.cpp.
#define OBJECTIVESSTART 343 |
Definition at line 266 of file OSParseosil.tab.cpp.
#define VARIABLESEND 344 |
Definition at line 267 of file OSParseosil.tab.cpp.
#define CONSTRAINTSEND 345 |
Definition at line 268 of file OSParseosil.tab.cpp.
#define OBJECTIVESEND 346 |
Definition at line 269 of file OSParseosil.tab.cpp.
#define NUMBEROFVARIABLESATT 347 |
Definition at line 270 of file OSParseosil.tab.cpp.
#define NUMBEROFCONSTRAINTSATT 348 |
Definition at line 271 of file OSParseosil.tab.cpp.
#define NUMBEROFOBJECTIVESATT 349 |
Definition at line 272 of file OSParseosil.tab.cpp.
#define STARTIDXATT 350 |
Definition at line 273 of file OSParseosil.tab.cpp.
#define VARSTART 351 |
Definition at line 274 of file OSParseosil.tab.cpp.
#define VAREND 352 |
Definition at line 275 of file OSParseosil.tab.cpp.
#define CONSTART 353 |
Definition at line 276 of file OSParseosil.tab.cpp.
#define CONEND 354 |
Definition at line 277 of file OSParseosil.tab.cpp.
#define OBJSTART 355 |
Definition at line 278 of file OSParseosil.tab.cpp.
#define OBJEND 356 |
Definition at line 279 of file OSParseosil.tab.cpp.
#define INTERVALSTART 357 |
Definition at line 280 of file OSParseosil.tab.cpp.
#define INTERVALEND 358 |
Definition at line 281 of file OSParseosil.tab.cpp.
#define ISWHITESPACE | ( | char_ | ) |
Value:
((char_) == ' ' || \ (char_) == '\t' || (char_) == '\r')
Definition at line 371 of file OSParseosil.tab.cpp.
#define ISDIGIT | ( | _c | ) | ((_c) >= '0' && (_c) <= '9') |
Definition at line 374 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 376 of file OSParseosil.tab.cpp.
#define GAIL printf("GAIL ANN HONDA\n") |
Definition at line 402 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 406 of file OSParseosil.tab.cpp.
#define YYDEBUG 0 |
Definition at line 422 of file OSParseosil.tab.cpp.
#define YYERROR_VERBOSE 1 |
Definition at line 430 of file OSParseosil.tab.cpp.
#define YYTOKEN_TABLE 0 |
Definition at line 435 of file OSParseosil.tab.cpp.
#define yystype YYSTYPE |
Definition at line 450 of file OSParseosil.tab.cpp.
#define YYSTYPE_IS_DECLARED 1 |
Definition at line 451 of file OSParseosil.tab.cpp.
#define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 452 of file OSParseosil.tab.cpp.
#define yyltype YYLTYPE |
Definition at line 463 of file OSParseosil.tab.cpp.
#define YYLTYPE_IS_DECLARED 1 |
Definition at line 464 of file OSParseosil.tab.cpp.
#define YYLTYPE_IS_TRIVIAL 1 |
Definition at line 465 of file OSParseosil.tab.cpp.
#define scanner parserData->scanner |
#define YYSIZE_T unsigned int |
Definition at line 523 of file OSParseosil.tab.cpp.
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 527 of file OSParseosil.tab.cpp.
#define YY_ | ( | msgid | ) | msgid |
Definition at line 537 of file OSParseosil.tab.cpp.
Definition at line 543 of file OSParseosil.tab.cpp.
Definition at line 550 of file OSParseosil.tab.cpp.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 605 of file OSParseosil.tab.cpp.
#define YYSTACK_FREE YYFREE |
Definition at line 606 of file OSParseosil.tab.cpp.
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 608 of file OSParseosil.tab.cpp.
#define YYMALLOC malloc |
Definition at line 619 of file OSParseosil.tab.cpp.
#define YYFREE free |
Definition at line 626 of file OSParseosil.tab.cpp.
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 650 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 654 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 665 of file OSParseosil.tab.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 681 of file OSParseosil.tab.cpp.
#define YYFINAL 6 |
Definition at line 695 of file OSParseosil.tab.cpp.
#define YYLAST 401 |
Definition at line 697 of file OSParseosil.tab.cpp.
#define YYNTOKENS 104 |
Definition at line 700 of file OSParseosil.tab.cpp.
#define YYNNTS 145 |
Definition at line 702 of file OSParseosil.tab.cpp.
#define YYNRULES 227 |
Definition at line 704 of file OSParseosil.tab.cpp.
#define YYNSTATES 403 |
Definition at line 706 of file OSParseosil.tab.cpp.
#define YYUNDEFTOK 2 |
Definition at line 709 of file OSParseosil.tab.cpp.
#define YYMAXUTOK 358 |
Definition at line 710 of file OSParseosil.tab.cpp.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 712 of file OSParseosil.tab.cpp.
#define YYPACT_NINF -149 |
Definition at line 1091 of file OSParseosil.tab.cpp.
#define YYTABLE_NINF -1 |
Definition at line 1161 of file OSParseosil.tab.cpp.
#define yyerrok (yyerrstatus = 0) |
Definition at line 1299 of file OSParseosil.tab.cpp.
#define yyclearin (yychar = YYEMPTY) |
Definition at line 1300 of file OSParseosil.tab.cpp.
#define YYEMPTY (-2) |
Definition at line 1301 of file OSParseosil.tab.cpp.
#define YYEOF 0 |
Definition at line 1302 of file OSParseosil.tab.cpp.
#define YYACCEPT goto yyacceptlab |
Definition at line 1304 of file OSParseosil.tab.cpp.
#define YYABORT goto yyabortlab |
Definition at line 1305 of file OSParseosil.tab.cpp.
#define YYERROR goto yyerrorlab |
Definition at line 1306 of file OSParseosil.tab.cpp.
#define YYFAIL goto yyerrlab |
Definition at line 1313 of file OSParseosil.tab.cpp.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 1315 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 1317 of file OSParseosil.tab.cpp.
#define YYTERROR 1 |
Definition at line 1335 of file OSParseosil.tab.cpp.
#define YYERRCODE 256 |
Definition at line 1336 of file OSParseosil.tab.cpp.
#define YYRHSLOC | ( | Rhs, | |||
K | ) | ((Rhs)[K]) |
Definition at line 1343 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 1345 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 1371 of file OSParseosil.tab.cpp.
#define YYLEX yylex (&yylval, &yylloc, scanner) |
Definition at line 1386 of file OSParseosil.tab.cpp.
#define YYDPRINTF | ( | Args | ) |
Definition at line 1557 of file OSParseosil.tab.cpp.
#define YY_SYMBOL_PRINT | ( | Title, | |||
Type, | |||||
Value, | |||||
Location | ) |
Definition at line 1558 of file OSParseosil.tab.cpp.
#define YY_STACK_PRINT | ( | Bottom, | |||
Top | ) |
Definition at line 1559 of file OSParseosil.tab.cpp.
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 1560 of file OSParseosil.tab.cpp.
#define YYINITDEPTH 200 |
Definition at line 1566 of file OSParseosil.tab.cpp.
#define YYMAXDEPTH 10000 |
Definition at line 1577 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 341 of file OSParseosil.tab.cpp.
typedef unsigned char yytype_uint8 |
Definition at line 489 of file OSParseosil.tab.cpp.
typedef short int yytype_int8 |
Definition at line 498 of file OSParseosil.tab.cpp.
typedef unsigned short int yytype_uint16 |
Definition at line 504 of file OSParseosil.tab.cpp.
typedef short int yytype_int16 |
Definition at line 510 of file OSParseosil.tab.cpp.
enum yytokentype |
Definition at line 76 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 716 of file OSParseosil.tab.cpp.
const char* const yytname[] [static] |
Definition at line 889 of file OSParseosil.tab.cpp.
const yytype_uint8 yyr1[] [static] |
Initial value:
{ 0, 104, 105, 106, 106, 107, 108, 108, 110, 109, 111, 111, 112, 112, 113, 113, 113, 113, 114, 115, 116, 116, 117, 118, 118, 119, 120, 121, 120, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 125, 124, 127, 126, 129, 128, 131, 130, 133, 132, 135, 134, 137, 136, 138, 138, 140, 139, 141, 141, 143, 142, 144, 144, 146, 145, 147, 147, 149, 148, 150, 150, 152, 151, 154, 153, 156, 155, 158, 157, 160, 159, 162, 161, 164, 163, 166, 165, 168, 167, 170, 169, 171, 171, 173, 172, 174, 174, 176, 175, 177, 177, 178, 178, 179, 179, 179, 181, 180, 183, 182, 184, 184, 186, 185, 187, 188, 187, 187, 189, 189, 190, 190, 191, 191, 192, 193, 193, 194, 195, 195, 195, 195, 196, 196, 197, 198, 199, 200, 200, 202, 201, 203, 203, 204, 204, 205, 206, 206, 207, 207, 208, 208, 209, 210, 211, 211, 212, 212, 213, 213, 215, 214, 216, 217, 217, 218, 218, 219, 219, 220, 220, 221, 222, 223, 223, 224, 224, 225, 225, 227, 226, 228, 229, 229, 230, 230, 231, 231, 232, 232, 233, 234, 235, 235, 236, 236, 237, 237, 239, 238, 240, 241, 241, 243, 242, 244, 244, 245, 245, 246, 246, 247, 248 }
Definition at line 966 of file OSParseosil.tab.cpp.
const yytype_uint8 yyr2[] [static] |
Initial value:
{ 0, 2, 5, 0, 4, 5, 1, 2, 0, 4, 1, 2, 0, 2, 1, 1, 1, 1, 4, 4, 4, 4, 4, 0, 4, 5, 0, 0, 7, 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 994 of file OSParseosil.tab.cpp.
const yytype_uint8 yydefact[] [static] |
Definition at line 1024 of file OSParseosil.tab.cpp.
const yytype_int16 yydefgoto[] [static] |
Initial value:
{ -1, 2, 3, 5, 10, 11, 12, 48, 30, 49, 50, 51, 52, 53, 8, 14, 23, 172, 56, 105, 106, 148, 107, 151, 108, 152, 109, 159, 110, 153, 111, 150, 112, 156, 188, 113, 168, 203, 114, 167, 201, 115, 169, 205, 116, 157, 190, 117, 154, 118, 155, 119, 161, 120, 162, 121, 163, 122, 158, 123, 165, 124, 166, 125, 160, 126, 170, 208, 127, 171, 211, 128, 149, 226, 180, 227, 228, 292, 229, 291, 230, 129, 164, 251, 297, 197, 252, 253, 254, 16, 17, 27, 28, 37, 38, 59, 71, 72, 73, 175, 217, 267, 268, 285, 302, 303, 304, 305, 306, 319, 320, 321, 355, 372, 288, 307, 328, 329, 330, 331, 332, 340, 341, 342, 374, 387, 309, 333, 349, 350, 351, 352, 353, 364, 365, 366, 389, 398, 39, 40, 138, 74, 139, 140, 141 }
Definition at line 1070 of file OSParseosil.tab.cpp.
const yytype_int16 yypact[] [static] |
Definition at line 1092 of file OSParseosil.tab.cpp.
const yytype_int16 yypgoto[] [static] |
Initial value:
{ -149, -149, -149, -149, -149, 388, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -148, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, 324, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, 80, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, 60, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149, 37, -149, -149, -149, -149, -149, -149, -149, -149, -149, -149 }
Definition at line 1138 of file OSParseosil.tab.cpp.
const yytype_uint16 yytable[] [static] |
Definition at line 1162 of file OSParseosil.tab.cpp.
const yytype_uint16 yycheck[] [static] |
Definition at line 1207 of file OSParseosil.tab.cpp.
const yytype_uint8 yystos[] [static] |
Definition at line 1254 of file OSParseosil.tab.cpp.
const char* yysrc |
Definition at line 1620 of file OSParseosil.tab.cpp.
int yytype |
Definition at line 1805 of file OSParseosil.tab.cpp.
Definition at line 1807 of file OSParseosil.tab.cpp.
Definition at line 1808 of file OSParseosil.tab.cpp.
Definition at line 1810 of file OSParseosil.tab.cpp.
Definition at line 1875 of file OSParseosil.tab.cpp.