/home/coin/SVN-release/OS-2.3.3/OS/src/OSParsers/OSParseosil.tab.cpp File Reference

#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 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 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   402
#define YYNTOKENS   105
#define YYNNTS   146
#define YYNRULES   229
#define YYNSTATES   405
#define YYUNDEFTOK   2
#define YYMAXUTOK   359
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -151
#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_stateYY_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
YYSTYPEyyvaluep
YYLTYPEyylocationp
OSInstanceosinstance
OSiLParserDataparserData
OSiLParserDataparserData


Define Documentation

#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 182 of file OSParseosil.tab.cpp.

#define ATTRIBUTETEXT   259

Definition at line 183 of file OSParseosil.tab.cpp.

#define INTEGER   260

Definition at line 184 of file OSParseosil.tab.cpp.

Referenced by BonminProblem::get_variables_types().

#define DOUBLE   261

Definition at line 185 of file OSParseosil.tab.cpp.

#define OSILEND   262

Definition at line 186 of file OSParseosil.tab.cpp.

#define INSTANCEDATAEND   263

Definition at line 187 of file OSParseosil.tab.cpp.

#define INSTANCEDATASTARTEND   264

Definition at line 188 of file OSParseosil.tab.cpp.

#define VALUEATT   265

Definition at line 189 of file OSParseosil.tab.cpp.

#define NUMBEROFNONLINEAREXPRESSIONS   266

Definition at line 190 of file OSParseosil.tab.cpp.

#define IDXONEATT   267

Definition at line 191 of file OSParseosil.tab.cpp.

#define IDXTWOATT   268

Definition at line 192 of file OSParseosil.tab.cpp.

#define COEFATT   269

Definition at line 193 of file OSParseosil.tab.cpp.

#define IDATT   270

Definition at line 194 of file OSParseosil.tab.cpp.

#define TIMESSTART   271

Definition at line 195 of file OSParseosil.tab.cpp.

#define TIMESEND   272

Definition at line 196 of file OSParseosil.tab.cpp.

#define NUMBERSTART   273

Definition at line 197 of file OSParseosil.tab.cpp.

#define NUMBEREND   274

Definition at line 198 of file OSParseosil.tab.cpp.

#define NUMBEROFQTERMSATT   275

Definition at line 199 of file OSParseosil.tab.cpp.

#define IDXATT   276

Definition at line 200 of file OSParseosil.tab.cpp.

#define TYPEATT   277

Definition at line 201 of file OSParseosil.tab.cpp.

#define QTERMSTART   278

Definition at line 202 of file OSParseosil.tab.cpp.

#define QTERMEND   279

Definition at line 203 of file OSParseosil.tab.cpp.

#define QUADRATICCOEFFICIENTSSTART   280

Definition at line 204 of file OSParseosil.tab.cpp.

#define QUADRATICCOEFFICIENTSEND   281

Definition at line 205 of file OSParseosil.tab.cpp.

#define NONLINEAREXPRESSIONSSTART   282

Definition at line 206 of file OSParseosil.tab.cpp.

#define NONLINEAREXPRESSIONSEND   283

Definition at line 207 of file OSParseosil.tab.cpp.

#define NLSTART   284

Definition at line 208 of file OSParseosil.tab.cpp.

#define NLEND   285

Definition at line 209 of file OSParseosil.tab.cpp.

#define POWERSTART   286

Definition at line 210 of file OSParseosil.tab.cpp.

#define POWEREND   287

Definition at line 211 of file OSParseosil.tab.cpp.

#define PLUSSTART   288

Definition at line 212 of file OSParseosil.tab.cpp.

#define PLUSEND   289

Definition at line 213 of file OSParseosil.tab.cpp.

#define MINUSSTART   290

Definition at line 214 of file OSParseosil.tab.cpp.

#define MINUSEND   291

Definition at line 215 of file OSParseosil.tab.cpp.

#define DIVIDESTART   292

Definition at line 216 of file OSParseosil.tab.cpp.

#define DIVIDEEND   293

Definition at line 217 of file OSParseosil.tab.cpp.

#define LNSTART   294

Definition at line 218 of file OSParseosil.tab.cpp.

#define LNEND   295

Definition at line 219 of file OSParseosil.tab.cpp.

#define SQRTSTART   296

Definition at line 220 of file OSParseosil.tab.cpp.

#define SQRTEND   297

Definition at line 221 of file OSParseosil.tab.cpp.

#define SUMSTART   298

Definition at line 222 of file OSParseosil.tab.cpp.

#define SUMEND   299

Definition at line 223 of file OSParseosil.tab.cpp.

#define PRODUCTSTART   300

Definition at line 224 of file OSParseosil.tab.cpp.

#define PRODUCTEND   301

Definition at line 225 of file OSParseosil.tab.cpp.

#define ENDOFELEMENT   302

Definition at line 226 of file OSParseosil.tab.cpp.

#define EXPSTART   303

Definition at line 227 of file OSParseosil.tab.cpp.

#define EXPEND   304

Definition at line 228 of file OSParseosil.tab.cpp.

#define NEGATESTART   305

Definition at line 229 of file OSParseosil.tab.cpp.

#define NEGATEEND   306

Definition at line 230 of file OSParseosil.tab.cpp.

#define IFSTART   307

Definition at line 231 of file OSParseosil.tab.cpp.

#define IFEND   308

Definition at line 232 of file OSParseosil.tab.cpp.

#define SQUARESTART   309

Definition at line 233 of file OSParseosil.tab.cpp.

#define SQUAREEND   310

Definition at line 234 of file OSParseosil.tab.cpp.

#define COSSTART   311

Definition at line 235 of file OSParseosil.tab.cpp.

#define COSEND   312

Definition at line 236 of file OSParseosil.tab.cpp.

#define SINSTART   313

Definition at line 237 of file OSParseosil.tab.cpp.

#define SINEND   314

Definition at line 238 of file OSParseosil.tab.cpp.

#define GREATERTHAN   315

Definition at line 239 of file OSParseosil.tab.cpp.

#define VARIABLESTART   316

Definition at line 240 of file OSParseosil.tab.cpp.

#define VARIABLEEND   317

Definition at line 241 of file OSParseosil.tab.cpp.

#define ABSSTART   318

Definition at line 242 of file OSParseosil.tab.cpp.

#define ABSEND   319

Definition at line 243 of file OSParseosil.tab.cpp.

#define ERFSTART   320

Definition at line 244 of file OSParseosil.tab.cpp.

#define ERFEND   321

Definition at line 245 of file OSParseosil.tab.cpp.

#define MAXSTART   322

Definition at line 246 of file OSParseosil.tab.cpp.

#define MAXEND   323

Definition at line 247 of file OSParseosil.tab.cpp.

#define ALLDIFFSTART   324

Definition at line 248 of file OSParseosil.tab.cpp.

#define ALLDIFFEND   325

Definition at line 249 of file OSParseosil.tab.cpp.

#define MINSTART   326

Definition at line 250 of file OSParseosil.tab.cpp.

#define MINEND   327

Definition at line 251 of file OSParseosil.tab.cpp.

#define ESTART   328

Definition at line 252 of file OSParseosil.tab.cpp.

#define EEND   329

Definition at line 253 of file OSParseosil.tab.cpp.

#define PISTART   330

Definition at line 254 of file OSParseosil.tab.cpp.

#define PIEND   331

Definition at line 255 of file OSParseosil.tab.cpp.

#define TIMEDOMAINSTART   332

Definition at line 256 of file OSParseosil.tab.cpp.

#define TIMEDOMAINEND   333

Definition at line 257 of file OSParseosil.tab.cpp.

#define STAGESSTART   334

Definition at line 258 of file OSParseosil.tab.cpp.

#define STAGESEND   335

Definition at line 259 of file OSParseosil.tab.cpp.

#define STAGESTART   336

Definition at line 260 of file OSParseosil.tab.cpp.

#define STAGEEND   337

Definition at line 261 of file OSParseosil.tab.cpp.

#define NAMEATT   338

Definition at line 262 of file OSParseosil.tab.cpp.

#define NUMBEROFSTAGESATT   339

Definition at line 263 of file OSParseosil.tab.cpp.

#define HORIZONATT   340

Definition at line 264 of file OSParseosil.tab.cpp.

#define STARTATT   341

Definition at line 265 of file OSParseosil.tab.cpp.

#define VARIABLESSTART   342

Definition at line 266 of file OSParseosil.tab.cpp.

#define CONSTRAINTSSTART   343

Definition at line 267 of file OSParseosil.tab.cpp.

#define OBJECTIVESSTART   344

Definition at line 268 of file OSParseosil.tab.cpp.

#define VARIABLESEND   345

Definition at line 269 of file OSParseosil.tab.cpp.

#define CONSTRAINTSEND   346

Definition at line 270 of file OSParseosil.tab.cpp.

#define OBJECTIVESEND   347

Definition at line 271 of file OSParseosil.tab.cpp.

#define NUMBEROFVARIABLESATT   348

Definition at line 272 of file OSParseosil.tab.cpp.

#define NUMBEROFCONSTRAINTSATT   349

Definition at line 273 of file OSParseosil.tab.cpp.

#define NUMBEROFOBJECTIVESATT   350

Definition at line 274 of file OSParseosil.tab.cpp.

#define STARTIDXATT   351

Definition at line 275 of file OSParseosil.tab.cpp.

#define VARSTART   352

Definition at line 276 of file OSParseosil.tab.cpp.

#define VAREND   353

Definition at line 277 of file OSParseosil.tab.cpp.

#define CONSTART   354

Definition at line 278 of file OSParseosil.tab.cpp.

#define CONEND   355

Definition at line 279 of file OSParseosil.tab.cpp.

#define OBJSTART   356

Definition at line 280 of file OSParseosil.tab.cpp.

#define OBJEND   357

Definition at line 281 of file OSParseosil.tab.cpp.

#define INTERVALSTART   358

Definition at line 282 of file OSParseosil.tab.cpp.

#define INTERVALEND   359

Definition at line 283 of file OSParseosil.tab.cpp.

#define ISWHITESPACE ( char_   ) 

Value:

((char_) == ' ' || \
                     (char_) == '\t' ||  (char_) == '\r')

Definition at line 373 of file OSParseosil.tab.cpp.

#define ISDIGIT ( _c   )     ((_c) >= '0' && (_c) <= '9')

Definition at line 376 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 378 of file OSParseosil.tab.cpp.

#define GAIL   printf("GAIL ANN HONDA\n")

Definition at line 404 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 408 of file OSParseosil.tab.cpp.

#define YYDEBUG   0

Definition at line 424 of file OSParseosil.tab.cpp.

#define YYERROR_VERBOSE   1

Definition at line 432 of file OSParseosil.tab.cpp.

#define YYTOKEN_TABLE   0

Definition at line 437 of file OSParseosil.tab.cpp.

#define yystype   YYSTYPE

Definition at line 452 of file OSParseosil.tab.cpp.

#define YYSTYPE_IS_DECLARED   1

Definition at line 453 of file OSParseosil.tab.cpp.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 454 of file OSParseosil.tab.cpp.

#define yyltype   YYLTYPE

Definition at line 465 of file OSParseosil.tab.cpp.

#define YYLTYPE_IS_DECLARED   1

Definition at line 466 of file OSParseosil.tab.cpp.

#define YYLTYPE_IS_TRIVIAL   1

Definition at line 467 of file OSParseosil.tab.cpp.

#define scanner   parserData->scanner

Definition at line 478 of file OSParseosil.tab.cpp.

Referenced by getAmplClientOptions(), and main().

#define YYSIZE_T   unsigned int

Definition at line 525 of file OSParseosil.tab.cpp.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 529 of file OSParseosil.tab.cpp.

#define YY_ ( msgid   )     msgid

Definition at line 539 of file OSParseosil.tab.cpp.

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

Definition at line 545 of file OSParseosil.tab.cpp.

#define YYID (  )     (n)

Definition at line 552 of file OSParseosil.tab.cpp.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 607 of file OSParseosil.tab.cpp.

#define YYSTACK_FREE   YYFREE

Definition at line 608 of file OSParseosil.tab.cpp.

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 610 of file OSParseosil.tab.cpp.

#define YYMALLOC   malloc

Definition at line 621 of file OSParseosil.tab.cpp.

#define YYFREE   free

Definition at line 628 of file OSParseosil.tab.cpp.

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

Definition at line 652 of file OSParseosil.tab.cpp.

#define YYSTACK_BYTES (  ) 

Value:

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

Definition at line 656 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 667 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 683 of file OSParseosil.tab.cpp.

#define YYFINAL   6

Definition at line 697 of file OSParseosil.tab.cpp.

#define YYLAST   402

Definition at line 699 of file OSParseosil.tab.cpp.

#define YYNTOKENS   105

Definition at line 702 of file OSParseosil.tab.cpp.

#define YYNNTS   146

Definition at line 704 of file OSParseosil.tab.cpp.

#define YYNRULES   229

Definition at line 706 of file OSParseosil.tab.cpp.

#define YYNSTATES   405

Definition at line 708 of file OSParseosil.tab.cpp.

#define YYUNDEFTOK   2

Definition at line 711 of file OSParseosil.tab.cpp.

#define YYMAXUTOK   359

Definition at line 712 of file OSParseosil.tab.cpp.

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

Definition at line 714 of file OSParseosil.tab.cpp.

#define YYPACT_NINF   -151

Definition at line 1094 of file OSParseosil.tab.cpp.

#define YYTABLE_NINF   -1

Definition at line 1164 of file OSParseosil.tab.cpp.

#define yyerrok   (yyerrstatus = 0)

Definition at line 1302 of file OSParseosil.tab.cpp.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 1303 of file OSParseosil.tab.cpp.

#define YYEMPTY   (-2)

Definition at line 1304 of file OSParseosil.tab.cpp.

#define YYEOF   0

Definition at line 1305 of file OSParseosil.tab.cpp.

#define YYACCEPT   goto yyacceptlab

Definition at line 1307 of file OSParseosil.tab.cpp.

#define YYABORT   goto yyabortlab

Definition at line 1308 of file OSParseosil.tab.cpp.

#define YYERROR   goto yyerrorlab

Definition at line 1309 of file OSParseosil.tab.cpp.

#define YYFAIL   goto yyerrlab

Definition at line 1316 of file OSParseosil.tab.cpp.

 
#define YYRECOVERING (  )     (!!yyerrstatus)

Definition at line 1318 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 1320 of file OSParseosil.tab.cpp.

#define YYTERROR   1

Definition at line 1338 of file OSParseosil.tab.cpp.

#define YYERRCODE   256

Definition at line 1339 of file OSParseosil.tab.cpp.

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

Definition at line 1346 of file OSParseosil.tab.cpp.

#define YYLLOC_DEFAULT ( Current,
Rhs,
 ) 

Value:

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

Definition at line 1348 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 1374 of file OSParseosil.tab.cpp.

#define YYLEX   yylex (&yylval, &yylloc, scanner)

Definition at line 1389 of file OSParseosil.tab.cpp.

#define YYDPRINTF ( Args   ) 

Definition at line 1560 of file OSParseosil.tab.cpp.

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

Definition at line 1561 of file OSParseosil.tab.cpp.

#define YY_STACK_PRINT ( Bottom,
Top   ) 

Definition at line 1562 of file OSParseosil.tab.cpp.

#define YY_REDUCE_PRINT ( Rule   ) 

Definition at line 1563 of file OSParseosil.tab.cpp.

#define YYINITDEPTH   200

Definition at line 1569 of file OSParseosil.tab.cpp.

#define YYMAXDEPTH   10000

Definition at line 1580 of file OSParseosil.tab.cpp.

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


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 343 of file OSParseosil.tab.cpp.

typedef unsigned char yytype_uint8

Definition at line 491 of file OSParseosil.tab.cpp.

typedef short int yytype_int8

Definition at line 500 of file OSParseosil.tab.cpp.

typedef unsigned short int yytype_uint16

Definition at line 506 of file OSParseosil.tab.cpp.

typedef short int yytype_int16

Definition at line 512 of file OSParseosil.tab.cpp.


Enumeration Type Documentation

enum yytokentype

Enumerator:
QUOTE 
ATTRIBUTETEXT 
INTEGER 
DOUBLE 
OSILEND 
INSTANCEDATAEND 
INSTANCEDATASTARTEND 
VALUEATT 
NUMBEROFNONLINEAREXPRESSIONS 
IDXONEATT 
IDXTWOATT 
COEFATT 
IDATT 
TIMESSTART 
TIMESEND 
NUMBERSTART 
NUMBEREND 
NUMBEROFQTERMSATT 
IDXATT 
TYPEATT 
QTERMSTART 
QTERMEND 
QUADRATICCOEFFICIENTSSTART 
QUADRATICCOEFFICIENTSEND 
NONLINEAREXPRESSIONSSTART 
NONLINEAREXPRESSIONSEND 
NLSTART 
NLEND 
POWERSTART 
POWEREND 
PLUSSTART 
PLUSEND 
MINUSSTART 
MINUSEND 
DIVIDESTART 
DIVIDEEND 
LNSTART 
LNEND 
SQRTSTART 
SQRTEND 
SUMSTART 
SUMEND 
PRODUCTSTART 
PRODUCTEND 
ENDOFELEMENT 
EXPSTART 
EXPEND 
NEGATESTART 
NEGATEEND 
IFSTART 
IFEND 
SQUARESTART 
SQUAREEND 
COSSTART 
COSEND 
SINSTART 
SINEND 
GREATERTHAN 
VARIABLESTART 
VARIABLEEND 
ABSSTART 
ABSEND 
ERFSTART 
ERFEND 
MAXSTART 
MAXEND 
ALLDIFFSTART 
ALLDIFFEND 
MINSTART 
MINEND 
ESTART 
EEND 
PISTART 
PIEND 
TIMEDOMAINSTART 
TIMEDOMAINEND 
STAGESSTART 
STAGESEND 
STAGESTART 
STAGEEND 
NAMEATT 
NUMBEROFSTAGESATT 
HORIZONATT 
STARTATT 
VARIABLESSTART 
CONSTRAINTSSTART 
OBJECTIVESSTART 
VARIABLESEND 
CONSTRAINTSEND 
OBJECTIVESEND 
NUMBEROFVARIABLESATT 
NUMBEROFCONSTRAINTSATT 
NUMBEROFOBJECTIVESATT 
STARTIDXATT 
VARSTART 
VAREND 
CONSTART 
CONEND 
OBJSTART 
OBJEND 
INTERVALSTART 
INTERVALEND 

Definition at line 76 of file OSParseosil.tab.cpp.


Function Documentation

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 [static]

int yyparse ( osinstance  ,
parserData   
)


Variable Documentation

const yytype_uint8 yytranslate[] [static]

Definition at line 718 of file OSParseosil.tab.cpp.

const char* const yytname[] [static]

Definition at line 892 of file OSParseosil.tab.cpp.

const yytype_uint8 yyr1[] [static]

Initial value:

{
       0,   105,   106,   107,   107,   108,   108,   109,   110,   110,
     112,   111,   113,   113,   114,   114,   115,   115,   115,   115,
     116,   117,   118,   118,   119,   120,   120,   121,   122,   123,
     122,   124,   125,   125,   125,   125,   125,   125,   125,   125,
     125,   125,   125,   125,   125,   125,   125,   125,   125,   125,
     125,   125,   125,   125,   125,   125,   127,   126,   129,   128,
     131,   130,   133,   132,   135,   134,   137,   136,   139,   138,
     140,   140,   142,   141,   143,   143,   145,   144,   146,   146,
     148,   147,   149,   149,   151,   150,   152,   152,   154,   153,
     156,   155,   158,   157,   160,   159,   162,   161,   164,   163,
     166,   165,   168,   167,   170,   169,   172,   171,   173,   173,
     175,   174,   176,   176,   178,   177,   179,   179,   180,   180,
     181,   181,   181,   183,   182,   185,   184,   186,   186,   188,
     187,   189,   190,   189,   189,   191,   191,   192,   192,   193,
     193,   194,   195,   195,   196,   197,   197,   197,   197,   198,
     198,   199,   200,   201,   202,   202,   204,   203,   205,   205,
     206,   206,   207,   208,   208,   209,   209,   210,   210,   211,
     212,   213,   213,   214,   214,   215,   215,   217,   216,   218,
     219,   219,   220,   220,   221,   221,   222,   222,   223,   224,
     225,   225,   226,   226,   227,   227,   229,   228,   230,   231,
     231,   232,   232,   233,   233,   234,   234,   235,   236,   237,
     237,   238,   238,   239,   239,   241,   240,   242,   243,   243,
     245,   244,   246,   246,   247,   247,   248,   248,   249,   250
}

Definition at line 969 of file OSParseosil.tab.cpp.

const yytype_uint8 yyr2[] [static]

Initial value:

{
       0,     2,     5,     1,     1,     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 997 of file OSParseosil.tab.cpp.

const yytype_uint8 yydefact[] [static]

Definition at line 1027 of file OSParseosil.tab.cpp.

const yytype_int16 yydefgoto[] [static]

Initial value:

{
      -1,     2,    26,     3,     5,    10,    11,    12,    50,    32,
      51,    52,    53,    54,    55,     8,    14,    23,   174,    58,
     107,   108,   150,   109,   153,   110,   154,   111,   161,   112,
     155,   113,   152,   114,   158,   190,   115,   170,   205,   116,
     169,   203,   117,   171,   207,   118,   159,   192,   119,   156,
     120,   157,   121,   163,   122,   164,   123,   165,   124,   160,
     125,   167,   126,   168,   127,   162,   128,   172,   210,   129,
     173,   213,   130,   151,   228,   182,   229,   230,   294,   231,
     293,   232,   131,   166,   253,   299,   199,   254,   255,   256,
      16,    17,    29,    30,    39,    40,    61,    73,    74,    75,
     177,   219,   269,   270,   287,   304,   305,   306,   307,   308,
     321,   322,   323,   357,   374,   290,   309,   330,   331,   332,
     333,   334,   342,   343,   344,   376,   389,   311,   335,   351,
     352,   353,   354,   355,   366,   367,   368,   391,   400,    41,
      42,   140,    76,   141,   142,   143
}

Definition at line 1073 of file OSParseosil.tab.cpp.

const yytype_int16 yypact[] [static]

Definition at line 1095 of file OSParseosil.tab.cpp.

const yytype_int16 yypgoto[] [static]

Initial value:

{
    -151,  -151,  -151,  -151,  -151,  -151,   389,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -150,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,   322,  -151,
    -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,    79,  -151,  -151,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,    59,  -151,  -151,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,    36,  -151,  -151,  -151,  -151,
    -151,  -151,  -151,  -151,  -151,  -151
}

Definition at line 1141 of file OSParseosil.tab.cpp.

const yytype_uint16 yytable[] [static]

Definition at line 1165 of file OSParseosil.tab.cpp.

const yytype_uint16 yycheck[] [static]

Definition at line 1210 of file OSParseosil.tab.cpp.

const yytype_uint8 yystos[] [static]

Definition at line 1257 of file OSParseosil.tab.cpp.

const char* yysrc

Definition at line 1623 of file OSParseosil.tab.cpp.

int yytype

Definition at line 1808 of file OSParseosil.tab.cpp.

YYSTYPE* yyvaluep

Definition at line 1810 of file OSParseosil.tab.cpp.

YYLTYPE* yylocationp

Definition at line 1811 of file OSParseosil.tab.cpp.

OSInstance* osinstance

Definition at line 1812 of file OSParseosil.tab.cpp.

Referenced by buildSolver(), OS_DipInterface::generateInitialMaster(), OS_DipInterface::getBlockOSInstances(), main(), OSDipBlockBearcatSolver::OSDipBlockBearcatSolver(), OSDipBlockCoinSolver::OSDipBlockCoinSolver(), and OSDipBlockSlpSolver::OSDipBlockSlpSolver().

OSiLParserData* parserData

Definition at line 1813 of file OSParseosil.tab.cpp.

OSiLParserData* parserData

Definition at line 1878 of file OSParseosil.tab.cpp.


Generated on Sun Mar 20 03:08:29 2011 by  doxygen 1.4.7