Module Parser_extended.LexerSource
Source
type error = | Illegal_character of char| Illegal_escape of string * string option| Reserved_sequence of string * string option| Unterminated_comment of Ocaml_common.Location.t| Unterminated_string| Unterminated_string_in_comment of Ocaml_common.Location.t * Ocaml_common.Location.t| Empty_character_literal| Keyword_as_label of string| Invalid_literal of string| Invalid_directive of string * string option
Source
type deferred_token = {token : Parser.token;start_pos : Lexing.position;end_pos : Lexing.position;
}Source
val enqueue_token_from_end_of_lexbuf_window :
Lexing.lexbuf ->
Parser.token ->
len:int ->
unitSource
val compute_quoted_string_idloc :
Ocaml_common.Location.t ->
int ->
String.t ->
Ocaml_common.Location.tSource
val wrap_string_lexer :
(Lexing.lexbuf -> Lexing.position) ->
Lexing.lexbuf ->
string * Ocaml_common.Location.tSource
val wrap_comment_lexer :
(Lexing.lexbuf -> Ocaml_common.Location.t) ->
Lexing.lexbuf ->
string * Ocaml_common.Location.tSource
val directive_error :
Lexing.lexbuf ->
string ->
directive:string ->
already_consumed:directive_lexing_already_consumed ->
'aSource
val preprocessor :
((unit ->
unit)
* ((Lexing.lexbuf -> Parser.token) ->
Lexing.lexbuf ->
Parser.token))
option
refSource
val __ocaml_lex_directive_rec :
directive_lexing_already_consumed ->
Lexing.lexbuf ->
int ->
Parser.tokenSource
val set_preprocessor :
(unit -> unit) ->
((Lexing.lexbuf -> Parser.token) -> Lexing.lexbuf -> Parser.token) ->
unit