NetBSD/external/bsd/byacc/dist
rillig 8183d7c624 byacc: fix line number information for code coverage
Previously, running gcov on a parser generated by byacc resulted in
obviously wrong counts. There were empty lines that had counts, and the
same counts spilled over to some nearby lines.

Only generate preprocessor line directives for the actual action code,
switch back to an empty filename for the glue code.

This only fixes the parsers in default mode. Parsers that use the
backtracking option may still report wrong counts.

Reported upstream via private mail.
2021-10-05 22:15:32 +00:00
..
package
test
ACKNOWLEDGEMENTS
AUTHORS
CHANGES
LICENSE
MANIFEST
NEW_FEATURES
NOTES
NO_WARRANTY
README
README.BTYACC
VERSION
aclocal.m4
btyaccpar.c
btyaccpar.skel
closure.c
config.guess
config.sub
config_h.in
configure
configure.in
defs.h
descrip.mms
error.c
graph.c
install-sh
lalr.c
lr0.c
main.c
makefile.in
mkpar.c
mstring.c
output.c
reader.c
skel2c
symtab.c
verbose.c
vmsbuild.com
warshall.c
yacc.1
yaccpar.c
yaccpar.skel

README

-- Id: README,v 1.2 2004/03/28 17:24:53 tom Exp 

The original README is below.  I've updated this version of Berkeley Yacc
to make it ANSI C compliant - Thomas Dickey

-------------------------------------------------------------------------------
    Berkeley Yacc is an LALR(1) parser generator.  Berkeley Yacc has been made
as compatible as possible with AT&T Yacc.  Berkeley Yacc can accept any input
specification that conforms to the AT&T Yacc documentation.  Specifications
that take advantage of undocumented features of AT&T Yacc will probably be
rejected.

    Berkeley Yacc is distributed with no warranty whatever.  The code is certain
to contain errors.  Neither the author nor any contributor takes responsibility
for any consequences of its use.

    Berkeley Yacc is in the public domain.  The data structures and algorithms
used in Berkeley Yacc are all either taken from documents available to the
general public or are inventions of the author.  Anyone may freely distribute
source or binary forms of Berkeley Yacc whether unchanged or modified.
Distributers may charge whatever fees they can obtain for Berkeley Yacc.
Programs generated by Berkeley Yacc may be distributed freely.

    Please report bugs to

			robert.corbett@eng.Sun.COM

Include a small example if possible.  Please include the banner string from
skeleton.c with the bug report.  Do not expect rapid responses.