12345678910111213141516171819202122232425262728(* This file is free software, part of dolmen. See file "LICENSE" formore information *)(** Interface for Dolmen parsers. *)moduletypeS=sig(** {2 Main interface} *)typetoken(** The type of token consumed by the parser. *)typestatement(** The type of top-level declarations returned by the parser. *)exceptionErrorofint(** Exception raised by the parser when it encounters an error. *)valfile:(Lexing.lexbuf->token)->Lexing.lexbuf->statementlist(** A function that parses an entire file, i.e until the end-of-file token,
and return the list of parsed statements. *)valinput:(Lexing.lexbuf->token)->Lexing.lexbuf->statementoption(** A function to parse a single statement. Returns [None] if it encounters
the end-of-file token. Used for incremental parsing. *)end