logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Lexer - The lexical analyzer

Documentation

       Module Lexer
        : sigend

       The lexical analyzer

       Warning: this module is unstable and part of Compiler_libs .

       valinit : ?keyword_edition:(int*int)option*stringlist->unit->unitvaltoken : Lexing.lexbuf->Parser.tokenvalskip_hash_bang : Lexing.lexbuf->unittypeerror =
        | Illegal_character ofchar
        | Illegal_escape ofstring*stringoption
        | Reserved_sequence ofstring*stringoption
        | Unterminated_comment ofLocation.t
        | Unterminated_string
        | Unterminated_string_in_comment ofLocation.t*Location.t
        | Empty_character_literal
        | Keyword_as_label ofstring
        | Capitalized_label ofstring
        | Invalid_literal ofstring
        | Invalid_directive ofstring*stringoption
        | Invalid_encoding ofstring
        | Invalid_char_in_ident ofUchar.t
        | Non_lowercase_delimiter ofstring
        | Capitalized_raw_identifier ofstring
        | Unknown_keyword ofstringexceptionErroroferror*Location.tvalin_comment : unit->boolvalin_string : unit->boolvalis_keyword : string->boolvalprint_warnings : boolrefvalhandle_docstrings : boolrefvalcomments : unit->(string*Location.t)listvaltoken_with_comments : Lexing.lexbuf->Parser.tokenvalset_preprocessor  :  (unit->unit)->((Lexing.lexbuf->Parser.token)->Lexing.lexbuf->Parser.token)->unit

OCamldoc                                           2025-06-12                                          Lexer(3o)

Module

       Module   Lexer

Name

       Lexer - The lexical analyzer

See Also