Cobol_parser.Diagnostics
type error =
| Caught_exception of {
}
| Malformed of {
loc : Cobol_common.Srcloc.TYPES.srcloc;
stuff : malformed_stuff;
}
| Missing of {
loc : Cobol_common.Srcloc.TYPES.srcloc;
stuff : missing_stuff;
}
| Unexpected of {
loc : Cobol_common.Srcloc.TYPES.srcloc;
stuff : unexpected_stuff;
}
| Unterminated of {
loc : Cobol_common.Srcloc.TYPES.srcloc;
stuff : unterminated_stuff;
}
val pp_malformed_stuff : Stdlib.Format.formatter -> malformed_stuff -> unit
val pp_missing_stuff : Stdlib.Format.formatter -> missing_stuff -> unit
val pp_unexpected_stuff : Stdlib.Format.formatter -> unexpected_stuff -> unit
val pp_unterminated_stuff :
Stdlib.Format.formatter ->
unterminated_stuff ->
unit
val error_loc : error -> Cobol_common.Srcloc.TYPES.srcloc option
val pp_error : Stdlib.Format.formatter -> error -> unit
type customizable_diagnostic =
| Implementation_pending of string
| Missing_tokens of Pretty.delayed
| Invalid_syntax
| Exec_block_diagnostic of Cobol_common.Exec_block.diagnostic
val pp_customizable_diagnostic :
Stdlib.Format.formatter ->
customizable_diagnostic ->
unit
type custom = {
severity : Cobol_common.Diagnostics.severity;
loc : Cobol_common.Srcloc.TYPES.srcloc option;
diag : customizable_diagnostic;
}
type t = diagnostics
val none : diagnostics
val union : diagnostics -> diagnostics -> diagnostics
val add_error : error -> diagnostics -> diagnostics
val error : error -> diagnostics
val has_errors : diagnostics -> bool
val add_diag :
severity:Cobol_common.Diagnostics.severity ->
?loc:Cobol_common.Srcloc.TYPES.srcloc ->
customizable_diagnostic ->
diagnostics ->
diagnostics
val add_exec_block_diag :
Cobol_common.Exec_block.diagnostic ->
diagnostics ->
diagnostics
val add_exec_block_diags :
Cobol_common.Exec_block.diagnostic list ->
diagnostics ->
diagnostics
val add_exn : exn -> diagnostics -> diagnostics
val translate : t -> Cobol_common__Diagnostics.TYPES.diagnostics
module Accumulator : sig ... end
module ALL : sig ... end