osprey/kg++fe/gnu/gengtype-yacc.c File Reference

#include "hconfig.h"
#include "system.h"
#include "gengtype.h"

Include dependency graph for gengtype-yacc.c:

Go to the source code of this file.

Data Types

union  yystype
union  yyalloc

Defines

#define YYBISON   1
#define ENT_TYPEDEF_STRUCT   257
#define ENT_STRUCT   258
#define ENT_EXTERNSTATIC   259
#define ENT_YACCUNION   260
#define GTY_TOKEN   261
#define UNION   262
#define STRUCT   263
#define ENUM   264
#define ALIAS   265
#define PARAM_IS   266
#define NUM   267
#define PERCENTPERCENT   268
#define SCALAR   269
#define ID   270
#define STRING   271
#define ARRAY   272
#define PERCENT_ID   273
#define CHAR   274
#define YYERROR_VERBOSE
#define YYSTYPE   yystype
#define YYSTYPE_IS_TRIVIAL   1
#define YYDEBUG   0
#define YYFINAL   112
#define YYFLAG   -32768
#define YYNTBASE   32
#define YYTRANSLATE(x)   ((unsigned)(x) <= 274 ? yytranslate[x] : 52)
#define YYLAST   126
#define YYSTACK_ALLOC   malloc
#define YYSTACK_FREE   free
#define YYSTACK_GAP_MAX   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#define YYSIZE_T   unsigned int
#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 yyerrlab1
#define YYFAIL   goto yyerrlab
#define YYRECOVERING()   (!!yyerrstatus)
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YYLEX   yylex ()
#define YYDPRINTF(Args)
#define YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#define YY_DECL_NON_LSP_VARIABLES
#define YY_DECL_VARIABLES   YY_DECL_NON_LSP_VARIABLES
#define YYPOPSTACK   (yyvsp--, yyssp--)

Functions/Subroutines

static YYSIZE_T yystrlen (char *yystr) const
static char * yystpcpy (char *yydest, const char *yysrc)
YY_DECL_VARIABLES int yyparse (YYPARSE_PARAM_ARG)

Variables

static const char yytranslate []
static const char *const yytname []
static const short yyr1 []
static const short yyr2 []
static const short yydefact []
static const short yydefgoto []
static const short yypact []
static const short yypgoto []
static const short yytable []
static const short yycheck []


Define Documentation

#define ALIAS   265

Definition at line 18 of file gengtype-yacc.c.

#define ARRAY   272

Definition at line 25 of file gengtype-yacc.c.

#define CHAR   274

Definition at line 27 of file gengtype-yacc.c.

#define ENT_EXTERNSTATIC   259

Definition at line 12 of file gengtype-yacc.c.

#define ENT_STRUCT   258

Definition at line 11 of file gengtype-yacc.c.

#define ENT_TYPEDEF_STRUCT   257

Definition at line 10 of file gengtype-yacc.c.

#define ENT_YACCUNION   260

Definition at line 13 of file gengtype-yacc.c.

#define ENUM   264

Definition at line 17 of file gengtype-yacc.c.

Referenced by yylex().

#define GTY_TOKEN   261

Definition at line 14 of file gengtype-yacc.c.

#define ID   270

Definition at line 23 of file gengtype-yacc.c.

#define NUM   267

Definition at line 20 of file gengtype-yacc.c.

#define PARAM_IS   266

Definition at line 19 of file gengtype-yacc.c.

#define PERCENT_ID   273

Definition at line 26 of file gengtype-yacc.c.

#define PERCENTPERCENT   268

Definition at line 21 of file gengtype-yacc.c.

#define SCALAR   269

#define STRING   271

#define STRUCT   263

Definition at line 16 of file gengtype-yacc.c.

#define UNION   262

#define YY_DECL_NON_LSP_VARIABLES

Value:

/* The lookahead symbol.  */        \
int yychar;           \
              \
/* The semantic value of the lookahead symbol. */ \
YYSTYPE yylval;           \
              \
/* Number of parse errors so far.  */     \
int yynerrs;

Definition at line 614 of file gengtype-yacc.c.

#define YY_DECL_VARIABLES   YY_DECL_NON_LSP_VARIABLES

Definition at line 631 of file gengtype-yacc.c.

#define YYABORT   goto yyabortlab

Definition at line 425 of file gengtype-yacc.c.

#define YYACCEPT   goto yyacceptlab

Definition at line 424 of file gengtype-yacc.c.

#define YYBACKUP ( Token,
Value   ) 

Value:

do                \
  if (yychar == YYEMPTY && yylen == 1)        \
    {               \
      yychar = (Token);           \
      yylval = (Value);           \
      yychar1 = YYTRANSLATE (yychar);       \
      YYPOPSTACK;           \
      goto yybackup;            \
    }               \
  else                \
    {                 \
      yyerror ("syntax error: cannot back up");     \
      YYERROR;              \
    }               \
while (0)

Definition at line 432 of file gengtype-yacc.c.

#define YYBISON   1

Definition at line 8 of file gengtype-yacc.c.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 421 of file gengtype-yacc.c.

#define YYCOPY ( To,
From,
Count   ) 

Value:

do          \
  {         \
    register YYSIZE_T yyi;    \
    for (yyi = 0; yyi < (Count); yyi++) \
      (To)[yyi] = (From)[yyi];    \
  }         \
      while (0)

Definition at line 374 of file gengtype-yacc.c.

#define YYDEBUG   0

Definition at line 48 of file gengtype-yacc.c.

#define YYDPRINTF ( Args   ) 

Definition at line 505 of file gengtype-yacc.c.

#define YYEMPTY   -2

Definition at line 422 of file gengtype-yacc.c.

#define YYEOF   0

Definition at line 423 of file gengtype-yacc.c.

#define YYERRCODE   256

Definition at line 450 of file gengtype-yacc.c.

#define yyerrok   (yyerrstatus = 0)

Definition at line 420 of file gengtype-yacc.c.

#define YYERROR   goto yyerrlab1

Definition at line 426 of file gengtype-yacc.c.

#define YYERROR_VERBOSE

Definition at line 34 of file gengtype-yacc.c.

#define YYFAIL   goto yyerrlab

Definition at line 430 of file gengtype-yacc.c.

#define YYFINAL   112

Definition at line 53 of file gengtype-yacc.c.

#define YYFLAG   -32768

Definition at line 54 of file gengtype-yacc.c.

#define YYINITDEPTH   200

Definition at line 510 of file gengtype-yacc.c.

#define YYLAST   126

Definition at line 230 of file gengtype-yacc.c.

#define YYLEX   yylex ()

Definition at line 484 of file gengtype-yacc.c.

#define YYLLOC_DEFAULT ( Current,
Rhs,
 ) 

Value:

Current.last_line   = Rhs[N].last_line; \
   Current.last_column = Rhs[N].last_column;

Definition at line 461 of file gengtype-yacc.c.

#define YYMAXDEPTH   10000

Definition at line 525 of file gengtype-yacc.c.

#define YYNTBASE   32

Definition at line 55 of file gengtype-yacc.c.

#define YYPARSE_PARAM_ARG

Definition at line 598 of file gengtype-yacc.c.

#define YYPARSE_PARAM_DECL

Definition at line 599 of file gengtype-yacc.c.

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

 
#define YYRECOVERING (  )     (!!yyerrstatus)

Definition at line 431 of file gengtype-yacc.c.

#define YYSIZE_T   unsigned int

Definition at line 417 of file gengtype-yacc.c.

#define YYSTACK_ALLOC   malloc

Definition at line 332 of file gengtype-yacc.c.

#define YYSTACK_BYTES (  ) 

Value:

((N) * (sizeof (short) + sizeof (YYSTYPE))        \
      + YYSTACK_GAP_MAX)

Definition at line 362 of file gengtype-yacc.c.

#define YYSTACK_FREE   free

Definition at line 333 of file gengtype-yacc.c.

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

Definition at line 353 of file gengtype-yacc.c.

#define YYSTACK_RELOCATE ( Stack   ) 

Value:

do                  \
      {                 \
  YYSIZE_T yynewbytes;            \
  YYCOPY (&yyptr->Stack, Stack, yysize);        \
  Stack = &yyptr->Stack;            \
  yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \
  yyptr += yynewbytes / sizeof (*yyptr);        \
      }                 \
    while (0)

Definition at line 390 of file gengtype-yacc.c.

#define YYSTYPE   yystype

Definition at line 44 of file gengtype-yacc.c.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 45 of file gengtype-yacc.c.

#define YYTERROR   1

Definition at line 449 of file gengtype-yacc.c.

#define YYTRANSLATE (  )     ((unsigned)(x) <= 274 ? yytranslate[x] : 52)

Definition at line 58 of file gengtype-yacc.c.


Function Documentation

YY_DECL_VARIABLES int yyparse ( YYPARSE_PARAM_ARG   ) 

static char* yystpcpy ( char *  yydest,
const char *  yysrc 
) [static]

Definition at line 563 of file gengtype-yacc.c.

Referenced by yyparse().

static YYSIZE_T yystrlen ( char *  yystr  )  const [static]

Definition at line 539 of file gengtype-yacc.c.

Referenced by yyparse().


Variable Documentation

const short yycheck[] [static]

Initial value:

{
      17,    18,    11,    65,     2,     3,     4,     7,    51,    16,
      18,    14,    13,    18,     7,    16,    19,    24,    23,    27,
       0,    83,    29,    22,    67,    21,     6,     7,    28,    27,
      21,    48,    49,     8,     9,    10,    23,    24,    30,    18,
      15,    16,    18,   105,    23,    24,    30,    23,    24,    58,
      11,    12,    16,    16,    16,    16,    20,     3,     4,     5,
       6,    28,    16,    16,    31,    22,    22,    16,    28,    21,
      21,    21,    30,    90,    16,    30,    93,    16,    22,    17,
      23,    29,    22,    13,    31,   102,    31,    22,    25,    23,
      31,    23,    16,    29,    23,    26,     0,     0,    -1,    -1,
     106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    59
}

Definition at line 250 of file gengtype-yacc.c.

const short yydefact[] [static]

Initial value:

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

Definition at line 185 of file gengtype-yacc.c.

const short yydefgoto[] [static]

Initial value:

{
      13,     5,    78,    62,     6,    24,    54,     7,    55,    88,
      26,    73,    27,    66,    37,     9,    42,    43,    44,    45
}

Definition at line 201 of file gengtype-yacc.c.

const short yypact[] [static]

Initial value:

{
      54,     7,     7,     7,     7,    54,    54,    54,     8,     4,
       9,    25,    25,-32768,-32768,-32768,    16,    25,    25,    37,
      38,    46,-32768,-32768,    47,    40,     1,     0,    39,    43,
      44,    48,    49,    50,    21,-32768,-32768,    51,-32768,-32768,
  -32768,    42,    45,-32768,    52,    53,    58,-32768,    25,    25,
      61,    24,-32768,-32768,-32768,    -3,    -8,    62,    25,    39,
      55,-32768,    57,    56,    60,    -7,    65,    13,-32768,-32768,
      63,    -5,    -1,    66,    59,    33,-32768,-32768,    68,-32768,
  -32768,-32768,    70,    61,-32768,-32768,-32768,    76,    36,    71,
      25,-32768,-32768,    25,-32768,-32768,-32768,    64,-32768,    69,
  -32768,-32768,    25,-32768,-32768,    61,-32768,-32768,-32768,    36,
      96,    97,-32768
}

Definition at line 207 of file gengtype-yacc.c.

const short yypgoto[] [static]

Initial value:

{
      20,-32768,-32768,-32768,-32768,-32768,   -43,-32768,-32768,    -6,
     -17,-32768,    -9,   -62,-32768,     2,-32768,    67,-32768,-32768
}

Definition at line 223 of file gengtype-yacc.c.

const short yyr1[] [static]

Initial value:

{
       0,    32,    32,    32,    32,    34,    33,    35,    33,    36,
      36,    36,    37,    38,    38,    39,    40,    40,    40,    41,
      41,    41,    42,    42,    42,    42,    43,    43,    43,    44,
      44,    44,    44,    44,    44,    44,    44,    44,    45,    45,
      45,    45,    46,    46,    47,    48,    48,    49,    49,    50,
      50,    51,    51
}

Definition at line 161 of file gengtype-yacc.c.

const short yyr2[] [static]

Initial value:

{
       0,     0,     2,     2,     2,     0,     8,     0,     7,     5,
       6,     7,     1,     1,     1,     6,     0,     3,     6,     0,
       2,     2,     0,     6,     6,     7,     0,     2,     2,     1,
       1,     2,     5,     2,     5,     2,     2,     5,     0,     5,
       3,     2,     0,     1,     6,     1,     1,     4,     4,     1,
       3,     0,     1
}

Definition at line 172 of file gengtype-yacc.c.

const short yytable[] [static]

Initial value:

{
      29,    30,    25,    84,    10,    11,    12,     8,    68,    65,
      71,    69,    91,    89,     8,    92,    70,    82,    90,    72,
     110,    98,    83,    36,    86,    17,    14,    15,    35,    38,
      18,    63,    64,    19,    20,    21,    52,    53,    16,    51,
      22,    23,    67,   108,    52,    53,    28,    52,    53,    75,
      39,    40,   100,    31,    32,    41,   101,     1,     2,     3,
       4,    35,    33,    34,    95,    46,    47,    56,    35,    48,
      49,    50,    57,   103,    61,    58,   104,    65,    80,    74,
      79,    59,    81,    97,    60,   107,    77,    85,    87,    93,
      94,    96,    99,   105,   102,   106,   111,   112,     0,     0,
     109,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    76
}

Definition at line 233 of file gengtype-yacc.c.

const char* const yytname[] [static]

Initial value:

{
  "$", "error", "$undefined.", "ENT_TYPEDEF_STRUCT", "ENT_STRUCT", 
  "ENT_EXTERNSTATIC", "ENT_YACCUNION", "GTY_TOKEN", "UNION", "STRUCT", 
  "ENUM", "ALIAS", "PARAM_IS", "NUM", "\"%%\"", "SCALAR", "ID", "STRING", 
  "ARRAY", "PERCENT_ID", "CHAR", "'{'", "'}'", "';'", "'='", "'<'", "'>'", 
  "':'", "'*'", "','", "'('", "')'", "start", "typedef_struct", "@1", 
  "@2", "externstatic", "lasttype", "semiequal", "yacc_union", 
  "yacc_typematch", "yacc_ids", "struct_fields", "bitfieldopt", "type", 
  "enum_items", "optionsopt", "options", "type_option", "option", 
  "optionseq", "optionseqopt", 0
}

Definition at line 146 of file gengtype-yacc.c.

const char yytranslate[] [static]

Definition at line 61 of file gengtype-yacc.c.


Generated on Wed Apr 8 15:34:02 2009 for Open64 by  doxygen 1.5.6