package binsec

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Binsec_base.Parse_utilsSource

General BINSEC related utilities

Sourceexception UserFriendlyParseError of string

the exception for errors in read_* functions. Use `to_string` on it to get * a user-friendly error message

Sourceval pp_pos : Format.formatter -> Lexing.position -> unit

pretty print a lexing position with some context

Sourceval read_file : parser:('a -> Lexing.lexbuf -> 'b) -> lexer:'a -> filename:string -> 'b

parses a file with nice error messages

Sourceval read_string : parser:('a -> Lexing.lexbuf -> 'b) -> lexer:'a -> string:string -> 'b

parses the content of a string with nice error messages