* data/Makefile.am (dist_pkgdata_DATA): Remove push.c.

* data/push.c: Rename to...
* data/yacc.c: ... this, overwriting it.
* etc/bench.pl.in (bench_grammar): `%pure-parser'-> `%define api.pure'.
`%push-pull-parser' -> `%define api.push_pull "both"'.
Remove old yacc.c tests, and update push.c tests to yacc.c.
This commit is contained in:
Joel E. Denny
2008-02-17 19:55:48 +00:00
parent 42ee26bb96
commit 9ca7f077a0
5 changed files with 350 additions and 1885 deletions

View File

@@ -1,6 +1,6 @@
#! /usr/bin/perl -w
# Copyright (C) 2006 Free Software Foundation, Inc.
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
#
# This file is part of Bison, the GNU Compiler Compiler.
#
@@ -343,12 +343,10 @@ sub bench_grammar ($)
my ($gram) = @_;
my %test =
(
"yacc.c-pull-impure" => '',
"yacc.c-pull-pure" => '%pure-parser',
"push.c-pull-impure" => '%skeleton "push.c"',
"push.c-pull-pure" => '%skeleton "push.c" %pure-parser',
"push.c-push-impure" => '%skeleton "push.c" %push-pull-parser',
"push.c-push-pure" => '%skeleton "push.c" %push-pull-parser %pure-parser',
"pull-impure" => '',
"pull-pure" => '%define api.pure',
"push-impure" => '%define api.push_pull "both"',
"push-pure" => '%define api.push_pull "both" %define api.pure',
);
my %bench;