bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/4] tests refactoring in maint


From: Akim Demaille
Subject: [PATCH 0/4] tests refactoring in maint
Date: Sun, 17 Jun 2012 19:54:37 +0200

There's a lot of code duplication in the test suite: declarations and
definitions of yylex, yyparse, and even main.  What is really needed
is a better AT_DATA_GRAMMAR that would check the directives to pass
them to AT_BISON_OPTION_PUSHDEFS.  I might do that eventually, but
anyway, enhancing the similarity can only help.

Not to mention that it should provide good hints on how we could
generate yyerror's definition and declarations, and maybe a
declaration of yylex.

This was made before working on test cases for api.prefix.

Akim Demaille (4):
  tests: factor the declaration/definition of yyerror and yylex.
  tests: remove test covered elsewhere.
  tests: pacify font-lock-mode.
  tests: support api.prefix.

 tests/actions.at        |  265 ++++++++++++-----------------------------
 tests/conflicts.at      |   59 ++-------
 tests/glr-regression.at |  303 +++++++++++++++++------------------------------
 tests/headers.at        |   30 +----
 tests/input.at          |   25 ++--
 tests/local.at          |   88 ++++++++++++--
 tests/named-refs.at     |   24 ++--
 tests/regression.at     |  211 ++++++++++++++-------------------
 tests/skeletons.at      |   11 +-
 tests/synclines.at      |   26 ++--
 tests/torture.at        |   39 +++---
 11 files changed, 423 insertions(+), 658 deletions(-)

-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]