anchor.diff:      last_chunk/2,
       get_token_fun/1,
       set_token_fun/2,
  -    option_names/0
  +    option_names/0,
  +    get_errors/1
     ]).
   
   %% -------------------------------------------------------------------
  
positive.code:               chars_idx = Chars_Index,
                token_idx = First + Queued
              },
              catch throw(bla),
              Parser#yaml_parser{ik_stack = [Impl_Key | Rest]};
          Required ->
              Error = #yaml_parser_error{
  
negative.code: 
  set_token_fun(Parser, Fun) when is_function(Fun, 1) ->
      Parser#yaml_parser{token_fun = Fun}.
  
  %% -------------------------------------------------------------------
  %% Errors and warnings handling.
  %% -------------------------------------------------------------------
  
  get_errors(#yaml_parser{errors = Errors}) ->
      lists:reverse(Errors);
  get_errors(#yaml_parser_error{} = Error) ->
      [Error].
  
  %% -------------------------------------------------------------------
  %% Determine encoding and decode Unicode.
  