package binsec
Module Binsec.Parse_utils
General BINSEC related utilities
the exception for errors in read_* functions. Use `to_string` on it to get * a user-friendly error message
val read_file :
parser:('a -> Lexing.lexbuf -> 'b) ->
lexer:'a ->
filename:string ->
'bparses a file with nice error messages
val read_string :
parser:('a -> Lexing.lexbuf -> 'b) ->
lexer:'a ->
string:string ->
'bparses the content of a string with nice error messages
val read_dba_file : string -> Dba_types.programval read_optional_config_file : string option -> Infos.tread_optional_config_file optfile parses optfile if it is not None. Otherwise, or in case of parse error, it returns Infos.default. If a start address has been set on the command line, it tries to set it.
Caveat: if an entry point has been set both through a configuration file and the command line, read_optional_config_file fails.
val instruction_of_string : string -> Dba.Instr.t