Errors.Syntax_l
This module contains the type for syntax errors in scripts.
type t =
| UnexpectedEOI
UnexpectedEOI is for valid but incomplete inputs.
UnexpectedEOI
| TrailingChars
TrailingChars is for invalid inputs containing a valid prefix.
TrailingChars
| SyntaxError of int
SyntaxError i is for all other syntax errors, with i the number given by Menhir to select the correct message.
SyntaxError i
i
val kind : string
val pp : Stdlib.Format.formatter -> t -> unit