anchor.diff:              Err
       end.
   
  --spec decode(iodata(), options()) -> {ok, term()} | {error, binary()}.
  +-spec decode(iodata(), options()) -> {ok, term()} | {error, yaml_error()}.
   
   decode(Data, Opts) ->
       nif_decode(Data, make_flags(Opts)).
  
positive.code:             Err
      end.
  
  -spec format_error(atom() |
                     {parser_error | scanner_error,
                      binary(),
                      non_neg_integer(), non_neg_integer()}) -> string().
  
  format_error({Tag, Reason, Line, Column}) when Tag == parser_error;
                                                 Tag == scanner_error ->
  
negative.code:         [Line+1, Column+1, Reason]));
  format_error(memory_error) ->
      "Memory error";
  format_error(_) ->
      "Unexpected error".
  
  -spec decode(iodata()) -> {ok, term()} | {error, yaml_error()}.
  
  decode(Data) ->
      decode(Data, []).
  
  -spec decode_from_file(file:filename()) -> {ok, term()} | {error, yaml_error()}.
  
  decode_from_file(File) ->
      decode_from_file(File, []).
  
  -spec decode_from_file(file:filename(), options()) -> {ok, term()} | {error, yaml_error()}.
  
  decode_from_file(File, Opts) ->
      case file:read_file(File) of
  