Commit Graph

42 Commits (ea323b26898aaa38ceddad346e89f382528411d2)

Author SHA1 Message Date
Nicolas Pouillard eb99f91923 [camlp4] Add more hooks to register parsers and printers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7609 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-14 07:27:21 +00:00
Nicolas Pouillard ce09a27907 [camlp4] Avoid the need of rectypes
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7584 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-08 12:55:12 +00:00
Nicolas Pouillard b63e282dd3 [camlp4] add an AST cleaning step
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7578 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-06 15:43:03 +00:00
Nicolas Pouillard 26f488966a [camlp4] handle private rows
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7556 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-08-09 14:37:42 +00:00
Nicolas Pouillard 7e93266a66 [camlp4] fix a bug in the revised printer
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-08-09 11:31:32 +00:00
Nicolas Pouillard d49a57ffbe [camlp4] inline the quotation context structure
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7549 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-28 12:47:44 +00:00
Nicolas Pouillard c2e6aca782 [camlp4] Add a reference to the current file
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7548 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-28 12:46:35 +00:00
Nicolas Pouillard 314f48c7a7 [camlp4] Add more .cvsignore
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7542 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-26 12:19:33 +00:00
Nicolas Pouillard eb11b95071 [camlp4] Fix a bug with declarartion of constructors True and False in the ast translation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7538 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-26 11:58:05 +00:00
Nicolas Pouillard d7596d10b5 Fix a bug with exception names (True...)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7536 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-25 13:53:30 +00:00
Nicolas Pouillard 881e477ca6 Fix FreeVars.free_vars init env argument
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7526 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-20 07:47:52 +00:00
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 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 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 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 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 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 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 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 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 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 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 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 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 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
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
Nicolas Pouillard ef50c2b1c0 Improve the ctyp quotation w.r.t to the "of" node
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7468 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-07-05 11:25:36 +00:00
Nicolas Pouillard edb51b5147 Fix bug #4035, [|(1;2)|] printed as [|1;2|]
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7461 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-06-30 09:27:53 +00:00
Nicolas Pouillard 1858d90145 Finish the match_case renaming and bootstrap
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7460 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-06-30 07:24:45 +00:00
Nicolas Pouillard 2a68675a85 Replace assoc by match_case
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7459 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-06-30 00:40:58 +00:00
Nicolas Pouillard 4e509164a9 Resurect FOLD[01], fix few bugs, speed up assoc, add a Null printer
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7457 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-06-29 21:51:42 +00:00
Nicolas Pouillard bf3900f07b Move printers code, to make them more accessible. Remove Extfun and Spretty.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7456 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-06-29 15:01:37 +00:00
Nicolas Pouillard cca14b4205 Speed up some grammar rules.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7455 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-06-29 12:18:56 +00:00
Nicolas Pouillard 25778ea57f Add an interface for Camlp4.Struct.Grammar.Print, and some test fixtures
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7453 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-06-29 11:29:27 +00:00
Nicolas Pouillard e6b3b5b05f Start the merge of the new Camlp4 version
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7445 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-06-29 08:12:46 +00:00