Classes | Defines | Typedefs | Enumerations | Functions | Variables

data.tab.cpp File Reference

#include "AmplModel.h"
#include "CompDescrParam.h"
#include "DataNodes.h"
#include "GlobalVariables.h"
#include "ModelComp.h"
#include "nodes.h"
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <stdio.h>

Classes

union  YYSTYPE
union  yyalloc

Defines

#define YYBISON   1
#define YYBISON_VERSION   "2.4.1"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYPUSH   0
#define YYPULL   1
#define YYLSP_NEEDED   0
#define yyparse   dataparse
#define yylex   datalex
#define yyerror   dataerror
#define yylval   datalval
#define yychar   datachar
#define yydebug   datadebug
#define yynerrs   datanerrs
#define YYERROR_VERBOSE
#define YYDEBUG   1
#define YYERROR_VERBOSE   1
#define YYTOKEN_TABLE   0
#define YYTOKENTYPE
#define ID   258
#define INT_VAL   259
#define FLOAT_VAL   260
#define INFINITY   261
#define COEFF   262
#define COVER   263
#define OBJ   264
#define DEFAULT   265
#define FROM   266
#define TO   267
#define TO_COME   268
#define MODELTYPE   269
#define NET_IN   270
#define NET_OUT   271
#define DIMEN   272
#define ORDERED   273
#define CIRCULAR   274
#define REVERSED   275
#define SYMBOLIC   276
#define ARC   277
#define INTEGER   278
#define BINARY   279
#define CHECK   280
#define CLOSE   281
#define DISPLAY   282
#define DROP   283
#define INCLUDE   284
#define PRINT   285
#define PRINTF   286
#define QUIT   287
#define RESET   288
#define RESTORE   289
#define SOLVE   290
#define UPDATE   291
#define WRITE   292
#define SHELL   293
#define MODEL   294
#define DATA   295
#define OPTION   296
#define LET   297
#define SOLUTION   298
#define FIX   299
#define UNFIX   300
#define END   301
#define FUNCTION   302
#define PIPE   303
#define FORMAT   304
#define SETOF   305
#define BY   306
#define LESS   307
#define MOD   308
#define DIV   309
#define MIN   310
#define MAX   311
#define IF   312
#define THEN   313
#define ELSE   314
#define AND   315
#define OR   316
#define EXISTS   317
#define FORALL   318
#define NOT   319
#define WITHIN   320
#define WHILE   321
#define REPEAT   322
#define FOR   323
#define CARD   324
#define NEXT   325
#define NEXTW   326
#define PREV   327
#define PREVW   328
#define FIRST   329
#define LAST   330
#define MEMBER   331
#define ORD   332
#define ORD_ZERO   333
#define VAR   334
#define PARAM   335
#define SET   336
#define MAXIMIZE   337
#define MINIMIZE   338
#define OBJECTIVE   339
#define SUBJECTTO   340
#define SUM   341
#define PROD   342
#define IN   343
#define POWER   344
#define NE   345
#define LE   346
#define GE   347
#define EQ   348
#define LT   349
#define GT   350
#define UNION   351
#define DIFF   352
#define CROSS   353
#define INTER   354
#define SYMDIFF   355
#define LBRACE   356
#define RBRACE   357
#define COMMA   358
#define SEMICOLON   359
#define LSBRACKET   360
#define RSBRACKET   361
#define COLON   362
#define LBRACKET   363
#define RBRACKET   364
#define DEFINED   365
#define LOGICAL_OR   366
#define LOGICAL_AND   367
#define ELLIPSE   368
#define PUBLIC   369
#define CORE   370
#define DOT   371
#define BEG   372
#define TIMESTAGE   373
#define RANDOM   374
#define SUFFIX   375
#define BLOCK   376
#define IDREF   377
#define IDREFM   378
#define SBLOCK   379
#define USING   380
#define DETERMINISTIC   381
#define EXPECTATION   382
#define STOCHASTIC   383
#define STAGES   384
#define STAGE   385
#define NODE   386
#define TR   387
#define ASSIGN   388
#define TOKPARAMSPECLIST   389
#define TOKPARAMTEMPLATE   390
#define TOKVALUETABLELIST   391
#define TOKVALUETABLE   392
#define CHARACTER_STRING   393
#define TOKSETSPEC   394
#define YYSTYPE_IS_TRIVIAL   1
#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSIZE_T   unsigned int
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YY_(msgid)   msgid
#define YYUSE(e)   ((void) (e))
#define YYID(n)   (n)
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_FREE   YYFREE
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
#define YYMALLOC   malloc
#define YYFREE   free
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
#define YYFINAL   2
#define YYLAST   158
#define YYNTOKENS   143
#define YYNNTS   27
#define YYNRULES   54
#define YYNSTATES   85
#define YYUNDEFTOK   2
#define YYMAXUTOK   394
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -104
#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)   ((void) 0)
#define YYLEX   yylex ()
#define YYFPRINTF   fprintf
#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))

Typedefs

typedef union YYSTYPE YYSTYPE
typedef unsigned char yytype_uint8
typedef short int yytype_int8
typedef unsigned short int yytype_uint16
typedef short int yytype_int16

Enumerations

enum  yytokentype {
  ID = 258, INT_VAL = 259, FLOAT_VAL = 260, INFINITY = 261,
  COEFF = 262, COVER = 263, OBJ = 264, DEFAULT = 265,
  FROM = 266, TO = 267, TO_COME = 268, MODELTYPE = 269,
  NET_IN = 270, NET_OUT = 271, DIMEN = 272, ORDERED = 273,
  CIRCULAR = 274, REVERSED = 275, SYMBOLIC = 276, ARC = 277,
  INTEGER = 278, BINARY = 279, CHECK = 280, CLOSE = 281,
  DISPLAY = 282, DROP = 283, INCLUDE = 284, PRINT = 285,
  PRINTF = 286, QUIT = 287, RESET = 288, RESTORE = 289,
  SOLVE = 290, UPDATE = 291, WRITE = 292, SHELL = 293,
  MODEL = 294, DATA = 295, OPTION = 296, LET = 297,
  SOLUTION = 298, FIX = 299, UNFIX = 300, END = 301,
  FUNCTION = 302, PIPE = 303, FORMAT = 304, SETOF = 305,
  BY = 306, LESS = 307, MOD = 308, DIV = 309,
  MIN = 310, MAX = 311, IF = 312, THEN = 313,
  ELSE = 314, AND = 315, OR = 316, EXISTS = 317,
  FORALL = 318, NOT = 319, WITHIN = 320, WHILE = 321,
  REPEAT = 322, FOR = 323, CARD = 324, NEXT = 325,
  NEXTW = 326, PREV = 327, PREVW = 328, FIRST = 329,
  LAST = 330, MEMBER = 331, ORD = 332, ORD_ZERO = 333,
  VAR = 334, PARAM = 335, SET = 336, MAXIMIZE = 337,
  MINIMIZE = 338, OBJECTIVE = 339, SUBJECTTO = 340, SUM = 341,
  PROD = 342, IN = 343, POWER = 344, NE = 345,
  LE = 346, GE = 347, EQ = 348, LT = 349,
  GT = 350, UNION = 351, DIFF = 352, CROSS = 353,
  INTER = 354, SYMDIFF = 355, LBRACE = 356, RBRACE = 357,
  COMMA = 358, SEMICOLON = 359, LSBRACKET = 360, RSBRACKET = 361,
  COLON = 362, LBRACKET = 363, RBRACKET = 364, DEFINED = 365,
  LOGICAL_OR = 366, LOGICAL_AND = 367, ELLIPSE = 368, PUBLIC = 369,
  CORE = 370, DOT = 371, BEG = 372, TIMESTAGE = 373,
  RANDOM = 374, SUFFIX = 375, BLOCK = 376, IDREF = 377,
  IDREFM = 378, SBLOCK = 379, USING = 380, DETERMINISTIC = 381,
  EXPECTATION = 382, STOCHASTIC = 383, STAGES = 384, STAGE = 385,
  NODE = 386, TR = 387, ASSIGN = 388, TOKPARAMSPECLIST = 389,
  TOKPARAMTEMPLATE = 390, TOKVALUETABLELIST = 391, TOKVALUETABLE = 392, CHARACTER_STRING = 393,
  TOKSETSPEC = 394, ID = 258, INT_VAL = 259, FLOAT_VAL = 260,
  INFINITY = 261, COEFF = 262, COVER = 263, OBJ = 264,
  DEFAULT = 265, FROM = 266, TO = 267, TO_COME = 268,
  MODELTYPE = 269, NET_IN = 270, NET_OUT = 271, DIMEN = 272,
  ORDERED = 273, CIRCULAR = 274, REVERSED = 275, SYMBOLIC = 276,
  ARC = 277, INTEGER = 278, BINARY = 279, CHECK = 280,
  CLOSE = 281, DISPLAY = 282, DROP = 283, INCLUDE = 284,
  PRINT = 285, PRINTF = 286, QUIT = 287, RESET = 288,
  RESTORE = 289, SOLVE = 290, UPDATE = 291, WRITE = 292,
  SHELL = 293, MODEL = 294, DATA = 295, OPTION = 296,
  LET = 297, SOLUTION = 298, FIX = 299, UNFIX = 300,
  END = 301, FUNCTION = 302, PIPE = 303, FORMAT = 304,
  SETOF = 305, BY = 306, LESS = 307, MOD = 308,
  DIV = 309, MIN = 310, MAX = 311, IF = 312,
  THEN = 313, ELSE = 314, AND = 315, OR = 316,
  EXISTS = 317, FORALL = 318, NOT = 319, WITHIN = 320,
  WHILE = 321, REPEAT = 322, FOR = 323, CARD = 324,
  NEXT = 325, NEXTW = 326, PREV = 327, PREVW = 328,
  FIRST = 329, LAST = 330, MEMBER = 331, ORD = 332,
  ORD_ZERO = 333, VAR = 334, PARAM = 335, SET = 336,
  MAXIMIZE = 337, MINIMIZE = 338, OBJECTIVE = 339, SUBJECTTO = 340,
  SUM = 341, PROD = 342, IN = 343, POWER = 344,
  NE = 345, LE = 346, GE = 347, EQ = 348,
  LT = 349, GT = 350, UNION = 351, DIFF = 352,
  CROSS = 353, INTER = 354, SYMDIFF = 355, LBRACE = 356,
  RBRACE = 357, COMMA = 358, SEMICOLON = 359, LSBRACKET = 360,
  RSBRACKET = 361, COLON = 362, LBRACKET = 363, RBRACKET = 364,
  DEFINED = 365, LOGICAL_OR = 366, LOGICAL_AND = 367, ELLIPSE = 368,
  PUBLIC = 369, CORE = 370, DOT = 371, BEG = 372,
  TIMESTAGE = 373, RANDOM = 374, SUFFIX = 375, BLOCK = 376,
  IDREF = 377, IDREFM = 378, SBLOCK = 379, USING = 380,
  DETERMINISTIC = 381, EXPECTATION = 382, STOCHASTIC = 383, STAGES = 384,
  STAGE = 385, NODE = 386, TR = 387, ASSIGN = 388,
  TOKPARAMSPECLIST = 389, TOKPARAMTEMPLATE = 390, TOKVALUETABLELIST = 391, TOKVALUETABLE = 392,
  CHARACTER_STRING = 393, TOKSETSPEC = 394, ID = 258, INT_VAL = 259,
  FLOAT_VAL = 260, INFINITY = 261, COEFF = 262, COVER = 263,
  OBJ = 264, DEFAULT = 265, FROM = 266, TO = 267,
  TO_COME = 268, MODELTYPE = 269, DOTDOT = 270, NET_IN = 271,
  NET_OUT = 272, DIMEN = 273, ORDERED = 274, CIRCULAR = 275,
  REVERSED = 276, SYMBOLIC = 277, ARC = 278, INTEGER = 279,
  BINARY = 280, CHECK = 281, CLOSE = 282, DISPLAY = 283,
  DROP = 284, INCLUDE = 285, PRINT = 286, PRINTF = 287,
  QUIT = 288, RESET = 289, RESTORE = 290, SOLVE = 291,
  UPDATE = 292, WRITE = 293, SHELL = 294, MODEL = 295,
  DATA = 296, OPTION = 297, LET = 298, SOLUTION = 299,
  FIX = 300, UNFIX = 301, END = 302, FUNCTION = 303,
  PIPE = 304, FORMAT = 305, SETOF = 306, BY = 307,
  LESS = 308, MOD = 309, DIV = 310, MIN = 311,
  MAX = 312, IF = 313, THEN = 314, ELSE = 315,
  AND = 316, OR = 317, EXISTS = 318, FORALL = 319,
  NOT = 320, WITHIN = 321, WHILE = 322, REPEAT = 323,
  FOR = 324, CARD = 325, NEXT = 326, NEXTW = 327,
  PREV = 328, PREVW = 329, FIRST = 330, LAST = 331,
  MEMBER = 332, ORD = 333, ORD_ZERO = 334, VAR = 335,
  PARAM = 336, SET = 337, MAXIMIZE = 338, MINIMIZE = 339,
  OBJECTIVE = 340, SUBJECTTO = 341, SUM = 342, PROD = 343,
  IN = 344, POWER = 345, NE = 346, LE = 347,
  GE = 348, EQ = 349, LT = 350, GT = 351,
  UNION = 352, DIFF = 353, CROSS = 354, INTER = 355,
  SYMDIFF = 356, LBRACE = 357, RBRACE = 358, COMMA = 359,
  SEMICOLON = 360, LSBRACKET = 361, RSBRACKET = 362, COLON = 363,
  LBRACKET = 364, RBRACKET = 365, DEFINED = 366, LOGICAL_OR = 367,
  LOGICAL_AND = 368, ELLIPSE = 369, DOT = 370, SUFFIX = 371,
  BLOCK = 372, IDREF = 373, IDREFM = 374, STAGE = 375,
  NODE = 376, USING = 377, DETERMINISTIC = 378, EXPECTATION = 379,
  STOCHASTIC = 380, STAGES = 381, ANCESTOR = 382, ASSIGN = 383,
  ID = 258, INT_VAL = 259, FLOAT_VAL = 260, INFINITY = 261,
  COEFF = 262, COVER = 263, OBJ = 264, DEFAULT = 265,
  FROM = 266, TO = 267, TO_COME = 268, MODELTYPE = 269,
  DOTDOT = 270, NET_IN = 271, NET_OUT = 272, DIMEN = 273,
  ORDERED = 274, CIRCULAR = 275, REVERSED = 276, SYMBOLIC = 277,
  ARC = 278, INTEGER = 279, BINARY = 280, CHECK = 281,
  CLOSE = 282, DISPLAY = 283, DROP = 284, INCLUDE = 285,
  PRINT = 286, PRINTF = 287, QUIT = 288, RESET = 289,
  RESTORE = 290, SOLVE = 291, UPDATE = 292, WRITE = 293,
  SHELL = 294, MODEL = 295, DATA = 296, OPTION = 297,
  LET = 298, SOLUTION = 299, FIX = 300, UNFIX = 301,
  END = 302, FUNCTION = 303, PIPE = 304, FORMAT = 305,
  SETOF = 306, BY = 307, LESS = 308, MOD = 309,
  DIV = 310, MIN = 311, MAX = 312, IF = 313,
  THEN = 314, ELSE = 315, AND = 316, OR = 317,
  EXISTS = 318, FORALL = 319, NOT = 320, WITHIN = 321,
  WHILE = 322, REPEAT = 323, FOR = 324, CARD = 325,
  NEXT = 326, NEXTW = 327, PREV = 328, PREVW = 329,
  FIRST = 330, LAST = 331, MEMBER = 332, ORD = 333,
  ORD_ZERO = 334, VAR = 335, PARAM = 336, SET = 337,
  MAXIMIZE = 338, MINIMIZE = 339, OBJECTIVE = 340, SUBJECTTO = 341,
  SUM = 342, PROD = 343, IN = 344, POWER = 345,
  NE = 346, LE = 347, GE = 348, EQ = 349,
  LT = 350, GT = 351, UNION = 352, DIFF = 353,
  CROSS = 354, INTER = 355, SYMDIFF = 356, LBRACE = 357,
  RBRACE = 358, COMMA = 359, SEMICOLON = 360, LSBRACKET = 361,
  RSBRACKET = 362, COLON = 363, LBRACKET = 364, RBRACKET = 365,
  DEFINED = 366, LOGICAL_OR = 367, LOGICAL_AND = 368, ELLIPSE = 369,
  DOT = 370, SUFFIX = 371, BLOCK = 372, IDREF = 373,
  IDREFM = 374, STAGE = 375, NODE = 376, USING = 377,
  DETERMINISTIC = 378, EXPECTATION = 379, STOCHASTIC = 380, STAGES = 381,
  ANCESTOR = 382, ASSIGN = 383
}

Functions

int datalex (void)
static void dataerror (const char *s)
static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput
static YYSIZE_T yystrlen (yystr) const char *yystr
int yyparse ()
void parse_data (AmplModel *current_model, const string &datafilename)

Variables

FILE * datain = (FILE *) 0
int datalineno = 1
static AmplModelroot
static const yytype_uint8 yytranslate []
static const yytype_uint8 yyprhs []
static const yytype_int16 yyrhs []
static const yytype_uint8 yyrline []
static const char *const yytname []
static const yytype_uint8 yyr1 []
static const yytype_uint8 yyr2 []
static const yytype_uint8 yydefact []
static const yytype_int8 yydefgoto []
static const yytype_int8 yypact []
static const yytype_int8 yypgoto []
static const yytype_uint8 yytable []
static const yytype_int16 yycheck []
static const yytype_uint8 yystos []
int yytype
YYSTYPE const *const yyvaluep
yytype_int16yytop
int yyrule
const char * yysrc
int yychar
YYSTYPE yylval
int yynerrs

Define Documentation

#define AND   315
#define ARC   277
#define ASSIGN   388
#define BEG   372
#define BINARY   279

Referenced by yyparse().

#define BLOCK   376
#define BY   306
#define CARD   324

Referenced by yyparse().

#define CHARACTER_STRING   393
#define CHECK   280
#define CIRCULAR   274
#define CLOSE   281
#define COEFF   262
#define COLON   362
#define COMMA   358
#define CORE   370
#define COVER   263
#define CROSS   353
#define DATA   295
#define DEFAULT   265

Referenced by yyparse().

#define DEFINED   365
#define DETERMINISTIC   381

Referenced by SyntaxNode::put(), and yyparse().

#define DIFF   352
#define DIMEN   272

Referenced by yyparse().

#define DISPLAY   282
#define DIV   309
#define DOT   371

Referenced by SyntaxNode::put().

#define DROP   283
#define ELLIPSE   368

Referenced by yyparse().

#define ELSE   314
#define END   301
#define EQ   348
#define EXISTS   317
#define EXPECTATION   382
#define FIRST   329

Referenced by SyntaxNode::put(), and yyparse().

#define FIX   299
#define FLOAT_VAL   260
#define FOR   323
#define FORALL   318
#define FORMAT   304
#define FROM   266
#define FUNCTION   302
#define GE   347

Referenced by OpNode::put(), and yyparse().

#define GT   350

Referenced by OpNode::put(), and yyparse().

#define ID   258
#define IDREF   377
#define IDREFM   378
#define IF   312

Referenced by SyntaxNode::put(), and yyparse().

#define IN   343
#define INCLUDE   284
#define INFINITY   261

Referenced by yyparse().

#define INT_VAL   259
#define INTEGER   278

Referenced by yyparse().

#define INTER   354

Referenced by yyparse().

#define LAST   330

Referenced by SyntaxNode::put(), and yyparse().

#define LBRACE   356
#define LBRACKET   363
#define LE   346

Referenced by OpNode::put(), and yyparse().

#define LESS   307
#define LET   297
#define LOGICAL_AND   367

Referenced by yyparse().

#define LOGICAL_OR   366

Referenced by yyparse().

#define LSBRACKET   360
#define LT   349

Referenced by OpNode::put(), and yyparse().

#define MAX   311

Referenced by SyntaxNode::put(), and yyparse().

#define MAXIMIZE   337
#define MEMBER   331
#define MIN   310

Referenced by SyntaxNode::put(), and yyparse().

#define MINIMIZE   338
#define MOD   308
#define MODEL   294
#define MODELTYPE   269
#define NE   345

Referenced by OpNode::put(), and yyparse().

#define NET_IN   270
#define NET_OUT   271
#define NEXT   325
#define NEXTW   326
#define NODE   386

Referenced by StageNodeNode::put().

#define NOT   319
#define OBJ   264
#define OBJECTIVE   339
#define OPTION   296
#define OR   316
#define ORD   332

Referenced by SyntaxNode::put(), and yyparse().

#define ORD_ZERO   333
#define ORDERED   273

Referenced by SyntaxNode::put(), and yyparse().

#define PARAM   335
#define PIPE   303
#define POWER   344

Referenced by OpNode::put(), and yyparse().

#define PREV   327
#define PREVW   328
#define PRINT   285
#define PRINTF   286
#define PROD   342

Referenced by yyparse().

#define PUBLIC   369
#define QUIT   287
#define RANDOM   374
#define RBRACE   357
#define RBRACKET   364
#define REPEAT   322
#define RESET   288
#define RESTORE   289
#define REVERSED   275
#define RSBRACKET   361
#define SBLOCK   379
#define SEMICOLON   359
#define SET   336
#define SETOF   305
#define SHELL   293
#define SOLUTION   298
#define SOLVE   290
#define STAGE   385

Referenced by StageNodeNode::put().

#define STAGES   384
#define STOCHASTIC   383
#define SUBJECTTO   340
#define SUFFIX   375

Referenced by yyparse().

#define SUM   341
#define SYMBOLIC   276

Referenced by SyntaxNode::put(), and yyparse().

#define SYMDIFF   355

Referenced by yyparse().

#define THEN   313
#define TIMESTAGE   373
#define TO   267
#define TO_COME   268
#define TOKPARAMSPECLIST   389

Referenced by yyparse().

#define TOKPARAMTEMPLATE   390

Referenced by yyparse().

#define TOKSETSPEC   394
#define TOKVALUETABLE   392

Referenced by yyparse().

#define TOKVALUETABLELIST   391

Referenced by yyparse().

#define TR   387
#define UNFIX   300
#define UNION   351

Referenced by yyparse().

#define UPDATE   291
#define USING   380
#define VAR   334
#define WHILE   321
#define WITHIN   320
#define WRITE   292
#define YY_ (   msgid  )     msgid

Referenced by yyparse().

#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)
#define YY_REDUCE_PRINT (   Rule  ) 
Value:
do {                                    \
  if (yydebug)                          \
    yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))

Referenced by yyparse().

#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do {                                                            \
  if (yydebug)                                                  \
    yy_stack_print ((Bottom), (Top));                           \
} while (YYID (0))

Referenced by yyparse().

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)
Value:
do {                                                                      \
  if (yydebug)                                                            \
    {                                                                     \
      YYFPRINTF (stderr, "%s ", Title);                                   \
      yy_symbol_print (stderr,                                            \
                  Type, Value); \
      YYFPRINTF (stderr, "\n");                                           \
    }                                                                     \
} while (YYID (0))

Referenced by yyparse().

#define YYABORT   goto yyabortlab
#define YYACCEPT   goto yyacceptlab
#define YYBACKUP (   Token,
  Value 
)
Value:
do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yytoken = YYTRANSLATE (yychar);                           \
      YYPOPSTACK (1);                                           \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;                                                  \
    }                                                           \
while (YYID (0))
#define YYBISON   1
#define YYBISON_VERSION   "2.4.1"
#define yychar   datachar
#define yyclearin   (yychar = YYEMPTY)
#define YYCOPY (   To,
  From,
  Count 
)
Value:
do                                      \
        {                                       \
          YYSIZE_T yyi;                         \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
      while (YYID (0))
#define YYDEBUG   1
#define yydebug   datadebug
#define YYDPRINTF (   Args  ) 
Value:
do {                                            \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
} while (YYID (0))

Referenced by yyparse().

#define YYEMPTY   (-2)

Referenced by yyparse().

#define YYEOF   0

Referenced by yyparse().

#define YYERRCODE   256
#define yyerrok   (yyerrstatus = 0)
#define yyerror   dataerror

Referenced by yyparse().

#define YYERROR   goto yyerrorlab
#define YYERROR_VERBOSE   1
#define YYERROR_VERBOSE
#define YYFAIL   goto yyerrlab
#define YYFINAL   2

Referenced by yyparse().

#define YYFPRINTF   fprintf
#define YYFREE   free
#define YYID (   n  )     (n)

Referenced by yyparse().

#define YYINITDEPTH   200
#define YYLAST   158

Referenced by yyparse().

#define YYLEX   yylex ()
#define yylex   datalex
#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))
#define YYLSP_NEEDED   0
#define yylval   datalval

Referenced by yyparse().

#define YYMALLOC   malloc
#define YYMAXDEPTH   10000

Referenced by yyparse().

#define YYMAXUTOK   394
#define yynerrs   datanerrs

Referenced by yyparse().

#define YYNNTS   27
#define YYNRULES   54
#define YYNSTATES   85
#define YYNTOKENS   143
#define YYPACT_NINF   -104

Referenced by yyparse().

#define yyparse   dataparse

Referenced by parse_model().

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

Referenced by yyparse().

#define YYPULL   1
#define YYPURE   0
#define YYPUSH   0
#define YYRECOVERING (  )     (!!yyerrstatus)
#define YYRHSLOC (   Rhs,
  K 
)    ((Rhs)[K])
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YYSIZE_T   unsigned int

Referenced by yyparse().

#define YYSKELETON_NAME   "yacc.c"
#define YYSTACK_ALLOC   YYMALLOC

Referenced by yyparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Referenced by yyparse().

#define YYSTACK_BYTES (   N  ) 
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

Referenced by yyparse().

#define YYSTACK_FREE   YYFREE

Referenced by yyparse().

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do                                                                      \
      {                                                                 \
        YYSIZE_T yynewbytes;                                            \
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
        Stack = &yyptr->Stack_alloc;                                    \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
    while (YYID (0))

Referenced by yyparse().

#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYTABLE_NINF   -1

Referenced by yyparse().

#define YYTERROR   1

Referenced by yyparse().

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

Referenced by yyparse().

#define YYUNDEFTOK   2
#define YYUSE (   e  )     ((void) (e))

Typedef Documentation

typedef union YYSTYPE YYSTYPE
typedef short int yytype_int16
typedef short int yytype_int8
typedef unsigned short int yytype_uint16
typedef unsigned char yytype_uint8

Enumeration Type Documentation

Enumerator:
ID 
INT_VAL 
FLOAT_VAL 
INFINITY 
COEFF 
COVER 
OBJ 
DEFAULT 
FROM 
TO 
TO_COME 
MODELTYPE 
NET_IN 
NET_OUT 
DIMEN 
ORDERED 
CIRCULAR 
REVERSED 
SYMBOLIC 
ARC 
INTEGER 
BINARY 
CHECK 
CLOSE 
DISPLAY 
DROP 
INCLUDE 
PRINT 
PRINTF 
QUIT 
RESET 
RESTORE 
SOLVE 
UPDATE 
WRITE 
SHELL 
MODEL 
DATA 
OPTION 
LET 
SOLUTION 
FIX 
UNFIX 
END 
FUNCTION 
PIPE 
FORMAT 
SETOF 
BY 
LESS 
MOD 
DIV 
MIN 
MAX 
IF 
THEN 
ELSE 
AND 
OR 
EXISTS 
FORALL 
NOT 
WITHIN 
WHILE 
REPEAT 
FOR 
CARD 
NEXT 
NEXTW 
PREV 
PREVW 
FIRST 
LAST 
MEMBER 
ORD 
ORD_ZERO 
VAR 
PARAM 
SET 
MAXIMIZE 
MINIMIZE 
OBJECTIVE 
SUBJECTTO 
SUM 
PROD 
IN 
POWER 
NE 
LE 
GE 
EQ 
LT 
GT 
UNION 
DIFF 
CROSS 
INTER 
SYMDIFF 
LBRACE 
RBRACE 
COMMA 
SEMICOLON 
LSBRACKET 
RSBRACKET 
COLON 
LBRACKET 
RBRACKET 
DEFINED 
LOGICAL_OR 
LOGICAL_AND 
ELLIPSE 
PUBLIC 
CORE 
DOT 
BEG 
TIMESTAGE 
RANDOM 
SUFFIX 
BLOCK 
IDREF 
IDREFM 
SBLOCK 
USING 
DETERMINISTIC 
EXPECTATION 
STOCHASTIC 
STAGES 
STAGE 
NODE 
TR 
ASSIGN 
TOKPARAMSPECLIST 
TOKPARAMTEMPLATE 
TOKVALUETABLELIST 
TOKVALUETABLE 
CHARACTER_STRING 
TOKSETSPEC 
ID 
INT_VAL 
FLOAT_VAL 
INFINITY 
COEFF 
COVER 
OBJ 
DEFAULT 
FROM 
TO 
TO_COME 
MODELTYPE 
NET_IN 
NET_OUT 
DIMEN 
ORDERED 
CIRCULAR 
REVERSED 
SYMBOLIC 
ARC 
INTEGER 
BINARY 
CHECK 
CLOSE 
DISPLAY 
DROP 
INCLUDE 
PRINT 
PRINTF 
QUIT 
RESET 
RESTORE 
SOLVE 
UPDATE 
WRITE 
SHELL 
MODEL 
DATA 
OPTION 
LET 
SOLUTION 
FIX 
UNFIX 
END 
FUNCTION 
PIPE 
FORMAT 
SETOF 
BY 
LESS 
MOD 
DIV 
MIN 
MAX 
IF 
THEN 
ELSE 
AND 
OR 
EXISTS 
FORALL 
NOT 
WITHIN 
WHILE 
REPEAT 
FOR 
CARD 
NEXT 
NEXTW 
PREV 
PREVW 
FIRST 
LAST 
MEMBER 
ORD 
ORD_ZERO 
VAR 
PARAM 
SET 
MAXIMIZE 
MINIMIZE 
OBJECTIVE 
SUBJECTTO 
SUM 
PROD 
IN 
POWER 
NE 
LE 
GE 
EQ 
LT 
GT 
UNION 
DIFF 
CROSS 
INTER 
SYMDIFF 
LBRACE 
RBRACE 
COMMA 
SEMICOLON 
LSBRACKET 
RSBRACKET 
COLON 
LBRACKET 
RBRACKET 
DEFINED 
LOGICAL_OR 
LOGICAL_AND 
ELLIPSE 
PUBLIC 
CORE 
DOT 
BEG 
TIMESTAGE 
RANDOM 
SUFFIX 
BLOCK 
IDREF 
IDREFM 
SBLOCK 
USING 
DETERMINISTIC 
EXPECTATION 
STOCHASTIC 
STAGES 
STAGE 
NODE 
TR 
ASSIGN 
TOKPARAMSPECLIST 
TOKPARAMTEMPLATE 
TOKVALUETABLELIST 
TOKVALUETABLE 
CHARACTER_STRING 
TOKSETSPEC 
ID 
INT_VAL 
FLOAT_VAL 
INFINITY 
COEFF 
COVER 
OBJ 
DEFAULT 
FROM 
TO 
TO_COME 
MODELTYPE 
DOTDOT 
NET_IN 
NET_OUT 
DIMEN 
ORDERED 
CIRCULAR 
REVERSED 
SYMBOLIC 
ARC 
INTEGER 
BINARY 
CHECK 
CLOSE 
DISPLAY 
DROP 
INCLUDE 
PRINT 
PRINTF 
QUIT 
RESET 
RESTORE 
SOLVE 
UPDATE 
WRITE 
SHELL 
MODEL 
DATA 
OPTION 
LET 
SOLUTION 
FIX 
UNFIX 
END 
FUNCTION 
PIPE 
FORMAT 
SETOF 
BY 
LESS 
MOD 
DIV 
MIN 
MAX 
IF 
THEN 
ELSE 
AND 
OR 
EXISTS 
FORALL 
NOT 
WITHIN 
WHILE 
REPEAT 
FOR 
CARD 
NEXT 
NEXTW 
PREV 
PREVW 
FIRST 
LAST 
MEMBER 
ORD 
ORD_ZERO 
VAR 
PARAM 
SET 
MAXIMIZE 
MINIMIZE 
OBJECTIVE 
SUBJECTTO 
SUM 
PROD 
IN 
POWER 
NE 
LE 
GE 
EQ 
LT 
GT 
UNION 
DIFF 
CROSS 
INTER 
SYMDIFF 
LBRACE 
RBRACE 
COMMA 
SEMICOLON 
LSBRACKET 
RSBRACKET 
COLON 
LBRACKET 
RBRACKET 
DEFINED 
LOGICAL_OR 
LOGICAL_AND 
ELLIPSE 
DOT 
SUFFIX 
BLOCK 
IDREF 
IDREFM 
STAGE 
NODE 
USING 
DETERMINISTIC 
EXPECTATION 
STOCHASTIC 
STAGES 
ANCESTOR 
ASSIGN 
ID 
INT_VAL 
FLOAT_VAL 
INFINITY 
COEFF 
COVER 
OBJ 
DEFAULT 
FROM 
TO 
TO_COME 
MODELTYPE 
DOTDOT 
NET_IN 
NET_OUT 
DIMEN 
ORDERED 
CIRCULAR 
REVERSED 
SYMBOLIC 
ARC 
INTEGER 
BINARY 
CHECK 
CLOSE 
DISPLAY 
DROP 
INCLUDE 
PRINT 
PRINTF 
QUIT 
RESET 
RESTORE 
SOLVE 
UPDATE 
WRITE 
SHELL 
MODEL 
DATA 
OPTION 
LET 
SOLUTION 
FIX 
UNFIX 
END 
FUNCTION 
PIPE 
FORMAT 
SETOF 
BY 
LESS 
MOD 
DIV 
MIN 
MAX 
IF 
THEN 
ELSE 
AND 
OR 
EXISTS 
FORALL 
NOT 
WITHIN 
WHILE 
REPEAT 
FOR 
CARD 
NEXT 
NEXTW 
PREV 
PREVW 
FIRST 
LAST 
MEMBER 
ORD 
ORD_ZERO 
VAR 
PARAM 
SET 
MAXIMIZE 
MINIMIZE 
OBJECTIVE 
SUBJECTTO 
SUM 
PROD 
IN 
POWER 
NE 
LE 
GE 
EQ 
LT 
GT 
UNION 
DIFF 
CROSS 
INTER 
SYMDIFF 
LBRACE 
RBRACE 
COMMA 
SEMICOLON 
LSBRACKET 
RSBRACKET 
COLON 
LBRACKET 
RBRACKET 
DEFINED 
LOGICAL_OR 
LOGICAL_AND 
ELLIPSE 
DOT 
SUFFIX 
BLOCK 
IDREF 
IDREFM 
STAGE 
NODE 
USING 
DETERMINISTIC 
EXPECTATION 
STOCHASTIC 
STAGES 
ANCESTOR 
ASSIGN 

Function Documentation

void dataerror ( const char *  s  )  [static]

References datalineno.

int datalex ( void   ) 
void parse_data ( AmplModel current_model,
const string &  datafilename 
)

References datain, PRINT_LOG, GlobalVariables::prtLvl, and root.

Referenced by sml_generate().

static void yy_symbol_value_print ( yyoutput  ,
yytype  ,
yyvaluep   
) [static]
int yyparse (  ) 
static YYSIZE_T yystrlen ( yystr   )  const [static]

Variable Documentation

FILE * datain = (FILE *) 0
int datalineno = 1

Referenced by dataerror(), and yyparse().

AmplModel* root [static]

Referenced by parse_data(), and yyparse().

int yychar
const yytype_int16 yycheck[] [static]
Initial value:
{
       3,     4,     5,     0,   107,     3,     4,     5,     3,     4,
       5,     3,     4,     5,     3,     4,     5,     3,     4,     5,
       3,     4,     5,     3,     4,     5,     3,    15,    35,   132,
     103,   103,     3,    10,   106,   104,   109,    15,    26,   108,
      10,    29,    30,   107,    32,   110,    34,    35,   105,    56,
     110,    29,    30,   107,    32,   107,    44,    35,     4,     5,
     104,   105,   141,   142,   107,   110,    44,    12,    34,    59,
      45,    59,    56,    81,    76,    63,    64,     8,    27,    67,
      -1,    50,    70,    80,    81,    63,    64,    -1,    76,    67,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   107,
      -1,    -1,   107,    -1,    -1,   104,    -1,    -1,   110,    -1,
      -1,   104,    -1,    -1,   110,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,   138,    -1,   132,   141,   142,
     138,    -1,   140,   138,    -1,    -1,   138,    -1,    -1,   138,
      -1,    -1,   138,    -1,    -1,   138,    -1,    -1,   138
}

Referenced by yyparse().

const yytype_uint8 yydefact[] [static]
Initial value:
{
       2,     0,     1,    43,     0,     3,     5,     4,    43,     0,
       0,     7,     7,    44,    45,     0,     8,     9,    50,    36,
      38,    39,    37,     0,    18,    11,     0,    50,    46,     0,
       0,    19,     0,     6,     0,     0,    10,    17,    16,     0,
      13,    15,    40,    47,     0,     0,    48,     0,    26,    18,
      49,    52,     0,     0,     0,    22,    23,    20,     0,     0,
      51,    29,    25,     0,     0,    53,    41,     0,    12,    21,
       0,    14,    54,    30,     0,     0,    24,    27,    42,    34,
      35,    31,    32,    28,    33
}

Referenced by yyparse().

const yytype_int8 yydefgoto[] [static]
Initial value:
{
      -1,     1,     5,     6,    17,    25,    35,    39,    40,    75,
      56,    36,    57,    47,    76,    48,    77,    81,    82,    31,
       7,    10,    27,    28,    29,    50,    51
}

Referenced by yyparse().

int yynerrs
const yytype_int8 yypact[] [static]
Initial value:
{
    -104,     3,  -104,    23,    29,  -104,  -104,  -104,    30,    54,
     -64,   -65,   -65,  -104,  -104,    20,  -104,  -104,   -57,  -104,
    -104,  -104,  -104,     8,   -54,   -69,     2,   -44,  -104,     5,
      20,  -104,    20,  -104,     2,     5,  -104,  -104,  -104,   -72,
    -104,  -104,  -104,  -104,    20,   -52,    20,   -60,   -43,  -104,
    -103,  -104,    11,    14,   -73,    20,  -103,  -104,   -45,     2,
    -104,    20,   -43,    20,    20,  -104,  -104,    20,  -104,  -104,
      20,  -104,    20,    20,    17,    -3,    20,  -104,  -104,  -104,
    -104,   -79,  -104,  -104,  -104
}

Referenced by yyparse().

const yytype_int8 yypgoto[] [static]
Initial value:
{
    -104,  -104,  -104,  -104,    55,  -104,  -104,    34,    10,    22,
    -104,  -104,    16,    -7,  -104,    25,    -2,  -104,    -8,    12,
    -104,    69,  -104,    51,  -104,  -104,    31
}

Referenced by yyparse().

const yytype_uint8 yyprhs[] [static]
Initial value:
{
       0,     0,     3,     4,     7,     9,    11,    17,    18,    20,
      21,    24,    25,    29,    31,    35,    37,    39,    41,    43,
      46,    48,    51,    54,    57,    61,    64,    66,    68,    71,
      74,    78,    81,    83,    86,    88,    90,    92,    94,    96,
      98,   105,   113,   123,   124,   127,   130,   132,   135,   138,
     141,   142,   146,   148,   151
}
const yytype_uint8 yyr1[] [static]
Initial value:
{
       0,   143,   144,   144,   145,   145,   146,   147,   147,   148,
     148,   149,   149,   150,   150,   151,   151,   151,   152,   152,
     153,   153,   154,   154,   155,   156,   156,   157,   157,   158,
     158,   159,   160,   160,   161,   161,   162,   162,   162,   162,
     163,   163,   163,   164,   164,   164,   165,   165,   166,   166,
     167,   167,   168,   168,   169
}

Referenced by yyparse().

const yytype_uint8 yyr2[] [static]
Initial value:
{
       0,     2,     0,     2,     1,     1,     5,     0,     1,     0,
       2,     0,     3,     1,     3,     1,     1,     1,     1,     2,
       1,     2,     2,     2,     3,     2,     1,     1,     2,     2,
       3,     2,     1,     2,     1,     1,     1,     1,     1,     1,
       6,     7,     9,     0,     2,     2,     1,     2,     2,     2,
       0,     3,     1,     2,     3
}

Referenced by yyparse().

const yytype_int16 yyrhs[] [static]
Initial value:
{
     144,     0,    -1,    -1,   144,   145,    -1,   163,    -1,   146,
      -1,    81,     3,   147,   148,   104,    -1,    -1,   110,    -1,
      -1,   148,   154,    -1,    -1,   108,   150,   109,    -1,   151,
      -1,   150,   103,   151,    -1,   162,    -1,   140,    -1,   107,
      -1,   162,    -1,   152,   162,    -1,   155,    -1,   153,   155,
      -1,   149,   152,    -1,   149,   153,    -1,   156,   110,   157,
      -1,   132,   158,    -1,   158,    -1,   159,    -1,   157,   159,
      -1,   107,   152,    -1,   158,   107,   152,    -1,   152,   160,
      -1,   161,    -1,   160,   161,    -1,   141,    -1,   142,    -1,
       3,    -1,   138,    -1,     4,    -1,     5,    -1,    80,     3,
     164,   147,   165,   104,    -1,    80,   164,   107,   152,   110,
     152,   104,    -1,    80,   164,   107,   162,   107,   152,   110,
     152,   104,    -1,    -1,    10,     4,    -1,    10,     5,    -1,
     166,    -1,   165,   166,    -1,   167,   152,    -1,   167,   168,
      -1,    -1,   105,   150,   106,    -1,   169,    -1,   168,   169,
      -1,   156,   110,   152,    -1
}
const yytype_uint8 yyrline[] [static]
Initial value:
{
       0,    85,    85,    86,    89,    90,    94,   113,   114,   117,
     118,   124,   125,   128,   129,   132,   133,   134,   137,   138,
     141,   142,   145,   146,   149,   152,   156,   159,   160,   163,
     164,   170,   176,   177,   180,   181,   184,   185,   186,   187,
     190,   206,   208,   212,   213,   216,   221,   222,   225,   232,
     238,   239,   242,   243,   246
}
int yyrule
const char* yysrc
const yytype_uint8 yystos[] [static]
Initial value:
{
       0,   144,     0,    80,    81,   145,   146,   163,     3,    10,
     164,     3,   164,     4,     5,   107,   110,   147,   147,     3,
       4,     5,   138,   152,   162,   148,   105,   165,   166,   167,
     110,   162,   107,   104,   108,   149,   154,   107,   140,   150,
     151,   162,   104,   166,   107,   132,   152,   156,   158,   162,
     168,   169,   152,   152,   150,   152,   153,   155,   156,   103,
     106,   152,   158,   110,   107,   169,   104,   110,   109,   155,
     110,   151,   152,   152,   152,   152,   157,   159,   104,   141,
     142,   160,   161,   159,   161
}

Referenced by yyparse().

const yytype_uint8 yytable[] [static]
Initial value:
{
      19,    20,    21,     2,    44,    19,    20,    21,    19,    20,
      21,    19,    20,    21,    19,    20,    21,    19,    20,    21,
      19,    20,    21,    19,    20,    21,     8,    24,    58,    45,
      59,    59,    11,     9,    60,    33,    68,    23,    41,    34,
       9,    49,    49,    15,    49,    16,    41,    49,    26,    58,
      63,    46,    52,    32,    53,    44,    49,    55,    13,    14,
      42,    26,    79,    80,    64,    70,    61,    18,    54,    71,
      62,    41,    69,    84,    83,    49,    49,    12,    43,    49,
       0,    65,    49,     3,     4,    72,    73,     0,    49,    74,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,    37,
       0,     0,    44,     0,     0,    66,     0,     0,    30,     0,
       0,    78,     0,     0,    67,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,    22,     0,    45,    79,    80,
      22,     0,    38,    22,     0,     0,    22,     0,     0,    22,
       0,     0,    22,     0,     0,    22,     0,     0,    22
}

Referenced by yyparse().

const char* const yytname[] [static]
Initial value:
{
  "$end", "error", "$undefined", "ID", "INT_VAL", "FLOAT_VAL", "INFINITY",
  "COEFF", "COVER", "OBJ", "DEFAULT", "FROM", "TO", "TO_COME", "MODELTYPE",
  "NET_IN", "NET_OUT", "DIMEN", "ORDERED", "CIRCULAR", "REVERSED",
  "SYMBOLIC", "ARC", "INTEGER", "BINARY", "CHECK", "CLOSE", "DISPLAY",
  "DROP", "INCLUDE", "PRINT", "PRINTF", "QUIT", "RESET", "RESTORE",
  "SOLVE", "UPDATE", "WRITE", "SHELL", "MODEL", "DATA", "OPTION", "LET",
  "SOLUTION", "FIX", "UNFIX", "END", "FUNCTION", "PIPE", "FORMAT", "SETOF",
  "BY", "LESS", "MOD", "DIV", "MIN", "MAX", "IF", "THEN", "ELSE", "AND",
  "OR", "EXISTS", "FORALL", "NOT", "WITHIN", "WHILE", "REPEAT", "FOR",
  "CARD", "NEXT", "NEXTW", "PREV", "PREVW", "FIRST", "LAST", "MEMBER",
  "ORD", "ORD_ZERO", "VAR", "PARAM", "SET", "MAXIMIZE", "MINIMIZE",
  "OBJECTIVE", "SUBJECTTO", "SUM", "PROD", "IN", "POWER", "NE", "LE", "GE",
  "EQ", "LT", "GT", "UNION", "DIFF", "CROSS", "INTER", "SYMDIFF", "LBRACE",
  "RBRACE", "COMMA", "SEMICOLON", "LSBRACKET", "RSBRACKET", "COLON",
  "LBRACKET", "RBRACKET", "DEFINED", "LOGICAL_OR", "LOGICAL_AND",
  "ELLIPSE", "PUBLIC", "CORE", "DOT", "BEG", "TIMESTAGE", "RANDOM",
  "SUFFIX", "BLOCK", "IDREF", "IDREFM", "SBLOCK", "USING", "DETERMINISTIC",
  "EXPECTATION", "STOCHASTIC", "STAGES", "STAGE", "NODE", "TR", "ASSIGN",
  "TOKPARAMSPECLIST", "TOKPARAMTEMPLATE", "TOKVALUETABLELIST",
  "TOKVALUETABLE", "CHARACTER_STRING", "TOKSETSPEC", "'*'", "'+'", "'-'",
  "$accept", "statements", "statement", "setdef", "defined_opt",
  "setspec_list", "set_template_opt", "templ_item_list", "templ_item",
  "object_list", "member_table_list", "setspec", "member_table",
  "theader_row", "settablerow_list", "theader_list", "settablerow",
  "plusminuslist", "plusminus", "object", "paramdef", "paramdefault_opt",
  "paramspec_list", "paramspec", "paramtemplate_opt", "valuetable_list",
  "valuetable", 0
}
const yytype_uint8 yytranslate[] [static]
int yytype