amroc/weno/StatParser/StatParser_parser.c File Reference

Classes

union  YYSTYPE
union  yyalloc

Defines

#define YYBISON   1
#define YYBISON_VERSION   "2.3"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   1
#define YYLSP_NEEDED   0
#define yyparse   statparse
#define yylex   statlex
#define yyerror   staterror
#define yylval   statlval
#define yychar   statchar
#define yydebug   statdebug
#define yynerrs   statnerrs
#define TOK_OP_POWER   258
#define TOK_INTEGER   259
#define TOK_DOUBLE   260
#define TOK_COORDINATE   261
#define TOK_VARIABLE   262
#define TOK_VARINARRAY   263
#define TOK_FUNCTION1   264
#define TOK_FUNCTION2   265
#define TOK_GROUP   266
#define TOK_KEYS   267
#define TOK_THREAD   268
#define TOK_SURFACE   269
#define TOK_PLANES   270
#define TOK_VOLUME   271
#define TOK_OP_MINUS   272
#define TOK_OP_PLUS   273
#define TOK_OP_PROD   274
#define TOK_OP_DIV   275
#define TOK_OP_NEG   276
#define TOK_SEPARATOR   277
#define TOK_POINTER   278
#define NEG   279
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#define YYTOKEN_TABLE   0
#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   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)
#define YYFINAL   2
#define YYLAST   254
#define YYNTOKENS   42
#define YYNNTS   10
#define YYNRULES   41
#define YYNSTATES   125
#define YYUNDEFTOK   2
#define YYMAXUTOK   279
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -29
#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 (&yylval)
#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 {
  TOK_OP_POWER = 258, TOK_INTEGER = 259, TOK_DOUBLE = 260, TOK_COORDINATE = 261,
  TOK_VARIABLE = 262, TOK_VARINARRAY = 263, TOK_FUNCTION1 = 264, TOK_FUNCTION2 = 265,
  TOK_GROUP = 266, TOK_KEYS = 267, TOK_THREAD = 268, TOK_SURFACE = 269,
  TOK_PLANES = 270, TOK_VOLUME = 271, TOK_OP_MINUS = 272, TOK_OP_PLUS = 273,
  TOK_OP_PROD = 274, TOK_OP_DIV = 275, TOK_OP_NEG = 276, TOK_SEPARATOR = 277,
  TOK_POINTER = 278, NEG = 279
}

Functions

YYPARSE_TEMPLATE_DEF void coord2dir (YYPARSE_PARAM_TYPE *YYPARSE_PARAM, int dir, stat_uop &options)
int yylex (YYSTYPE *yylval)
int yyparse ()
void yyerror (char const *msg)
void yyerror (char const *msg, int l, int c)
void stat_parser_set_debug ()

Define Documentation

#define NEG   279
#define TOK_COORDINATE   261
#define TOK_DOUBLE   260

Referenced by main(), while(), and yyparse().

#define TOK_FUNCTION1   264
#define TOK_FUNCTION2   265
#define TOK_GROUP   266
#define TOK_INTEGER   259

Referenced by main(), and while().

#define TOK_KEYS   267
#define TOK_OP_DIV   275

Referenced by yyparse().

#define TOK_OP_MINUS   272

Referenced by yyparse().

#define TOK_OP_NEG   276

Referenced by yyparse().

#define TOK_OP_PLUS   273

Referenced by yyparse().

#define TOK_OP_POWER   258

Referenced by while(), and yyparse().

#define TOK_OP_PROD   274

Referenced by yyparse().

#define TOK_PLANES   270

Referenced by while(), and yyparse().

#define TOK_POINTER   278

Referenced by yyparse().

#define TOK_SEPARATOR   277

Referenced by yyparse().

#define TOK_SURFACE   269
#define TOK_THREAD   268
#define TOK_VARIABLE   262

Referenced by main(), and yyparse().

#define TOK_VARINARRAY   263

Referenced by main(), and yyparse().

#define TOK_VOLUME   271

Referenced by while().

#define YY_ ( msgid   )     msgid

Referenced by yyparse().

#define YY_LOCATION_PRINT ( File,
Loc   )     ((void) 0)
#define YY_REDUCE_PRINT ( Rule   ) 

Referenced by yyparse().

#define YY_STACK_PRINT ( Bottom,
Top   ) 

Referenced by yyparse().

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

Referenced by yyparse().

#define YYABORT   goto yyabortlab

Referenced by yyparse().

#define YYACCEPT   goto yyacceptlab

Referenced by yyparse().

#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.3"
#define yychar   statchar
#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   0
#define yydebug   statdebug
#define YYDPRINTF ( Args   ) 

Referenced by yyparse().

#define YYEMPTY   (-2)

Referenced by yyparse().

#define YYEOF   0

Referenced by yyparse().

#define YYERRCODE   256
#define yyerrok   (yyerrstatus = 0)
#define YYERROR   goto yyerrorlab
#define yyerror   staterror

Referenced by yyparse().

#define YYERROR_VERBOSE   0
#define YYFAIL   goto yyerrlab
#define YYFINAL   2

Referenced by yyparse().

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

Referenced by yyparse().

#define YYINITDEPTH   200

Referenced by yyparse().

#define YYLAST   254

Referenced by yyparse().

#define YYLEX   yylex (&yylval)

Referenced by yyparse().

#define yylex   statlex
#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))
#define YYLSP_NEEDED   0
#define yylval   statlval

Referenced by while(), and yyparse().

#define YYMALLOC   malloc
#define YYMAXDEPTH   10000

Referenced by yyparse().

#define YYMAXUTOK   279
#define yynerrs   statnerrs

Referenced by yyparse().

#define YYNNTS   10
#define YYNRULES   41
#define YYNSTATES   125
#define YYNTOKENS   42

Referenced by yyparse().

#define YYPACT_NINF   -29

Referenced by yyparse().

int yyparse   statparse
#define YYPOPSTACK (  )     (yyvsp -= (N), yyssp -= (N))

Referenced by yyparse().

#define YYPURE   1
 
#define YYRECOVERING (  )     (!!yyerrstatus)
#define YYRHSLOC ( Rhs,
 )     ((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 (  ) 
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   ) 
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))

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 YYTRANSLATE ( YYX   )     ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Referenced by yyparse().

#define YYUNDEFTOK   2
#define YYUSE (  )     ((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:
TOK_OP_POWER 
TOK_INTEGER 
TOK_DOUBLE 
TOK_COORDINATE 
TOK_VARIABLE 
TOK_VARINARRAY 
TOK_FUNCTION1 
TOK_FUNCTION2 
TOK_GROUP 
TOK_KEYS 
TOK_THREAD 
TOK_SURFACE 
TOK_PLANES 
TOK_VOLUME 
TOK_OP_MINUS 
TOK_OP_PLUS 
TOK_OP_PROD 
TOK_OP_DIV 
TOK_OP_NEG 
TOK_SEPARATOR 
TOK_POINTER 
NEG 

Function Documentation

YYPARSE_TEMPLATE_DEF void coord2dir ( YYPARSE_PARAM_TYPE *  YYPARSE_PARAM,
int  dir,
stat_uop options 
)
void stat_parser_set_debug ( void   ) 

Referenced by main().

void yyerror ( char const *  msg,
int  l,
int  c 
)
void yyerror ( char const *  msg  ) 
int yylex ( YYSTYPE yylval  )