diff options
author | Jeffrey Hsu <hsu@FreeBSD.org> | 1996-11-04 21:54:52 +0000 |
---|---|---|
committer | Jeffrey Hsu <hsu@FreeBSD.org> | 1996-11-04 21:54:52 +0000 |
commit | b20d9ed2e7aee8840ba2faf6e5e980ee28a88ad3 (patch) | |
tree | d3c0c7512da26a6634a2bf415a827f66d627e9c5 /usr.bin/yacc | |
parent | 2a5a34dfa497e2b9b56a838634055bea6689dac3 (diff) | |
download | src-b20d9ed2e7aee8840ba2faf6e5e980ee28a88ad3.tar.gz src-b20d9ed2e7aee8840ba2faf6e5e980ee28a88ad3.zip |
Add YYLEX and YYEMPTY macros to make byacc look more like bison.
Obtained from: Cygnus source tree, with permission.
Original commit by Jim Wilson, wilson@cygnus.com.
Notes
Notes:
svn path=/head/; revision=19407
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r-- | usr.bin/yacc/skeleton.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index 0dc2e2e50ac2..a35981dc7908 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -60,7 +60,9 @@ char *banner[] = "#define YYBYACC 1", "#define YYMAJOR 1", "#define YYMINOR 9", - "#define yyclearin (yychar=(-1))", + "#define YYLEX yylex()", + "#define YYEMPTY -1", + "#define yyclearin (yychar=(YYEMPTY))", "#define yyerrok (yyerrflag=0)", "#define YYRECOVERING (yyerrflag!=0)", "/* cfront 1.2 defines \"c_plusplus\" instead of \"__cplusplus\" */", |