Build c-parse.c / c-parse.h from c-parse.y.
Comment out %expect in c-parse.y.
This commit is contained in:
parent
af6951825e
commit
a7f36c96bf
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: Makefile,v 1.2 1996/03/01 00:13:51 jtc Exp $
|
# $NetBSD: Makefile,v 1.3 1996/03/05 00:12:50 jtc Exp $
|
||||||
|
|
||||||
LIB= cc1
|
LIB= cc1
|
||||||
|
|
||||||
@ -173,11 +173,20 @@ bi-lexer.o: bi-parser.h
|
|||||||
|
|
||||||
bi-parser.h: bi-parser.c
|
bi-parser.h: bi-parser.c
|
||||||
bi-parser.c: bi-parser.y
|
bi-parser.c: bi-parser.y
|
||||||
$(YACC) -d $(.IMPSRC)
|
$(YACC) -b bi -d $(.IMPSRC)
|
||||||
mv -f y.tab.c bi-parser.c
|
mv -f bi.tab.c bi-parser.c
|
||||||
mv -f y.tab.h bi-parser.h
|
mv -f bi.tab.h bi-parser.h
|
||||||
|
|
||||||
|
CLEANFILES += c-parse.c c-parse.h
|
||||||
|
|
||||||
|
c-lex.o: c-parse.h
|
||||||
|
|
||||||
|
c-parse.h: c-parse.c
|
||||||
|
c-parse.c: c-parse.y
|
||||||
|
$(YACC) -b c -d $(.IMPSRC)
|
||||||
|
mv -f c.tab.c c-parse.c
|
||||||
|
mv -f c.tab.h c-parse.h
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
typedef union {long itype; tree ttype; enum tree_code code;
|
|
||||||
char *filename; int lineno; int ends_in_label; } YYSTYPE;
|
|
||||||
#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_KEYWORD 282
|
|
||||||
#define TYPEOF 283
|
|
||||||
#define ALIGNOF 284
|
|
||||||
#define ATTRIBUTE 285
|
|
||||||
#define EXTENSION 286
|
|
||||||
#define LABEL 287
|
|
||||||
#define REALPART 288
|
|
||||||
#define IMAGPART 289
|
|
||||||
#define ASSIGN 290
|
|
||||||
#define OROR 291
|
|
||||||
#define ANDAND 292
|
|
||||||
#define EQCOMPARE 293
|
|
||||||
#define ARITHCOMPARE 294
|
|
||||||
#define LSHIFT 295
|
|
||||||
#define RSHIFT 296
|
|
||||||
#define UNARY 297
|
|
||||||
#define PLUSPLUS 298
|
|
||||||
#define MINUSMINUS 299
|
|
||||||
#define HYPERUNARY 300
|
|
||||||
#define POINTSAT 301
|
|
||||||
#define INTERFACE 302
|
|
||||||
#define IMPLEMENTATION 303
|
|
||||||
#define END 304
|
|
||||||
#define SELECTOR 305
|
|
||||||
#define DEFS 306
|
|
||||||
#define ENCODE 307
|
|
||||||
#define CLASSNAME 308
|
|
||||||
#define PUBLIC 309
|
|
||||||
#define PRIVATE 310
|
|
||||||
#define PROTECTED 311
|
|
||||||
#define PROTOCOL 312
|
|
||||||
#define OBJECTNAME 313
|
|
||||||
#define CLASS 314
|
|
||||||
#define ALIAS 315
|
|
||||||
#define OBJC_STRING 316
|
|
||||||
|
|
||||||
|
|
||||||
extern YYSTYPE yylval;
|
|
@ -27,7 +27,7 @@ Boston, MA 02111-1307, USA. */
|
|||||||
/* To whomever it may concern: I have heard that such a thing was once
|
/* To whomever it may concern: I have heard that such a thing was once
|
||||||
written by AT&T, but I have never seen it. */
|
written by AT&T, but I have never seen it. */
|
||||||
|
|
||||||
%expect 34
|
/* %expect 34 */
|
||||||
|
|
||||||
/* These are the 23 conflicts you should get in parse.output;
|
/* These are the 23 conflicts you should get in parse.output;
|
||||||
the state numbers may vary if minor changes in the grammar are made.
|
the state numbers may vary if minor changes in the grammar are made.
|
||||||
|
Loading…
Reference in New Issue
Block a user