QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
qp-parse.c File Reference

Macros

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))
 
#define ADDOP   276
 
#define AND   268
 
#define ARRAY   285
 
#define ASSIGNOP   296
 
#define ASX   265
 
#define BREAK_PRIMARY   261
 
#define CLASS_NOT_CATEGORY   262
 
#define COMMA   264
 
#define DO   294
 
#define ELLIPSIS   298
 
#define ELSE   260
 
#define END   290
 
#define EQ   269
 
#define FUNCTION   287
 
#define GE   272
 
#define GT   274
 
#define ID   281
 
#define IF   291
 
#define IFX   259
 
#define LE   271
 
#define LOW   258
 
#define LT   273
 
#define MULOP   277
 
#define NE   270
 
#define NOT   297
 
#define OF   286
 
#define OR   267
 
#define PARSE_ERROR   do { parse_error (); YYERROR; } while (0)
 
#define PAS   266
 
#define PBEGIN   289
 
#define PROCEDURE   288
 
#define PROGRAM   283
 
#define QP_YYDEBUG   1
 
#define QP_YYSTYPE_IS_DECLARED   1
 
#define QP_YYSTYPE_IS_TRIVIAL   1
 
#define QP_YYTOKENTYPE
 
#define RANGE   295
 
#define RELOP   275
 
#define RETURN   299
 
#define STORAGEX   263
 
#define THEN   292
 
#define TYPE   279
 
#define TYPE_NAME   280
 
#define UNARY   278
 
#define VALUE   282
 
#define VAR   284
 
#define WHILE   293
 
#define YY_(Msgid)   Msgid
 
#define YY_ATTRIBUTE(Spec)   /* empty */
 
#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
 
#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#define YY_NULLPTR   0
 
#define YY_QP_YY_QP_PARSE_H_INCLUDED
 
#define YY_REDUCE_PRINT(Rule)
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 
#define YYABORT   goto yyabortlab
 
#define YYACCEPT   goto yyacceptlab
 
#define YYBACKUP(Token, Value)
 
#define YYBISON   1
 
#define YYBISON_VERSION   "3.0.2"
 
#define yychar   qp_yychar
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYCOPY_NEEDED   1
 
#define yydebug   qp_yydebug
 
#define YYDEBUG   1
 
#define YYDPRINTF(Args)
 
#define YYEMPTY   (-2)
 
#define YYEOF   0
 
#define YYERRCODE   256
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyerror   qp_yyerror
 
#define YYERROR   goto yyerrorlab
 
#define YYERROR_VERBOSE   1
 
#define YYERROR_VERBOSE   0
 
#define YYFINAL   5
 
#define YYFPRINTF   fprintf
 
#define YYFREE   free
 
#define YYINITDEPTH   200
 
#define YYLAST   138
 
#define yylex   qp_yylex
 
#define yylval   qp_yylval
 
#define YYMALLOC   malloc
 
#define YYMAXDEPTH   10000
 
#define YYMAXUTOK   299
 
#define yynerrs   qp_yynerrs
 
#define YYNNTS   30
 
#define YYNRULES   62
 
#define YYNSTATES   127
 
#define YYNTOKENS   59
 
#define YYPACT_NINF   -90
 
#define yypact_value_is_default(Yystate)   (!!((Yystate) == (-90)))
 
#define yyparse   qp_yyparse
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 
#define YYPULL   1
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YYSIZE_T   size_t
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYSTACK_BYTES(N)
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYSTYPE   QP_YYSTYPE
 
#define YYTABLE_NINF   -45
 
#define yytable_value_is_error(Yytable_value)   0
 
#define YYTERROR   1
 
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYUNDEFTOK   2
 
#define YYUSE(E)   ((void) (E))
 

Typedefs

typedef union QP_YYSTYPE QP_YYSTYPE
 
typedef short int yytype_int16
 
typedef signed char yytype_int8
 
typedef unsigned short int yytype_uint16
 
typedef unsigned char yytype_uint8
 

Enumerations

enum  qp_yytokentype {
  LOW = 258, IFX = 259, ELSE = 260, BREAK_PRIMARY = 261,
  CLASS_NOT_CATEGORY = 262, STORAGEX = 263, COMMA = 264, ASX = 265,
  PAS = 266, OR = 267, AND = 268, EQ = 269,
  NE = 270, LE = 271, GE = 272, LT = 273,
  GT = 274, RELOP = 275, ADDOP = 276, MULOP = 277,
  UNARY = 278, TYPE = 279, TYPE_NAME = 280, ID = 281,
  VALUE = 282, PROGRAM = 283, VAR = 284, ARRAY = 285,
  OF = 286, FUNCTION = 287, PROCEDURE = 288, PBEGIN = 289,
  END = 290, IF = 291, THEN = 292, WHILE = 293,
  DO = 294, RANGE = 295, ASSIGNOP = 296, NOT = 297,
  ELLIPSIS = 298, RETURN = 299, LOW = 258, IFX = 259,
  ELSE = 260, BREAK_PRIMARY = 261, CLASS_NOT_CATEGORY = 262, STORAGEX = 263,
  COMMA = 264, ASX = 265, PAS = 266, OR = 267,
  AND = 268, EQ = 269, NE = 270, LE = 271,
  GE = 272, LT = 273, GT = 274, RELOP = 275,
  ADDOP = 276, MULOP = 277, UNARY = 278, TYPE = 279,
  TYPE_NAME = 280, ID = 281, VALUE = 282, PROGRAM = 283,
  VAR = 284, ARRAY = 285, OF = 286, FUNCTION = 287,
  PROCEDURE = 288, PBEGIN = 289, END = 290, IF = 291,
  THEN = 292, WHILE = 293, DO = 294, RANGE = 295,
  ASSIGNOP = 296, NOT = 297, ELLIPSIS = 298, RETURN = 299
}
 

Functions

void free (void *)
 
void * malloc (YYSIZE_T)
 
int qp_yyparse (void)
 
int yylex (void)
 
int yyparse (void)
 

Variables

int qp_yydebug
 
QP_YYSTYPE qp_yylval
 
char * qp_yytext
 
int yychar
 
int yydebug
 
YYSTYPE yylval
 
int yynerrs
 

Macro Definition Documentation

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))
#define ADDOP   276
#define AND   268
#define ARRAY   285
#define ASSIGNOP   296
#define ASX   265
#define BREAK_PRIMARY   261
#define CLASS_NOT_CATEGORY   262
#define COMMA   264
#define DO   294
#define ELLIPSIS   298
#define ELSE   260
#define END   290
#define EQ   269
#define FUNCTION   287
#define GE   272
#define GT   274
#define ID   281
#define IF   291
#define IFX   259
#define LE   271
#define LOW   258
#define LT   273
#define MULOP   277
#define NE   270
#define NOT   297
#define OF   286
#define OR   267
#define PARSE_ERROR   do { parse_error (); YYERROR; } while (0)
#define PAS   266
#define PBEGIN   289
#define PROCEDURE   288
#define PROGRAM   283
#define QP_YYDEBUG   1
#define QP_YYSTYPE_IS_DECLARED   1
#define QP_YYSTYPE_IS_TRIVIAL   1
#define QP_YYTOKENTYPE
#define RANGE   295
#define RELOP   275
#define RETURN   299
#define STORAGEX   263
#define THEN   292
#define TYPE   279
#define TYPE_NAME   280
#define UNARY   278
#define VALUE   282
#define VAR   284
#define WHILE   293
#define YY_ (   Msgid)    Msgid
#define YY_ATTRIBUTE (   Spec)    /* empty */
#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
#define YY_INITIAL_VALUE (   Value)    Value
#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)
#define YY_NULLPTR   0
#define YY_QP_YY_QP_PARSE_H_INCLUDED
#define YY_REDUCE_PRINT (   Rule)
Value:
do { \
yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)
if(!(yy_init))
Definition: qp-lex.c:893
#define yydebug
Definition: qp-parse.c:67
#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do { \
yy_stack_print ((Bottom), (Top)); \
} while (0)
if(!(yy_init))
Definition: qp-lex.c:893
#define yydebug
Definition: qp-parse.c:67
#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)
Value:
do { \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Type, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)
if(!(yy_init))
Definition: qp-lex.c:893
#define yydebug
Definition: qp-parse.c:67
#define YYFPRINTF
Definition: qp-parse.c:859
#define YYABORT   goto yyabortlab
#define YYACCEPT   goto yyacceptlab
#define YYBACKUP (   Token,
  Value 
)
Value:
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
} \
while (0)
#define YYEMPTY
Definition: qp-parse.c:821
#define yylval
Definition: qp-parse.c:70
if(!(yy_init))
Definition: qp-lex.c:893
#define yychar
Definition: qp-parse.c:71
#define YYPOPSTACK(N)
#define yyerror
Definition: qp-parse.c:66
#define YY_(Msgid)
Definition: qp-parse.c:377
while(1)
Definition: qp-lex.c:919
#define YYERROR
Definition: qp-parse.c:826
#define YYBISON   1
#define YYBISON_VERSION   "3.0.2"
#define yychar   qp_yychar
#define yyclearin   (yychar = YYEMPTY)
#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
#define YYSIZE_T
Definition: qp-parse.c:361
while(1)
Definition: qp-lex.c:919
#define YYCOPY_NEEDED   1
#define yydebug   qp_yydebug
#define YYDEBUG   1
#define YYDPRINTF (   Args)
Value:
do { \
YYFPRINTF Args; \
} while (0)
if(!(yy_init))
Definition: qp-lex.c:893
#define yydebug
Definition: qp-parse.c:67
#define YYFPRINTF
Definition: qp-parse.c:859
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYERRCODE   256
#define yyerrok   (yyerrstatus = 0)
#define yyerror   qp_yyerror
#define YYERROR   goto yyerrorlab
#define YYERROR_VERBOSE   1
#define YYERROR_VERBOSE   0
#define YYFINAL   5
#define YYFPRINTF   fprintf
#define YYFREE   free
#define YYINITDEPTH   200
#define YYLAST   138
#define yylex   qp_yylex
#define yylval   qp_yylval
#define YYMALLOC   malloc
#define YYMAXDEPTH   10000
#define YYMAXUTOK   299
#define yynerrs   qp_yynerrs
#define YYNNTS   30
#define YYNRULES   62
#define YYNSTATES   127
#define YYNTOKENS   59
#define YYPACT_NINF   -90
#define yypact_value_is_default (   Yystate)    (!!((Yystate) == (-90)))
#define yyparse   qp_yyparse
#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))
#define YYPULL   1
#define YYPURE   0
#define YYPUSH   0
#define YYRECOVERING ( )    (!!yyerrstatus)
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YYSIZE_T   size_t
#define YYSKELETON_NAME   "yacc.c"
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
#define YYSTACK_GAP_MAXIMUM
Definition: qp-parse.c:515
short int yytype_int16
Definition: qp-parse.c:351
#define YYSTYPE
Definition: qp-parse.c:62
#define YYSTACK_FREE   YYFREE
#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 (0)
#define YYCOPY(Dst, Src, Count)
Definition: qp-parse.c:551
#define YYSIZE_T
Definition: qp-parse.c:361
while(1)
Definition: qp-lex.c:919
#define YYSTACK_GAP_MAXIMUM
Definition: qp-parse.c:515
#define YYSTYPE   QP_YYSTYPE
#define YYTABLE_NINF   -45
#define yytable_value_is_error (   Yytable_value)    0
#define YYTERROR   1
#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYUNDEFTOK   2
#define YYUSE (   E)    ((void) (E))

Typedef Documentation

typedef union QP_YYSTYPE QP_YYSTYPE
typedef short int yytype_int16
typedef signed char yytype_int8
typedef unsigned short int yytype_uint16
typedef unsigned char yytype_uint8

Enumeration Type Documentation

Enumerator
LOW 
IFX 
ELSE 
BREAK_PRIMARY 
CLASS_NOT_CATEGORY 
STORAGEX 
COMMA 
ASX 
PAS 
OR 
AND 
EQ 
NE 
LE 
GE 
LT 
GT 
RELOP 
ADDOP 
MULOP 
UNARY 
TYPE 
TYPE_NAME 
ID 
VALUE 
PROGRAM 
VAR 
ARRAY 
OF 
FUNCTION 
PROCEDURE 
PBEGIN 
END 
IF 
THEN 
WHILE 
DO 
RANGE 
ASSIGNOP 
NOT 
ELLIPSIS 
RETURN 
LOW 
IFX 
ELSE 
BREAK_PRIMARY 
CLASS_NOT_CATEGORY 
STORAGEX 
COMMA 
ASX 
PAS 
OR 
AND 
EQ 
NE 
LE 
GE 
LT 
GT 
RELOP 
ADDOP 
MULOP 
UNARY 
TYPE 
TYPE_NAME 
ID 
VALUE 
PROGRAM 
VAR 
ARRAY 
OF 
FUNCTION 
PROCEDURE 
PBEGIN 
END 
IF 
THEN 
WHILE 
DO 
RANGE 
ASSIGNOP 
NOT 
ELLIPSIS 
RETURN 

Function Documentation

void free ( void *  )
void* malloc ( YYSIZE_T  )
int qp_yyparse ( void  )
int yylex ( void  )
int yyparse ( void  )

Variable Documentation

int qp_yydebug
QP_YYSTYPE qp_yylval
char* qp_yytext
int yychar
int yydebug
YYSTYPE yylval
int yynerrs