Commit Graph

441 Commits (fef654ed9d5df8031cb3399019ab2d7bc7a3d8c3)

Author SHA1 Message Date
Nicolas Pouillard fef654ed9d Fix problems with True and False with camlp4o
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7525 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-19 11:25:14 +00:00
Nicolas Pouillard 39bd49f4ef make bootstrap
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7524 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-18 16:03:56 +00:00
Nicolas Pouillard 4316d60e3e Protect variables in just some cases (True -> true, val -> contents...)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7523 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-18 15:46:29 +00:00
Nicolas Pouillard dda1d9f744 Update the build tools to use .opt versions when available and display a clean output by default
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7522 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-18 15:05:10 +00:00
Nicolas Pouillard 07bd556755 Warp "Gram.extend" arguments by ((fun () -> body) ()) to please ocamlopt
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7521 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-18 15:00:09 +00:00
Nicolas Pouillard 93153ce7c0 Fix more things about patterns and add tests
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7520 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-18 11:58:44 +00:00
Nicolas Pouillard ead1f3e019 Remove support of tuples without parentheses in patterns after "fun" since it si not allowed in OCaml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7519 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-18 08:17:40 +00:00
Nicolas Pouillard c026c68824 More tests for constructors in patterns
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7518 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 22:32:39 +00:00
Nicolas Pouillard 7a27b43fed Rework the camlp4o grammar to be closer to ocaml parser
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7517 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 22:31:55 +00:00
Nicolas Pouillard 1afbc5b2cf Add a module to fold free vars
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7515 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 15:03:03 +00:00
Nicolas Pouillard f1ce649f02 make bootstrap
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7514 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 15:00:00 +00:00
Nicolas Pouillard 997bfbe9ab Add the fold class in Camlp4Ast.genmap.ml and regenerate
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7513 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 14:54:44 +00:00
Nicolas Pouillard a8c3279ad6 Fix some camlp4o bugs with arity of constructors
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7512 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 14:53:30 +00:00
Nicolas Pouillard 5c476459ef Support <<>> in the lexer
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7511 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 14:52:07 +00:00
Nicolas Pouillard f7a18a212b Update the Makefile.ml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7510 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 14:19:59 +00:00
Nicolas Pouillard 5422545d53 Keep the last loc to have a correct loc for subsequent implem or interf
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7509 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 14:18:26 +00:00
Nicolas Pouillard 10cdef3018 fix the free_vars_test file
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7508 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 14:16:02 +00:00
Nicolas Pouillard d1d2a3b294 More test fixtures
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7507 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 14:05:28 +00:00
Nicolas Pouillard fb1c41d7d4 Generate the fold class
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7506 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 13:59:11 +00:00
Nicolas Pouillard 0dad42e9a3 Add the fold class to Camlp4.Sig.Ast and Camlp4.Sig.Camlp4Ast
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7505 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 13:58:12 +00:00
Nicolas Pouillard 7eea54aed3 Add #array and #ref builtins
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7504 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 13:58:08 +00:00
Nicolas Pouillard 3f774ebb2b Fix it
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7503 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 13:58:02 +00:00
Nicolas Pouillard 8cc235b207 Add a dummy filter that remove the Camlp4FiltersTrash module.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7502 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 13:32:45 +00:00
Nicolas Pouillard 981b9d192e Improve the sequence printing
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7501 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 13:31:45 +00:00
Nicolas Pouillard bb455739a9 Generate{Map,Fold} no longer handle the Trash module
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7500 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-17 13:31:30 +00:00
Nicolas Pouillard 0d16cf32dd Honor the Config.quotation (-no_quot) option inside comments
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7497 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-13 11:11:52 +00:00
Nicolas Pouillard c0868a4cde Where is not a ocaml keyword, and sequence is just a sem_expr
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7496 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-13 09:19:37 +00:00
Nicolas Pouillard 830e61107c Replace some LIDENTs by a_LIDENTs
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7495 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-12 20:53:37 +00:00
Nicolas Pouillard 229537dc94 Revert the previous patch since arrays also use ExSem so ExSeq is required
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7494 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-12 14:23:36 +00:00
Nicolas Pouillard 69acf6021e Suppress the ExSeq AST node
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7493 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-12 14:06:59 +00:00
Nicolas Pouillard 1fae2f793f Add Camlp4Profiler.ml{,i} a small counting module
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7492 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-10 20:34:14 +00:00
Nicolas Pouillard fe59cd2ced Add camlp4oof and camlp4orf and refactor
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7491 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-10 15:31:09 +00:00
Nicolas Pouillard 4cd3350c85 Accept intermediate empty bindings
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7490 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-09 07:21:08 +00:00
Nicolas Pouillard 1eaac84b00 Fix a bug in the revised pretty-printer
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7489 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-08 18:44:56 +00:00
Nicolas Pouillard 44334bfe68 No longer use $opt:x$, but $rec:x$, $virtual:x$. Clearer and less ambiguous. Update antiquotations. Bootstrap.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7488 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-08 18:10:11 +00:00
Nicolas Pouillard 29758bdd0b make bootstrap
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7487 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-08 17:21:32 +00:00
Nicolas Pouillard 3f0cb35acd Improve the profiler by providing a separate tool to analyse results
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7486 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-08 16:52:30 +00:00
Nicolas Pouillard 63d8318a00 Pretty-printer last change consequencies
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7485 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-08 16:49:04 +00:00
Nicolas Pouillard bf2cae1876 Enhance pretty-printing by also allowing rec "let in"s to be in a clearer style
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7484 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-08 16:47:29 +00:00
Nicolas Pouillard 57fc316e5c Add a simple profiler
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7483 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-08 10:33:12 +00:00
Nicolas Pouillard 737852d8c5 Add the .cvsignore file
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7482 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-07 14:32:16 +00:00
Nicolas Pouillard c4decf2476 No longer use yam when not avaiable in clean
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7481 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-07 14:19:43 +00:00
Nicolas Pouillard d9a3f35960 Fix a bug with label translating
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7480 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-07 12:40:21 +00:00
Nicolas Pouillard 07c85c604f Fix a bug in parsers syntax
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7479 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-07 12:39:30 +00:00
Nicolas Pouillard 51711de644 Fix pa_o labels
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7478 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-07 12:38:38 +00:00
Nicolas Pouillard f42e848daf Fix the printers w.r.t to labels in types
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7477 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-07 12:36:54 +00:00
Jacques Garrigue dd8ee9167d use ocamlcomp.sh
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7476 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-07 08:25:24 +00:00
Nicolas Pouillard bbcc75612b Add -- to the option parser for backward compatibility
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7475 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-07 06:46:54 +00:00
Nicolas Pouillard 18081aac43 Fix another bug of Camlp4Bin
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7474 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-06 15:58:01 +00:00
Nicolas Pouillard 9b1302e39a Rework a little the camlp4 main to fix some issues
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7473 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-06 15:43:03 +00:00