Module Errors.Syntax_l

This module contains the type for syntax errors in scripts.

type t =
  1. | UnexpectedEOI
    (*

    UnexpectedEOI is for valid but incomplete inputs.

    *)
  2. | TrailingChars
    (*

    TrailingChars is for invalid inputs containing a valid prefix.

    *)
  3. | SyntaxError of int
    (*

    SyntaxError i is for all other syntax errors, with i the number given by Menhir to select the correct message.

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