Perk.Parse_tagsParses a ctags-generated tags file.
The result of parsing a tags file.
Generates the tags file, by first expanding the libraries and merging them, and then calling ctags.
val string_of_parse_result : parse_result -> stringDebug function to print parsed tags file
val parse_line : string -> parse_resultParses a tags line:
p means that the line represents a prototypet means the line represents a typedef.val parse_ret_type : string -> Ctype_ast.ctypeParses the return type of a C prototype
val parse_signature : string -> Ctype_ast.typed_var listParses the signature of a C prototype
val is_proto : parse_result -> boolChecks if a parse_result is a prototype.
val is_typedef : parse_result -> boolChecks if a parse_result is a typedef.
val to_ctypes :
parse_result ->
(string * Ctype_ast.ctype * Ctype_ast.typed_var list) optionConverts a parse result to a C type.
val string_of_ctypes :
(string * Ctype_ast.ctype * Ctype_ast.typed_var list) ->
stringDebug function to print C prototype types.
val get_typedef : parse_result -> stringval is_spec_type : Ctype_ast.specifier -> boolval is_pointer_level : Ctype_ast.specifier -> boolval solve_specifiers : Ctype_ast.specifier list -> Ctype_ast.specifierGiven a C specifier list, converts it to a stdint type.
val get_type_from_spec_list : Ctype_ast.specifier list -> Ctype_ast.specifierGiven a specifier list, returns the corresponding type.
val perktype_of_sort : Ctype_ast.specifier -> Ast.perktype_partialGiven a basic C sort, returns the corresponding base type
val wrap_perktype_in_ptrs : int -> Ast.perktype -> Ast.perktype_partialWraps a type in pointers, a positive number of times.
val qual_to_perkqual : Ctype_ast.qualifier -> Ast.perktype_qualifierTransforms C qualifiers to perk qualifiers
val perktype_of_ctype : Ctype_ast.ctype -> Ast.perktypeTransforms a c type to a perk type
val perktype_of_arg : Ctype_ast.typed_var -> Ast.perktypeGiven a C prototype argument, returns its type.
Returns the perk types of each C prototype in the tags file.
val get_prototype_types : unit -> (string * Ast.perktype) list