package acgtk

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

This module contains the type for lexing errors in ACGs.

type t =
  1. | UnstartedBracket
    (*

    UnstartedBracket is raised when an unopened bracket is closed.

    *)
  2. | MismatchParentheses of char
    (*

    MismatchParentheses c is raised when there is a mismatch with opening and closing of char c.

    *)
  3. | UnterminatedComment
    (*

    UnterminatedComment is raised when the end of file is reached in an opened comment.

    *)
  4. | UnstartedComment
    (*

    UnstartedComment is raised when the comment closing token appear before the opening one.

    *)
  5. | BadChar of string
    (*

    BadChar c is raised when a char c can't appear in any lexical tokens.

    *)
  6. | Malformed
    (*

    Malformed if raised when an invalid UTF-8 sequence is encountered in the input.

    *)
val kind : string
val pp : Stdlib.Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.