diff options
author | hsu <hsu@FreeBSD.org> | 1996-11-04 21:54:52 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 1996-11-04 21:54:52 +0000 |
commit | aa2308001f7004ca2ca5cdc8a4191a98adef25ba (patch) | |
tree | d3c0c7512da26a6634a2bf415a827f66d627e9c5 /usr.bin/yacc | |
parent | 46a17febc7c3b3fd220395b8617ab110fbbdf433 (diff) | |
download | FreeBSD-src-aa2308001f7004ca2ca5cdc8a4191a98adef25ba.zip FreeBSD-src-aa2308001f7004ca2ca5cdc8a4191a98adef25ba.tar.gz |
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.
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 0dc2e2e..a35981d 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\" */", |