Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007559OCamltools (ocaml{lex,yacc,dep,debug,...})public2017-06-17 21:002017-06-22 20:11
Reporterelfring 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version4.03.0 
Target VersionFixed in Version 
Summary0007559: Support export of software dependencies from OCaml modules in the format “XML”
DescriptionI imagine that it would be occasionally nice to perform higher level data processing with dependency information.
How do you think about to export corresponding data from referenced OCaml modules in the format “Extensible Markup Language” (by the tool “ocamldep”)?
Additional Informationhttps://en.wikipedia.org/wiki/XML [^]
TagsNo tags attached.
Attached Files

- Relationships
related to 0007560acknowledged Support export of software dependencies from OCaml modules in the format “JSON” 
child of 0007558acknowledged Support selection of source file names also for other export formats than make rules 

-  Notes
(0017911)
gasche (administrator)
2017-06-17 21:10

Sure, what is the format that you would like? Would you care to implement yourself and submit a Pull Request? The part of ocamldep's logic you would care about is in driver/makedepend.ml

  https://github.com/ocaml/ocaml/blob/trunk/driver/makedepend.ml [^]

and I think it should not be too difficult to add another output format with the same output structure.
(0017912)
gasche (administrator)
2017-06-17 21:11

(Note that it would probably also be rather easy to do this as an external tools relying on compilerlibs. Whether you need the feature to be in "ocamldep" itself probably depends on your use-case.)
(0017913)
elfring (viewer)
2017-06-17 22:06
edited on: 2017-06-17 22:07

If you would like to support XML export in a safe way, I imagine also that it will be needed to clarify the use of file formats like the following.

* Document type definition

* RELAX NG

* XML Schema


I am not going to contribute a pull request for affected OCaml software components (for a while).

(0017946)
xleroy (administrator)
2017-06-22 20:11

I find JSON simpler and more palatable, but that's personal taste.

- Issue History
Date Modified Username Field Change
2017-06-17 21:00 elfring New Issue
2017-06-17 21:10 gasche Note Added: 0017911
2017-06-17 21:11 gasche Note Added: 0017912
2017-06-17 21:12 gasche Relationship added child of 0007558
2017-06-17 21:12 gasche Relationship added related to 0007560
2017-06-17 22:06 elfring Note Added: 0017913
2017-06-17 22:07 elfring Note Edited: 0017913 View Revisions
2017-06-22 20:11 xleroy Note Added: 0017946
2017-06-22 20:11 xleroy Status new => acknowledged


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker