Files
bison/etc
Akim Demaille b327f38832 deprecate %defines in favor of %header
This is consistent with --defines being deprecated in favor of
--header.  The directive %defines is also too similar to %define.
And %header matches nicely with api.header.name.

* src/scan-gram.l (%defines): Deprecate to %header.
(%header): Scan it.
* src/parse-gram.y (PERCENT_DEFINES): Replace with...
(PERCENT_HEADER): this.
* data/skeletons/lalr1.java
* doc/bison.texi
* tests/actions.at, tests/c++.at, tests/calc.at, tests/conflicts.at,
* tests/input.at, tests/java.at, tests/local.at, tests/output.at,
* tests/synclines.at, tests/types.at:
Convert most tests to check %header instead of %defines.
2020-09-19 17:49:03 +02:00
..
2008-11-16 19:46:16 +01:00
2020-06-29 19:10:05 +02:00
2020-06-29 19:10:05 +02:00

bench.pl

A primitive Perl script to run benches. Currently its only bench is the usual calculator: it has a lightweight processing part (but not null), so it is really emphasizing the cost of the whole parsing (including scanning and I/O).

Set the envvars BISON and CC to the programs and flags you want to use. They default to bison and gcc. To run a non-installed bison from a tarball built in _build, I suggest the following.

BISON=_build/tests/bison CC='gcc -O2' ./bench.pl

(The _build/tests/bison wrapper makes sure that _build/src/bison will use the tarballs' skeletons, not those already installed as a straightforward use of _build/src/bison would.)