1. 05 Jun, 2009 1 commit
  2. 14 May, 2009 1 commit
    • Alexandre Duret-Lutz's avatar
      Introduce libvcsn-common-ex.la in addition to libvcsn-common.la · 4ddbd80e
      Alexandre Duret-Lutz authored
      to decide whether exceptions should be used in preconditions.
      
      This fixes errors in taf-kit's test-suite when compiled with GCC
      4.4.  The code was making the bogus assumption that the inline
      function trap() was not inlined in the context libraries (compiled
      without exceptions) and could therefore be overwritten as a weak
      symbol in TAF-Kit (to use exceptions).
      
      * include/vaucanson/misc/contract.hh (vcsn::misc::contract::trap):
      Leave only a declaration and move the definition...
      * src/misc/contract.cc: ... in this new file.
      * lib/src/libcommon.mk: Adjust for contract.cc and build two
      libraries: libvcsn-common.la (with abort()) and
      libvcsn-common-ex.la (with exceptions).
      * data/automata/char-b/Makefile.am,
      data/automata/char-fmp-b/Makefile.am,
      data/automata/char-z/Makefile.am, taf-kit/src/Makefile.am,
      vaucanswig/meta/Makefile.am, src/tests/sanity/Makefile.am,
      src/tests/xml/Makefile.am: Link with libvcsn-common.la or
      libvcsn-common-ex.la.
      * taf-kit/src/common.hh (EXCEPTION_TRAPS): Remove #define.
      * src/bench/common/bench.mk (AM_CPPFLAGS): Remove useless
      -DEXCEPTION_TRAPS.
      * vaucanswig/expand.sh: Likewise.
      * src/tests/check/Makefile.am: Build libcheck.la instead
      of libcheck.a, so we can depend on libvcsn-common-ex.la
      * src/tests/check/check.mk: Use libcheck.la and
      libvcsn-common-ex.la.
      * src/tests/test-suites/test-suite.mk: Don't define
      EXCEPTION_TRAPS and don't add libvcsn-common-ex.la to LDADD
      (check.mk already does it).
      4ddbd80e
  3. 13 May, 2009 1 commit
    • Alexandre Duret-Lutz's avatar
      Rename libkrat_exp.la as libvcsn_common.la, and move lib/krat_exp/ · d8c81c6a
      Alexandre Duret-Lutz authored
      to lib/src/krat_exp/, so that we can later integrate more code
      into libvcsn_common.la.
      
      * bootstrap: Don't run bison, the Makefile will do it.
      * lib/krat_exp/krat_exp_bison.yy: Move ...
      * lib/src/krat_exp/krat_exp_bison.yy: ... here.
      * lib/krat_exp/libkrat_exp.mk: Rename as ...
      * lib/src/libcommon.mk: ... this, and adjust to the new names.
      * src/demos/algorithms/Makefile.am,
      src/demos/one_rule_rewriting/Makefile.am,
      src/demos/vgrep/Makefile.am, src/tests/xml/Makefile.am,
      taf-kit/src/Makefile.am, lib/Makefile.am: Change all references to
      libkrat_exp.la into libvcsn-common.la.
      d8c81c6a
  4. 17 Mar, 2009 10 commits
  5. 16 Mar, 2009 1 commit
  6. 13 Mar, 2009 1 commit
    • Alexandre Duret-Lutz's avatar
      Do not read the alphabet from the command line with a rational · 53b57456
      Alexandre Duret-Lutz authored
      expression has just been read.  Use the alphabet from the
      expression instead.
      
      * taf-kit/src/getters.hh, taf-kit/src/getters.hxx (get_alphabet):
      New overload to retrieve the alphabet of a rat_exp_t.
      * taf-kit/src/ratexp_commands.hh (standard_of, thompson_of):
      Do not call make_automaton and get_alphabet.
      (derived_term_automaton): retrieve the alphabet of the expression
      that has been read, do not request it from the command line.
      53b57456
  7. 18 Feb, 2009 1 commit
    • Maurice Audin's avatar
      Add two new TAF-Kits, char-zmin and char-zmax, with basic tests. · 4410bba9
      Maurice Audin authored
      	* configure.ac: Add new files and wrappers.
      	* taf-kit/src/Makefile.am: Add two new contexts.
      	* taf-kit/tests/Makefile.am: Add tests for the new contexts.
      	* taf-kit/tests/vcsn-char-zmax.test,
      	* taf-kit/tests/vcsn-char-zmin.test: Add two basic tests (non-determinist automata include).
      4410bba9
  8. 11 Feb, 2009 1 commit
    • Florian Lesaint's avatar
      Add XML support for rational expressions in TAF-Kit. · bcc19800
      Florian Lesaint authored
      	Now, it is possible to execute things like:
      	./vcsn-char-b -o XML --alphabet=ab identity-exp "(a+b)*.a.(a+b)*"
      	./vcsn-char-b -i XML identity-exp exp1.xml
      	./vcsn-char-b -i XML -o XML identity-exp exp1.xml
      
      	* taf-kit/src/common.hh: Split input_type into input_exp_type and 
      	    input_aut_type (Allow XML by default for aut and EXP for regexp).
      	* taf-kit/src/getters.hxx: Add XML input for rat_exp.
      	* taf-kit/src/main.cc: input_exp_type/input_aut_type.
      	* taf-kit/src/pipe.hh: input_exp_type/input_aut_type.
      	* taf-kit/src/pipe.hxx: input_exp_type/input_aut_type.
      	* taf-kit/src/pipe_writers.hxx: Add XML output for rat exp.
      bcc19800
  9. 21 Jan, 2009 7 commits
  10. 30 Dec, 2008 1 commit
  11. 12 Dec, 2008 1 commit
  12. 03 Dec, 2008 3 commits
    • Jerome Galtier's avatar
      TAF-Kit: Add comments about r2553. · 8e1ece14
      Jerome Galtier authored
      	* taf-kit/src/ratexp_commands.hh: Here.
      	* taf-kit/tests/vcsn-char-b.test: New regression test.
      8e1ece14
    • Jerome Galtier's avatar
      TAF-Kit: Fix a bug. · 0075ec2c
      Jerome Galtier authored
      	* taf-kit/src/parser_options.hh (definition): New attribute
      	  `first_space_'.
      	* taf-kit/src/parser_options.hxx (push_space): Do not use a static
      	  flag as more than one parser_options are used for FMP.
      	* taf-kit/tests/automata/char-fmp-b/wd-full.xml: New.
      	* taf-kit/tests/defs.in: New XML file.
      	* taf-kit/tests/vcsn-char-fmp-b.test: New regression test.
      	* taf-kit/tests/Makefile.am: Add new file to the distribution.
      0075ec2c
    • Jerome Galtier's avatar
      TAF-Kit: Homogenize XML output. · 782980bd
      Jerome Galtier authored
      	* taf-kit/src/edition_commands.hxx: Do not append an `std::endl'
      	  after calling `automaton_saver'.
      	* taf-kit/tests/vcsn-char-b.test: Regression test.
      782980bd
  13. 27 Nov, 2008 6 commits
    • Jerome Galtier's avatar
      TAF-Kit: Overhaul representation handling w.r.t. alphabets. · 900ae225
      Jerome Galtier authored
      	* taf-kit/src/fmp_commands.cc: More comments.
      	* taf-kit/src/getters.hh: New `set_monoid_writing_data_',
      	  `set_series_writing_data_', `set_writing_data'.
      	  [WITH_TWO_ALPHABETS]: New `set_boolean_writing_data'.
      	* taf-kit/src/getters.hxx: Update getters implementation to have the
      	  desired behavior.
      	* taf-kit/src/main.cc: Disable collision check thanks to the
      	  adaptative behavior.
      	* taf-kit/src/ratexp_commands.hh: Rework some commands
      	  implementation to correctly handle user provided tokens.
      900ae225
    • Jerome Galtier's avatar
      TAF-Kit: New structure to overwrite writing data. · d6cac04a
      Jerome Galtier authored
      	* taf-kit/src/common.hh: New `cmd_flags_t'. (arguments_t): New
      	  attributes `cf'. [WITH_TWO_ALPHABETS] (arguments_t): New
      	  attributes `cf1' and `cf2'.
      	* taf-kit/src/edition_commands.hxx: More comments. Use
      	  `set_writing_data' to set the writing data.
      	* taf-kit/src/getters.hxx: New function `set_writing_data'.
      	* taf-kit/src/main.cc: Update the implementation according to the
      	  previous changes.
      	* taf-kit/src/parser_options.hh: New method `get_cmd_flags'.
      	* taf-kit/src/parser_options.hxx: Update implementation according to
      	  the previous changes. Set flags to true when pushing data.
      d6cac04a
    • Jerome Galtier's avatar
      TAF-Kit: Tweak collision checks. · e565c9c3
      Jerome Galtier authored
      	* taf-kit/src/parser_options.hxx: Fix a typo by renaming the macro
      	  `CHECK_COLISION' to `CHECK_COLLISION'. Do not check if `CONCAT'
      	  has collisions with letters if it is the empty string.
      e565c9c3
    • Jerome Galtier's avatar
      TAF-Kit: Add CONCAT to change the concatenation operator. · 28d4ac25
      Jerome Galtier authored
      	* taf-kit/src/parser_options.hh: Update the grammar definition.
      	  (definition): New `concat_cb' attribute. New `push_concat' method.
      	* taf-kit/src/parser_options.hxx (check_collision): Check for
      	  collisions with the concat symbol. Add the implementation of
      	  `push_concat'. (definition): Update implementation according to
      	  the previous changes.
      28d4ac25
    • Jerome Galtier's avatar
      TAF-Kit: Improve support for SeriesRep. · 35ce3fd1
      Jerome Galtier authored
      	* taf-kit/src/edition_commands.hxx,
      	* taf-kit/src/fmp_commands.cc: Use the correct series representation
      	  in `make_automaton' and `make_rat_exp' function calls.
      35ce3fd1
    • Jerome Galtier's avatar
      Rework monoid and series representations for FMP. · 7fca32b9
      Jerome Galtier authored
      	* include/vaucanson/algebra/concept/freemonoid_product.hh
      	  (monoid_rep): Remove method declarations of `first_projection' and
      	  `second_projection'. (series_rep): Add new type helpers. Rename
      	  `first_projection' to `first_representation' and
      	  `second_projection' to `second_representation'. Remove the `const'
      	  qualifier from `first_representation' and `second_representation'.
      	  Change return types to references. Add const versions.
      	* include/vaucanson/algebra/concept/freemonoid_product.hxx: Remove
      	  implementations of `first_projection' and `second_projection' for
      	  `monoid_rep'. Rework implementation of `first_representation' and
      	  `second_representation'.
      	* include/vaucanson/contexts/fmp_transducer_maker.thh
      	  (make_automaton): Remove the last two arguments.
      	* include/vaucanson/contexts/fmp_transducer_maker.thxx
      	  (make_automaton): Remove a `FIXME'. Update implementation
      	  according to the modified prototypes.
      	* taf-kit/src/common.hh (arguments_t): Remove the two attributes
      	  `srep1' and `srep2'.
      	* taf-kit/src/edition_commands.hxx,
      	* taf-kit/src/fmp_commands.cc,
      	* taf-kit/src/getters.hxx: Update calls to `make_automaton'.
      	* taf-kit/src/main.cc: Use `p_opts1' and `p_opts2' to setup the
      	  first and second series representation respectively.
      7fca32b9
  14. 25 Nov, 2008 1 commit
  15. 21 Nov, 2008 1 commit
    • Reuben Thomas's avatar
      Remove [r]delta_state_iterator. · 743c4c00
      Reuben Thomas authored
      	[r]delta_state_iterator was poorly designed (the name was
      	used to express a type), and not needed	(it was only used
      	twice, and dst_of and src_of are convenient
      	to use instead).
      
      	Since that only leaves one flavour, [r]delta_transition_iterator,
      	it is now called [r]delta_iterator.
      	* include/vaucanson/algorithms/accessible.hxx: .
      	* include/vaucanson/algorithms/aut_to_exp.hxx: .
      	* include/vaucanson/algorithms/complete.hxx: .
      	* include/vaucanson/algorithms/determinize.hxx: .
      	* include/vaucanson/algorithms/eps_removal.hxx: .
      	* include/vaucanson/algorithms/eps_removal_sp.hxx: .
      	* include/vaucanson/algorithms/eval.hxx: .
      	* include/vaucanson/algorithms/internal/evaluation.hxx: .
      	* include/vaucanson/algorithms/internal/has_neighbour.hxx: .
      	* include/vaucanson/algorithms/internal/outsplitting.hxx: .
      	* include/vaucanson/algorithms/is_deterministic.hxx: .
      	* include/vaucanson/algorithms/letter_to_letter_composition.hxx: .
      	* include/vaucanson/algorithms/minimization_hopcroft.hxx: .
      	* include/vaucanson/algorithms/minimization_moore.hxx: .
      	* include/vaucanson/algorithms/normalized_composition.hxx: .
      	* include/vaucanson/algorithms/product.hxx: .
      	* include/vaucanson/algorithms/rw_composition.hxx: .
      	* include/vaucanson/algorithms/search.hxx: .
      	* include/vaucanson/algorithms/standard.hxx: .
      	* include/vaucanson/algorithms/standard_of.hxx: .
      	* include/vaucanson/algorithms/sum.hxx: .
      	* include/vaucanson/automata/concept/automata_base.hh: .
      	* include/vaucanson/automata/implementation/bmig/iterator.hh: .
      	* include/vaucanson/automata/implementation/bmig/iterator.hxx: .
      	* include/vaucanson/automata/implementation/bmig_graph_impl.hh: .
      	* include/vaucanson/automata/implementation/bmig_graph_impl.hxx: .
      	* include/vaucanson/automata/implementation/listg/iterator.hh: .
      	* include/vaucanson/automata/implementation/listg/iterator.hxx: .
      	* include/vaucanson/automata/implementation/listg_graph_impl.hh: .
      	* include/vaucanson/automata/implementation/transpose_view.hh: .
      	* include/vaucanson/misc/usual_macros.hh: .
      	* include/vaucanson/tools/fsm_dump.hxx: .
      	* include/vaucanson/tools/gen_random.hxx: .
      	* src/tests/include/tests/automata/implementation_check/iterator_test.hh: .
      	* taf-kit/src/edition_commands.hxx: .
      743c4c00
  16. 20 Nov, 2008 1 commit
    • Reuben Thomas's avatar
      Remove deltac iterators. · 28668b63
      Reuben Thomas authored
      	The delta_transition_iterator's and delta_state_iterator's are used
      	instead.
      	* include/vaucanson/algorithms/accessible.hxx: .
      	* include/vaucanson/algorithms/aut_to_exp.hxx: .
      	* include/vaucanson/algorithms/complete.hxx: .
      	* include/vaucanson/algorithms/determinize.hxx: .
      	* include/vaucanson/algorithms/eps_removal.hxx: .
      	* include/vaucanson/algorithms/eps_removal_sp.hxx: .
      	* include/vaucanson/algorithms/eval.hxx: .
      	* include/vaucanson/algorithms/internal/evaluation.hxx: .
      	* include/vaucanson/algorithms/internal/outsplitting.hxx: .
      	* include/vaucanson/algorithms/is_deterministic.hxx: .
      	* include/vaucanson/algorithms/letter_to_letter_composition.hxx: .
      	* include/vaucanson/algorithms/minimization_hopcroft.hxx: .
      	* include/vaucanson/algorithms/minimization_moore.hxx: .
      	* include/vaucanson/algorithms/normalized_composition.hxx: .
      	* include/vaucanson/algorithms/product.hxx: .
      	* include/vaucanson/algorithms/rw_composition.hxx: .
      	* include/vaucanson/algorithms/search.hxx: .
      	* include/vaucanson/algorithms/standard.hxx: .
      	* include/vaucanson/algorithms/standard_of.hxx: .
      	* include/vaucanson/algorithms/sum.hxx: .
      	* include/vaucanson/automata/concept/automata_base.hh: .
      	* include/vaucanson/automata/concept/automata_base.hxx: .
      	* include/vaucanson/automata/concept/automata_ops.hh: .
      	* include/vaucanson/automata/concept/automata_ops.hxx: .
      	* include/vaucanson/automata/concept/kinds.hh: .
      	* include/vaucanson/automata/concept/kinds.hxx: .
      	* include/vaucanson/automata/implementation/automaton_view.hh: .
      	* include/vaucanson/automata/implementation/automaton_view.hxx: .
      	* include/vaucanson/automata/implementation/bmig_graph_impl.hh: .
      	* include/vaucanson/automata/implementation/bmig_graph_impl.hxx: .
      	* include/vaucanson/automata/implementation/listg_graph_impl.hh: .
      	* include/vaucanson/automata/implementation/listg_graph_impl.hxx: .
      	* include/vaucanson/automata/implementation/transpose_view.hh: .
      	* include/vaucanson/automata/implementation/transpose_view.hxx: .
      	* include/vaucanson/tools/fsm_dump.hxx: .
      	* include/vaucanson/tools/gen_random.hxx: .
      	* src/benchs/iterators/iterator_bench.hh: .
      	* src/demos/algorithms/universal.cc: .
      	* src/demos/one_rule_rewriting/shortest.hh: .
      	* src/tests/include/Makefile.am: .
      	* src/tests/include/tests/automata/algos/boolean_rw_transducers/invert_test.hh: .
      	* src/tests/include/tests/automata/algos/letter_combination_labeled_graphs/transition_container_test.hh: .
      	* src/tests/include/tests/automata/implementation_check/rdelta_test.hh: Remove.
      	* taf-kit/src/edition_commands.hxx: .
      28668b63
  17. 19 Nov, 2008 1 commit
  18. 18 Nov, 2008 1 commit