oasis icon indicating copy to clipboard operation
oasis copied to clipboard

Support source files written in revised syntax

Open gildor478 opened this issue 4 years ago • 1 comments

This feature request has been migrated from artifact #848 on forge.ocamlcore.org. It was assigned to user102.

user824 posted on 2010-12-29 22:21:20:

I had to add this to the end of the _tags file for oasis to build my project: true: camlp4r

It'd be nice if I could specify this in _oasis, like: 'BuildDepends: camlp4r' (I see there is syntax_camlp4r, but it doesn't do what I want). It'd be even better if this can be customized on a per source-file or directory basis.

user102 replied on 2010-12-29 23:39:02:

camlp4r is an executable in fact.

I think you should use BuildTools: camlp4r

If it works for you, you can close this bug.

user824 replied on 2010-12-30 07:47:22:

BuildTools only seems to check for availibility of the tool, it doesn't actually use it while building.

Attached a small testcase, when I run it I get this: $ oasis setup ... $ ./configure ... $ make ocaml setup.ml -build I: Running command '/usr/bin/ocamlbuild revised.byte -tag debug' Finished, 0 targets (0 cached) in 00:00:00.

  • ocamlfind ocamlc -c -g -o revised.cmo revised.ml File "revised.ml", line 1, characters 0-5: Error: Unbound value value Command exited with code 2. Compilation unsuccessful after building 2 targets (1 cached) in 00:00:00. E: Command '/usr/bin/ocamlbuild revised.byte -tag debug' terminated with error code 10 make: *** [build] Error 1

If I add <*.ml>: camlp4r to the _tags file it works.

user102 replied on 2010-12-30 11:23:37:

I plan to have support in 0.3.0 for syntax extension.

See [#773] and [#574].

gildor478 avatar Oct 24 '20 16:10 gildor478

revised.ml.txt

gildor478 avatar Oct 24 '20 19:10 gildor478