Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camlp4 and ocamldep #2746

Closed
vicuna opened this issue Apr 15, 2001 · 3 comments
Closed

camlp4 and ocamldep #2746

vicuna opened this issue Apr 15, 2001 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Apr 15, 2001

Original bug ID: 338
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Fabrice Le Fessant
Version: 3.01
OS: linux
Submission from: lavoisier.noos.net (212.198.0.90)

camlp4 requires that input files have .ml suffixes. However, theses files are
not
understood by ocamldep. Could-it be possible to have ocamldep (which now uses
ocaml parser/lexer) also use camlp4 as a preprocessor ? Or, to allow camlp4 to
use
other suffixes for input files ?

@vicuna
Copy link
Author

vicuna commented Apr 15, 2001

Comment author: administrator

Hi,

On Sun, Apr 15, 2001 at 04:06:55PM +0200, fabrice.le_fessant@inria.fr wrote:

camlp4 requires that input files have .ml suffixes. However, theses
files are not understood by ocamldep. Could-it be possible to have
ocamldep (which now uses ocaml parser/lexer) also use camlp4 as a
preprocessor ?

Possible. Another solution is to use the pr_depend.cmo printer of camlp4.

Or, to allow camlp4 to use other suffixes for input files ?

It does not answer the problem:
1/ Files preprocessed by Camlp4 can be of any syntax
2/ The debugger do not recognize other suffixes than .ml

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Apr 15, 2001

Comment author: administrator

Or, to allow camlp4 to use other suffixes for input files ?

BTW, if you really want to use another suffix, you can. Use the option
-intf and -impl of OCaml and Camlp4, and the option -intf-suffix of
OCaml.

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Jan 25, 2002

Comment author: administrator

-pp option to ocamldep added in 3.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant