OCaml Forge

Detail: [#848] Support source files written in revised syntax

Feature Requests: Browse | Download .csv | Monitor

[#848] Support source files written in revised syntax

Date:
2010-12-29 22:21
Priority:
3
State:
Open
Submitted by:
Török Edwin (edwin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Resolution:
None
Due in version:
0.3.0
Product:
OASIS
Component:
Plugin OCamlbuild
Operating System:
None
 
Summary:
Support source files written in revised syntax

Detailed description
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.

Followup

Message
Date: 2010-12-30 11:23
Sender: Sylvain Le Gall

I plan to have support in 0.3.0 for syntax extension.

See [#773] and [#574].
Date: 2010-12-30 07:47
Sender: Török Edwin

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.
Date: 2010-12-29 23:39
Sender: Sylvain Le Gall

camlp4r is an executable in fact.

I think you should use
BuildTools: camlp4r

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

Attached Files:

Attachments:
revised.ml
_oasis

Changes:

Field Old Value Date By
Due in versionNone2010-12-30 11:23gildor-admin
File Added91: _oasis2010-12-30 07:47edwin
File Added92: revised.ml2010-12-30 07:47edwin
assigned_tonone2010-12-29 23:50gildor-admin