package ocp-indent-nlfork

  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. | CONSTRAINT
  19. | DO
  20. | DONE
  21. | DOT
  22. | DOTDOT
  23. | DOWNTO
  24. | ELSE
  25. | END
  26. | EOF
  27. | EQUAL
  28. | EXCEPTION
  29. | EXTERNAL
  30. | FALSE
  31. | FLOAT of string
  32. | FOR
  33. | FUN
  34. | FUNCTION
  35. | FUNCTOR
  36. | GREATER
  37. | GREATERRBRACE
  38. | GREATERRBRACKET
  39. | IF
  40. | IN
  41. | INCLUDE
  42. | INFIXOP0 of string
  43. | INFIXOP1 of string
  44. | INFIXOP2 of string
  45. | INFIXOP3 of string
  46. | INFIXOP4 of string
  47. | INHERIT
  48. | INITIALIZER
  49. | INT of int overflow
  50. | INT32 of int32 overflow
  51. | INT64 of int64 overflow
  52. | LABEL of string
  53. | LAZY
  54. | LBRACE
  55. | LBRACELESS
  56. | LBRACKET
  57. | LBRACKETBAR
  58. | LBRACKETLESS
  59. | LBRACKETGREATER
  60. | LBRACKETPERCENT
  61. | LBRACKETPERCENTPERCENT
  62. | LBRACKETAT
  63. | LBRACKETATAT
  64. | LBRACKETATATAT
  65. | LESS
  66. | LESSMINUS
  67. | LET
  68. | LIDENT of string
  69. | LINE_DIRECTIVE of string
  70. | LPAREN
  71. | MATCH
  72. | METHOD
  73. | MINUS
  74. | MINUSDOT
  75. | MINUSGREATER
  76. | MODULE
  77. | MUTABLE
  78. | NATIVEINT of nativeint overflow
  79. | NEW
  80. | OBJECT
  81. | OF
  82. | OPEN
  83. | OPTLABEL of string
  84. | OR
  85. | PLUS
  86. | PLUSDOT
  87. | PREFIXOP of string
  88. | PRIVATE
  89. | QUESTION
  90. | QUESTIONQUESTION
  91. | QUOTE
  92. | RBRACE
  93. | RBRACKET
  94. | REC
  95. | RPAREN
  96. | SEMI
  97. | SEMISEMI
  98. | SHARP
  99. | SIG
  100. | STAR
  101. | STRUCT
  102. | THEN
  103. | TILDE
  104. | TO
  105. | TRUE
  106. | TRY
  107. | TYPE
  108. | TYPEVAR
  109. | UIDENT of string
  110. | UNDERSCORE
  111. | VAL
  112. | VIRTUAL
  113. | WHEN
  114. | WHILE
  115. | WITH
  116. | ESCAPED_EOL
  117. | EOL
  118. | SPACES
  119. | ILLEGAL_CHAR of char
  120. | COMMA
  121. | COMMENT_OPEN_EOL
  122. | COMMENT_OPEN
  123. | COMMENT_OPEN_CLOSE
  124. | COMMENT_VERB_OPEN
  125. | COMMENT_CODE_OPEN
  126. | COMMENT_CONTENT
  127. | COMMENT_CLOSE
  128. | COMMENT_VERB_CLOSE
  129. | COMMENT_CODE_CLOSE
  130. | STRING_OPEN
  131. | STRING_CONTENT
  132. | STRING_CLOSE
  133. | PPX_QUOTATION_OPEN
  134. | PPX_QUOTATION_CONTENT
  135. | PPX_QUOTATION_CLOSE
  136. | P4_QUOTATION_OPEN
  137. | P4_QUOTATION_CONTENT
  138. | P4_QUOTATION_CLOSE
val string_of_tok : token -> string
type state =
  1. | Newline
  2. | String
  3. | Quotation_p4
  4. | Quotation_ppx of string
  5. | Comment
  6. | Code
  7. | Verbatim
val print_state : Format.formatter -> state -> unit
type context = {
  1. lines_starts : (int * int) list;
  2. stack : state list;
  3. eof_closing : bool;
  4. comment_closing : bool;
}
val print_context : Format.formatter -> context -> unit
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 eof : context -> context * token
val initial_state : context
val rewind : Lexing.lexbuf -> int -> unit
val char_for_backslash : char -> char
val can_overflow : (string -> 'a) -> Lexing.lexbuf -> 'a 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 : context -> Lexing.lexbuf -> int -> int -> context
val __ocaml_lex_tables : Stdlib.Lexing.lex_tables
val code_newline : context -> Lexing.lexbuf -> context * token
val __ocaml_lex_code_newline_rec : context -> Lexing.lexbuf -> int -> context * token
val code : context -> Lexing.lexbuf -> context * token
val __ocaml_lex_code_rec : context -> Lexing.lexbuf -> int -> context * token
val p4_quotation : context -> Lexing.lexbuf -> context * token
val __ocaml_lex_p4_quotation_rec : context -> Lexing.lexbuf -> int -> context * token
val ppx_quotation : context -> Lexing.lexbuf -> context * token
val __ocaml_lex_ppx_quotation_rec : context -> Lexing.lexbuf -> int -> context * token
val comment : context -> Lexing.lexbuf -> context * token
val __ocaml_lex_comment_rec : context -> Lexing.lexbuf -> int -> context * token
val string : context -> Lexing.lexbuf -> context * token
val __ocaml_lex_string_rec : context -> Lexing.lexbuf -> int -> context * token
val token : context -> Lexing.lexbuf -> context * token
val tokens : context -> Lexing.lexbuf -> (token * string * state list) list
val tokens_of_string : ?st:context -> string -> (token * string * state list) list
val tokens_of_file : ?st:context -> string -> (token * string * state list) list
module Simple : sig ... end
OCaml

Innovation. Community. Security.