package ocp-indent

  1. Overview
  2. Docs

Module Approx_lexerSource

include module type of struct include Approx_tokens end
Sourcetype 'a overflow = 'a Approx_tokens.overflow =
  1. | InRange of 'a
  2. | Overflow of string
Sourcetype 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
Sourceval to_string : token -> string
Sourceval list_last : 'a list -> 'a
Sourceval lines_starts : (int * int) list ref
Sourceval keywords : (string * token) list
Sourceval keyword_table : (string, token) Hashtbl.t
Sourceval lexer_extensions : (Lexing.lexbuf -> Approx_tokens.token) list ref
Sourceval enable_extension : string -> unit
Sourceval disable_extensions : unit -> unit
Sourceval initial_string_buffer : bytes
Sourceval string_buff : bytes ref
Sourceval string_index : int ref
Sourceval reset_string_buffer : unit -> unit
Sourceval store_string_char : char -> unit
Sourceval get_stored_string : unit -> string
Sourceval string_start_loc : int ref
Sourceval quotation_start_loc : int ref
Sourceval quotation_kind : [ `Camlp4 of string | `Ppx of string ] ref
Sourcetype in_comment =
  1. | Comment
  2. | Code
  3. | Verbatim
  4. | CommentCont
Sourceval comment_stack : in_comment list ref
Sourceval entering_inline_code_block : bool ref
Sourceval close_comment : unit -> token
Sourceval in_comment : unit -> bool
Sourceval in_verbatim : unit -> bool
Sourceval rewind : Lexing.lexbuf -> int -> unit
Sourceval check_commentclose : Lexing.lexbuf -> (string -> 'a) -> 'a
Sourceval init : unit -> unit
Sourceval char_for_backslash : char -> char
Sourceval can_overflow : (string -> 'a) -> Lexing.lexbuf -> 'a overflow
Sourceval char_for_decimal_code : int -> string -> char
Sourceval char_for_hexadecimal_code : Lexing.lexbuf -> int -> char
Sourceval cvt_int_literal : string -> int
Sourceval cvt_int32_literal : string -> int32
Sourceval cvt_int64_literal : string -> int64
Sourceval cvt_nativeint_literal : string -> nativeint
Sourceval remove_underscores : string -> string
Sourceval update_loc : Lexing.lexbuf -> string option -> int -> bool -> int -> unit
Sourceval __ocaml_lex_tables : Lexing.lex_tables
Sourceval parse_token : Lexing.lexbuf -> token
Sourceval __ocaml_lex_parse_token_rec : Lexing.lexbuf -> int -> token
Sourceval quotation : Lexing.lexbuf -> token
Sourceval __ocaml_lex_quotation_rec : Lexing.lexbuf -> int -> token
Sourceval comment : Lexing.lexbuf -> token
Sourceval __ocaml_lex_comment_rec : Lexing.lexbuf -> int -> token
Sourceval verbatim : Lexing.lexbuf -> token
Sourceval __ocaml_lex_verbatim_rec : Lexing.lexbuf -> int -> token
Sourceval string : Lexing.lexbuf -> token
Sourceval __ocaml_lex_string_rec : Lexing.lexbuf -> int -> token
Sourceval token_pos : Lexing.lexbuf -> token * (int * int)
Sourceval token_locs_and_comments : Lexing.lexbuf -> token * (Lexing.position * Lexing.position)
Sourceval get_token : Lexing.lexbuf -> token
Sourceval token_with_comments : Lexing.lexbuf -> token
Sourceval token : Lexing.lexbuf -> token
Sourceval tokens_of_file : string -> (token * (int * int)) list
Sourceval tokens_with_loc_of_string : string -> (token * (int * int)) list
Sourceval tokens_of_string : string -> token list
Sourceval lines : unit -> (int * int) list
OCaml

Innovation. Community. Security.