Module Cobol_preproc.Text

module TYPES : sig ... end
type text = Cobol_preproc__.Text_types.text_word Cobol_common.Srcloc.with_loc list
and t = Cobol_preproc__.Text_types.text_word Cobol_common.Srcloc.with_loc list
and text_word =
  1. | TextWord of string
  2. | CDirWord of string
  3. | Separator of char
  4. | Alphanum of alphanum
  5. | AlphanumPrefix of alphanum
  6. | Pseudo of pseudotext
  7. | ExecBlock of text
  8. | Eof
and alphanum = {
  1. knd : literal_kind;
  2. qte : quotation;
  3. str : string;
}
and quotation =
  1. | Quote
  2. | Apostrophe
and literal_kind =
  1. | Basic
  2. | Bool
  3. | BoolX
  4. | Hex
  5. | NullTerm
  6. | National
  7. | NationalX
and pseudotext = Cobol_preproc__.Text_types.pseudotok Cobol_common.Srcloc.with_loc list
and pseudotok =
  1. | PseudoWord of pseudoword_item Cobol_common.Srcloc.with_loc list
  2. | PseudoAlphanum of alphanum
and pseudoword_item =
  1. | PwText of string
  2. | PwDelim of pseudotext_delimiter
and pseudotext_delimiter = string * Str.regexp
type comment = {
  1. comment_loc : Cobol_common.Srcloc.lexloc;
  2. comment_kind : [ `Line | `Floating ];
  3. comment_contents : string;
}
and comments = Cobol_preproc__.Text_types.comment list

*_eqp functions below perform (ASCII) case-insensitive comparisons.

val textwordp : text_word Cobol_common.Srcloc.with_loc -> bool
val textword_eqp : eq:string -> text_word Cobol_common.Srcloc.with_loc -> bool
val cdir_eqp : eq:string -> text_word Cobol_common.Srcloc.with_loc -> bool
val join_pseudo_string : string:(string Cobol_common.Srcloc.with_loc as 'a -> 'a) -> pseudoword_item Cobol_common.Srcloc.with_loc list -> 'a option
val pseudo_string : string Cobol_common.Srcloc.with_loc -> pseudoword
val pseudoword_of_string : string Cobol_common.Srcloc.with_loc -> pseudoword
val pseudoword_of_alphanum : (string * quotation) Cobol_common.Srcloc.with_loc -> pseudoword
val pseudoword_of_integer : int64 Cobol_common.Srcloc.with_loc -> pseudoword
val alphanum_as_pseudoword : (string * 'a) Cobol_common.Srcloc.with_loc -> pseudoword
val alphanum_as_pseudotext : (string * 'a) Cobol_common.Srcloc.with_loc -> pseudotext Cobol_common.Srcloc.with_loc
val pp_text : text Pretty.printer
val pp_text' : ?fsep:Pretty.simple -> text Pretty.printer
val pp_quote : quotation Pretty.printer
val pp_pseudotext : pseudotext Pretty.printer
val pp_literal_kind : literal_kind Pretty.printer
val pp_alphanum : alphanum Pretty.printer
val prefix_of_literal_kind : literal_kind -> string
val char_of_quotation : quotation -> char
val strip_eof : text -> text
val map_pseudowords : f:(string -> string) -> pseudotext -> pseudotext