package oasis

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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.