| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
`int yyparse(;) ; { ... }' in K&R mode. Getting rid of the second
unwanted semicolon in this made the ifdef tangle more tangled than
before. Fixed a backwards comment in the tangle.
|
|
|
|
|
| |
#elif. Cleaned up rev.1.8 a bit more: generate the #include of
<stdio.h> closer to the code that needs it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that used by bison. The names are consistent with the bison implementation
but this one also allows the type of the parameter to be specified.
For a desired prototype of:
int yyparse __P((struct yyresult *));
and compile like this:
yacc -dv grammar.y
cc -c -DYYPARSE_PARAM_TYPE="struct yyresult *" \
-DYYPARSE_PARAM="parm" y.tab.c
and use like this:
${
#include "usrtypes.h"
#include "usrproto.h"
}$
%token NUMBER
%%
goal : NUMBER
{
parm->value = yylval;
} ;
If YYPARSE_PARAM_TYPE isn't specified then "void *" is the default type.
If YYPARSE_PARAM is not specified then the generated code behaves exactly
as traditional byacc.
PR: 13562
Submitted by: W Gerald Hicks <wghicks@bellsouth.net>
|
| |
|
|
|
|
| |
change. (doesn't anybody read commit logs and look at the diffs?)
|
|
|
|
| |
Broken by: hoek
|
|
|
|
| |
(one always gets these ideas just after the commit).
|
|
|
|
|
| |
defined in an input file such as src/bin/sh/arith.y. #if 0 it out. I did
not add $Id$ back into the comment header (as removed from last commit).
|
|
|
|
|
|
| |
Don't output `sccsid' (set to an anchient UCB Id string) into the parser file.
Submitted by: bde
|
|
|
|
| |
file.
|
|
|
|
|
|
|
| |
generate portable code...
* Correctly define yyparse() (ie, K&R vs. C++/ANSI-C)
Obtained from: OpenBSD revs 1.5 & 1.10
|
|
|
|
| |
Obtained from: OpenBSD rev 1.8 (approved by Robert Corbett)
|
|
|
|
|
| |
stdlib.h unless on C++. However, we already included it above, so there
was no point using the redundant declarations instead.
|
|
|
|
|
|
|
| |
in the C case so that we don't have to depend on stdlib.h being
present.
Submitted by: Bruce Evans <bde@freefall.freebsd.org>
|
|
|
|
|
|
| |
parsers. Closes PR #2792.
Submitted by: Tim Vanderhoek
|
|
|
|
| |
assignment).
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
| |
|
|
|
|
| |
compile -Wall clean.
|
| |
|
|
|
|
|
| |
Obtained from: Cygnus source tree, with permission.
Original commit by Jim Wilson, wilson@cygnus.com.
|
|
|
|
|
|
| |
with -Wall. Tim's work with some minor additions by me.
Submitted by: Tim Vanderhoek <hoek@freenet.hamilton.on.ca>
|
| |
|
|
|
|
| |
YYDEBUG case (getenv() declared wrong).
|
| |
|
|
|