NeXTSTEP source code.
NeXTSTEP source code dump.
Classes | Macros | Typedefs | Functions | Variables
c-parse.tab.c File Reference
#include "config.h"
#include "tree.h"
#include "input.h"
#include "c-parse.h"
#include "c-tree.h"
#include <stdio.h>
#include <errno.h>

Classes

union  YYSTYPE
 
struct  yyltype
 
struct  resword
 

Macros

#define IDENTIFIER   258
 
#define TYPENAME   259
 
#define SCSPEC   260
 
#define TYPESPEC   261
 
#define TYPE_QUAL   262
 
#define CONSTANT   263
 
#define STRING   264
 
#define ELLIPSIS   265
 
#define SIZEOF   266
 
#define ENUM   267
 
#define STRUCT   268
 
#define UNION   269
 
#define IF   270
 
#define ELSE   271
 
#define WHILE   272
 
#define DO   273
 
#define FOR   274
 
#define SWITCH   275
 
#define CASE   276
 
#define DEFAULT   277
 
#define BREAK   278
 
#define CONTINUE   279
 
#define RETURN   280
 
#define GOTO   281
 
#define ASM   282
 
#define TYPEOF   283
 
#define ALIGNOF   284
 
#define ATTRIBUTE   285
 
#define ASSIGN   286
 
#define OROR   287
 
#define ANDAND   288
 
#define EQCOMPARE   289
 
#define ARITHCOMPARE   290
 
#define LSHIFT   291
 
#define RSHIFT   292
 
#define UNARY   293
 
#define PLUSPLUS   294
 
#define MINUSMINUS   295
 
#define HYPERUNARY   296
 
#define POINTSAT   297
 
#define YYDEBUG   1
 
#define YYLTYPE   yyltype
 
#define const
 
#define YYFINAL   514
 
#define YYFLAG   -32768
 
#define YYNTBASE   65
 
#define YYTRANSLATE(x)   ((unsigned)(x) <= 297 ? yytranslate[x] : 171)
 
#define YYLAST   1561
 
#define YYPURE   1
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYEMPTY   -2
 
#define YYEOF   0
 
#define YYFAIL   goto yyerrlab;
 
#define YYACCEPT   return(0)
 
#define YYABORT   return(1)
 
#define YYERROR   goto yyerrlab
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#define YYLEX   yylex()
 
#define YYMAXDEPTH   200
 
#define YYMAXLIMIT   10000
 
#define MIN_WORD_LENGTH   2 /* minimum size for C keyword */
 
#define MAX_WORD_LENGTH   13 /* maximum size for C keyword */
 
#define MIN_HASH_VALUE   7 /* range of the hash keys values */
 
#define MAX_HASH_VALUE   91 /* for the perfect hash generator */
 
#define NORID   RID_UNUSED
 
#define isalnum(char)   ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || (char >= '0' && char <= '9'))
 
#define isdigit(char)   (char >= '0' && char <= '9')
 
#define ENDFILE   -1 /* token that represents end-of-file */
 

Typedefs

typedef struct yyltype yyltype
 

Functions

void yyerror ()
 
int yyparse ()
 
struct reswordis_reserved_word (char *str, int len)
 
int check_newline ()
 
void init_lex ()
 
void yyerror (char *string)
 

Variables

int errno
 
tree current_declspecs
 
tree declspec_stack
 
int undeclared_variable_notice
 
int yychar = -1
 
YYSTYPE yylval
 
YYLTYPE yylloc
 
int yynerrs
 
int yydebug
 
int lineno
 
FILEfinput
 
tree ridpointers [(int) RID_MAX]
 

Macro Definition Documentation

◆ ALIGNOF

#define ALIGNOF   284

◆ ANDAND

#define ANDAND   288

◆ ARITHCOMPARE

#define ARITHCOMPARE   290

◆ ASM

#define ASM   282

◆ ASSIGN

#define ASSIGN   286

◆ ATTRIBUTE

#define ATTRIBUTE   285

◆ BREAK

#define BREAK   278

◆ CASE

#define CASE   276

◆ const

#define const

◆ CONSTANT

#define CONSTANT   263

◆ CONTINUE

#define CONTINUE   279

◆ DEFAULT

#define DEFAULT   277

◆ DO

#define DO   273

◆ ELLIPSIS

#define ELLIPSIS   265

◆ ELSE

#define ELSE   271

◆ ENDFILE

#define ENDFILE   -1 /* token that represents end-of-file */

◆ ENUM

#define ENUM   267

◆ EQCOMPARE

#define EQCOMPARE   289

◆ FOR

#define FOR   274

◆ GOTO

#define GOTO   281

◆ HYPERUNARY

#define HYPERUNARY   296

◆ IDENTIFIER

#define IDENTIFIER   258

◆ IF

#define IF   270

◆ isalnum

#define isalnum (   char)    ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || (char >= '0' && char <= '9'))

◆ isdigit

#define isdigit (   char)    (char >= '0' && char <= '9')

◆ LSHIFT

#define LSHIFT   291

◆ MAX_HASH_VALUE

#define MAX_HASH_VALUE   91 /* for the perfect hash generator */

◆ MAX_WORD_LENGTH

#define MAX_WORD_LENGTH   13 /* maximum size for C keyword */

◆ MIN_HASH_VALUE

#define MIN_HASH_VALUE   7 /* range of the hash keys values */

◆ MIN_WORD_LENGTH

#define MIN_WORD_LENGTH   2 /* minimum size for C keyword */

◆ MINUSMINUS

#define MINUSMINUS   295

◆ NORID

#define NORID   RID_UNUSED

◆ OROR

#define OROR   287

◆ PLUSPLUS

#define PLUSPLUS   294

◆ POINTSAT

#define POINTSAT   297

◆ RETURN

#define RETURN   280

◆ RSHIFT

#define RSHIFT   292

◆ SCSPEC

#define SCSPEC   260

◆ SIZEOF

#define SIZEOF   266

◆ STRING

#define STRING   264

◆ STRUCT

#define STRUCT   268

◆ SWITCH

#define SWITCH   275

◆ TYPE_QUAL

#define TYPE_QUAL   262

◆ TYPENAME

#define TYPENAME   259

◆ TYPEOF

#define TYPEOF   283

◆ TYPESPEC

#define TYPESPEC   261

◆ UNARY

#define UNARY   293

◆ UNION

#define UNION   269

◆ WHILE

#define WHILE   272

◆ YYABORT

#define YYABORT   return(1)

◆ YYACCEPT

#define YYACCEPT   return(0)

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

◆ YYDEBUG

#define YYDEBUG   1

◆ YYEMPTY

#define YYEMPTY   -2

◆ YYEOF

#define YYEOF   0

◆ YYERRCODE

#define YYERRCODE   256

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

◆ YYERROR

#define YYERROR   goto yyerrlab

◆ YYFAIL

#define YYFAIL   goto yyerrlab;

◆ YYFINAL

#define YYFINAL   514

◆ YYFLAG

#define YYFLAG   -32768

◆ YYLAST

#define YYLAST   1561

◆ YYLEX

#define YYLEX   yylex()

◆ YYLTYPE

#define YYLTYPE   yyltype

◆ YYMAXDEPTH

#define YYMAXDEPTH   200

◆ YYMAXLIMIT

#define YYMAXLIMIT   10000

◆ YYNTBASE

#define YYNTBASE   65

◆ YYPURE

#define YYPURE   1

◆ YYTERROR

#define YYTERROR   1

◆ YYTRANSLATE

#define YYTRANSLATE (   x)    ((unsigned)(x) <= 297 ? yytranslate[x] : 171)

Typedef Documentation

◆ yyltype

typedef struct yyltype yyltype

Function Documentation

◆ check_newline()

int check_newline ( )

◆ init_lex()

void init_lex ( )

◆ is_reserved_word()

struct resword* is_reserved_word ( char *  str,
int  len 
)

◆ yyerror() [1/2]

void yyerror ( )

◆ yyerror() [2/2]

void yyerror ( char *  string)

◆ yyparse()

int yyparse ( )

Variable Documentation

◆ current_declspecs

tree current_declspecs

◆ declspec_stack

tree declspec_stack

◆ errno

int errno
extern

◆ finput

FILE* finput

◆ lineno

int lineno

◆ ridpointers

tree ridpointers

◆ undeclared_variable_notice

int undeclared_variable_notice

◆ yychar

int yychar = -1

◆ yydebug

int yydebug

◆ yylloc

YYLTYPE yylloc

◆ yylval

YYSTYPE yylval

◆ yynerrs

int yynerrs