Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007793OCamltools (ocaml{lex,yacc,dep,debug,...})public2018-05-06 22:472018-05-07 15:49
Reporterhhugo 
Assigned Tonojebar 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007793: ocamldep does not handle SEMISEMI correctly
DescriptionThe following program is accepted by the ocaml compiler but not by ocamldep

```
;;

;;2

```
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0019106)
hhugo (reporter)
2018-05-06 22:53

https://github.com/ocaml-ppx/ocamlformat/pull/181#discussion_r186302587 [^]
(0019107)
nojebar (developer)
2018-05-06 23:00

At first sight it seems the difference is that ocamldep parses .ml files using Parse.use_file and the compiler uses Parse.implementation. For .mli files both use Parse.interface.

Anyone remembers the reason for the different handling of .ml files?
(0019108)
nojebar (developer)
2018-05-06 23:37

https://github.com/ocaml/ocaml/pull/1766 [^]
(0019109)
hhugo (reporter)
2018-05-07 15:49

commit 89077f5f4600bce8376ea3e657c3d2f4b6b5b8d5
Author: Damien Doligez <damien.doligez-inria.fr>
Date: Fri Aug 10 07:19:12 2012 +0000

    Make ocamldep ignore toplevel directives in .ml files, as it did before
    commit 12769.

- Issue History
Date Modified Username Field Change
2018-05-06 22:47 hhugo New Issue
2018-05-06 22:53 hhugo Note Added: 0019106
2018-05-06 23:00 nojebar Note Added: 0019107
2018-05-06 23:37 nojebar Note Added: 0019108
2018-05-06 23:37 nojebar Assigned To => nojebar
2018-05-06 23:37 nojebar Status new => assigned
2018-05-07 15:49 hhugo Note Added: 0019109


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker