package oasis

  1. Overview
  2. Docs
Tooling for building OCaml libraries and applications

Install

Dune Dependency

Authors

Maintainers

Sources

oasis-0.4.10.tar.gz
sha256=1cd9071403a2edb79dacbca8a96bdc6be754e786e1a45e69d9326fb6ee00508d
md5=84de67188d6c1ba4499aee6d4cb8cb54

doc/oasis/OASISSourcePatterns/index.html

Module OASISSourcePatterns

Search source files, using pattern and templates.

  • author Sylvain Le Gall
  • since 0.4.7

See `_oasis` fields 'InterfacePatterns' and 'ImplementationPatterns'.

type t

A template to find a file.

val implementation : t list

List of templates to search an implementation file matching a module.

val interface : t list

List of templates to search an interface file metching a module.

val parse : string -> t

Parse the given string.

val to_string : t -> string

Return the string representation of t.

val all_possible_files : t list -> path:OASISUnixPath.unix_dirname -> modul:string -> OASISUnixPath.unix_filename list

List all possible files using the list of templates.

@params modul The module name as defined in the field "Modules" and "InternalModules" @params path The base path of the module as defined in "Path"

  • raises Not_found

    if no templates match the given module

  • returns

    The filename of the first matching template.

val odn_of_t : t -> OASISDataNotation.t

Convert to OASISDataNotation.

OCaml

Innovation. Community. Security.