package ez_opam_file

  1. Overview
  2. Docs

Module V1.OpamParserTypesSource

Defines the types for the opam format lexer and parser

Type definitions used by the legacy and the new full position modules

Sourcetype relop = [
  1. | `Eq
    (*

    =

    *)
  2. | `Neq
    (*

    !=

    *)
  3. | `Geq
    (*

    >=

    *)
  4. | `Gt
    (*

    >

    *)
  5. | `Leq
    (*

    <=

    *)
  6. | `Lt
    (*

    <

    *)
]

Relational operators

Sourcetype logop = [
  1. | `And
    (*

    &

    *)
  2. | `Or
    (*

    |

    *)
]

Logical operators

Sourcetype pfxop = [
  1. | `Not
    (*

    !

    *)
  2. | `Defined
    (*

    ?

    *)
]

Prefix operators

Sourcetype file_name = string
Sourcetype pos = file_name * int * int

Source file positions: (filename, line, column)

Sourcetype env_update_op =
  1. | Eq
    (*

    =

    *)
  2. | PlusEq
    (*

    +=

    *)
  3. | EqPlus
    (*

    =+

    *)
  4. | ColonEq
    (*

    :=

    *)
  5. | EqColon
    (*

    =:

    *)
  6. | EqPlusEq
    (*

    =+=

    *)

Environment variable update operators

Sourcemodule FullPos : sig ... end

OpamParserTypes transitional module with full position types