Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005902OCamlOCaml generalpublic2013-01-23 00:452013-01-23 09:42
Reportermeyer 
Assigned Tofrisch 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005902: -ppx based pre-processor executables could be able to accept arguments
DescriptionE.g. I would like to call the pre-processor executable this way:

ocamlopt -ppx "../my_extension -fail-with-code 0" test.ml

this would allow to pass some parameters to the extension.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0008784)
frisch (developer)
2013-01-23 09:42

This is already the case: -ppx takes an external command and simply adds two arguments to it. The ppx program can parse its first arguments as it wants. I've updated the "standard driver" in parsing/ast_mapper.ml to document this fact.

- Issue History
Date Modified Username Field Change
2013-01-23 00:45 meyer New Issue
2013-01-23 00:45 meyer Status new => assigned
2013-01-23 00:45 meyer Assigned To => frisch
2013-01-23 00:45 meyer Description Updated View Revisions
2013-01-23 09:42 frisch Note Added: 0008784
2013-01-23 09:42 frisch Status assigned => resolved
2013-01-23 09:42 frisch Resolution open => fixed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker