package ocp-indent

  1. Overview
  2. Docs
include module type of struct include Approx_tokens end
type 'a overflow = 'a Approx_tokens.overflow =
  1. | InRange of 'a
  2. | Overflow of string
type token = Approx_tokens.token =
  1. | AMPERAMPER
  2. | AMPERSAND
  3. | AND
  4. | AS
  5. | ASSERT
  6. | BACKQUOTE
  7. | BANG
  8. | BAR
  9. | BARBAR
  10. | BARRBRACKET
  11. | BEGIN
  12. | CHAR of char overflow
  13. | CLASS
  14. | COLON
  15. | COLONCOLON
  16. | COLONEQUAL
  17. | COLONGREATER
  18. | COMMA
  19. | COMMENT
  20. | OCAMLDOC_CODE
  21. | OCAMLDOC_VERB
  22. | COMMENTCONT
  23. | CONSTRAINT
  24. | DO
  25. | DONE
  26. | DOT
  27. | DOTDOT
  28. | DOWNTO
  29. | ELSE
  30. | END
  31. | EOF
  32. | EQUAL
  33. | EXCEPTION
  34. | EXTERNAL
  35. | FALSE
  36. | FLOAT of string
  37. | FOR
  38. | FUN
  39. | FUNCTION
  40. | FUNCTOR
  41. | GREATER
  42. | GREATERRBRACE
  43. | GREATERRBRACKET
  44. | IF
  45. | ILLEGAL_CHAR of char
  46. | IN
  47. | INCLUDE
  48. | INFIXOP0 of string
  49. | INFIXOP1 of string
  50. | INFIXOP2 of string
  51. | INFIXOP3 of string
  52. | INFIXOP4 of string
  53. | INHERIT
  54. | INITIALIZER
  55. | INT of int overflow
  56. | INT32 of int32 overflow
  57. | INT64 of int64 overflow
  58. | LABEL of string
  59. | LAZY
  60. | LBRACE
  61. | LBRACELESS
  62. | LBRACKET
  63. | LBRACKETBAR
  64. | LBRACKETLESS
  65. | LBRACKETGREATER
  66. | LBRACKETPERCENT
  67. | LBRACKETPERCENTPERCENT
  68. | LBRACKETAT
  69. | LBRACKETATAT
  70. | LBRACKETATATAT
  71. | LESS
  72. | LESSMINUS
  73. | LET
  74. | LIDENT of string
  75. | LINE_DIRECTIVE
  76. | LPAREN
  77. | MATCH
  78. | METHOD
  79. | MINUS
  80. | MINUSDOT
  81. | MINUSGREATER
  82. | MODULE
  83. | MUTABLE
  84. | NATIVEINT of nativeint overflow
  85. | NEW
  86. | OBJECT
  87. | OF
  88. | OPEN
  89. | OPTLABEL of string
  90. | OR
  91. | PLUS
  92. | PLUSDOT
  93. | PREFIXOP of string
  94. | PRIVATE
  95. | QUESTION
  96. | QUESTIONQUESTION
  97. | QUOTATION of string
  98. | QUOTE
  99. | RBRACE
  100. | RBRACKET
  101. | REC
  102. | RPAREN
  103. | SEMI
  104. | SEMISEMI
  105. | SHARP
  106. | SIG
  107. | STAR
  108. | STRING of string
  109. | STRUCT
  110. | THEN
  111. | TILDE
  112. | TO
  113. | TRUE
  114. | TRY
  115. | TYPE
  116. | UIDENT of string
  117. | UNDERSCORE
  118. | VAL
  119. | VIRTUAL
  120. | WHEN
  121. | WHILE
  122. | WITH
  123. | EOL
  124. | SPACES
val to_string : token -> string
val list_last : 'a list -> 'b
val lines_starts : (int * int) list ref
val keywords : (string * token) list
val keyword_table : (string, token) Hashtbl.t
val lexer_extensions : (Lexing.lexbuf -> Approx_tokens.token) list ref
val enable_extension : string -> unit
val disable_extensions : unit -> unit
val initial_string_buffer : bytes
val string_buff : bytes ref
val string_index : int ref
val reset_string_buffer : unit -> unit
val store_string_char : char -> unit
val get_stored_string : unit -> string
val string_start_loc : int ref
val quotation_start_loc : int ref
val quotation_kind : [ `Camlp4 of string | `Ppx of string ] ref
type in_comment =
  1. | Comment
  2. | Code
  3. | Verbatim
  4. | CommentCont
val comment_stack : in_comment list ref
val entering_inline_code_block : bool ref
val close_comment : unit -> token
val in_comment : unit -> bool
val in_verbatim : unit -> bool
val rewind : Lexing.lexbuf -> int -> unit
val check_commentclose : Lexing.lexbuf -> (string -> 'a) -> 'b
val init : unit -> unit
val char_for_backslash : char -> char
val can_overflow : (string -> 'a) -> Lexing.lexbuf -> 'b overflow
val char_for_decimal_code : int -> string -> char
val char_for_hexadecimal_code : Lexing.lexbuf -> int -> char
val cvt_int_literal : string -> int
val cvt_int32_literal : string -> int32
val cvt_int64_literal : string -> int64
val cvt_nativeint_literal : string -> nativeint
val remove_underscores : string -> string
val update_loc : Lexing.lexbuf -> string option -> int -> bool -> int -> unit
val __ocaml_lex_tables : Stdlib.Lexing.lex_tables
val parse_token : Lexing.lexbuf -> token
val __ocaml_lex_parse_token_rec : Lexing.lexbuf -> int -> token
val quotation : Lexing.lexbuf -> token
val __ocaml_lex_quotation_rec : Lexing.lexbuf -> int -> token
val comment : Lexing.lexbuf -> token
val __ocaml_lex_comment_rec : Lexing.lexbuf -> int -> token
val verbatim : Lexing.lexbuf -> token
val __ocaml_lex_verbatim_rec : Lexing.lexbuf -> int -> token
val string : Lexing.lexbuf -> token
val __ocaml_lex_string_rec : Lexing.lexbuf -> int -> token
val token_pos : Lexing.lexbuf -> token * (int * int)
val token_locs_and_comments : Lexing.lexbuf -> token * (Lexing.position * Lexing.position)
val get_token : Lexing.lexbuf -> token
val token_with_comments : Lexing.lexbuf -> token
val token : Lexing.lexbuf -> token
val tokens_of_file : string -> (token * (int * int)) list
val tokens_with_loc_of_string : string -> (token * (int * int)) list
val tokens_of_string : string -> token list
val lines : unit -> (int * int) list
OCaml

Innovation. Community. Security.