sedlex

An OCaml lexer generator for Unicode
Library sedlex.ppx
module Cset = Sedlex_cset
val default_loc : Ppxlib.Location.t
val lident_loc : loc:Ppxlib.location -> string -> Ppxlib.Longident.t Ppxlib.loc
type decision_tree =
| Lte of int * decision_tree * decision_tree
| Table of int * int array
| Return of int
val simplify_decision_tree : decision_tree -> decision_tree
val decision : (int * int * int) list -> decision_tree
val limit : int
val simplify : int -> int -> decision_tree -> decision_tree
val segments_of_partition : ('a * 'b) list array -> ('c * 'd * int) list
val decision_table : (int * int) list array -> decision_tree
module StringMap : sig ... end
val builtin_regexps : Sedlex.regexp StringMap.t
val tables : ( int array, string ) Hashtbl.t
val table_counter : int ref
val get_tables : unit -> (string * int array) list
val table_name : int array -> string
val table : (string * int array) -> Astlib.Ast_500.Parsetree.structure_item
val partitions : ( Sedlex_cset.t array, string ) Hashtbl.t
val partition_counter : int ref
val get_partitions : unit -> (string * Sedlex_cset.t array) list
val partition_name : Sedlex_cset.t array -> string
val partition : (string * (int * int) list array) -> Astlib.Ast_500.Parsetree.structure_item
val best_final : bool array -> int option
val state_fun : int -> string
val call_state : string -> ('a array * bool array) array -> int -> Astlib.Ast_500.Parsetree.expression
val gen_state : string -> ('a array * bool array) array -> int -> ((Sedlex_cset.t * int) array * bool array) -> Astlib.Ast_500.Parsetree.value_binding list
val gen_recflag : (('a * int) array * 'b) array -> Ppxlib.rec_flag
val codepoint : int -> int
val regexp_for_char : char -> Sedlex.regexp
val regexp_for_string : string -> Sedlex.regexp
val err : Astlib.Location.t -> string -> 'a
val repeat : Sedlex.regexp -> (int * int) -> Sedlex.regexp
val should_set_cookies : bool ref
val mapper : < arg_label : Ppxlib_ast.Ast.arg_label -> Ppxlib_ast.Ast.arg_label ; array : 'a. 'a Ppxlib_traverse_builtins.T.map -> 'a array Ppxlib_traverse_builtins.T.map ; attribute : Ppxlib_ast.Ast.attribute -> Ppxlib_ast.Ast.attribute ; attributes : Ppxlib_ast.Ast.attributes -> Ppxlib_ast.Ast.attributes ; binding_op : Ppxlib_ast.Ast.binding_op -> Ppxlib_ast.Ast.binding_op ; bool : bool Ppxlib_traverse_builtins.T.map ; case : Ppxlib_ast.Ast.case -> Ppxlib_ast.Ast.case ; cases : Ppxlib_ast.Ast.cases -> Ppxlib_ast.Ast.cases ; char : char Ppxlib_traverse_builtins.T.map ; class_declaration : Ppxlib_ast.Ast.class_declaration -> Ppxlib_ast.Ast.class_declaration ; class_description : Ppxlib_ast.Ast.class_description -> Ppxlib_ast.Ast.class_description ; class_expr : Ppxlib_ast.Ast.class_expr -> Ppxlib_ast.Ast.class_expr ; class_expr_desc : Ppxlib_ast.Ast.class_expr_desc -> Ppxlib_ast.Ast.class_expr_desc ; class_field : Ppxlib_ast.Ast.class_field -> Ppxlib_ast.Ast.class_field ; class_field_desc : Ppxlib_ast.Ast.class_field_desc -> Ppxlib_ast.Ast.class_field_desc ; class_field_kind : Ppxlib_ast.Ast.class_field_kind -> Ppxlib_ast.Ast.class_field_kind ; class_infos : 'a. ( 'a -> 'a ) -> 'a Ppxlib_ast.Ast.class_infos -> 'a Ppxlib_ast.Ast.class_infos ; class_signature : Ppxlib_ast.Ast.class_signature -> Ppxlib_ast.Ast.class_signature ; class_structure : Ppxlib_ast.Ast.class_structure -> Ppxlib_ast.Ast.class_structure ; class_type : Ppxlib_ast.Ast.class_type -> Ppxlib_ast.Ast.class_type ; class_type_declaration : Ppxlib_ast.Ast.class_type_declaration -> Ppxlib_ast.Ast.class_type_declaration ; class_type_desc : Ppxlib_ast.Ast.class_type_desc -> Ppxlib_ast.Ast.class_type_desc ; class_type_field : Ppxlib_ast.Ast.class_type_field -> Ppxlib_ast.Ast.class_type_field ; class_type_field_desc : Ppxlib_ast.Ast.class_type_field_desc -> Ppxlib_ast.Ast.class_type_field_desc ; closed_flag : Ppxlib_ast.Ast.closed_flag -> Ppxlib_ast.Ast.closed_flag ; constant : Ppxlib_ast.Ast.constant -> Ppxlib_ast.Ast.constant ; constructor_arguments : Ppxlib_ast.Ast.constructor_arguments -> Ppxlib_ast.Ast.constructor_arguments ; constructor_declaration : Ppxlib_ast.Ast.constructor_declaration -> Ppxlib_ast.Ast.constructor_declaration ; core_type : Ppxlib_ast.Ast.core_type -> Ppxlib_ast.Ast.core_type ; core_type_desc : Ppxlib_ast.Ast.core_type_desc -> Ppxlib_ast.Ast.core_type_desc ; define_regexp : StringMap.key -> Ppxlib.pattern -> 'c ; direction_flag : Ppxlib_ast.Ast.direction_flag -> Ppxlib_ast.Ast.direction_flag ; directive_argument : Ppxlib_ast.Ast.directive_argument -> Ppxlib_ast.Ast.directive_argument ; directive_argument_desc : Ppxlib_ast.Ast.directive_argument_desc -> Ppxlib_ast.Ast.directive_argument_desc ; expression : Ppxlib_ast.Ast.expression -> Ppxlib_ast.Ast.expression ; expression_desc : Ppxlib_ast.Ast.expression_desc -> Ppxlib_ast.Ast.expression_desc ; extension : Ppxlib_ast.Ast.extension -> Ppxlib_ast.Ast.extension ; extension_constructor : Ppxlib_ast.Ast.extension_constructor -> Ppxlib_ast.Ast.extension_constructor ; extension_constructor_kind : Ppxlib_ast.Ast.extension_constructor_kind -> Ppxlib_ast.Ast.extension_constructor_kind ; functor_parameter : Ppxlib_ast.Ast.functor_parameter -> Ppxlib_ast.Ast.functor_parameter ; include_declaration : Ppxlib_ast.Ast.include_declaration -> Ppxlib_ast.Ast.include_declaration ; include_description : Ppxlib_ast.Ast.include_description -> Ppxlib_ast.Ast.include_description ; include_infos : 'a. ( 'a -> 'a ) -> 'a Ppxlib_ast.Ast.include_infos -> 'a Ppxlib_ast.Ast.include_infos ; injectivity : Ppxlib_ast.Ast.injectivity -> Ppxlib_ast.Ast.injectivity ; int : int Ppxlib_traverse_builtins.T.map ; label : Ppxlib_ast.Ast.label -> Ppxlib_ast.Ast.label ; label_declaration : Ppxlib_ast.Ast.label_declaration -> Ppxlib_ast.Ast.label_declaration ; letop : Ppxlib_ast.Ast.letop -> Ppxlib_ast.Ast.letop ; list : 'a. 'a Ppxlib_traverse_builtins.T.map -> 'a list Ppxlib_traverse_builtins.T.map ; loc : 'a. ( 'a -> 'a ) -> 'a Ppxlib_ast.Ast.loc -> 'a Ppxlib_ast.Ast.loc ; location : Ppxlib_ast.Ast.location -> Ppxlib_ast.Ast.location ; location_stack : Ppxlib_ast.Ast.location_stack -> Ppxlib_ast.Ast.location_stack ; longident : Ppxlib_ast.Ast.longident -> Ppxlib_ast.Ast.longident ; longident_loc : Ppxlib_ast.Ast.longident_loc -> Ppxlib_ast.Ast.longident_loc ; module_binding : Ppxlib_ast.Ast.module_binding -> Ppxlib_ast.Ast.module_binding ; module_declaration : Ppxlib_ast.Ast.module_declaration -> Ppxlib_ast.Ast.module_declaration ; module_expr : Ppxlib_ast.Ast.module_expr -> Ppxlib_ast.Ast.module_expr ; module_expr_desc : Ppxlib_ast.Ast.module_expr_desc -> Ppxlib_ast.Ast.module_expr_desc ; module_substitution : Ppxlib_ast.Ast.module_substitution -> Ppxlib_ast.Ast.module_substitution ; module_type : Ppxlib_ast.Ast.module_type -> Ppxlib_ast.Ast.module_type ; module_type_declaration : Ppxlib_ast.Ast.module_type_declaration -> Ppxlib_ast.Ast.module_type_declaration ; module_type_desc : Ppxlib_ast.Ast.module_type_desc -> Ppxlib_ast.Ast.module_type_desc ; mutable_flag : Ppxlib_ast.Ast.mutable_flag -> Ppxlib_ast.Ast.mutable_flag ; object_field : Ppxlib_ast.Ast.object_field -> Ppxlib_ast.Ast.object_field ; object_field_desc : Ppxlib_ast.Ast.object_field_desc -> Ppxlib_ast.Ast.object_field_desc ; open_declaration : Ppxlib_ast.Ast.open_declaration -> Ppxlib_ast.Ast.open_declaration ; open_description : Ppxlib_ast.Ast.open_description -> Ppxlib_ast.Ast.open_description ; open_infos : 'a. ( 'a -> 'a ) -> 'a Ppxlib_ast.Ast.open_infos -> 'a Ppxlib_ast.Ast.open_infos ; option : 'a. 'a Ppxlib_traverse_builtins.T.map -> 'a option Ppxlib_traverse_builtins.T.map ; override_flag : Ppxlib_ast.Ast.override_flag -> Ppxlib_ast.Ast.override_flag ; package_type : Ppxlib_ast.Ast.package_type -> Ppxlib_ast.Ast.package_type ; pattern : Ppxlib_ast.Ast.pattern -> Ppxlib_ast.Ast.pattern ; pattern_desc : Ppxlib_ast.Ast.pattern_desc -> Ppxlib_ast.Ast.pattern_desc ; payload : Ppxlib_ast.Ast.payload -> Ppxlib_ast.Ast.payload ; position : Ppxlib_ast.Ast.position -> Ppxlib_ast.Ast.position ; private_flag : Ppxlib_ast.Ast.private_flag -> Ppxlib_ast.Ast.private_flag ; rec_flag : Ppxlib_ast.Ast.rec_flag -> Ppxlib_ast.Ast.rec_flag ; row_field : Ppxlib_ast.Ast.row_field -> Ppxlib_ast.Ast.row_field ; row_field_desc : Ppxlib_ast.Ast.row_field_desc -> Ppxlib_ast.Ast.row_field_desc ; signature : Ppxlib_ast.Ast.signature -> Ppxlib_ast.Ast.signature ; signature_item : Ppxlib_ast.Ast.signature_item -> Ppxlib_ast.Ast.signature_item ; signature_item_desc : Ppxlib_ast.Ast.signature_item_desc -> Ppxlib_ast.Ast.signature_item_desc ; string : string Ppxlib_traverse_builtins.T.map ; structure : Ppxlib_ast.Ast.structure -> Ppxlib_ast.Ast.structure ; structure_item : Ppxlib_ast.Ast.structure_item -> Ppxlib_ast.Ast.structure_item ; structure_item_desc : Ppxlib_ast.Ast.structure_item_desc -> Ppxlib_ast.Ast.structure_item_desc ; structure_with_regexps : Ppxlib_ast.Ast.structure -> Ppxlib_ast.Ast.structure * Ppxlib_ast.Ast.structure_item list ; toplevel_directive : Ppxlib_ast.Ast.toplevel_directive -> Ppxlib_ast.Ast.toplevel_directive ; toplevel_phrase : Ppxlib_ast.Ast.toplevel_phrase -> Ppxlib_ast.Ast.toplevel_phrase ; type_declaration : Ppxlib_ast.Ast.type_declaration -> Ppxlib_ast.Ast.type_declaration ; type_exception : Ppxlib_ast.Ast.type_exception -> Ppxlib_ast.Ast.type_exception ; type_extension : Ppxlib_ast.Ast.type_extension -> Ppxlib_ast.Ast.type_extension ; type_kind : Ppxlib_ast.Ast.type_kind -> Ppxlib_ast.Ast.type_kind ; value_binding : Ppxlib_ast.Ast.value_binding -> Ppxlib_ast.Ast.value_binding ; value_description : Ppxlib_ast.Ast.value_description -> Ppxlib_ast.Ast.value_description ; variance : Ppxlib_ast.Ast.variance -> Ppxlib_ast.Ast.variance ; virtual_flag : Ppxlib_ast.Ast.virtual_flag -> Ppxlib_ast.Ast.virtual_flag ; with_constraint : Ppxlib_ast.Ast.with_constraint -> Ppxlib_ast.Ast.with_constraint > as 'b
val pre_handler : Ppxlib.Driver.Cookies.t -> unit
val post_handler : Ppxlib.Driver.Cookies.t -> unit
val extensions : Ppxlib.Extension.t list