/home/coin/SVN-release/OS-1.0.0/OS/src/OSParsers/parseosil.tab.cpp File Reference

#include <string>
#include <iostream>
#include <sstream>
#include "OSInstance.h"
#include "OSnLNode.h"
#include "ErrorClass.h"
#include "OSParameters.h"
#include "OSiLParserData.h"
#include "Base64.h"

Include dependency graph for parseosil.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 MAXSTART   319
#define MAXEND   320
#define ALLDIFFSTART   321
#define ALLDIFFEND   322
#define MINSTART   323
#define MINEND   324
#define ESTART   325
#define EEND   326
#define PISTART   327
#define PIEND   328
#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   372
#define YYNTOKENS   78
#define YYNNTS   88
#define YYNRULES   140
#define YYNSTATES   232
#define YYUNDEFTOK   2
#define YYMAXUTOK   328
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -79
#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, 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, MAXSTART = 319, MAXEND = 320, ALLDIFFSTART = 321,
  ALLDIFFEND = 322, MINSTART = 323, MINEND = 324, ESTART = 325,
  EEND = 326, PISTART = 327, PIEND = 328
}

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)
int osilget_lineno (void *yyscanner)
char * osilget_text (void *yyscanner)
void osilset_lineno (int line_number, void *yyscanner)
OSInstanceyygetOSInstance (const char *osil) 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_int8 yypgoto []
static const yytype_uint8 yytable []
static const yytype_int16 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 parseosil.tab.cpp.

#define YYBISON_VERSION   "2.3"

Definition at line 50 of file parseosil.tab.cpp.

#define YYSKELETON_NAME   "yacc.c"

Definition at line 53 of file parseosil.tab.cpp.

#define YYPURE   1

Definition at line 56 of file parseosil.tab.cpp.

#define YYLSP_NEEDED   1

Definition at line 59 of file parseosil.tab.cpp.

#define yyparse   osilparse

Definition at line 62 of file parseosil.tab.cpp.

#define yylex   osillex

Definition at line 63 of file parseosil.tab.cpp.

#define yyerror   osilerror

Definition at line 64 of file parseosil.tab.cpp.

#define yylval   osillval

Definition at line 65 of file parseosil.tab.cpp.

#define yychar   osilchar

Definition at line 66 of file parseosil.tab.cpp.

#define yydebug   osildebug

Definition at line 67 of file parseosil.tab.cpp.

#define yynerrs   osilnerrs

Definition at line 68 of file parseosil.tab.cpp.

#define yylloc   osillloc

Definition at line 69 of file parseosil.tab.cpp.

#define QUOTE   258

Definition at line 151 of file parseosil.tab.cpp.

#define ATTRIBUTETEXT   259

Definition at line 152 of file parseosil.tab.cpp.

#define INTEGER   260

Definition at line 153 of file parseosil.tab.cpp.

#define DOUBLE   261

Definition at line 154 of file parseosil.tab.cpp.

#define OSILEND   262

Definition at line 155 of file parseosil.tab.cpp.

#define INSTANCEDATAEND   263

Definition at line 156 of file parseosil.tab.cpp.

#define VALUEATT   264

Definition at line 157 of file parseosil.tab.cpp.

#define NUMBEROFNONLINEAREXPRESSIONS   265

Definition at line 158 of file parseosil.tab.cpp.

#define IDXONEATT   266

Definition at line 159 of file parseosil.tab.cpp.

#define IDXTWOATT   267

Definition at line 160 of file parseosil.tab.cpp.

#define COEFATT   268

Definition at line 161 of file parseosil.tab.cpp.

#define IDATT   269

Definition at line 162 of file parseosil.tab.cpp.

#define TIMESSTART   270

Definition at line 163 of file parseosil.tab.cpp.

#define TIMESEND   271

Definition at line 164 of file parseosil.tab.cpp.

#define NUMBERSTART   272

Definition at line 165 of file parseosil.tab.cpp.

#define NUMBEREND   273

Definition at line 166 of file parseosil.tab.cpp.

#define NUMBEROFQTERMSATT   274

Definition at line 167 of file parseosil.tab.cpp.

#define IDXATT   275

Definition at line 168 of file parseosil.tab.cpp.

#define TYPEATT   276

Definition at line 169 of file parseosil.tab.cpp.

#define QTERMSTART   277

Definition at line 170 of file parseosil.tab.cpp.

#define QTERMEND   278

Definition at line 171 of file parseosil.tab.cpp.

#define QUADRATICCOEFFICIENTSSTART   279

Definition at line 172 of file parseosil.tab.cpp.

#define QUADRATICCOEFFICIENTSEND   280

Definition at line 173 of file parseosil.tab.cpp.

#define NONLINEAREXPRESSIONSSTART   281

Definition at line 174 of file parseosil.tab.cpp.

#define NONLINEAREXPRESSIONSEND   282

Definition at line 175 of file parseosil.tab.cpp.

#define NLSTART   283

Definition at line 176 of file parseosil.tab.cpp.

#define NLEND   284

Definition at line 177 of file parseosil.tab.cpp.

#define POWERSTART   285

Definition at line 178 of file parseosil.tab.cpp.

#define POWEREND   286

Definition at line 179 of file parseosil.tab.cpp.

#define PLUSSTART   287

Definition at line 180 of file parseosil.tab.cpp.

#define PLUSEND   288

Definition at line 181 of file parseosil.tab.cpp.

#define MINUSSTART   289

Definition at line 182 of file parseosil.tab.cpp.

#define MINUSEND   290

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

#define DIVIDESTART   291

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

#define DIVIDEEND   292

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

#define LNSTART   293

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

#define LNEND   294

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

#define SQRTSTART   295

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

#define SQRTEND   296

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

#define SUMSTART   297

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

#define SUMEND   298

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

#define PRODUCTSTART   299

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

#define PRODUCTEND   300

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

#define ENDOFELEMENT   301

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

#define EXPSTART   302

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

#define EXPEND   303

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

#define NEGATESTART   304

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

#define NEGATEEND   305

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

#define IFSTART   306

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

#define IFEND   307

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

#define SQUARESTART   308

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

#define SQUAREEND   309

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

#define COSSTART   310

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

#define COSEND   311

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

#define SINSTART   312

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

#define SINEND   313

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

#define GREATERTHAN   314

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

#define VARIABLESTART   315

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

#define VARIABLEEND   316

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

#define ABSSTART   317

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

#define ABSEND   318

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

#define MAXSTART   319

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

#define MAXEND   320

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

#define ALLDIFFSTART   321

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

#define ALLDIFFEND   322

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

#define MINSTART   323

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

#define MINEND   324

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

#define ESTART   325

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

#define EEND   326

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

#define PISTART   327

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

#define PIEND   328

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

#define ISWHITESPACE ( char_   ) 

Value:

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

Definition at line 297 of file parseosil.tab.cpp.

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

Definition at line 300 of file parseosil.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 != '\"') {  osilerror_wrapper( ch, osillineno,"missing quote on attribute"); return false;} \
        ch++; \
        for(; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ; \
        *p = ch; \
        for( ; *ch != '\"' &&  *ch != '\''; ch++); \
        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 302 of file parseosil.tab.cpp.

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

Definition at line 318 of file parseosil.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 320 of file parseosil.tab.cpp.

#define YYDEBUG   0

Definition at line 336 of file parseosil.tab.cpp.

#define YYERROR_VERBOSE   1

Definition at line 344 of file parseosil.tab.cpp.

#define YYTOKEN_TABLE   0

Definition at line 349 of file parseosil.tab.cpp.

#define yystype   YYSTYPE

Definition at line 364 of file parseosil.tab.cpp.

#define YYSTYPE_IS_DECLARED   1

Definition at line 365 of file parseosil.tab.cpp.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 366 of file parseosil.tab.cpp.

#define yyltype   YYLTYPE

Definition at line 377 of file parseosil.tab.cpp.

#define YYLTYPE_IS_DECLARED   1

Definition at line 378 of file parseosil.tab.cpp.

#define YYLTYPE_IS_TRIVIAL   1

Definition at line 379 of file parseosil.tab.cpp.

#define scanner   parserData->scanner

Definition at line 390 of file parseosil.tab.cpp.

Referenced by main().

#define YYSIZE_T   unsigned int

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

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 441 of file parseosil.tab.cpp.

#define YY_ ( msgid   )     msgid

Definition at line 451 of file parseosil.tab.cpp.

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

Definition at line 457 of file parseosil.tab.cpp.

#define YYID (  )     (n)

Definition at line 464 of file parseosil.tab.cpp.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 519 of file parseosil.tab.cpp.

#define YYSTACK_FREE   YYFREE

Definition at line 520 of file parseosil.tab.cpp.

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 522 of file parseosil.tab.cpp.

#define YYMALLOC   malloc

Definition at line 533 of file parseosil.tab.cpp.

#define YYFREE   free

Definition at line 540 of file parseosil.tab.cpp.

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

Definition at line 564 of file parseosil.tab.cpp.

#define YYSTACK_BYTES (  ) 

Value:

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

Definition at line 568 of file parseosil.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 579 of file parseosil.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 595 of file parseosil.tab.cpp.

#define YYFINAL   6

Definition at line 609 of file parseosil.tab.cpp.

#define YYLAST   372

Definition at line 611 of file parseosil.tab.cpp.

#define YYNTOKENS   78

Definition at line 614 of file parseosil.tab.cpp.

#define YYNNTS   88

Definition at line 616 of file parseosil.tab.cpp.

#define YYNRULES   140

Definition at line 618 of file parseosil.tab.cpp.

#define YYNSTATES   232

Definition at line 620 of file parseosil.tab.cpp.

#define YYUNDEFTOK   2

Definition at line 623 of file parseosil.tab.cpp.

#define YYMAXUTOK   328

Definition at line 624 of file parseosil.tab.cpp.

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

Definition at line 626 of file parseosil.tab.cpp.

#define YYPACT_NINF   -79

Definition at line 895 of file parseosil.tab.cpp.

#define YYTABLE_NINF   -1

Definition at line 942 of file parseosil.tab.cpp.

#define yyerrok   (yyerrstatus = 0)

Definition at line 1057 of file parseosil.tab.cpp.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 1058 of file parseosil.tab.cpp.

#define YYEMPTY   (-2)

Definition at line 1059 of file parseosil.tab.cpp.

#define YYEOF   0

Definition at line 1060 of file parseosil.tab.cpp.

#define YYACCEPT   goto yyacceptlab

Definition at line 1062 of file parseosil.tab.cpp.

#define YYABORT   goto yyabortlab

Definition at line 1063 of file parseosil.tab.cpp.

#define YYERROR   goto yyerrorlab

Definition at line 1064 of file parseosil.tab.cpp.

#define YYFAIL   goto yyerrlab

Definition at line 1071 of file parseosil.tab.cpp.

 
#define YYRECOVERING (  )     (!!yyerrstatus)

Definition at line 1073 of file parseosil.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 1075 of file parseosil.tab.cpp.

#define YYTERROR   1

Definition at line 1093 of file parseosil.tab.cpp.

#define YYERRCODE   256

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

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

Definition at line 1101 of file parseosil.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 1103 of file parseosil.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 1129 of file parseosil.tab.cpp.

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

Definition at line 1144 of file parseosil.tab.cpp.

#define YYDPRINTF ( Args   ) 

Definition at line 1315 of file parseosil.tab.cpp.

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

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

#define YY_STACK_PRINT ( Bottom,
Top   ) 

Definition at line 1317 of file parseosil.tab.cpp.

#define YY_REDUCE_PRINT ( Rule   ) 

Definition at line 1318 of file parseosil.tab.cpp.

#define YYINITDEPTH   200

Definition at line 1324 of file parseosil.tab.cpp.

#define YYMAXDEPTH   10000

Definition at line 1335 of file parseosil.tab.cpp.

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


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE

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

typedef unsigned char yytype_uint8

Definition at line 403 of file parseosil.tab.cpp.

typedef short int yytype_int8

Definition at line 412 of file parseosil.tab.cpp.

typedef unsigned short int yytype_uint16

Definition at line 418 of file parseosil.tab.cpp.

typedef short int yytype_int16

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


Enumeration Type Documentation

enum yytokentype

Enumerator:
QUOTE 
ATTRIBUTETEXT 
INTEGER 
DOUBLE 
OSILEND 
INSTANCEDATAEND 
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 
MAXSTART 
MAXEND 
ALLDIFFSTART 
ALLDIFFEND 
MINSTART 
MINEND 
ESTART 
EEND 
PISTART 
PIEND 

Definition at line 76 of file parseosil.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  ) 

int osilget_lineno ( void *  yyscanner  ) 

char* osilget_text ( void *  yyscanner  ) 

void osilset_lineno ( int  line_number,
void *  yyscanner 
)

OSInstance* yygetOSInstance ( const char *  osil  )  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 630 of file parseosil.tab.cpp.

const char* const yytname[] [static]

Definition at line 757 of file parseosil.tab.cpp.

const yytype_uint8 yyr1[] [static]

Initial value:

{
       0,    78,    79,    80,    80,    81,    82,    82,    84,    83,
      85,    85,    86,    86,    87,    87,    87,    87,    88,    89,
      90,    90,    91,    92,    92,    93,    94,    95,    94,    96,
      97,    97,    97,    97,    97,    97,    97,    97,    97,    97,
      97,    97,    97,    97,    97,    97,    97,    97,    97,    97,
      97,    97,    97,    99,    98,   101,   100,   103,   102,   105,
     104,   107,   106,   109,   108,   111,   110,   112,   112,   114,
     113,   115,   115,   117,   116,   118,   118,   120,   119,   121,
     121,   123,   122,   124,   124,   126,   125,   128,   127,   130,
     129,   132,   131,   134,   133,   136,   135,   138,   137,   140,
     139,   142,   141,   144,   143,   145,   145,   147,   146,   148,
     148,   150,   149,   151,   151,   152,   153,   152,   154,   154,
     155,   155,   155,   156,   157,   158,   158,   159,   159,   160,
     160,   161,   161,   162,   163,   163,   163,   163,   164,   164,
     165
}

Definition at line 809 of file parseosil.tab.cpp.

const yytype_uint8 yyr2[] [static]

Initial value:

{
       0,     2,     4,     0,     4,     4,     0,     2,     0,     4,
       1,     2,     0,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     0,     4,     4,     0,     0,     7,     3,
       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,
       6,     0,     4,     0,     4,     1,     1,     0,     3,     1,
       2,     0,     3,     1,     2,     1,     0,     4,     0,     2,
       2,     2,     2,     2,     2,     2,     2,     0,     2,     2,
       2,     2,     2,     2,     1,     1,     1,     1,     0,     2,
       2
}

Definition at line 829 of file parseosil.tab.cpp.

const yytype_uint8 yydefact[] [static]

Initial value:

{
       3,     0,     0,    23,     0,     6,     1,     0,     0,   138,
       8,     0,    26,     0,     0,     0,     4,     7,     0,   138,
       0,     2,   140,   134,   135,   136,   137,   139,     5,    12,
       0,    24,     0,     0,    25,     0,     0,     0,     0,     0,
       0,    10,     0,     9,    13,   138,   138,   138,   138,   138,
       0,    18,    19,    21,    20,    22,    11,    14,    15,    16,
      17,    29,    53,   101,    63,    55,    57,    61,    85,    87,
      65,    81,    95,    59,    99,    89,    91,    93,   103,    97,
      73,    69,    77,   107,   111,    27,    32,    33,    35,    36,
      37,    38,    34,    52,    48,    49,    39,    40,    41,    42,
      44,    43,    45,    47,    46,    30,    31,    50,    51,     0,
     118,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   127,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    67,     0,    83,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    75,     0,    71,     0,    79,     0,   109,
       0,   108,   113,     0,   112,    28,     0,     0,     0,   106,
       0,   105,   102,   119,   138,   138,   138,     0,     0,     0,
       0,    86,    88,    66,    68,    82,    84,    96,    60,     0,
      90,    92,    94,     0,     0,   115,     0,   104,   128,   138,
     138,    98,    74,    76,    70,    72,    78,    80,   110,   114,
      54,   126,   125,   124,   123,   120,   122,   121,    64,    56,
      58,    62,     0,   132,   131,   133,   116,   129,   130,   100,
       0,   117
}

Definition at line 851 of file parseosil.tab.cpp.

const yytype_int16 yydefgoto[] [static]

Initial value:

{
      -1,     2,     3,     5,    10,    17,    18,    43,    33,    44,
      45,    46,    47,    48,     8,    12,    20,   132,    36,    85,
      86,   109,    87,   112,    88,   113,    89,   120,    90,   114,
      91,   111,    92,   117,   142,    93,   128,   156,    94,   127,
     154,    95,   129,   158,    96,   118,   144,    97,   115,    98,
     116,    99,   122,   100,   123,   101,   124,   102,   119,   103,
     126,   104,   121,   105,   110,   106,   125,   172,   107,   130,
     161,   108,   131,   164,   197,   230,   134,   173,   174,   175,
     176,   151,   198,   199,   200,    27,    14,    15
}

Definition at line 880 of file parseosil.tab.cpp.

const yytype_int16 yypact[] [static]

Initial value:

{
     -15,   -17,    18,    -6,    16,   -79,   -79,    13,    17,   -79,
      -1,    27,   -79,    45,    -2,    -5,   -79,   -79,    31,   -79,
     -22,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
      -3,   -79,    41,   115,   -79,    57,     4,    60,    62,     2,
      66,   -79,    54,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     300,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   300,
     -79,   300,   300,   300,   300,   300,   300,   300,   300,   300,
     300,   300,   300,   300,   300,   -79,   300,   300,   300,   300,
     -43,   -42,    50,   300,     1,   300,   300,   300,   300,    42,
      43,   -79,    53,   -79,   152,    34,    36,   300,    38,    32,
      49,    85,    40,   -79,   183,   -79,   220,   -79,   259,   -79,
      19,   -79,   -79,    21,   -79,   -79,    83,     6,    97,   -79,
     105,   -79,   -79,   -79,   -79,   -79,   -79,    81,    87,    79,
      92,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   300,
     -79,   -79,   -79,     8,   111,   -79,   300,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,    70,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
      63,   -79
}

Definition at line 896 of file parseosil.tab.cpp.

const yytype_int8 yypgoto[] [static]

Initial value:

{
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -78,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
     -79,   -79,   -79,   -79,   -79,   -79,   -79,   -19
}

Definition at line 925 of file parseosil.tab.cpp.

const yytype_uint8 yytable[] [static]

Definition at line 943 of file parseosil.tab.cpp.

const yytype_int16 yycheck[] [static]

Definition at line 985 of file parseosil.tab.cpp.

const yytype_uint8 yystos[] [static]

Initial value:

{
       0,    24,    79,    80,    19,    81,     0,    26,    92,     5,
      82,    10,    93,     8,   164,   165,    25,    83,    84,     5,
      94,     7,     3,    74,    75,    76,    77,   163,    59,    22,
     165,    27,    28,    86,    59,    20,    96,    11,    12,    13,
      20,    46,    59,    85,    87,    88,    89,    90,    91,     5,
      59,     5,     5,     5,     6,     5,    23,   165,   165,   165,
     165,   165,    15,    17,    30,    32,    34,    36,    38,    40,
      42,    44,    47,    49,    51,    53,    55,    57,    60,    62,
      64,    66,    68,    70,    72,    97,    98,   100,   102,   104,
     106,   108,   110,   113,   116,   119,   122,   125,   127,   129,
     131,   133,   135,   137,   139,   141,   143,   146,   149,    99,
     142,   109,   101,   103,   107,   126,   128,   111,   123,   136,
     105,   140,   130,   132,   134,   144,   138,   117,   114,   120,
     147,   150,    95,    97,   154,    97,    97,    97,    97,    97,
      97,    97,   112,    97,   124,    97,    97,    97,    97,    97,
      97,   159,    97,    97,   118,    97,   115,    97,   121,    46,
      59,   148,    46,    59,   151,    29,    97,     9,    14,    18,
      21,    46,   145,   155,   156,   157,   158,    97,    97,    97,
      97,    39,    41,    43,    97,    45,    97,    48,    50,    97,
      54,    56,    58,    13,    20,    46,    59,   152,   160,   161,
     162,    63,    65,    97,    67,    97,    69,    97,    71,    73,
      16,     5,     6,     4,     4,   165,   165,   165,    31,    33,
      35,    37,    97,     5,     6,     5,    97,   165,   165,    52,
     153,    61
}

Definition at line 1029 of file parseosil.tab.cpp.

const char* yysrc

Definition at line 1378 of file parseosil.tab.cpp.

int yytype

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

YYSTYPE* yyvaluep

Definition at line 1565 of file parseosil.tab.cpp.

YYLTYPE* yylocationp

Definition at line 1566 of file parseosil.tab.cpp.

OSInstance* osinstance

Definition at line 1567 of file parseosil.tab.cpp.

Referenced by main().

OSiLParserData* parserData

Definition at line 1568 of file parseosil.tab.cpp.

OSiLParserData* parserData

Definition at line 1633 of file parseosil.tab.cpp.


Generated on Thu May 15 22:15:23 2008 by  doxygen 1.4.7