Commit Graph

6905 Commits (14c620848340e7f0197099ae612a58e47ac26ae8)

Author SHA1 Message Date
Pierre Weis 99c5f87045 Le predicat is_float utilise expand_head_opt pour optimiser aussi les champs de records dont le type est une abbreviation privee.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8685 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 22:30:25 +00:00
Pierre Weis 2cf7ed4450 Arguments homogenes pour le predicat private_flags.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8684 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 22:27:35 +00:00
Pierre Weis 3013dc544d Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8683 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 22:26:05 +00:00
Pierre Weis 48c4625aa8 Typo: PPat_type c'est Ppat_type.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8682 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 22:25:02 +00:00
Pierre Weis 7fb9c3cba8 Adding a test for type based optimization for private abbrevs.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8681 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 22:22:35 +00:00
Nicolas Pouillard 1f943bd9ed [ocamlbuild] copy_rule now creates destinations directories if neccessary.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8680 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 17:22:53 +00:00
Nicolas Pouillard df52eaf66b [ocamlbuild] Skip empty shell commands in Ocamlbuild_executor.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8679 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 17:21:59 +00:00
Nicolas Pouillard f7a3758488 [ocamlbuild] Add the |> operator for reverse application.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8678 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 17:20:39 +00:00
Nicolas Pouillard cd7ce252c6 [ocamlbuild] Kill file_rule, please use rule + Echo instead.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 17:19:24 +00:00
Nicolas Pouillard e0c8195430 [build] No longer use file_rule by rule + Echo.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8674 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:20:42 +00:00
Nicolas Pouillard b1b5eec9bc [ocamlbuild] No longer use file_rule but rule + Echo.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8673 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:19:35 +00:00
Nicolas Pouillard d6abf3177c [ocamlbuild] Add the Echo command primitive.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8672 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:18:49 +00:00
Nicolas Pouillard 9e216739ee [ocamlbuild] Simplify a little the execute_many protocol and then cleanup Command.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8671 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:11:46 +00:00
Nicolas Pouillard 187653767a [ocamlbuild] Fix the start.sh script.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8670 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:10:49 +00:00
Nicolas Pouillard c32b7dbb0e [ocamlbuild] ocamlbuild is no longer recursive by default.
You can still have a fine grained control using your _tags
file and the "traverse" tag.
There is no longer the "true: traverse" tag declaration by default.
To make ocamlbuild recursive use one of these:
  1) Give the -r flag to ocamlbuild.
  2) Have a _tags or myocamlbuild.ml file in your top directory.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8669 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:10:13 +00:00
Nicolas Pouillard 3a4356befd [ocamlbuild] Move some functions from Pathname to Resource and use Digest_cache.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8668 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:08:18 +00:00
Nicolas Pouillard 114db8aaea [ocamlbuild] More documentation (in particular all the PLUGIN sig is doc).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8667 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:06:58 +00:00
Nicolas Pouillard 68072dfe87 [ocamlbuild] Implement default tags in a simpler way.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8666 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:06:13 +00:00
Nicolas Pouillard f835cca505 [ocamlbuild] Move tag_any and tag_file to Configuration but still export them in Ocamlbuild_plugin.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8665 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:03:48 +00:00
Nicolas Pouillard ae46dfee1c [ocamlbuild] Add the Digest_cache module.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8663 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 16:02:14 +00:00
Nicolas Pouillard de914acf4b [ocamlbuild] Update the expected test output.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8662 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-28 15:52:01 +00:00
Nicolas Pouillard 9f3fcc249e [camlp4] Fix a location bug inside quotations (PR#4357).
Take in account the fact that the two first characters of a quotation literal
in the case of "<:" or "<@" are already counted. So decrement by 2 the shifts
made on these locations.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8660 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 14:38:21 +00:00
Nicolas Pouillard 6c56e2b039 [build] [FIXED] Provide more dependencies for camlp4 native binaries to avoid miss recompilations.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8659 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 14:36:30 +00:00
Nicolas Pouillard af74b19b24 [camlp4] Constrain a little more the printer before a <- or :=.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8658 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 14:35:48 +00:00
Nicolas Pouillard f5a6924be6 [camlp4] [Printers.Ocaml] Protect list items from semicolons (PR#4427).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8657 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 14:34:24 +00:00
Nicolas Pouillard 8d0b054177 [camlp4] More printing fixtures.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8656 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 14:33:31 +00:00
Nicolas Pouillard efc1254793 [camlp4] Use the constraint keyword instead of type in class signatures too (PR#4419).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8655 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 14:32:08 +00:00
Nicolas Pouillard bf56fe7082 [camlp4] Print a break after the unary minus (PR#4417).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8654 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 14:31:31 +00:00
Nicolas Pouillard e3ade8ec81 [camlp4] Parse also <<val mutable virtual id : ty>> (PR#4417).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8653 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 13:37:47 +00:00
Nicolas Pouillard 51285046e8 [camlp4] Add the test case for PR#4337.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8652 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 13:36:17 +00:00
Nicolas Pouillard e4bd83e07f [camlp4] Now supports the useless syntax: <<fun patt when guard -> expr>> (PR#4331).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8651 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 13:34:33 +00:00
Nicolas Pouillard bba53a1bc8 [camlp4] Fix a bug in the printer of negative numeric values (PR#4332).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8650 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 13:32:38 +00:00
Nicolas Pouillard ad0428b1a3 [camlp4] Remove useless code due to inheritance of revised grammar.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8649 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 13:30:39 +00:00
Nicolas Pouillard d766f56732 [camlp4] Add two fixture files.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8648 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 13:29:57 +00:00
Nicolas Pouillard c5c1abddb6 [camlp4] Fix Camlp4OCamlRevisedParser.name to "Camlp4OCamlRevisedParser".
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8646 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 13:27:22 +00:00
Nicolas Pouillard 9577fdf3d3 [camlp4] Fix a bug in parsing operators (let _ : ty = e) (PR#4312).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8645 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 13:26:32 +00:00
Nicolas Pouillard 63fe382081 [build] PACKLD is now defined in config/Makefile.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8643 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 12:29:31 +00:00
Nicolas Pouillard b2b3f705fd [camlp4] Bootstrap.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8642 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 12:28:47 +00:00
Nicolas Pouillard ec80b5a386 [build] camlp4/boot/camlp4boot.byte use Dynlink.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8641 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 12:23:12 +00:00
Nicolas Pouillard b527c48996 [build] Adapt utils/config.mlbuild to native dynlink.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8640 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 12:22:59 +00:00
Nicolas Pouillard af0b1ac635 [build] Sync the _tags file.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8639 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 12:22:21 +00:00
Nicolas Pouillard d03fb7ff7a [build] Sync scripts in the build/ dir with release310.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8638 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 12:21:53 +00:00
Nicolas Pouillard 255e7082ef [camlp4] Restore the private types support.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8637 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 10:39:56 +00:00
Alain Frisch b80de0f7da More tests.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8636 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-27 09:21:31 +00:00
Nicolas Pouillard ec8b4e0b7b [build] Sync myocamlbuild.ml with 3.10.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8629 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-26 15:03:21 +00:00
Nicolas Pouillard 3d1f738e14 [ocamlbuild] Fix a backtracking bug in my stupid matcher.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8628 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-26 13:29:54 +00:00
Nicolas Pouillard 51c984596e [ocamlbuild] Non command lines should start with # in the log file.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8627 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-26 13:28:55 +00:00
Nicolas Pouillard c5164d4dca [ocamlbuild] Fix a lexing bug about comments at end of file.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8626 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-26 13:28:18 +00:00
Nicolas Pouillard a4fbbfc2f4 [ocamlbuild] Add support for camlp4oof.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8625 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-26 13:27:39 +00:00
Nicolas Pouillard d0f6c03046 [ocamlbuild] Neither traverse the build dir (even if it does not starts with _) (PR#4410).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8624 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-26 13:27:03 +00:00