Module Ocaml_preprocess.Lexer_rawSource
Source
type error = | Illegal_character of char| Illegal_escape of string * string option| Reserved_sequence of string * string option| Unterminated_comment of Ocaml_parsing.Location.t| Unterminated_string| Unterminated_string_in_comment of Ocaml_parsing.Location.t * Ocaml_parsing.Location.t| Empty_character_literal| Keyword_as_label of string| Invalid_literal of string| Invalid_directive of string * string option
Source
type 'a result = | Return of 'a| Refill of unit -> 'a result| Fail of error * Ocaml_parsing.Location.t
Source
type preprocessor =
(Merlin_utils.Std.Lexing.lexbuf -> Parser_raw.token) ->
Merlin_utils.Std.Lexing.lexbuf ->
Parser_raw.tokenSource
type state = {keywords : keywords;mutable buffer : Buffer.t;mutable string_start_loc : Ocaml_parsing.Location.t;mutable comment_start_loc : Ocaml_parsing.Location.t list;mutable preprocessor : preprocessor option;
}Source
val token_without_comments :
state ->
Merlin_utils.Std.Lexing.lexbuf ->
Parser_raw.token result