caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Option to have source code printer also print comments.
@ 2015-02-03  4:58 Jordan W
  0 siblings, 0 replies; only message in thread
From: Jordan W @ 2015-02-03  4:58 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

Comments are nicely tracked in `last_comments` within `lexer.ml`. I think
it would be nice to have `compile.ml` pass these comments to the source
code pretty printer. I wouldn't mind if it always printed comments or if
there were another flag to control whether or not comments were printed.
The work to plumb the comments to the pretty printer is pretty trivial and
I'm happy to send a pull request. Actually printing the comments is easy
but requires a ton of tedious changes to the pretty printer. It makes sense
to make the pretty printer more customizable, and just having the comments
accessible at that point seems like a good idea.

Would the pull request to plumb the comments to the pretty printer be
likely to be accepted?

[-- Attachment #2: Type: text/html, Size: 850 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-03  4:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-03  4:58 [Caml-list] Option to have source code printer also print comments Jordan W

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).