Files
bison/tests
Akim Demaille bc5aa8e274 tests: don't postprocess stderr with sed
On Solaris, sed throws away the NUL bytes from the stream, even in C
locale.  So instead of postprocessing bison's stderr to neutralize
changes in value of `argv[0]`, use an envvar to actually neutralize
variations of `argv[0]` during tests.

Reported by Dagobert Michelsen.
<https://lists.gnu.org/r/bug-bison/2021-08/msg00025.html>

* src/main.c (main): Change `argv[0]` if BISON_PROGRAM_NAME is
defined.
* tests/bison.in: No longer mess with stderr, just pass
the expected BISON_PROGRAM_NAME value.
2021-08-29 09:50:02 +02:00
..
2021-01-30 14:32:00 +01:00
2021-08-12 09:07:36 +02:00
2021-01-30 07:32:03 +01:00
2021-08-19 08:21:23 +02:00
2021-01-29 13:48:43 -08:00
2021-08-04 09:14:49 +02:00
2021-01-30 07:32:03 +01:00
2021-01-23 15:02:49 +01:00
2021-08-19 08:21:22 +02:00
2021-01-30 07:32:03 +01:00
2021-08-19 08:21:22 +02:00
2021-03-07 18:41:38 +01:00
2021-01-30 14:32:00 +01:00
2019-11-03 10:32:22 +01:00
2021-01-30 07:32:03 +01:00

AT_BISON_OPTION_PUSHDEFS/AT_BISON_OPTION_POPDEFS

These two macros must be given the (main) directives so that they define a number of other macros to:

  • what the language is (so what compiler tool chain to use, what definition of yylex/yyerror, etc.)
  • what skeleton is used

Keywords

The following keywords are used to label tests (with AT_KEYWORDS(category)). Please follow them and avoid creating synonyms.

  • action
  • api.value.type
  • c++: c++ language
  • cex: counterexamples.
  • d: d language
  • deprec: deprecated features.
  • diagnostics
  • glr
  • graph
  • html: html reports
  • java
  • lac
  • %merge
  • multistart
  • push
  • report: for automaton dumps
  • %union
  • variant
  • yacc: POSIX yacc (%yacc)

Calculator

The grammar features several special directives:

  • !! YYERROR
  • !+ YYACCEPT
  • !- YYABORT
  • !* YYNOMEM