module Errormsg:sig..end
val logChannel : out_channel refval debugFlag : bool refval verboseFlag : bool ref
val colorFlag : bool refval redEscStr : string
val greenEscStr : string
val yellowEscStr : string
val blueEscStr : string
val purpleEscStr : string
val cyanEscStr : string
val whiteEscStr : string
val resetEscStr : string
val warnFlag : bool refexception Error
val error : ('a, unit, Pretty.doc, unit) format4 -> 'aError: ....
Use in conjunction with s, for example: E.s (E.error ... ).val bug : ('a, unit, Pretty.doc, unit) format4 -> 'aerror except that its output has the form Bug: ...val unimp : ('a, unit, Pretty.doc, unit) format4 -> 'aerror except that its output has the form Unimplemented: ...val s : 'a -> 'bval hadErrors : bool refval warn : ('a, unit, Pretty.doc, unit) format4 -> 'a
val warnOpt : ('a, unit, Pretty.doc, unit) format4 -> 'a
val log : ('a, unit, Pretty.doc, unit) format4 -> 'alogChannelval logg : ('a, unit, Pretty.doc, unit) format4 -> 'aErrormsg.log but do not wrap linesval null : ('a, unit, Pretty.doc, unit) format4 -> 'aval pushContext : (unit -> Pretty.doc) -> unitval popContext : unit -> unitval showContext : unit -> unitval withContext : (unit -> Pretty.doc) -> ('a -> 'b) -> 'a -> 'bval newline : unit -> unit
val newHline : unit -> unit
val getPosition : unit -> int * string * int
val getHPosition : unit -> int * stringval setHLine : int -> unit
val setHFile : string -> unit
val setCurrentLine : int -> unit
val setCurrentFile : string -> unit
type location = {
|
file : |
(* |
The file name
| *) |
|
line : |
(* |
The line number
| *) |
|
hfile : |
(* |
The high-level file name, or "" if not present
| *) |
|
hline : |
(* |
The high-level line number, or 0 if not present
| *) |
val d_loc : unit -> location -> Pretty.doc
val d_hloc : unit -> location -> Pretty.doc
val getLocation : unit -> location
val parse_error : string -> 'a
val locUnknown : locationval readingFromStdin : bool refval startParsing : ?useBasename:bool -> string -> Lexing.lexbuf
val startParsingFromString : ?file:string -> ?line:int -> string -> Lexing.lexbuf
val finishParsing : unit -> unit