Nonterminals
oauth_params pairs pair.


Terminals
oauth comma text equals quote.


Rootsymbol
oauth_params.


oauth_params -> oauth pairs : '$2'.

pairs -> pair             : ['$1'].
pairs -> pair comma pairs : ['$1' | '$3'].

pair -> text equals quote text quote :
    {_Name, _Line, Key} = '$1',
    {_Name, _Line, Val} = '$4',
    {Key, Val}.


Erlang code.

Nonterminals
oauth_params pairs pair.


Terminals
oauth comma text equals quote.


Rootsymbol
oauth_params.


oauth_params -> oauth       : [].
oauth_params -> oauth pairs : '$2'.

pairs -> pair             : ['$1'].
pairs -> pair comma pairs : ['$1' | '$3'].

pair -> text equals quote text quote :
    {_Name, _Line, Key} = '$1',
    {_Name, _Line, Val} = '$4',
    {Key, Val}.


Erlang code.

Handle a case of empty parameters in Authorization header.
Handle a case of empty parameters in Authorization header.
