logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ocamlify - create an OCaml file including other files.

Authors

       Sylvain Le Gall.

Ocamlify User Manual                            November 9, 2010                                     OCAMLIFY(1)

Description

       This program allows to copy files inside OCaml code.  It uses a first file that describes the other files
       that must be included and the type of OCaml variable it should create.  It can also describe dependencies
       to other files, in order to generate .depends files for make.

       For example, we can create a file test.mlify with this content:

             VarString oasissys_ml "OASISSys.ml"
             VarStringList readme_template_mkd "MANUAL-template.mkd"

       We then translate it using the program:

             $> ocamlify --output test.ml test.mlify

       And  we  get  a  file  test.ml  containing  two  OCaml  variables:  oasissys_ml,  which  is a string, and
       readme_template_mkd which is a string list (one string per line).

Name

       ocamlify - create an OCaml file including other files.

Options

--var-string-listvarnamefile
              Include file as a list of string, each string representing a line (without trailing EOL character)

       --var-stringvarnamefile
              Include file as a string.

       --outputfile
              Output file, default to standard output

       --depends
              Output file dependencies

       --targetfile
              Define target of dependencies

       -help|--help
              Display list of options

Synopsis

       ocamlify [options] option-file

See Also