Drom_toml.ParserParses raw data into Toml data structures
The location of an error. The source gives the source file of the error. The other fields give the location of the error inside the source. They all start from one. The line is the line number, the column is the number of characters from the start of the line, and the position is the number of characters from the start of the source.
Parsing result. Either Ok or error (which contains a (message, location) tuple).
val parse : Stdlib.Lexing.lexbuf -> string -> resultGiven a lexer buffer and a source (eg, a filename), returns a result.
val from_string : string -> resultGiven an UTF-8 string, returns a result.
val from_channel : Stdlib.in_channel -> resultGiven an input channel, returns a result.
val from_filename : string -> resultGiven a filename, returns a result.
exception Error of string * locationval unsafe : result -> Types.tableA combinator to force the result. Raise Error if the result was `Error.