1234567891011121314151617181920212223242526272829303132333435363738394041424344(* 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. *)exceptionError(** 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. Reutnrs [None] if it encounters
the end-of-file token. Used for incremental parsing. *)(** {2 Menhir incremental interface} *)moduleMenhirInterpreter:sigincludeMenhirLib.IncrementalEngine.INCREMENTAL_ENGINEwithtypetoken=tokenendmoduleIncremental:sigvalinput:Lexing.position->(statementoption)MenhirInterpreter.checkpointendend